{{indexmenu_n>2}} ====== VIM 5 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. ''VIM-5''), ''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.7.6'' * **BOARD** : refers to the Khadas SBC, e.g. ''VIM-5'' The folder location is ''build/images/debs/1.7.6/VIM-5'' where you'll need three packages: ''image package'' and ''header package''. * ''linux-image-amlogic-6.12_1.7.6_arm64.deb'' - Linux kernel & dtb * ''linux-headers-amlogic-6.12_1.7.6_arm64.deb'' - Linux headers ===== See Also ===== * [[products:sbc:vim-5:development:linux:build-linux-uboot|Build U-Boot]] * [[products:sbc:vim-5:development:linux:build-ubuntu|Build Ubuntu]] * [[products:sbc:vim-5:configurations:upgrade-linux-kernel|Upgrade Linux Kerenl]]