We use Fenix to build Ubuntu/Debian images. You can also use it to build the kernel debian package.
- Set the Fenix environment
1 | $ source source env/setenv.sh |
- Change the kernel config [Optional]
If you want to change the default kernel configuration you can follow these steps.
1 | $ make kernel-config |
- Build the kernel debian package
1 | $ make kernel |
The you will find the kernel debian package in directory build/images/debs/FENIX-VERSION
.
FENIX-VERSION: means the Fenix SDK version, e.g. 0.8.3
So the package directory maybe: build/images/debs/0.8.3
, and the debian package maybe: linux-image-amlogic-mainline_0.8.3_arm64.deb
.
DTB debian package
: linux-dtb-*.deb
Kernel debian package
: linux-image-*.deb
Header debian package
: linux-headers-*.deb
- Upgrade the kernel & dtb
Copy the kernel & dtb debian packages to the board and install it.
1 | $ sudo dpkg -i linux-dtb-*.deb |