We're no longer updating This wiki!!

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:c2_building_kernel [2016/03/10 19:00]
brian.kim [Installing required packages]
en:c2_building_kernel [2017/02/06 18:25] (current)
codewalker [Checkout]
Line 1: Line 1:
 ====== Kernel ====== ====== Kernel ======
 This page introduce how you can download and compile the Linux kernel for **ODROID-C2**. This page introduce how you can download and compile the Linux kernel for **ODROID-C2**.
-===== Cross Compile(HOST-PC/​Ubuntu=====+===== Cross Compile ​HOST-PC/​Ubuntu =====
 ==== Installing required packages ==== ==== Installing required packages ====
 You will need install required packages before you start to build Linux kernel on your Ubuntu desktop. You will need install required packages before you start to build Linux kernel on your Ubuntu desktop.
 <​code>​ <​code>​
 $ sudo apt-get update $ sudo apt-get update
-$ sudo apt-get install git lzop build-essential gcc libncurses5-dev libc6-i386+$ sudo apt-get install git lzop build-essential gcc libncurses5-dev libc6-i386 lib32stdc++6 zlib1g:i386
 </​code>​ </​code>​
  
 ==== Toolchain (4.9.2) ==== ==== Toolchain (4.9.2) ====
 Click one of the site to download toolchain to build Linux kernel. Click one of the site to download toolchain to build Linux kernel.
-  * [[https://​releases.linaro.org/​14.09/​components/​toolchain/​binaries/​gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux.tar.xz|Download #1]]+  * [[http://​releases.linaro.org/archive/​14.09/​components/​toolchain/​binaries/​gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux.tar.xz|Download #1]] 
 +  * [[http://​dn.odroid.com/​toolchains/​gcc-linaro-aarch64-none-elf-4.9-2014.09_linux.tar.xz|Download #2]]
 Once the download is done, extract the tarball to **/​opt/​toolchains/​**. Once the download is done, extract the tarball to **/​opt/​toolchains/​**.
 <​code>​ <​code>​
Line 44: Line 45:
  
 === Android === === Android ===
 +== Lollipop ==
 <​code>​ <​code>​
 $ git clone --depth 1 https://​github.com/​hardkernel/​linux.git -b odroidc2-3.14.y-android $ git clone --depth 1 https://​github.com/​hardkernel/​linux.git -b odroidc2-3.14.y-android
 $ cd linux $ cd linux
 </​code>​ </​code>​
 +== Marshamollow ==
 +<​code>​
 +$ git clone --depth 1 https://​github.com/​hardkernel/​linux.git -b odroidc2-3.14.y-android
 +$ cd linux
 +</​code>​
 +
  
 === Linux === === Linux ===
Line 123: Line 131:
 </​code> ​ </​code> ​
  
-===== Native Compile(ODROID-C2/​Ubuntu=====+===== Native Compile ​ODROID-C2/​Ubuntu ===== 
 +<WRAP center round important 100%> 
 +**Note** 
 +  * 8GB eMMC/SD card have not enough space to build kernel source. In order to do native compile, the  **5GB** of storage space is required at least. 
 +</​WRAP>​
 ==== Installing required packages ==== ==== Installing required packages ====
 You will need install required packages before you start to build Linux kernel on your Ubuntu ODROID-C2. You will need install required packages before you start to build Linux kernel on your Ubuntu ODROID-C2.
Line 132: Line 144:
  
 ==== Toolchain (4.9.2) ==== ==== Toolchain (4.9.2) ====
-The kernel for ODROID-C2 does not support gcc 5.x version yet. So, you have to change to the gcc 4.9 version in order to build ODROID-C2 kernel.+The kernel for ODROID-C2 does not support gcc 5.x version yet. So, you must change to the gcc 4.9 version in order to build ODROID-C2 kernel.
 <​code>​ <​code>​
 odroid@odroid64:​~$ sudo apt-get install gcc-4.9 odroid@odroid64:​~$ sudo apt-get install gcc-4.9
 +odroid@odroid64:​~$ sudo rm /​usr/​bin/​gcc
 odroid@odroid64:​~$ sudo ln -s /​usr/​bin/​gcc-4.9 /​usr/​bin/​gcc odroid@odroid64:​~$ sudo ln -s /​usr/​bin/​gcc-4.9 /​usr/​bin/​gcc
 odroid@odroid64:​~$ gcc -v odroid@odroid64:​~$ gcc -v
Line 146: Line 159:
 </​code>​ </​code>​
  
 +==== Checkout ====
 +<​code>​
 +odroid@odroid64:​~$ git clone --depth 1 https://​github.com/​hardkernel/​linux.git -b odroidc2-3.14.y
 +odroid@odroid64:​~$ cd linux
 +</​code>​
 +
 +==== Compile & Installation ====
 +<​code>​
 +odroid@odroid64:​~/​linux$ make odroidc2_defconfig
 +odroid@odroid64:​~/​linux$ make -j4
 +odroid@odroid64:​~/​linux$ sudo make modules_install
 +odroid@odroid64:​~/​linux$ sudo cp -f arch/​arm64/​boot/​Image arch/​arm64/​boot/​dts/​meson64_odroidc2.dtb /​media/​boot/​
 +odroid@odroid64:​~/​linux$ sudo sync
 +odroid@odroid64:​~/​linux$ sudo reboot
 +</​code>​
en/c2_building_kernel.1457605839.txt.gz · Last modified: 2016/03/10 19:00 by brian.kim
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0