Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build uboot for CM4 error #199

Open
trananhdung0991 opened this issue Nov 7, 2024 · 0 comments
Open

Build uboot for CM4 error #199

trananhdung0991 opened this issue Nov 7, 2024 · 0 comments

Comments

@trananhdung0991
Copy link

I have build linux image for orangepi CM4 and facing this issue. Can you help me resolve this issue?
Output:
make[2]: 'arch/arm/dts/rk3566-orangepi-3b.dtb' is up to date.
start=$(ccache aarch64-none-linux-gnu-nm u-boot | grep __rel_dyn_start | cut -f 1 -d ' '); end=$(ccache aarch64-none-linux-gnu-nm u-boot | grep __rel_dyn_end | cut -f 1 -d ' '); tools/relocate-rela u-boot-nodtb.bin 0x00a00000 $start $end
COPY u-boot.dtb
MKIMAGE u-boot.itb
CC spl/common/spl/spl.o
CC spl/arch/arm/cpu/armv8/fwcall.o
LD spl/arch/arm/cpu/armv8/built-in.o
CC spl/lib/display_options.o
LD spl/lib/built-in.o
LD spl/common/spl/built-in.o
LD spl/u-boot-spl
OBJCOPY spl/u-boot-spl-nodtb.bin
CAT spl/u-boot-spl-dtb.bin
COPY spl/u-boot-spl.bin
[ error ] ERROR in function compile_uboot [ ./build.sh:305 -> scripts/main.sh:631 -> scripts/main.sh:517 -> scripts/compilation.sh:247 -> scripts/general.sh:0 ]
[ error ] U-boot compilation failed
[ o.k. ] Process terminated

cat output/debug/compilation.log
tools/rockchip/boot_merger.c: In function ‘main’:
tools/rockchip/boot_merger.c:895:18: warning: array subscript 20 is outside array bounds of ‘char[20]’ [-Warray-bounds]
895 | str[len] = 0;
| ~~~~~~~~~^~~
tools/rockchip/boot_merger.c:933:14: note: while referencing ‘name’
933 | char name[MAX_NAME_LEN];
| ^~~~
FATAL ERROR: Couldn't open "./14:26": No such file or directory
./tools/mkimage: Can't read u-boot.itb.tmp: Invalid argument
make: *** [Makefile:1053: u-boot.itb] Error 255
make: *** Waiting for unfinished jobs....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant