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.

About these ads

  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 177 other followers

%d bloggers like this: