maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2007 / Maemo 3 / Bora (https://talk.maemo.org/forumdisplay.php?f=23)
-   -   Cloning OS to SD Card: Simplified instructions (https://talk.maemo.org/showthread.php?t=8631)

qwerty12 2008-01-26 23:21

Re: Cloning OS to SD Card: Simplified instructions
 
N800 wuth OS2008.

uname -r returns 2.6.21-omap1 which seems right to me but I still got unable to locate mbcache.ko and carried on which trashed my partition because it was writing to itself. Ah well, I got it to work fine and thanks again for the brilliant script :)

ghoonk 2008-01-27 02:48

Re: Cloning OS to SD Card: Simplified instructions
 
Sorry if this has already been addressed, but I've been at this for the last 4 hours (it's 6.45 am now and I need to get ready for work).

Thus far, I have learned that before starting on step 7 of post #1 of this thread, one should partition the card first.

sudo gainroot
umount /media/mmc2
sfdisk /dev/mmcblk0 -uM
1,14000,0C
,,,
reboot

sudo gainroot
umount /media/mmc2
mkdosfs /dev/mmcblk0p1
reboot

sudo gainroot
umount /media/mmc2
mke2fs /dev/mmcblk0p2
reboot

sudo gainroot
umount /media/mmc2
cd bin
./nupgrade.sh 0
yes
./nupgrade.sh 1
yes
./nupgrade.sh 2
yes
./nupgrade.sh 3
yes
./nupgrade.sh 4
yes
reboot

After all this, it's still not booting from the MMC.

Did I go wrong with a step somewhere?

qwerty12 2008-01-27 08:42

Re: Cloning OS to SD Card: Simplified instructions
 
Quote:

Originally Posted by ghoonk (Post 134213)
Sorry if this has already been addressed, but I've been at this for the last 4 hours (it's 6.45 am now and I need to get ready for work).

Thus far, I have learned that before starting on step 7 of post #1 of this thread, one should partition the card first.

sudo gainroot
umount /media/mmc2
sfdisk /dev/mmcblk0 -uM
1,14000,0C
,,,
reboot

I'm probably wrong (my knowledge of Linux is average) but -uM isn't needed.

Also the 1st partition that is created is VFAT which has the code of "6", not "0C".
For the second partition, try the line:
14001,,

(Starts from 1 cylinder after the VFAT partition, fills rest of space & I think sfdisk assumes ext2fs is nothing is entered after the second comma)

ghoonk 2008-01-27 08:47

Re: Cloning OS to SD Card: Simplified instructions
 
dan, it looks like you managed to get it working. Could you share with us the exact steps, or did you, like me, end up applying so many fixes along the way that you lost track of the steps as well? :)

nhanquy 2008-01-27 09:05

Re: Cloning OS to SD Card: Simplified instructions
 
I was able to do it with my 8GB cards. Only thing I noticed is that I would do:


sudo gainroot
umount /media/mmc2
sfdisk /dev/mmcblk0 -uM
0,14000,0C <<<<<
14000,, <<<<<<
,,
reboot

sudo gainroot
umount /media/mmc2
mkdosfs /dev/mmcblk0p1
reboot

sudo gainroot
umount /media/mmc2
mke2fs /dev/mmcblk0p2
reboot

qwerty12 2008-01-27 09:11

Re: Cloning OS to SD Card: Simplified instructions
 
Quote:

Originally Posted by ghoonk (Post 134297)
dan, it looks like you managed to get it working. Could you share with us the exact steps, or did you, like me, end up applying so many fixes along the way that you lost track of the steps as well? :)

Try the sfdisk lines first and if they don't work for you, I'll write up exactly what I did (won't be as greatly written as Milhouses' guide though).

ghoonk 2008-01-27 09:43

Re: Cloning OS to SD Card: Simplified instructions
 
got the SDHC fixed, and it's now a FAT16. What's an optimal file system to use? FAT16? FAT32? FAT (LBA?)

This card is used for virtual memory, MP3s, pictures, and movies

ghoonk 2008-01-27 10:18

Re: Cloning OS to SD Card: Simplified instructions
 
Quote:

Originally Posted by dan (Post 130691)
Milhouse, Bunanson and Fanoush,

I did it!!!
I'm dual booting from from a 16gb class 6 sdhc card.
I put 3.3gb for os and 11.9gb for storage.
The os on partition loads in about 15-17 seconds and the normal flash
loads in about 32-34 seconds.

I also got USB HOST running from normal flash. So now I have USB hub
with 4 sdhc cards. Strange thing is that it activates bluetooth?

Well again many thanks for your help, patience and support.
Dan

Are you running OS2007 or 2008? N800 or N810?

qwerty12 2008-01-27 10:47

Re: Cloning OS to SD Card: Simplified instructions
 
Quote:

Originally Posted by ghoonk (Post 134319)
Are you running OS2007 or 2008? N800 or N810?

http://www.internettablettalk.com/fo...&postcount=147

I found that post by him.

ghoonk 2008-01-27 10:48

Re: Cloning OS to SD Card: Simplified instructions
 
I think I found part of the problem.

After partitioning, i rebooted, then

sudo gainroot
sfdisk -ls

and got the following results:

/home/user # sfdisk -ls
/dev/mmcblk0: 15694336

Disk /dev/mmcblk0: 490448 cylinders, 4 heads, 16 sectors/track
Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/mmcblk0p1 32 448031 448000 14336000 c W95 FAT32 (LBA)
/dev/mmcblk0p2 0+ 31 32- 1023+ 83 Linux
/dev/mmcblk0p3 448032 490447 42416 1357312 83 Linux
/dev/mmcblk0p4 0 - 0 0 0 Empty
total: 15694336 blocks


For some strange reason, the 1GB I allocated for the Linux partition for the bootspace ended up being mmcblk0p3 instead of mmcblk0p2 as I thought.

How do I designate p03 to be the default bootspace?


All times are GMT. The time now is 11:10.

vBulletin® Version 3.8.8