View Single Post
Posts: 30 | Thanked: 1 time | Joined on Aug 2007
#1
I browse alot of threads here and on garage&maemo about booting from MMC and looks there are no a final thread about this subject.Here we are :

sudo gainroot
apt-get install e2fsprogs
umount /media/mmc1
sfdisk /dev/mmcblk0
/dev/mmcblk0p1: 1,15000,6
/dev/mmcblk0p2: 15001,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:
mkdosfs /dev/mmcblk0p1
shutdown -r now
sudo gainroot
mke2fs /dev/mmcblk0p2
shutdown -r now
sudo gainroot
cd /home/user/MyDocs/.documents/
tar zxvf initfs_flasher.tgz
cd initfs_flasher
mv bootmenu.conf.n770.example bootmenu.conf
./initfs_flash
backup? no
*
remove extra stuff? yes
found, do you want to add it to initfs? yes
ready for flashing this image? yes
Press enter to reboot device
*
sudo gainroot
insmod /mnt/initfs/lib/modules/current/ext2.ko
mount /dev/mmcblk0p2 /opt
mkdir /floppy
mount -t jffs2 /dev/mtdblock4 /floppy
apt-get -d install tar
mkdir /tar-temp/
cd /var/cache/apt/archives/
dpkg -x tar*.deb /tar-temp/
/tar-temp/bin/tar cf - -C /floppy . | /tar-temp/bin/tar xvf - -C /opt
chroot /mnt/initfs cal-tool --set-root-device ask:mmc2
umount /opt
umount /floppy
shutdown -r now

Everything went way too long,xterm closed himself and-
It took 4 hours to finish just to copy , and the result is ...start again from flash....

Where did I go wrong ? I try twice:unable to boot from MMC
Anybody can correct please some mistake on those lines?
Thanks,
bitrate