SDK build fails on docker container
Posted: 2025-02-27 20:11
Hi,
SDK Build failed with the following error. Any help would be greatly appreciated.
I am running docker desktop 4.38.0 on MacOS. I recently cloned SDK repo and create docker container.
SDK Build failed with the following error. Any help would be greatly appreciated.
Code: Select all
[build.sh:info] Running build_uboot succeeded.
============Start building kernel============
TARGET_ARCH =arm
TARGET_KERNEL_CONFIG =luckfox_rv1106_linux_defconfig
TARGET_KERNEL_DTS =rv1106g-luckfox-pico-ultra-w.dts
TARGET_KERNEL_CONFIG_FRAGMENT =rv1106-bt.config
==========================================
make: Entering directory '/home/sysdrv'
==sysdrv== build kernel
make -C /home/sysdrv/source/kernel ARCH=arm mrproper
make[1]: Entering directory '/home/sysdrv/source/kernel'
make[2]: *** Documentation/Kbuild: Is a directory. Stop.
make[1]: *** [Makefile:1942: _clean_Documentation] Error 2
make[1]: Leaving directory '/home/sysdrv/source/kernel'
make: *** [Makefile:485: kernel] Error 2
make: Leaving directory '/home/sysdrv'
[build.sh:error] Running build_kernel failed!
[build.sh:error] exit code 2 from line 876:
[build.sh:info] make kernel -C ${SDK_SYSDRV_DIR} $kernel_build_options KERNEL_DTS=${RK_KERNEL_DTS} KERNEL_CFG=${RK_KERNEL_DEFCONFIG} KERNEL_CFG_FRAGMENT=${RK_KERNEL_DEFCONFIG_FRAGMENT}
root@83880300c830:/home#
Code: Select all
git clone https://github.com/LuckfoxTECH/luckfox-pico.git
sudo docker run -it --name luckfox --privileged -v /Users/username/luckfox-pico:/home luckfoxtech/luckfox_pico:1.0 /bin/bash
root@83880300c830:/# cd home
root@83880300c830:/home# ./build.sh lunch
ls: cannot access 'BoardConfig*.mk': No such file or directory
You're building on Linux
Lunch menu...pick the Luckfox Pico hardware version:
选择 Luckfox Pico 硬件版本:
[0] RV1103_Luckfox_Pico
[1] RV1103_Luckfox_Pico_Mini_A
[2] RV1103_Luckfox_Pico_Mini_B
[3] RV1103_Luckfox_Pico_Plus
[4] RV1103_Luckfox_Pico_WebBee
[5] RV1106_Luckfox_Pico_Pro
[6] RV1106_Luckfox_Pico_Max
[7] RV1106_Luckfox_Pico_Ultra
[8] RV1106_Luckfox_Pico_Ultra_W
[9] custom
Which would you like? [0~9][default:0]: 8
Lunch menu...pick the boot medium:
选择启动媒介:
[0] EMMC
Which would you like? [0][default:0]:
Lunch menu...pick the system version:
选择系统版本:
[0] Buildroot(Support Rockchip official features)
[1] Ubuntu(Support for the apt package management tool)
Which would you like? [0~1][default:0]:
[build.sh:info] Lunching for Default BoardConfig_IPC/BoardConfig-EMMC-Buildroot-RV1106_Luckfox_Pico_Ultra_W-IPC.mk boards...
[build.sh:info] switching to board: /home/project/cfg/BoardConfig_IPC/BoardConfig-EMMC-Buildroot-RV1106_Luckfox_Pico_Ultra_W-IPC.mk
[build.sh:info] Running build_select_board succeeded.
root@83880300c830:/home# ./build.sh