{{indexmenu_n>2}} ====== VIM1S 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. ''VIM1S''), ''U-Boot version'', ''Linux version'', ''system version'', etc. ```shell $ source setenv.sh ``` ===== Change the Kernel Config [Optional] ===== Follow these steps to change the default kernel configuration. ```shell $ make kernel-config $ make kernel-saveconfig ``` ===== Build ===== Build the Linux Debian package. ```shell $ 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. ''VIM1S'' The folder location is ''build/images/debs/1.0.11/VIM1S'', and you'll need 3 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:vim1s:development:linux:build-linux-uboot|Build U-Boot]] * [[products:sbc:vim1s:development:linux:build-ubuntu|Build Ubuntu]] * [[products:sbc:vim1s:configurations:upgrade-linux-kernel|Upgrade Linux Kernel]]