{{indexmenu_n>2}} ====== Edge1 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. ```sh $ source setenv.sh ``` ==== Change the Kernel Config [Optional] ==== Follow these steps to change the default kernel configuration. ```sh $ make kernel-config $ make kernel-saveconfig ``` ==== Build ==== Build the Linux Debian package. ```sh $ 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. ''Edge'' The folder location is ''build/images/debs/1.0.11/Edge'', and you'll need 3 packages: ''dtb package'', ''image package'' and ''header package''. * DTB - linux-dtb-rockchip_4.4_1.0.11_arm64.deb * Image - linux-image-rockchip_4.4_1.0.11_arm64.deb * Header - linux-headers-rockchip_4.4_1.0.11_arm64.deb ==== See Also ==== [[products:sbc:edge1:development:linux:build-linux-uboot|Build U-Boot]]. \\ [[products:sbc:edge1:development:linux:build-ubuntu|Build Ubuntu]].