Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


Sidebar

products:sbc:vim4:development:linux:build-linux-kernel

VIM4 Build Linux Kernel

We provide Fenix to build the Ubuntu OS images easily. You can follow the steps below:

Setup Environment

Choose your board (e.g. VIM4), U-Boot version, Linux version, system version, etc.

$ source setenv.sh

Change the Kernel Config [Optional]

$ make kernel-config
$ make kernel-saveconfig

Build

Build the Linux Debian package.

$ 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.0.11
  • BOARD : refers to the Khadas SBC, e.g. VIM4

The folder location is build/images/debs/1.0.11/VIM4 where you'll need three 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

Last modified: 2022/11/29 20:51 by nick