joekhoobyar Posted March 3 Share Posted March 3 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 . 0 Quote Link to comment Share on other sites More sharing options...
joekhoobyar Posted March 3 Author Share Posted March 3 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. 0 Quote Link to comment Share on other sites More sharing options...
nagumi Posted September 26 Share Posted September 26 If you have the steps for 5.10.110, I would greatly appreciate them!!! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.