Error when building the kernel for Radxa Zero 3E using BSP

Good afternoon, everyone!
When assembling the core for the Rada Zero 3E according to the instructions
https://docs.radxa.com/en/rock5/rock5b/low-level-dev/kernel
at the command execution stage $ ./bsp -n linux rk356x

~/radxa_kernel/bsp/.src/linux ~/radxa_kernel/bsp
Reinitialized existing Git repository in ~/radxa_kernel/bsp/.src/linux/.git/
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
From https://github.com/radxa/kernel

  • branch linux-5.10-gen-rkr4.1 -> FETCH_HEAD
    HEAD is now at 3a8f7930a arm64: dts: rock 3: add eeprom

encountered the following error:


DTC arch/arm64/boot/dts/rockchip/overlays/rockchip-watchdog.dtbo
DTC arch/arm64/boot/dts/rockchip/overlays/rockchip-uart-dma.dtbo
make: *** [Makefile:350: __build_one_by_one] Error 2
make: Leaving directory ‘~/radxa_kernel/bsp/.src/linux’

I don’t understand how to fix this error and complete the build.
My system:
DISTRIB_DESCRIPTION=“Ubuntu 22.04.5 LTS”
aarch64-linux-gnu-gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

Please help me figure it out.

I need you to provide a complete log, thank!

Thank you for responding. I am attaching the logs in the file.
log.zip (14.0 KB)

Please do not use the -n parameter, or refer to this file https://github.com/radxa-repo/bsp/blob/main/container/Dockerfile to install dependencies

Thank you very much, I’m studying. I’ll answer as soon as I figure it out.
P.S. It would be great if in this case the Makefile itself would install everything necessary to automate the build. Or this point would have been specified in the instructions themselves. Thanks

The packages listed in the description at the link: python-is-python 2, libc6:amd64, libssl-dev:arm64 are not installed according to the instructions. The system responds :
Packages are unavailable, This may mean that the package is missing, outdated, or available from sources not mentioned in the sources.list
I have Ubuntu 22.04.5 LTS
Can you tell me what to do next?
P.S. Excuse me, but can you just tell me where to get the kernel source codes?
linux-image-5.10.160-26-rk356x? Thanks in advance.

If you are not using the arm device to build kernel, please do not use -n

1 Like

No, I have x86_64. OK, I’m trying.

The build is completed. Thank you.


However, there are two more questions, if you don’t mind.
I have a working kernel on Radxa 5.10.160-26-rk356x itself, and the ‘linux-image’ version is assembled.-5.10.160-1- rk356x’. Will there be any versioning violations if I build a module for the assembled linux kernel-image-5.10.160-1- rk356x , and then I will try to install this module on Radxa with kernel 5.10.160-26-rk356x ?
Is there a way to tell the build system to build another (non-default …and except for the latest) kernel?
And thank you very much ChenJaly!

I don’t quite understand what you mean, can you give me an example of other versions

I currently have the 5.10.160-26-rk356x kernel running on Radxa Zero 3e (as I already wrote), and during the build process I got what’s in the screenshots. Hence the question. If I build a module for the kernel that I received (linux-image-5.10.160-1- rk356x_5.10.160-1_amd64.deb), then won’t such a module be disabled on Radxa itself due to broken versioning? 5.10.160-26- 5.10.160-1- It’s not the same thing.
The second question was about documentation https://radxa-repo.github.io/bsp/dev_flow.html . Here is the ‘Prepare working tree
Use --no-build and -C | --distclean to set up the source tree with bsp predefined profiles:
./bsp -C --no-build linux latest’
Will this be the correct entry?
./bsp -C --no-build linux build 5.10.160-26-rk356x
can I specify a different kernel version instead of the “latest” one?

The default is latest, and you can customize the version number with the -r parameter.
Compile and use the built kernel directly, there is no need to use the system’s pre-installed kernel.

Thanks, I’m trying, I’ll write as soon as I’m done. To be fair, I should add that the “-r” option is also not mentioned in the manual https://radxa-repo.github.io/bsp/

But it is in the command line help: ./bsp -h

I read it yesterday. But I never found out.
‘-r, --revision [num] Specify custom revision number, default=1’
What exactly does -r --revision [num] mean? For the case 5.10.160-26-rk356x, is this the number 26?
The help works without -h )) if only it would help more ))
I started to go deeper and now
https://radxa-repo.github.io/artifacts.html

That’s it, I figured it out and did it.


Here’s what I wanted.
linux-headers-5.10.160-26-rk356x_5.10.160-26_arm64.deb
linux-image-5.10.160-26-rk356x_5.10.160-26_arm64.deb
exactly the versions that I wanted.
Thank you all again for your help.