View Single Post
Posts: 115 | Thanked: 342 times | Joined on Dec 2010
#51
It's on my "sometime-todolist", but currently I have no motivation to do it.
Keeping the rootfs on NAND and moving /home/ and /home/user/MyDocs to the sd is not installing maemo on sd.

The basic steps to do it would be the following:

1) Recompiling the kernel to support mounting from sd card. You must adjust the kernel command line to mount the rootfs from sdcard and not from NAND. This functionality must be compiled into the kernel and mustn't be outsourced to kernel modules (except one would use an initrd).
NIN's lab did it. I booted with the maemo kernel an EXT4 linux rootfs on sd. Here should be the relevant parts of the config used for that kernel:

Code:
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_LBD=y
CONFIG_LSF=y
CONFIG_MTD_BLKDEVS=y
CONFIG_MTD_BLOCK=y
CONFIG_MMC=y
CONFIG_MMC_BLOCK=y
CONFIG_MMC_OMAP_HS=y
CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_XATTR=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_JBD2=y
CONFIG_FS_MBCACHE=y
CONFIG_FS_POSIX_ACL=y
2) Copying the rootfs to sd.
2) Editing the bootscripts (e. g. s/mmcblk0/mmcblk1/ if you want to move /home/, MyDocs too)

3) Dealing with suprises not foreseeable yet.
 

The Following User Says Thank You to NIN101 For This Useful Post: