Active Topics

 


Reply
Thread Tools
Posts: 14 | Thanked: 0 times | Joined on Aug 2007
#31
Only thing was that after partitioning the card (1gb) I turned the virtual memory back on as prior posts said that might help. That was before copying the file systems.

No red pill or anything. Where are you having problems?
 
Posts: 19 | Thanked: 0 times | Joined on Jul 2007
#32
middguy,

everytime that I try to perform the full copy (/tar-temp/bin/tar cf - -C .floppy . | /tar-temp/bin/tar xvf - -C /opt), the copy starts and goes for about 10-15 minutes, and then at some point, xterm aborts, and the copy terminates (early?). Then, if I try to finish the instructions, and reboot, when I select to boot from mmc2 (stable), it gives a "boot from mmc2 failed. booting from flash" message. Boot from flash appears to work fine.

how exactly did you turn virtual memory back on? Previous instructions did not match what I saw under control panel.

thanks,
 
Posts: 14 | Thanked: 0 times | Joined on Aug 2007
#33
I turned virtual memory on right before doing this part

"insmod /mnt/initfs/lib/modules/current/ext2.ko
mount /dev/mmcblk0p2 /opt
mkdir /floppy
mount -t jffs2 /dev/mtdblock4 /floppy"

I would advise you to reflash and start all over and try that. Once virtual memory was enabled it took around 25 minutes to finish on my 770.

Now I just wonder if there is a way to automate this if I ever need to reflash it. Its a PITA
 
Posts: 19 | Thanked: 0 times | Joined on Jul 2007
#34
middguy,

Did you turn virtual memory on from Tools->Control Panel->Memory->Virtual tab? How much did you enable (default seems to be 64MB)?
 
Posts: 53 | Thanked: 3 times | Joined on Jul 2007
#35
Originally Posted by stewp6340 View Post
middguy,

Did you turn virtual memory on from Tools->Control Panel->Memory->Virtual tab? How much did you enable (default seems to be 64MB)?
Yes that's the way. Pickup 64 MB. You can lower it or disable it or even keep it after tar is over successfully.


While you are at it, use the partition type as 'b' instead of '6' for /dev/mmcblk0p1
i.e instead of
Code:
# apt-get install e2fsprogs
# umount /media/mmc1
# umount /media/mmc2 (for N800 only!)
# sfdisk /dev/mmcblk0
/dev/mmcblk0p1:1,15000,6
/dev/mmcblk0p2:15001,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:
Use
Code:
# apt-get install e2fsprogs
# umount /media/mmc1
# umount /media/mmc2 (for N800 only!)
# sfdisk /dev/mmcblk0
/dev/mmcblk0p1:1,52500,b
/dev/mmcblk0p2:52501,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:
That will make mmc1 partition as FAT32 instead of FAT16. Believe me you will realise its imprtance later. ALSO NOTE: that the above numbers are for 2 GB ard. The 52500 will put about 1.68 GB in MMC1 and 320 MB in mmc2 which is for dual boot partition on your mmc.

Last edited by tama; 2007-08-08 at 12:53.
 
Posts: 19 | Thanked: 0 times | Joined on Jul 2007
#36
Yes that's the way. Pickup 64 MB. You can lower it or disable it or even keep it after tar is over successfully.

While you are at it, use the partition type as 'b' instead of '6' for /dev/mmcblk0p1

Use
Code:

# apt-get install e2fsprogs
# umount /media/mmc1
# umount /media/mmc2 (for N800 only!)
# sfdisk /dev/mmcblk0
/dev/mmcblk0p1:1,52500,b
/dev/mmcblk0p2:52501,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:

That will make mmc1 partition as FAT32 instead of FAT16. Believe me you will realise its imprtance later. ALSO NOTE: that the above numbers are for 2 GB ard. The 52500 will put about 1.68 GB in MMC1 and 320 MB in mmc2 which is for dual boot partition on your mmc.
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
 
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.
 
Posts: 19 | Thanked: 0 times | Joined on Jul 2007
#38
Tama,

That is exactly the kind of post I was looking for. I have a few things to do here at work first, then I am going to sneak the N770 out of my briefcase and start in on this procedure. Thanks so much for the effort.
 
Posts: 14 | Thanked: 0 times | Joined on Aug 2007
#39
Good luck. I love it after the dual boot. Only thing now is that when I try to backup the system crashes. No idea why. Might have to start all over again and make the card Fat32
 
Posts: 19 | Thanked: 0 times | Joined on Jul 2007
#40
middguy,

when you said that you started all over from the beginning by reflashing, what system/file did you reflash? I am wondering if I should do the same? What reflash method did you use?
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:40.