Jump to content
sbakki

Compiling kernel on Tinker 2 board

Recommended Posts

Hi, am a newbie to tinker devices. I have tinker 2 with debian 11. I need to recompile the kernel with some additional settings. I cloned kernel sources from https://github.com/TinkerBoard/debian_kernel  did 'make menuconfig' with a running config from /proc/config.gz. And then 'make'. It fails to build: 

  CC      arch/arm64/kernel/psci.o
arch/arm64/kernel/vdso.c: In function ‘vdso_init’:
arch/arm64/kernel/vdso.c:119:6: warning: ‘memcmp’ reading 4 bytes from a region of size 1 [-Wstringop-overflow=]
error, forbidden warning: vdso.c:119
make[1]: *** [scripts/Makefile.build:277: arch/arm64/kernel/vdso.o] Error 1
make[1]: *** Waiting for unfinished jobs....
  CC      arch/arm64/crypto/aes-ce-ccm-glue.o
make: *** [Makefile:1028: arch/arm64/kernel] Error 2
make: *** Waiting for unfinished jobs....

Are these sources right for debian 11 ? Are there any patches for this fix ? Any help please ?

 

Share this post


Link to post
Share on other sites

hello @sbakki

the variance for 'make' is missing here, should be:

make ARCH=arm64 rk3399-tinker_board_2.img -j8

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...