View Single Post
Posts: 19 | Thanked: 1 time | Joined on Jul 2007
#1
So, I'm trying to get my 770 to boot off the RS-MMC card but I'm running into some problems.
I've tried following this guide to the letter, but I wasn't able to get it to boot. It would "fail to boot" then continue to boot from flash. I fsck-ed and it found numerous errors. I suspected that the device ran out of memory, so I reflashed my device and retried, but this time enabling swap. Same result, failed to boot.
I tried again, but this time with my own configuration based on the guides. Still no luck.
Here is what I exactly did on the device, in step by step format:

Downloaded and unpacked tar to /tar-temp/
Disabled swap in GUI
Ran the following commands:
Code:
umount /media/mmc1
sfdisk /dev/mmcblk0
    1,,,
    (Return 3 times)
mke2fs /dev/mmcblk0p1
shutdown -r now
It was my intent to create one large EXT2 partition, which my mac has no trouble mounting.
When it started back up I ran these commands:
Code:
fsck /dev/mmcblk0p1
mount /dev/mmcblk0p1 /opt
mount -t jffs2 /dev/mtdblock4 /floppy
dd if=/dev/zero of=/opt/tmpswap bs=1024 count=24576
mkswap /opt/tmpswap 24576
swapon /opt/tmpswap 
/tar-temp/bin/tar cf - -C /floppy . | /tar-temp/bin/tar xvf - -C /opt
swapoff /opt/tmpswap
umount /opt
umount /floppy
shutdown -r now
While the files were copying I created a small script to pipe the contents of `free` to a text file every 60 seconds. I walked away, came back, and checked the file. It didn't run out of memory at any point.

I also modified /mnt/inifs/bootmenu.sh in the following way
Code:
diff bootmenu.sh bootmenu.sh.orig 
45c45
< MENU_3_NAME="mmcblk0p1"
---
> MENU_3_NAME="MMC card, partition 2, ext2"
47c47
< MENU_3_DEVICE="mmcblk0p1"
---
> MENU_3_DEVICE="mmcblk0p2"
I'm at a loss... I don't see any error in what I'm doing. Help!