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)
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...

