LonganPi-3H-SDK icon indicating copy to clipboard operation
LonganPi-3H-SDK copied to clipboard

How to compile a custom kernel?

Open elasticdotventures opened this issue 1 year ago • 3 comments

I'm struggling with the steps to compile a custom kernel.

cd build/linux
make menuconfig
# next .. load arch/arm64/configs/longanpi_3h_defconfig
cd ../..
sh mklinux.sh

using the menuconfig step I'm able to change kernel options (specifically in my case I'm trying to add overlay filesystem & br_netfilter options for k8s) .. HOWEVER after this step I encounter an issue when running mklinux.sh where it can't cd dbts directory.

My specific changes are:

[M] Virtualization
[M] File System | Overlay FS
[M] Networking support | Networking Options | 
    ... [M] 802.1d Ethernet Bridging
    ... [M] Network Packet Filter
       ..  [M] Bridged IP/ARP packets filtering

** these modules are required to run k8s with cri-o containers

The error happens in mklinux.sh

+ cd _install/boot
+ cp vmlinuz-6.7.0-rc3+ Image
+ cd dtbs
mklinux.sh: 55: cd: can't cd to dtbs

elasticdotventures avatar Jan 22 '24 04:01 elasticdotventures