Hi,
I need to connect the TC358743-based HDMI to CSI adapter to the Rock Pi 4B board. Unfortunately, that driver is not available in the debian distribution for Rock Pi 4B. Therefore, I need to compile it (or compile the kernel with that driver enabled) myself.
I have followed the procedure described in https://wiki.radxa.com/Rockpi4/dev/Debian#Build_kernel
However, after doing (with selecting the TC358743 driver in menuconfig):
cd kernel
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-
make rockchip_linux_defconfig
make menuconfig
cd ..
./build/mk-kernel.sh rockpi4b
I get the following error:
fs/exec.c: In function ‘get_task_comm’:
fs/exec.c:1084:32: warning: argument to ‘sizeof’ in ‘strncpy’ call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess]
error, forbidden warning:exec.c:1084
1084 | strncpy(buf, tsk->comm, sizeof(tsk->comm));
| ^
make[1]: *** [scripts/Makefile.build:277: fs/exec.o] Error 1
make[1]: *** Waiting for unfinished jobs....
CC security/keys/keyring.o
CC arch/arm64/kernel/vdso.o
CC kernel/capability.o
CC security/keys/keyctl.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
119 | if (memcmp(&vdso_start, "\177ELF", 4)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [scripts/Makefile.build:278: arch/arm64/kernel/vdso.o] Error 1
make: *** [Makefile:1031: arch/arm64/kernel] Error 2
make: *** Waiting for unfinished jobs....
CC security/apparmor/ipc.o
CC security/keys/permission.o
The compiler installed in my system is:
${CROSS_COMPILE}gcc --version
aarch64-linux-gnu-gcc (Debian 9.2.1-8) 9.2.1 20190909
Is it possible that this compiler is too new to compile the old 4.4 kernel?
How can I cure it in the easiest way?
TIA & BR,
Wojtek