{{indexmenu_n>2}} ====== Edge-2L Build Linux Kernel ====== ===== Ubuntu ===== We provide [[kg>fenix|Fenix]] for you to build the Ubuntu OS images easily. You can follow the steps below to build Linux Kernel. ==== Setup environment ==== Configure the environment by choosing your ''board'' (e.g., ''Edge-2L''), ''U-Boot version'', ''Linux kernel version'', ''system version'', etc. ```shell $ source setenv.sh ``` Select the options that match your requirements. ==== Change the Kernel config ==== This is an optional operation. 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 ``` The generated Debian packages are located in the folder ''build/images/debs/{VERSION}/{BOARD}/''. * **VERSION** : refers to the Fenix version, e.g. ''1.1.1'' * **BOARD** : refers to the Khadas SBC, e.g. ''Edge-2L'' For example, the folder location would be ''build/images/debs/1.1.1/Edge-2L/'', and you will need the following three packages: the ''DTB package'', the ''image package'', and the ''header package''. * DTB package - ''linux-dtb-rockchip-6.1_1.1.1_arm64.deb'' * Image package - ''linux-image-rockchip-6.1_1.1.1_arm64.deb'' * Header package - ''linux-headers-rockchip-6.1_1.1.1_arm64.deb'' ==== See also ==== * [[products:sbc:edge-2l:development:linux:build-linux-uboot|Build U-Boot]]. * [[products:sbc:edge-2l:development:linux:build-ubuntu|Build Ubuntu]]. * [[products:sbc:edge-2l:configurations:upgrade-linux-kernel|Upgrade Linux Kernel]]