{{indexmenu_n>2}} ====== 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]]