Jump to content

Recommended Posts

Posted

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 .

 

Posted

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines