Hi,
I’m currently trying to build debian with the help with your wiki article using the sources (https://wiki.radxa.com/Rockpi4/dev/Debian).
It seems that the guide doesn’t work on current distributions, that use a GCC 8 based compiler (in my case GCC 8.2.0-7ubuntu1 on Ubuntu 18.10).
For the kernel, I get following warnings, that are turned into errors:
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
if (memcmp(&vdso_start, "\177ELF", 4)) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [scripts/Makefile.build:277: arch/arm64/kernel/vdso.o] Error 1
make[1]: *** Waiting for unfinished jobs....
EXTRACT_CERTS
CC arch/arm64/mm/flush.o
CC arch/arm64/mm/ioremap.o
make: *** [Makefile:1031: arch/arm64/kernel] Error 2
make: *** Waiting for unfinished jobs....
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
strncpy(buf, tsk->comm, sizeof(tsk->comm));
^
make[1]: *** [scripts/Makefile.build:277: fs/exec.o] Error 1
make[1]: *** Waiting for unfinished jobs....
The guide also later seems to to mention following command:
sudo dpkg -i ubuntu-build-service/packages/*
This command seems odd, since no such folder is present when pulling the rockchip-bsp git repository. Maybe there are steps missing leading to this command?