{{indexmenu_n>2}} ====== Edge2 Build Linux Kernel ====== ===== Ubuntu ===== 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. ''Edge''), ''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.1.1'' * **BOARD** : refers to the Khadas SBC, e.g. ''Edge2'' The folder location is ''build/images/debs/1.1.1/Edge2'', and you'll need 3 packages: ''dtb package'', ''image package'' and ''header package''. * DTB - linux-dtb-rockchip-5.10_1.1.1_arm64.deb * Image - linux-image-rockchip-5.10_1.1.1_arm64.deb * Header - linux-headers-rockchip-5.10_1.1.1_arm64.deb ==== See Also ==== * [[products:sbc:edge2:development:linux:build-linux-uboot|Build U-Boot]]. * [[products:sbc:edge2:development:linux:build-ubuntu|Build Ubuntu]]. * [[products:sbc:edge2:configurations:upgrade-linux-kernel|Upgrade Linux Kernel]]