官方Github上的代码居然编译通不过?
-
welcome coolpi-4b ubuntu image make
Please select a board
1.cp4b
2.cpcm5
3.exit
请输入[1-3]:1
Please select a ubuntu version
1.ubuntu22.04 desktop
2.ubuntu20.04 desktop
3.ubuntu18.04 desktop
4.退出.
请输入[1-4]:1
20230316-ubuntu-22.04-preinstalled-desktop-arm64-coolpi.img
#####start download base package#####
mkdir temp
#####start download kernel source code#####
Fetching origin
Already up to date.
Already on 'develop'
Your branch is up to date with 'origin/develop'.
#####start build boot image#####
Makefile:151: *** source directory cannot contain spaces or colons. Stop.
Makefile:151: *** source directory cannot contain spaces or colons. Stop.
Makefile:151: *** source directory cannot contain spaces or colons. Stop.
cp: cannot stat 'arch/arm64/boot/Image.gz': No such file or directory
cp: cannot stat 'arch/arm64/boot/Image': No such file or directory
cp: cannot stat 'arch/arm64/boot/dts/rockchip/rk3588s-cp4.dtb': No such file or directory
./build-kernel.sh: line 51: cd: too many arguments
Makefile:151: *** source directory cannot contain spaces or colons. Stop.
./build-kernel.sh: line 54: cd: too many arguments
./build-kernel.sh: line 59: cd: too many arguments
./build-kernel.sh: line 62: cd: too many arguments
cp: cannot stat 'vmlinuz': No such file or directory
cp: cannot stat 'Image': No such file or directory
cp: cannot stat 'rk3588s-cp4.dtb': No such file or directory
cp: cannot stat 'modules.tar.gz': No such file or directory
Create coolpi boot img...
300+0 records in
300+0 records out
314572800 bytes (315 MB, 300 MiB) copied, 0.2663 s, 1.2 GB/s
mkfs.fat 4.1 (2017-01-24)
fatlabel: warning - lowercase labels might not work properly with DOS or Windows
Complete...
#####copy resolv.conf#####
#####copy qemu-aarch64-static#####
cp: cannot stat '/usr/bin/qemu-aarch64-static': No such file or directory网络都是好的,执行编译脚本,通不过的
-
@xingzhan2012 你在哪个主机环境编译
-
@jack_admin ubuntu 20.04 arm-gnu-toolchain-12.2.rel1-x86_64-aarch64-none-linux-gnu
-
@xingzhan2012 你先试下单独编译内核源码有没有问题,确认依赖环境补齐
-
可以通过了,就因为文件路径存在空格