March 3, 20242 yr If you want to build out-of-tree kernel modules, you will need: kernel headers (installed with apt) kernel sources in /usr/src (cloned from git) kernel config (from /proc/config.gz) some preparation of the sources (but you can avoid building it 😉)  # Install kernel headers apt install -y linux-headers-legacy-rk35xx # Install kernel source cd /usr/src git clone https://github.com/armbian/linux-rockchip.git ln -nsf linux-rockchip linux-5.10.160-legacy-rk35xx cd linux-rockchip git checkout rk-5.10-rkr6 # Prepare kernel source zcat /proc/config.gz >.config yes | make olddefconfig make prepare modules_prepare cp /usr/src/linux-headers-$(uname -r)/Module.symvers . Â
March 3, 20242 yr Author If anybody needs the steps for the older 5.10.110 kernel, I have those as well.  They are a bit uglier - since the kernel source and header installation includes various garbage files , including binaries for non-arm64 platforms. Â
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.