Deploy Kernel and RFS to SD-Card

You have a problem with your Wandboard and want to ask the community for help.

Deploy Kernel and RFS to SD-Card

Postby Rysler » Mon Jun 29, 2015 1:06 pm

Hello:

I have a Wandboard Solo.

I have downloaded the SDK from http://www.wandboard.org/downloads. I have also followed the wand-dev.pdf document to compile u-boot and the kernel. I can see that u-Boot and Kernel images are successfully created.

On wand-dev.pdf I can see how to deploy u-boot to the sd-card, but unfortunately I didn't find a way to deploy the Kernel and root file system.

Is there any tutorial on how to do this?

I looked into: https://eewiki.net/display/linuxonarm/Wandboard, Can I use same steps to get the root file system? Also can I use those steps to set-up the SD-Card?

Any place were you could recommend me to look?

Thanks in advance!
Rysler
 
Posts: 23
Joined: Mon Jun 29, 2015 11:48 am

Re: Deploy Kernel and RFS to SD-Card

Postby Tapani » Tue Jun 30, 2015 3:07 am

You seem to be right that the doc does not spell out how to install a rootfs. (Installation of kernel is covered in section 1.3, second half)

To install a rootfs:
1. Partition your SD card, where you leave some 8MB unpartitioned at the beginning (for SPL, u-boot and kernel etc)
2. Select a partition to use as rootfs (usually the first partition). Format your partition to your favourite fs type with your favourite options.
For instance, I use:
Code: Select all
mkfs.ext4 -E stripe-width=64,stride=64 -O sparse_super -m0 -J size=4 /dev/sddX
tune2fs -O ^huge_file /dev/sddX
tune2fs -c -1 /dev/sddX

replace /dev/sddX with your selected partition.

3. Mount your shining new partition:
Code: Select all
mount /dev/sddX /mnt/rootfs


4. Copy the rootfs to the SD card
Code: Select all
# cp -a rootfs/* /mnt/rootfs/


Good luck!
Tapani
 
Posts: 712
Joined: Tue Aug 27, 2013 8:32 am

Re: Deploy Kernel and RFS to SD-Card

Postby Rysler » Tue Jun 30, 2015 4:55 am

Hi Tapani:

It worked like a charm!

Thanks a lot for your help!

I'm using the following RFS: ubuntu-14.04.2-minimal-armhf-2015-06-09

Do you think it is appropiate?

I would be really nice to update the wand-dev.pdf with this information, I can voluteer :-)

Regards!
Rysler
Rysler
 
Posts: 23
Joined: Mon Jun 29, 2015 11:48 am

Re: Deploy Kernel and RFS to SD-Card

Postby Tapani » Wed Jul 01, 2015 5:20 am

Thank you Rysler,

check your PMs!
Tapani
 
Posts: 712
Joined: Tue Aug 27, 2013 8:32 am



Return to Getting started

Who is online

Users browsing this forum: No registered users and 6 guests