Page 1 of 1

Omni3576 build debian

Posted: 2025-11-20 16:22
by LSeg
Hello,

I am trying to build debian using the SDK and I have followed:
https://wiki.luckfox.com/luckfox-Omni35 ... ni3576-SDK

Since I'm using ubuntu 24.04 I have made a docker container based on 22.04 as asked in the wiki.

when doing /build.sh luch I have selected the second option: debian.

First question, is this actually the one that is standard on the device?
Second question, the build actually fails with

Code: Select all

==========================================
          Start building rootfs(debian)
==========================================

Your live-build doesn't support bookworm
Please replace it:
sudo apt-get remove live-build
git clone https://salsa.debian.org/live-team/live-build.git --depth 1 -b debian/1%20230131
cd live-build
rm -rf manpages/po/
sudo make install -j8

ERROR: Running /workspace/device/rockchip/common/scripts/mk-rootfs.sh - build_debian failed!
ERROR: exit code 1 from line 133:
    "$RK_SCRIPTS_DIR/check-debian.sh"
ERROR: call stack:
    mk-rootfs.sh: build_debian(133)
    mk-rootfs.sh: build_hook(291)
    mk-rootfs.sh: main(321)
ERROR: Running /workspace/device/rockchip/common/build-hooks/99-all.sh - build_all failed!
ERROR: exit code 1 from line 21:
    "$RK_SCRIPTS_DIR/mk-rootfs.sh"
ERROR: call stack:
    99-all.sh: build_all(21)
    99-all.sh: build_hook(128)
    build-helper: try_func(63)
    build-helper: try_hook(96)
    build-helper: source(174)
    99-all.sh: main(139)
ERROR: Running /workspace/device/rockchip/common/build-hooks/99-all.sh - try_func build_hook all failed!
ERROR: exit code 1 from line 67:
    build_hook
ERROR: call stack:
    build-helper: try_func(67)
    build-helper: try_hook(96)
    build-helper: source(174)
    99-all.sh: main(139) 

So basically it says my debian version is too old...
I have the impression the latest SDK was actually not build on Ubuntu 22.04 ... and maybe the wiki needs some refreshment for the latest SDK. Or there is something wrong with building debian in latest SDK.

I have attached my docker build file (apparently needed to zip it first).
docker build -f Omni3576.Dockerfile -t omni3576-build .
docker run -it --rm -v ~/code/Omni3576-sdk:/workspace omni3576-build
did the sync and build stuff within the docker.
I am now building the buildroot version which takes ages...

Re: Omni3576 build debian

Posted: 2025-11-20 18:27
by LSeg
Actually the buildroot option failed too:
1) still needed the vim-common to be installed for xxd
2) still failed:

Code: Select all

Make firmware OK!
------ OK ------
********rkImageMaker ver 2.23********
Error:Chip is invalid!
ERROR: Running /workspace/device/rockchip/common/scripts/mk-updateimg.sh - do_build_updateimg failed!
ERROR: exit code 254 from line 117:
    "$RK_PACK_TOOL_DIR/rkImageMaker" -$TAG MiniLoaderAll.bin update.raw.img update.img -os_type:androidos
ERROR: call stack:
    mk-updateimg.sh: do_build_updateimg(117)
    mk-updateimg.sh: build_updateimg(143)
    mk-updateimg.sh: post_build_hook(232)
    mk-updateimg.sh: main(245)
ERROR: Running /workspace/device/rockchip/common/scripts/mk-firmware.sh - build_firmware failed!
ERROR: exit code 254 from line 69:
    "$RK_SCRIPTS_DIR/mk-updateimg.sh"
ERROR: call stack:
    mk-firmware.sh: build_firmware(69)
    mk-firmware.sh: post_build_hook(95)
    mk-firmware.sh: main(100)
ERROR: Running /workspace/device/rockchip/common/build-hooks/99-all.sh - build_all failed!
ERROR: exit code 254 from line 28:
    "$RK_SCRIPTS_DIR/mk-firmware.sh"
ERROR: call stack:
    99-all.sh: build_all(28)
    99-all.sh: build_hook(128)
    build-helper: try_func(63)
    build-helper: try_hook(96)
    build-helper: source(174)
    99-all.sh: main(139)
ERROR: Running /workspace/device/rockchip/common/build-hooks/99-all.sh - try_func build_hook all failed!
ERROR: exit code 254 from line 67:
    build_hook
ERROR: call stack:
    build-helper: try_func(67)
    build-helper: try_hook(96)
    build-helper: source(174)
    99-all.sh: main(139)

Re: Omni3576 build debian

Posted: 2025-11-21 2:27
by Luckfox Taylor
The compilation error in Debian is caused by an outdated version of live-build in your current environment, which needs to be updated. A prompt has been provided in the error log—please follow the steps outlined to resolve it.
Your live-build doesn't support bookworm
Please replace it:

Code: Select all

sudo apt-get remove live-build
git clone https://salsa.debian.org/live-team/live-build.git --depth 1 -b debian/1%20230131
cd live-build
rm -rf manpages/po/
sudo make install -j8
For the Buildroot compilation error, insufficient error code has been pasted, making it impossible to determine the root cause.