Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim4: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:vim4:development:linux:build-linux-kernel [2022/06/29 22:01]
127.0.0.1 external edit
products:sbc:vim4:development:linux:build-linux-kernel [2022/11/29 20:51] (current)
nick update build-linux-kernel
Line 2: Line 2:
  
  
-Build Linux Kernel+ 
 +====== VIM4 Build Linux Kernel ====== 
 + 
 +We provide [[kg>fenix|Fenix]] to build the Ubuntu OS images easily.  
 +You can follow the steps below: 
 + 
 + 
 +===== Setup Environment ===== 
 + 
 +Choose your ''board'' (e.g. ''VIM4''), ''U-Boot version'', ''Linux version'', ''system version'', etc. 
 + 
 +```shell 
 +$ source setenv.sh 
 +``` 
 + 
 +===== Change the Kernel Config [Optional] ===== 
 + 
 +```shell 
 +$ make kernel-config 
 +$ make kernel-saveconfig 
 +``` 
 + 
 +===== Build ===== 
 + 
 +Build the Linux Debian package. 
 + 
 +```shell 
 +$ make kernel 
 +$ make kernel-deb 
 +``` 
 + 
 +Debian packages are placed in the 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. ''VIM4'' 
 + 
 +The folder location is ''build/images/debs/1.0.11/VIM4'' where you'll need three packages: ''dtb package'', ''image package'' and ''header package''
 + 
 +  * ''linux-dtb-amlogic-5.4_1.0.7_arm64.deb'' - DTB 
 +  * ''linux-image-amlogic-5.4_1.0.7_arm64.deb'' - Linux kernel 
 +  * ''linux-headers-amlogic-5.4_1.0.7_arm64.deb'' - Linux headers 
 + 
 +===== See Also ===== 
 + 
 +  * [[products:sbc:vim4:development:linux:build-linux-uboot|Build U-Boot]] 
 +  * [[products:sbc:vim4:development:linux:build-ubuntu|Build Ubuntu]] 
 +  * [[products:sbc:vim4:configurations:upgrade-linux-kernel|Upgrade Linux Kerenl]] 
Last modified: 2022/06/29 22:01 by 127.0.0.1