u-boot_cm11_and_archlinux_multiboot
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
u-boot_cm11_and_archlinux_multiboot [2014/06/21 18:04] – Adding a new item to u-boot menu santox | u-boot_cm11_and_archlinux_multiboot [2014/06/21 19:18] (current) – santox | ||
---|---|---|---|
Line 13: | Line 13: | ||
now you can access & mount ac100 partitions: | now you can access & mount ac100 partitions: | ||
- | mkdir /sos | ||
- | mkdir /lnx | ||
- | mkdir /arch | ||
- | mkdir /sd # to copy kernel from | ||
| | ||
+ | mkdir /sos | ||
mount / | mount / | ||
- | mount / | ||
- | mount / | ||
- | mount / | ||
| | ||
As you can see i used an sd to copy filesystem, | As you can see i used an sd to copy filesystem, | ||
Line 32: | Line 26: | ||
now you'll have to delete (press ' | now you'll have to delete (press ' | ||
+ | setenv bootmenu_0 "Boot LNX ARCH =setenv bootargs ' | ||
+ | |||
+ | as you can see, i put my kernel image and dtb in LNX partition (mmc 0:2); if you want to use SOS partition (if you followed CM-11 installation instructions they are both sized 64MB) replace with mmc 0:1 | ||
+ | |||
+ | I wasted a lot of time figuring out how to instruct u-boot to load a kernel missing an initrd; finally i realized bootz needs two (kernel initrd) or three (kernel initrd dtb) arguments: if you have not an initrd, you must use a ' | ||
+ | |||
+ | === compile boot.scr === | ||
+ | You must now compile boot.cmd to obtain an updated boot.scr: | ||
+ | mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n " | ||
+ | |||
+ | |||
+ | === Copying your kernel into ac100 === | ||
+ | |||
+ | As already stated, i used LNX partition for my kernel: | ||
+ | |||
+ | mkdir /lnx | ||
+ | mount / | ||
+ | mkdir /sd # to copy kernel from | ||
+ | mount / | ||
+ | |||
+ | cp /sd/zImage /lnx/boot/ | ||
+ | cp / | ||
+ | | ||
+ | === Installing archlinux filesystem === | ||
+ | | ||
+ | Of course you'll need to format (already done during CM-11 installation) & mount your target partition | ||
+ | mkdir /arch | ||
+ | mount / | ||
+ | | ||
+ | and untar rootfs on it: | ||
+ | cd /arch/ | ||
+ | tar xvf / | ||
+ | | ||
+ | === Copying (wifi) modules to root filesystem === | ||
+ | bzcat / | ||
+ | |||
+ | === Umounting partitions and rebooting === | ||
+ | Everything should now be in it's right place... | ||
+ | cd / | ||
+ | umount * | ||
+ | | ||
+ | cross your fingers, power off and after power on your ac100! | ||
+ | |||
+ | === Configure ArchLinux === | ||
+ | After a reboot, you can finally configure your archlinux installation. | ||
+ | Follow [[archlinux# | ||
+ | |||
+ | === Compiling your own kernel === | ||
+ | |||
+ | But where can you find an up-to-date kernel for your linux? | ||
+ | Compile yourself your own! | ||
+ | See [[kerneldev?&# | ||
u-boot_cm11_and_archlinux_multiboot.1403366663.txt.gz · Last modified: 2014/06/21 18:04 by santox