lozenyin 发表于 2022-6-28 11:36:45

ubuntu固件编译问题

下载SDK进行系统编译(想修改dts以支持NVME协议硬盘),遇到ERROR: No find /home/fuxi/sdk/firefly/rk3588/u-boot/aarch64-linux-gnu-gcc的错误。想问一下这个是什么情况?步骤根据wiki上的执行的,在执行./build.sh后出现。

板蓝根 发表于 2022-6-28 14:50:23

rk3588_repo_sdk_v0.1.0a.7z 这个只是基础包,下载完成后还需要打bundle 更新 ,这些下载 链接 文档里都有的

lozenyin 发表于 2022-6-28 16:40:52

板蓝根 发表于 2022-6-28 14:50
rk3588_repo_sdk_v0.1.0a.7z 这个只是基础包,下载完成后还需要打bundle 更新 ,这些下载 链接 文档里都 ...

好的,已经更新SDK后进行编译,有以下报错
Value of CONFIG_PC9202_WATCHDOG is redefined by fragment ./arch/arm64/configs/firefly-linux.config:
Previous value: # CONFIG_PC9202_WATCHDOG is not set
New value: CONFIG_PC9202_WATCHDOG=y

#
# merged configuration written to .config (needs make)
#
.config:7006:warning: override: reassigning to symbol BT_RTKBTUSB
.config:7011:warning: override: reassigning to symbol IP_VS
.config:7012:warning: override: reassigning to symbol VXLAN
.config:7015:warning: override: reassigning to symbol SCSI
#
# configuration written to .config
#
SYNC    include/config/auto.conf.cmd
CALL    scripts/atomic/check-atomics.sh
CALL    scripts/checksyscalls.sh
CHK   include/generated/compile.h
Image:resource.img (with roc-rk3588s-pc.dtb logo.bmp logo_kernel.bmp) is ready
Image:boot.img (with Image ramdisk.img resource.img) is ready
Image:zboot.img (with Image.lz4 ramdisk.img resource.img) is ready
Generate extLinuxBoot image start
DTC   arch/arm64/boot/dts/rockchip/rk3588-firefly-itx-3588j.dtb
Error: arch/arm64/boot/dts/rockchip/rk3588-firefly-itx-cam-8ms1m.dtsi:7.1-2 syntax error
FATAL ERROR: Unable to parse input tree
scripts/Makefile.lib:379: recipe for target 'arch/arm64/boot/dts/rockchip/rk3588-firefly-itx-3588j.dtb' failed
make: *** Error 1
Makefile:1444: recipe for target 'rockchip/rk3588-firefly-itx-3588j.dtb' failed
make: *** Error 2
ERROR: Running build_extboot failed!
ERROR: exit code 2 from line 797:
    make ARCH=$RK_ARCH rockchip/$i.dtb -j$RK_JOBS


编译之前是有执行过这个命令的
./build.sh roc-rk3588s-pc-ubuntu.mk

板蓝根 发表于 2022-6-28 16:44:43

1. cd kernel; git log ,确认是不是更新到 v1.0.0c
2. cd kernel;git status 看看自己修改了什么,这里报语法错误

lozenyin 发表于 2022-6-29 09:56:57

板蓝根 发表于 2022-6-28 16:44
1. cd kernel; git log ,确认是不是更新到 v1.0.0c
2. cd kernel;git status 看看自己修改了什么,这里 ...

在kernel目录一下执行git reset --hard就解决了
页: [1]
查看完整版本: ubuntu固件编译问题