View Single Post
Posts: 53 | Thanked: 3 times | Joined on Jul 2007
#37
Originally Posted by stewp6340 View Post
Thanks, I will try this shortly. How far would you recommend I back up in the sequence? Go back to re-partition and format, clearly, but do you think that I need to reflash the dual-boot initfs_flash from fanoush, or skip that step; and go directly into the mount and TAR step?

Thanks for your help, all
Use this procesure

Do
Code:
#unmount /opt
#unmount /floppy
#unmount /media/mmc1
#unmount /media/mmc2
Then follow http://maemo.org/community/wiki/HowT..._your_MMC_card
(With partition values as shown in above post).

Skip
Code:
Skip this, as you already have this.
# apt-get install e2fsprogs
Do
Code:
# umount /media/mmc1
# umount /media/mmc2 (for N800 only!)
# sfdisk /dev/mmcblk0
/dev/mmcblk0p1:1,52500,b
/dev/mmcblk0p2:52501,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:
Skip this
Code:
# mkdosfs /dev/mmcblk0p1
Use this (This will make FAT 32, with cluster size of 1 KB). If you want bigger cluster size then use -s 4 for 2 KB, -s 8 for 4 KB, or -s 16 for 8 KB, or -s 32 for 16 KB. I like small as I have many small file. It becomes slightly slow, but I need to have small cluster size. You can use -s 4 for 2 KB or -s 8 for 4 KB. But many small files < 4 KB will waste lost of space).
Do
Code:
# mkdosfs -s 2 -F 32 /dev/mmcblk0p1
# shutdown -r now
Do this
Code:
# mke2fs /dev/mmcblk0p2
# shutdown -r now
Do These
Code:
# insmod /mnt/initfs/lib/modules/current/ext2.ko
# mount /dev/mmcblk0p2 /media/mmc2
Then follow http://maemo.org/community/wiki/howt...from_mmc_card/
Skip these
Code:
# cd /home/user/MyDocs/.documents/
# tar zxvf initfs_flasher.tgz
# cd initfs_flasher/
# ./initfs_flash
Skip these
Code:
# mkdir /opt/
# mkdir /floppy/
Skip
Code:
# apt-get -d install tar
# cd /var/cache/apt/archives/
# mkdir /tar-temp/
# dpkg -x tar*.deb /tar-temp/
But execute rest of the commands. DO These
Code:
(for N770 skip this)
# insmod /mnt/initfs/lib/modules/2.6.18-omap1/mbcache.ko
Do
Code:
# insmod /mnt/initfs/lib/modules/current/ext2.ko
# mount /dev/mmcblk0p2 /opt
# mount -t jffs2 /dev/mtdblock4 /floppy
Do: Now Tools->Control Panel->Memory->Virtual Memory. Select 64 MB.

Do
Code:
# /tar-temp/bin/tar cf - -C /floppy . | /tar-temp/bin/tar xvf - -C /opt
Do
Code:
# umount /opt
# umount /floppy
# chroot /mnt/initfs cal-tool --set-root-device ask:mmc2
# shutdown -r now

Last edited by tama; 2007-08-08 at 16:56.