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

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:vim4:development:linux:build-linux-kernel [2022/07/05 03:43]
nick
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 ====== 
  
-===== Ubuntu =====+====== VIM4 Build Linux Kernel ======
  
 +We provide [[kg>fenix|Fenix]] to build the Ubuntu OS images easily. 
 +You can follow the steps below:
  
-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 =====
-==== Setup Environment ====+
  
 Choose your ''board'' (e.g. ''VIM4''), ''U-Boot version'', ''Linux version'', ''system version'', etc. Choose your ''board'' (e.g. ''VIM4''), ''U-Boot version'', ''Linux version'', ''system version'', etc.
  
-```sh+```shell
 $ source setenv.sh $ source setenv.sh
 ``` ```
  
-==== Change the Kernel Config [Optional] ====+===== Change the Kernel Config [Optional] =====
  
- +```shell
-Follow these steps to change the default kernel configuration. +
- +
-```sh+
 $ make kernel-config $ make kernel-config
 $ make kernel-saveconfig $ make kernel-saveconfig
 ``` ```
  
-==== Build ====+===== Build =====
  
 Build the Linux Debian package. Build the Linux Debian package.
  
-```sh+```shell
 $ make kernel $ make kernel
 $ make kernel-deb $ make kernel-deb
 ``` ```
  
-Debian packages are in folder ''build/images/debs/{VERSION}/{BOARD}''. +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'', and you'll need 3 packages: ''dtb package'', ''image package'' and ''header package''+
- +
-  * 5.4 +
-    * DTB - linux-dtb-amlogic-5.4_1.0.7_arm64.deb +
-    * Image - linux-image-amlogic-5.4_1.0.7_arm64.deb +
-    * Header - linux-headers-amlogic-5.4_1.0.7_arm64.deb+
  
-==== See Also ====+  * **VERSION** : refers to the Fenix version, e.g. ''1.0.11'' 
 +  * **BOARD** : refers to the Khadas SBC, e.g. ''VIM4''
  
-[[products:sbc:vim4:development:build-uboot|Build U-Boot]]. +The folder location is ''build/images/debs/1.0.11/VIM4'' where you'll need three packages''dtb package'', ''image package'' and ''header package''.
-[[products:sbc:vim4:development:build-ubuntu|Build Ubuntu]].+
  
 +  * ''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
  
-===== Android =====+===== See Also =====
  
-Android here....+  * [[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/07/05 03:43 by nick