Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim1:development:linux:build-linux-kernel

Differences

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

Link to this comparison view

Next revision
Previous revision
products:sbc:vim1:development:linux:build-linux-kernel [2022/07/08 03:00]
frank created
products:sbc:vim1:development:linux:build-linux-kernel [2022/09/01 23:44] (current)
frank
Line 1: Line 1:
-{{page>products:sbc:vim3:development:linux:build-linux-kernel}}+{{indexmenu_n>2}} 
 + 
 + 
 + 
 +====== VIM1 Build Linux Kernel ====== 
 + 
 + 
 +We provided [[kg>fenix|Fenix]] for you to build the Ubuntu OS images easily. You can follow the steps bellow to build Linux Kernel. 
 + 
 + 
 +===== Setup Environment ===== 
 + 
 +Choose your ''board'' (e.g. ''VIM1''), ''U-Boot version'', ''Linux version'', ''system version'', etc. 
 + 
 +```sh 
 +$ source setenv.sh 
 +``` 
 + 
 +===== Change the Kernel Config [Optional] ===== 
 + 
 + 
 +Follow these steps to change the default kernel configuration. 
 + 
 +```sh 
 +$ make kernel-config 
 +$ make kernel-saveconfig 
 +``` 
 + 
 +===== Build ===== 
 + 
 +Build the Linux Debian package. 
 + 
 +```sh 
 +$ make kernel 
 +$ make kernel-deb 
 +``` 
 + 
 +Debian packages are in folder ''build/images/debs/{VERSION}/{BOARD}''
 + 
 +  * **VERSION** : refers to the Fenix version, e.g. ''1.0.11'' 
 +  * **BOARD** : refers to the Khadas SBC, e.g. ''VIM1'' 
 + 
 +The folder location is ''build/images/debs/1.0.11/VIM1'', and you'll need 3 packages: ''dtb package'', ''image package'' and ''header package''
 + 
 +  * DTB - linux-dtb-amlogic-4.9_1.0.11_arm64.deb 
 +  * Image - linux-image-amlogic-4.9_1.0.11_arm64.deb 
 +  * Header - linux-headers-amlogic-4.9_1.0.11_arm64.deb 
 + 
 +===== See Also ===== 
 + 
 +[[products:sbc:vim1:development:linux:build-linux-uboot|Build U-Boot]]. \\ 
 +[[products:sbc:vim1:development:linux:build-ubuntu|Build Ubuntu]]. 
 + 
 + 
 + 
Last modified: 2022/07/08 03:00 by frank