This shows you the differences between two versions of the page.
|
tutorials:dvk521:documentations:a20:kernel_porting_and_configuration [2013/12/10 15:12] waveshare |
tutorials:dvk521:documentations:a20:kernel_porting_and_configuration [2014/03/13 14:40] (current) waveshare |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ==== Kernel Porting ==== | ==== Kernel Porting ==== | ||
| - | Get the linux kernel source code [[http://dl.cubieboard.org/parteners/waveshare/Source_Code/COMMON/|linux-sunxi-sunxi-3.4.61.tar.gz]], | + | The zipped kernel linux-sunxi-sunxi-3.4.61.tar.gz can be found on [[http://dl.cubieboard.org/parteners/waveshare/Source_Code/COMMON/|linux-sunxi-sunxi-3.4.61.tar.gz]], the kernel config file can be found on [[http://dl.cubieboard.org/parteners/waveshare/Source_Code/a20-cubieboard-dvk/kernel%20configs/|cubieboard2_defconfig]] |
| Or can be obtained from the internet: | Or can be obtained from the internet: | ||
| https://github.com/linux-sunxi/linux-sunxi/releases , | https://github.com/linux-sunxi/linux-sunxi/releases , | ||
| Line 12: | Line 12: | ||
| #tar -xzvf linux-sunxi-sunxi-3.4.61.tar.gz | #tar -xzvf linux-sunxi-sunxi-3.4.61.tar.gz | ||
| Now we get the original linux-sunxi-sunxi-3.4.61 source code, rename it as linux-sunxi-sunxi-3.4.61_A20, as shown in the picture below: | Now we get the original linux-sunxi-sunxi-3.4.61 source code, rename it as linux-sunxi-sunxi-3.4.61_A20, as shown in the picture below: | ||
| + | |||
| {{:tutorials:dvk521:documentations:a20:a20_1.jpg}} | {{:tutorials:dvk521:documentations:a20:a20_1.jpg}} | ||
| Line 27: | Line 28: | ||
| CROSS_COMPILE ?= arm-linux-gnueabihf- | CROSS_COMPILE ?= arm-linux-gnueabihf- | ||
| ARCH specifies the target platform as arm, CROSS_COMPILE assigns the cross compile tool chain. As shown in the picture below: | ARCH specifies the target platform as arm, CROSS_COMPILE assigns the cross compile tool chain. As shown in the picture below: | ||
| + | |||
| {{:tutorials:dvk521:documentations:a20:a20_2.jpg}} | {{:tutorials:dvk521:documentations:a20:a20_2.jpg}} | ||
| Line 44: | Line 46: | ||
| #make menuconfig | #make menuconfig | ||
| Config the kernel on the popup window, as shown in the picture below: | Config the kernel on the popup window, as shown in the picture below: | ||
| - | {{:tutorials:dvk521:documentations:a20:a20_3.jpg}} | ||
| + | {{:tutorials:dvk521:documentations:a20:a20_3.jpg}} | ||
| === Compile the kernel === | === Compile the kernel === | ||
| Line 51: | Line 53: | ||
| #make uImage | #make uImage | ||
| It will take much time to complete the compiling. | It will take much time to complete the compiling. | ||
| - | When completed, the compressed kernel image will be generated under linux-sunxi-sunxi-3.4.61/arch/arm/boot directory. | + | When completed, the compressed kernel image will be generated under linux-sunxi-sunxi-3.4.61_A20/arch/arm/boot directory. |
| <WRAP noprint> | <WRAP noprint> | ||