Kernel 5.4 Development Party

Let's start the 5.4 kernel development party. I pushed my 5.4 branch based on 5.4.0 at https://github.com/mihailescu2m/linux/tree/odroidxu4-5.4.y.

HC-1 sd-card test: * write

64+0 records in
64+0 records out
536870912 bytes (537 MB, 512 MiB) copied, 22.0655 s, 24.3 MB/s
* read
64+0 records in
64+0 records out
536870912 bytes (537 MB, 512 MiB) copied, 6.36601 s, 84.3 MB/s
HC-1 SSD test: * write
64+0 records in
64+0 records out
536870912 bytes (537 MB, 512 MiB) copied, 5.72404 s, 93.8 MB/s
* read
64+0 records in
64+0 records out
536870912 bytes (537 MB, 512 MiB) copied, 1.39248 s, 386 MB/s
1. Download the official Ubuntu image from either of the following two links:

2. Flash the image using Etcher to your SD card / eMMC.

3. Insert that card to your Odroid XU4 for the initial boot sequence. It will resize its root file system to fit into your flash memory capacity. Then, do the package upgrade:

$ apt update && apt full-upgrade -y
If it fails with a message mentioning a locking problem, wait for about 5~10 minutes and try again.

4. Mark the linux-kernel-5422 package as “not to be upgraded”:

$ apt-mark hold linux-odroid-5422.
5. Reboot, then power off and connect your SD card / eMMC to your PC.

Building the 5.4 kernel

1. Setup build environment by referring to this guide: https://wiki.odroid.com/odroid-xu4/soft ... ross-build, then download the proper toolchain. Export the environment variables 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:

$ 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:
$ cd linux-kernel-odroidxu4-5.4.y.
5. Build 5.4 kernel:
$ make odroidxu4_defconfig
$ make -j $(nproc)
6. Copy kernel image and device tree blob to the media card's boot partition. Replace target path with yours:
$ 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:
$ sudo make -j $(nproc) modules_install ARCH=arm INSTALL_MOD_PATH=/media/joshua/rootfs
$ sync
8. Unmount your boot media card and insert it into the ODROID-XU4:
# uname -a
Linux odroid 5.4.0+ #2 SMP Wed Nov 27 08:17:23 UTC 2019 armv7l armv7l armv7l GNU/Linux
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:        18.04
Codename:       bionic
For comments, questions, and suggestions, please visit the original article at https://forum.odroid.com/viewtopic.php?f=184&t=36947.

Be the first to comment

Leave a Reply