I want to use the sd card to hold the kernel image and the initramdisk only but have the filesystem root on a logical volume on top of a software raid.
I have a running arch on my wandboard quad and used it to to the following preparatory steps:
1.) Created a suitable kernel+initram combination:
I have set $this->bbcode_second_pass_code('', ' HOOKS="base udev autodetect modconf block mdadm lvm2 filesystems"') in /etc/mkinitcpio.conf
and run
$this->bbcode_second_pass_code('', '
pacman -Syu linux-armv7
mdadm --detail --scan >> /etc/mdadm.conf
mkinitcpio -g /boot/initrd
')
which did not report any errors
and created the new file initrd in /boot
2.) Created the raid and the lv on top and install an arch there:
This worked without problems
$this->bbcode_second_pass_code('', 'lvscan
ACTIVE '/dev/root/root' [200.00 GiB] inherit
bsdtar -xpf ArchLinuxARM-wand-latest.tar.gz -C')
3.) Configure uboot and write it (together wiht the kernel, ramdisk and what else) to an sd card:
.
This is where I get lost
Can I use a config file for u-boot, and what do I have to put in it?
Can I use the same version of uboot installed on my present sd card (from which I booted to perform the previous steps) and copy it via dd to the new sd-card?
Do I have to use mkimage (and how)?
...?
4.) put the new sd card in the wandboard module and reboot.
I am pretty sure that it is possible to achieve it. I would be very useful for me also.
So any help is very much appreciated.
Cheers and thanks in advance.