View Single Post
Posts: 6 | Thanked: 1 time | Joined on Feb 2008
#78
Originally Posted by TXFI View Post
Here are the steps I took to boot my N800 from SD card to Diablo.

Note: All shell commands need to be entered as root.

1) First I removed both of my memory cards and upgraded my N800 to Diablo, http://europe.nokia.com/A4305010
2) Device booted and I went through the Start-up wizard and cancelled the Phone selecting-wizard
3) Created a working WiFi connection using Connection Manager in the Settings-menu
4) Enabled the Maemo Extras repository in Application Manager and added a new repository:

Catalog name: Maemo Chinook
Web address: http://repository.maemo.org
Distribution: chinook
Components: free non-free
Disabled: (unchecked)

5) Installed "rootsh" using Application Manager and shut down the device
6) Installed my 8 GB SDHC card to the internal slot and turned on the device. Activated my WiFi connection and opened "X Terminal" from the Utilities menu to install the filesystem tools:

# root
# apt-get install -y --force-yes e2fsprogs
# umount /media/mmc2

7) Created two (512 MB and 7 GB) partitions on my 8 GB SD card. Adjust the values for mmcblk0p1 and mmcblk0p2 to reflect the SD card you are using. One unit is equal to 32768 bytes so 16384 units/blocks is 512 MB.

# sfdisk /dev/mmcblk0
/dev/mmcblk0p1:1,16384,6
/dev/mmcblk0p2:16385,,83
/dev/mmcblk0p3:
/dev/mmcblk0p4:

(say yes to the question "Do you want to write this to disk?")

# reboot

8) Activated my WiFi connection and opened "X Terminal" from the Utilities menu. Created file systems on the card:

# root
# mkdosfs /dev/mmcblk0p1
# mke2fs /dev/mmcblk0p2
# reboot

9) Activated my WiFi connection and using the N800 web browser I downloaded:

http://fanoush.wz.cz/maemo/initfs_flasher.tgz

and saved it to the default location (/home/user/MyDocs/.documents/)

10) Closed the browser and opened "X Terminal" from the Utilities menu to unpack and install what I just downloaded

# root
# cd /home/user/MyDocs/.documents/
# tar zxf initfs_flasher.tgz
# cd initfs_flasher

Close all applications and disconnect any connections you might have.

# ./initfs_flash
Yes to "Are you sure to continue?"
No to "Create backup of current initfs"
Yes to "Remove unneeded extra (and factory testing) stuff?)
No to "install telnet server for network recovery?"
No to "install dropbear ssh server for advanced network recovery?"
Yes to "Part 2 - Ready for flashing this image?"
hit Enter to reboot

WHEN THE MENU APPEARS, BOOT FROM THE INTERNAL FLASH!

11) Activated my WiFi connection and opened "X Terminal" from the Utilities menu. and installed the kernel modules:

# root
# insmod /mnt/initfs/lib/modules/2.6.21-omap1/mbcache.ko
# insmod /mnt/initfs/lib/modules/2.6.21-omap1/ext2.ko

12) Mounted the file systems to be cloned:

# mount /dev/mmcblk0p2 /opt
# mount -t jffs2 -o ro /dev/mtdblock4 /floppy

13) cloned the files from /floppy to /opt:

# tar cf - -C /floppy . | tar xf - -C /opt

Note that the above command takes quite a while to execute (around 3 minutes for me). Observe any errors it might (but shouldn't) display. Change to "tar xvf" if you want verbose output.

14) Set up the MMC as a boot option and reboot the device:

# umount /opt
# umount /floppy
# chroot /mnt/initfs cal-tool --set-root-device ask:mmc2
# reboot

All done!

- - - - - - - - - - - - - - - - - - - - - - - -

If you used an 8 GB card, after reboot you should have over 6 GB of device memory and 512 MB on the internal memory card, to which you can extend virtual memory to.

Enjoy!

Next on my to-do list are:

- booting N800 from a 32 GB SDHC card (need to buy one first)
- booting N810 from a 8 GB MiniSDHC card (like this guy: http://tabletoid.blogspot.com/2008/0...boot-from.html)
what do i type in if i want to partion a 16gb sd card?