Page 1 of 1

Error building

Posted: 2025-04-16 12:59
by ajlennon
Hi,
I am following the SDK build instructions here
https://wiki.luckfox.com/Luckfox-Lyra/SDK/
I am on Ubuntu 24.04 LTS x86_64 host and am using configuration option 8. luckfox_lyra_ultra-w_ubuntu_emmc_defconfig
When I run `sudo ./build.sh` I get the following build failure.

Can anybody please advise?

Thanks, Alex

```
make[1]: *** [scripts/Makefile.host:116: tools/fit_image.o] Error 1
make: *** [Makefile:1314: tools] Error 2
ERROR: Running /data_drive/lyra/device/rockchip/common/scripts/mk-loader.sh - run_command failed!
ERROR: exit code 2 from line 36:
$@
ERROR: call stack:
build-helper: run_command(36)
mk-loader.sh: build_uboot(44)
mk-loader.sh: build_hook(144)
mk-loader.sh: main(161)
ERROR: Running /data_drive/lyra/device/rockchip/common/build-hooks/99-all.sh - build_all failed!
ERROR: exit code 2 from line 19:
"$RK_SCRIPTS_DIR/mk-loader.sh"
ERROR: call stack:
99-all.sh: build_all(19)
99-all.sh: build_hook(136)
build-helper: try_func(63)
build-helper: try_hook(96)
build-helper: source(165)
99-all.sh: main(147)
ERROR: Running /data_drive/lyra/device/rockchip/common/build-hooks/99-all.sh - try_func build_hook all failed!
ERROR: exit code 2 from line 67:
build_hook
ERROR: call stack:
build-helper: try_func(67)
build-helper: try_hook(96)
build-helper: source(165)
99-all.sh: main(147)
```

Re: Error building

Posted: 2025-04-21 2:38
by Crocodile
Hello, please try to run sudo ./build.sh clean-loader and then run sudo ./build.sh again, if the error still occurs, please attach the complete log, at present, the cause of the error cannot be determined according to the information you provided