User Tools

Site Tools


tutorials:ct1:installation:cb3_lubuntu-12.10-desktop_nand_installation_20130910-build

Differences

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

Link to this comparison view

tutorials:ct1:installation:cb3_lubuntu-12.10-desktop_nand_installation_20130910-build [2013/10/15 17:53]
benn [Changing Boot Parameters]
tutorials:ct1:installation:cb3_lubuntu-12.10-desktop_nand_installation_20130910-build [2014/06/12 10:45] (current)
parker parker
Line 1: Line 1:
-====== Cb3 Lubuntu-12.10-desktop Nand Installation ​20130910-build ======+====== Cb3 Lubuntu-12.10-desktop Nand Installation ​20131015-build ======
  
 <WRAP noprint><​WRAP left box 60%> <WRAP noprint><​WRAP left box 60%>
Line 19: Line 19:
  
 ==== Download Images ==== ==== Download Images ====
-  ​wget http://​dl.cubieboard.org/​software/​a20-cubietruck/​lubuntu/​ct_lubuntu_desktop_12.10_20130910.img.gz +wget http://​dl.cubieboard.org/​software/​a20-cubietruck/​lubuntu/​ct-lubuntu-nand-v1.00/​ct-lubuntu-desktop-20131026/​lubuntu-desktop-nand.img.gz 
-  gzip -d ct_lubuntu_desktop_12.10_20130910.img.gz +gzip -d lubuntu-desktop-nand.img.gz
 ==== PhoenixSuit ==== ==== PhoenixSuit ====
 To flash the image to cubietruck board, you need to install phoenixsuit on your labtop. Please refer to the [[http://​docs.cubieboard.org/​tutorials/​common/​livesuit_installation_guide|Installation Guide]] To flash the image to cubietruck board, you need to install phoenixsuit on your labtop. Please refer to the [[http://​docs.cubieboard.org/​tutorials/​common/​livesuit_installation_guide|Installation Guide]]
Line 86: Line 85:
   $vim env.cfg   $vim env.cfg
  
 +  Change the content below
   ...   ...
   loglevel=5   loglevel=5
Line 94: Line 94:
   #nand command syntax: sunxi_flash read address partition_name read_bytes   #nand command syntax: sunxi_flash read address partition_name read_bytes
   ..   ..
-  ​+
   $mk_env_fex   $mk_env_fex
  
Line 100: Line 100:
  
  
 +==== Changing Kernel ====
 +  * Getting The Kernel Source
 +The kernel source matching this image is [[http://​dl.cubieboard.org/​software/​a20-cubietruck/​lubuntu/​obsolete/​ct_lubuntu_desktop_12.10_20131015/​linux-sunxi.tar.gz|here]]. And the defconfig is [[http://​dl.cubieboard.org/​software/​a20-cubietruck/​lubuntu/​obsolete/​ct_lubuntu_desktop_12.10_20131015/​kernel_defconfig|here]].
  
 +Please also refer to
 +
 +  http://​github.com/​linux-sunxi
 +  http://​github.com/​cubieboard2
 +
 +  * Compiling
 +
 +  $tar -zxvf linux-sunxi.tar.gz
 +  $cp kernel_defconfig linux-sunxi/​.config
 +  $cd linux-sunxi
 +  $make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage modules
 +  $objcopy -R .note.gnu.build-id -S -O binary vmlinux bImage
 +  $mkbootimg --kernel bImage \
 +        --ramdisk rootfs.cpio.gz \
 +        --board "​sun7i"​ \
 +        --base 0x40000000 \
 +        -o "​boot.img"​
 +
 +Note: mkbootimg command can be found at this [[http://​dl.cubieboard.org/​software/​a20-common/​mk_env_fex.tar|package]]
 +
 +  * Replacing
 +
 +Copy boot.img, modules to your lubuntu system,
 +
 +  #dd if=boot.img of=/​dev/​nandc bs=1M
 +
 +Note: You should be skilled in kernel building, else it's easy to damage your OS system.
 +
 +  ​
  
-==== Changing Kernel ==== 
-TBD 
  
 ==== Building Custom Modules ==== ==== Building Custom Modules ====
-TBD+ 
 +  * Download Kernel Source 
 + 
 +  $wget http://​dl.cubieboard.org/​software/​a20-cubietruck/​lubuntu/​obsolete/​ct_lubuntu_desktop_12.10_20131015/​linux-sunxi.tar.gz 
 +  $wget http://​dl.cubieboard.org/​software/​a20-cubietruck/​lubuntu/​obsolete/​ct_lubuntu_desktop_12.10_20131015/​kernel_defconfig 
 + 
 +  * Extract and create local git repo 
 + 
 +  $tar -zxf linux-sunxi.tar.gz 
 +  $cp kernel_defconfig linux-sunxi/​.config 
 +  $git init 
 +  $git add . 
 +  $git commit -m "init a repo just for match the uname -r token" -a 
 +  $make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig 
 +  $make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage 
 +  $cd $your_kernel_module_path_and_point_your_kdir_here 
 +  ... 
 + 
 +  *Copy your new module to your lubuntu OS 
 +   
 +   
 + 
 + 
  
 ==== Using GPIOs ==== ==== Using GPIOs ====
tutorials/ct1/installation/cb3_lubuntu-12.10-desktop_nand_installation_20130910-build.1381830830.txt.gz · Last modified: 2013/12/23 14:50 (external edit)