Hello,
I made an SD card for a Cubieboard. Arch boots fine.
What I want to do is be able to have it boot from a different drive, like a USB drive. As far as I know, Cubieboards only boot from SD or their internal memory, but the rest of the install can be wherever.
I don't know how to keep Arch booting from the (micro)SD card I created, but use a different drive for the root partition. I know that partitions like root, swap and boot are declared in /etc/fstab, but that file from this Arch stage3 file is empty.
Instead, the boot.scr script seems to do something with UUID codes or partition UUID codes. I don't understand that code, despite only having a few lines:
$this->bbcode_second_pass_code('', '
if test -n ${distro_bootpart}; then setenv bootpart ${distro_bootpart}; else setenv bootpart 1; fi
part uuid ${devtype} ${devnum}:${bootpart} uuid
setenv bootargs console=${console} root=PARTUUID=${uuid} rw rootwait
if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /boot/zImage; then
if load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /boot/dtbs/${fdtfile}; then
if load ${devtype} ${devnum}:${bootpart} ${ramdisk_addr_r} /boot/initramfs-linux.img; then
bootz ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r};
else
bootz ${kernel_addr_r} - ${fdt_addr_r};
fi;
fi;
fi
')
I'm sure it must be possible to juggle with multiple Arch (ARM) installs on the same device, so with the same devicetree file. I just don't know where the root partition is declared.
Also, I looked around for people with the same question, and only found this. He has a Raspberry Pi, with a cmdline.txt which the Cubieboard doesn't have.