Site Tools


u-boot_cm11_and_archlinux_multiboot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
u-boot_cm11_and_archlinux_multiboot [2014/06/21 18:04] – Adding a new item to u-boot menu santoxu-boot_cm11_and_archlinux_multiboot [2014/06/21 19:17] 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 /dev/mmcblk0p1 /sos   mount /dev/mmcblk0p1 /sos
-  mount /dev/mmcblk0p2 /lnx 
-  mount /dev/mmcblk0p7 /arch 
-  mount /dev/mmcblk1p1 /sd 
      
 As you can see i used an sd to copy filesystem,kernel,modules,dtmb from. My ac100 is 16GB model, and i used mmcblk0p7 to install Archlinux. As you can see i used an sd to copy filesystem,kernel,modules,dtmb from. My ac100 is 16GB model, and i used mmcblk0p7 to install Archlinux.
Line 32: Line 26:
 now you'll have to delete (press 'x' some times... ) the "binary garbage" header, an add (press 'i' to switch vi in edit mode) a new line; something like: now you'll have to delete (press 'x' some times... ) the "binary garbage" header, an add (press 'i' to switch vi in edit mode) a new line; something like:
  
 +  setenv bootmenu_0 "Boot LNX ARCH =setenv bootargs 'root=/dev/mmcblk0p7 rootfstype=ext4 rootwait'; ext2load mmc 0:2 0x1000000 /boot/zImage; ext2load mmc 0:2 0x2000000 /boot/tegra20-paz00.dtb; bootz 0x1000000 - 0x2000000;"
 +
 +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 '-' as 2nd argument!
 +
 +=== 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 "ubootscript" -d boot.cmd boot.scr
 +
 +
 +=== Copying your kernel into ac100 ===
 +
 +As already stated, i used LNX partition for my kernel:
 +
 +  mkdir /lnx
 +  mount /dev/mmcblk0p2 /lnx
 +  mkdir /sd # to copy kernel from
 +  mount /dev/mmcblk1p1 /sd
 +
 +  cp /sd/zImage /lnx/boot/
 +  cp /sd/tegra20-paz00.dtb /lnx/boot/
 +  
 +=== Installing archlinux filesystem ===
 +  
 +Of course you'll need to format (already done during CM-11 installation) & mount your target partition
 +  mkdir /arch
 +  mount /dev/mmcblk0p7 /arch
 +  
 +and untar rootfs on it:
 +  cd /arch/
 +  tar xvf /sd/ArchLinuxARM-trimslice-latest.tar .
 +  
 +=== Copying (wifi) modules to root filesystem ===
 +  bzcat /sd/modules.tar | tar xvf .
 +
 +=== 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 http://ac100.grandou.net/archlinux#arch_base_configuration and below for instructions.
 +
 +=== Compiling your own kernel ===
 +
 +But where can you find an up-to-date kernel for your linux?
 +Compile yourself your own! 
 +See [[kerneldev?&#mainline_git_kernel]] for instructions.
    
u-boot_cm11_and_archlinux_multiboot.txt · Last modified: 2014/06/21 19:18 by santox