Archive for May, 2013

EfikaMX: Install Sabayon to NAND

I assume you have a working bootable Sabayon image on a sd card.

Boot from the Sabayon SD

Once booted up:
Install u-boot-tools:
equo install u-boot-tools
We need this later

Format the nand root partition:
mkfs.ext4 /dev/sda2

Mount the clean nand root partition:
mkdir /mnt/nand && mount /dev/sda2 /mnt/nand

Rsync / from the SD to the new nand partition:
rsync -avHAXx --delete --numeric-ids --exclude "/mnt/*" / /mnt/nand/

Change fstab on the nand root partition:
nano /mnt/nand/etc/fstab
Change /dev/mmcblk0p1 to /dev/sda1

Unmount nand root partition
umount /dev/sda2

Now we go ahead with the boot partition.
mkfs.ext3 /dev/sda1

Rsync boot partition from the SD to the new partition:
mkdir /mnt/temp && mount /dev/mmcblk0p1 /mnt/temp
mkdir /mnt/nandboot && mount /dev/sda1 /mnt/nandboot

rsync -avHAXx /mnt/temp/ /mnt/nandboot/

Regenerate uboot image:

cd into /mnt/nandboot

nano boot.script

change so it looks like this root=/dev/sda2

Now regenerate the uboot image:

mkimage -A arm -T script -C none -n "boot" -d boot.script  boot.scr

Reboot the system and remove the SD card.

Leave a comment