u-boot_cm11_and_archlinux_multiboot
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
u-boot_cm11_and_archlinux_multiboot [2014/06/21 17:44] – created santox | u-boot_cm11_and_archlinux_multiboot [2014/06/21 19:18] (current) – santox | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== CyanogenMod 11 (KitKat) / Archlinux multiboot on Toshiba AC100 ==== | ==== CyanogenMod 11 (KitKat) / Archlinux multiboot on Toshiba AC100 ==== | ||
- | === Installing CyanogenMod === | + | === Switching to U-Boot and Installing CyanogenMod === |
+ | I installed CM-11 following [[https:// | ||
+ | Completing the process, you'll have also u-boot installed on your AC100 SOS partition (/ | ||
+ | === Adding a new item to u-boot menu === | ||
+ | |||
+ | Reboot your ac100 using SOS-BOOT: connect your ac100 to a PC via mini-USB cable, Press and hold CTRL+ESC+POWER keys at the same time on the ac100 and, from the pc: | ||
+ | nvflash --bl sos-uboot-r5-2013-09-23.bin --go | ||
+ | |||
+ | ac100 will restart with sos kernel & minimal system. | ||
+ | now you can access & mount ac100 partitions: | ||
+ | |||
+ | | ||
+ | mkdir /sos | ||
+ | mount / | ||
+ | | ||
+ | As you can see i used an sd to copy filesystem, | ||
+ | |||
+ | Ok, u-boot uses a " | ||
+ | cd /sos/boot | ||
+ | cp boot.scr boot.cmd | ||
+ | vi boot.cmd | ||
+ | | ||
+ | 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.txt · Last modified: 2014/06/21 19:18 by santox