Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:c2_building_kernel [2016/03/10 19:06] brian.kim |
en:c2_building_kernel [2016/03/11 17:26] brian.kim [Native Compile - ODROID-C2/Ubuntu] |
||
---|---|---|---|
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. | ||
Line 123: | Line 123: | ||
</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 storage required 5GB free space 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 136: | ||
==== 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 152: | Line 157: | ||
</code> | </code> | ||
- | ==== Compile ==== | + | ==== Compile & Installation ==== |
- | <WRAP center round important 100%> | + | |
- | **Note** | + | |
- | * 8GB eMMC/SD card have not enough space to build kernel source. | + | |
- | </WRAP> | + | |
<code> | <code> | ||
odroid@odroid64:~/linux$ make odroidc2_defconfig | odroid@odroid64:~/linux$ make odroidc2_defconfig | ||
odroid@odroid64:~/linux$ make -j4 | 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> | </code> |