I'm going to write about how to use this modern kernel.
1. Download our official Ubuntu image from this link
- Mate:
https://wiki.odroid.com/odroid-xu4/os_i ... 4/20190929
- Minimal:
https://wiki.odroid.com/odroid-xu4/os_i ... 10-minimal
2. Flash that image using Etcher to your SD card / eMMC.
3. Insert that card to your Odroid XU4 for the initial boot sequence.
3.1. It will resize its root file system to fit into your flash memory capacity.
3.2. Then do the package upgrade. Enter
apt update && apt full-upgrade -y
. If it failed with a message that seems trying to say locking problem, wait for about 5~10 minutes and try again.
4. Make linux-kernel-5422 package not to be upgraded. Enter
apt-mark hold linux-odroid-5422
.
5. Reboot.
6. Power off and connect your SD card / eMMC to your PC.
Now let's start to build 5.4 kernel for XU4.
1. Setup build environment by referring to this guide:
https://wiki.odroid.com/odroid-xu4/soft ... ross-build
1.1 Download the proper toolchain.
1.2 Export environment variables to do with using the toolchain.
2. Mount boot, rootfs partitions of SD card / eMMC to your PC. It should be mounted automatically on Ubuntu.
3. Clone @memeka's 5.4 kernel. Enter
git clone https://github.com/mihailescu2m/linux.git --depth 1 -b odroidxu4-5.4.y linux-kernel-odroidxu4-5.4.y
.
4. Move to the cloned directory. Enter
cd linux-kernel-odroidxu4-5.4.y
.
5. Build 5.4 kernel. Cheer for the computer.
Code: Select all
make odroidxu4_defconfig
make -j $(nproc)
6. Copy kernel image and device tree blob to the media card's boot partition. Replace target path to yours.
Code: Select all
sudo cp -f arch/arm/boot/zImage /media/joshua/boot
sudo cp -f arch/arm/boot/dts/exynos5422-odroidxu4.dtb /media/joshua/boot
7. Install modules.
Code: Select all
sudo make -j $(nproc) modules_install ARCH=arm INSTALL_MOD_PATH=/media/joshua/rootfs
8. Do
sync
and unmount your boot media card and insert it to XU4.
Code: Select all
root@odroid:~# uname -a
Linux odroid 5.4.0+ #2 SMP Wed Nov 27 08:17:23 UTC 2019 armv7l armv7l armv7l GNU/Linux
root@odroid:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
Enjoy

And many thanks to @memeka.