Compiling kernel conks out with error. Please, help

I am trying to build a kernel (so as to derive cifs.ko for the custom image from this forum, found here,
https://forum.radxa.com/t/new-custom-debian-arm64-build-4-4-154-c83-is-finally-here/881/76

I have followed the non-docker directions here,
https://github.com/radxa/rockchip-bsp

I’ve done the following.
git clone --recursive https://github.com/radxa/rockchip-bsp.git
apt-get install gcc-aarch64-linux-gnu device-tree-compiler libncurses5 libncurses5-dev build-essential libssl-dev mtools bc python dosfstools
cd ~/rockchip-bsp
./build/mk-uboot.sh rockpi4b

The last command eventually spits out the lines below.
LD init/built-in.o
drivers/built-in.o: In function kbase_platform_device_shutdown': clk-rk3399.c:(.text+0x45ecc): undefined reference tokbase_platform_rk_shutdown’
clk-rk3399.c:(.text+0x45ecc): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol kbase_platform_rk_shutdown' drivers/built-in.o: In functionkbase_platform_device_probe’:
clk-rk3399.c:(.text+0x492a0): undefined reference to kbase_platform_rk_init_opp_table' clk-rk3399.c:(.text+0x492a0): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbolkbase_platform_rk_init_opp_table’
Makefile:1017: recipe for target ‘vmlinux’ failed
make: *** [vmlinux] Error 1
MAKE KERNEL IMAGE FAILED.

How do I surmount this error?

I have compiled several times no error.
I compiled and do compile from Ubuntu even though I have Debian, forgot why I used Ubuntu think I did have some problems and looked because it uses the Ubuntu build services used Ubuntu and build no prob.
Has to be 16.04+ I am using Bionic.
Completed base compile is here
https://1drv.ms/u/s!AocmAh35i26QiFH4K-KC0pBeIAEE

It doesn’t include the g_ether module and haven’t really tested that much
user:password linaro:linaro

1 Like

Your approach (and success) with Ubuntu seems in line with Radxa using Ubuntu packages for Debian desktop: a hit or miss situation.

I should have added that I am using an arm64 build.
[New Custom Debian ARM64 Build 4.4.154.c83 is finally here!] - New Custom Debian ARM64 Build 4.4.154.c83 is finally here!

I will try Ubuntu Server along with guidelines that include Mate desktop:
[[Guide] Install Gstreamer, FFmpeg and mpv (with youtube-dl)] - [Guide] Install Gstreamer, FFmpeg and mpv (with youtube-dl)

By the way, what does the g_ether module enable?

usb otg gadget mode ethernet (gadget ethernet).

Its only the build service that is Ubuntu, packages for the linaro debian build are debian.
If you use another distro prob set up a basic ubuntu docker container and build from there (option 2 inside ubuntu container).
Haven’t tried the option1 docker way either.