Installing the rootfs in MMC card
Booting your Nokia tablet from the MMC card
= Becoming root =
Install the following packages:
* becomeroot
* osso-xterm
After installed these packages, start the Xterm and run the following command line:
$ sudo gainroot
= Creating the MMC big partition =
# sfdisk /dev/mmcblk0 <<> ;
> EOF
# sfdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 61440 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 0+ 61439 61440- 1966079+ 83 Linux
/dev/mmcblk0p2 0 - 0 0 0 Empty
/dev/mmcblk0p3 0 - 0 0 0 Empty
/dev/mmcblk0p4 0 - 0 0 0 Empty
= Formating the MMC partition =
# mke2fs /dev/mmcblk0p1
= Cloning the whole original system =
== Modules dependences ==
# insmod /mnt/initfs/lib/modules/2.6.21-omap1/mbcache.ko
# insmod /mnt/initfs/lib/modules/2.6.21-omap1/ext2.ko
== Mounting the MMC card ==
# mount -t ext2 /dev/mmcblk0p1 /media/mmc1
== Mounting the flash ==
# mount -t jffs2 -o ro /dev/mtdblock4 /floppy
== Cloning from flash to MMC ==
Before continuing it is better to close internet connection...
# tar cf - -C /floppy . | tar xvf - -C /media/mmc1
== Setting the new rootfs ==
# chroot /mnt/initfs cal-tool --set-root-device mmc
# shutdown -r now
References:
http://maemo.org/community/wiki/HowTo_EASILY_BecomeRoot
http://maemo.org/community/wiki/HowTo_EASILY_Partition_your_MMC_card
http://www.math.ias.edu/doc/util-linux-2.12a/sfdisk.examples
Thanks,
Ragner Magalhães
1 comment:
dude, I have not 'mke2fs' command available. So I plugged my device to PC though my usd cable, and formated the mmc from my PC with 'sudo mkfs.ext2 -c -m 1 /dev/sdb1' ... that works too ;)
what about a graphical applet/plug for that ? a radio button followed by a "are you sure" confirmation dialog would work great ... ;)
Post a Comment