Files
bfe-core1106-sdk/qemu/busybox
BFE EngineeringandClaude Opus 5.5 37037926df
ci / quality (push) Successful in 2m25s
ci / badges (push) Skipped
ci / mcdc (push) Successful in 29s
ci / prune-artifacts (push) Skipped
ci / test (push) Successful in 13s
ci / bench (push) Successful in 10s
ci / patches-apply (push) Successful in 24s
ci / kernel-build (push) Skipped
ci / mcdc (pull_request) Successful in 21s
ci / bench (pull_request) Successful in 17s
ci / test (pull_request) Successful in 14s
ci / prune-artifacts (pull_request) Skipped
ci / kernel-build (pull_request) Skipped
ci / qemu-tools (push) Successful in 4m32s
ci / kernel-symbols (push) Successful in 4m28s
ci / patches-apply (pull_request) Successful in 57s
ci / qemu-tools (pull_request) Successful in 3m8s
ci / kernel-symbols (pull_request) Successful in 6m42s
ci / quality (pull_request) Successful in 2m19s
ci / badges (pull_request) Skipped
qemu: build the panel's own BusyBox for the rig (flare-edge#2210)
The rig runs busybox.net's 1.31.0 multiarch binary, not the image's 1.37.0
with its applet config, so a script calling an applet or option the panel
lacks (#1903 setpriv --reuid, #2002 stat, #1349 flock -w) passes in the rig
and breaks on a panel.

- qemu/busybox/panel.config: the image's config, rebuilt from Buildroot
  2025.02.8 busybox.config plus 0001-busybox-applets.patch, resolved for
  1.37.0 as Buildroot does. patches/: Buildroot's 11 busybox patches.
  rig.fragment: static link and BusyBox's own passwd readers only.
  applets.txt and help.txt: the bench a capture (image 417a66b).
- qemu/build-busybox.sh: pinned 1.37.0 source, fails on any Kconfig rewrite
  of the config, an applet list other than the panel's, or a dynamic binary.
- qemu/lib.sh: RIG_BUSYBOX=panel selects it (default stays multiarch);
  the bounded verified download is now qemu_fetch_verified.
- warden.shell uses warden_console_shell: cttyhack where it exists, else
  setsid -c on the console tty (the panel's BusyBox has no cttyhack).
- CI: offline tests in qemu-tools, a build there checked against every
  applet's --help from the panel through qemu-user, and a second boot smoke
  with the panel initramfs in kernel-build.

Refs flare-edge#2210

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KerYPVh72hhNgKi3wS5ijG
2026-10-29 07:36:25 -06:00
..

The panel's BusyBox, for the rig

RIG_BUSYBOX=panel (qemu/lib.sh) makes the rig run the image's own BusyBox instead of the busybox.net 1.31.0 multiarch binary, so a script that calls an applet or option the panel lacks fails in the rig as it fails on a panel (flare-edge#2210; #1903 setpriv --reuid, #2002 stat, #1349 flock -w). qemu/build-busybox.sh builds it; the default stays multiarch until the flare-edge QEMU jobs switch over.

File What it is
panel.config The image's BusyBox 1.37.0 configuration. Made from Buildroot 2025.02.8 package/busybox/busybox.config (the vendor SDK's base; its header matches the a/ side of the applet patch), with luckfox-sdk-patches/buildroot/patches/0001-busybox-applets.patch applied and then yes "" | make oldconfig in busybox-1.37.0, as Buildroot does for a config written for an older version (it adds TIME64, GETFATTR, FIND_EXEC_OK, IP_LINK_CAN and UDHCPD_BOOTP at their defaults and drops ASH_SLEEP). The time stamp line is dropped.
rig.fragment The rig's only differences: a static link, and BusyBox's own passwd, group and shadow readers (a static glibc binary cannot load NSS modules). Neither adds or removes an applet or option.
patches/ Buildroot 2025.02.8's package/busybox/*.patch, applied in order like the image build does (one of them is what makes tc build with current kernel headers). Commit-message text was changed to ASCII; the diffs are unchanged.
applets.txt busybox --list of the panel (bench a, image 417a66b), the same as flare-edge tests/fixtures/panel-busybox-applets.txt. The build fails when its applet list differs.
help.txt busybox <applet> --help of every applet of the panel, the same as flare-edge tests/fixtures/panel-busybox-help.txt (flare-edge tools/bench/busybox-help/capture.sh). qemu/tests/busybox-panel-help.sh compares the built binary with it.

The Buildroot fixups in busybox.mk that depend on the image's Buildroot options (mdev, init, watchdog, less flags, crypt SHA) are not applied here; the applet list and the per-applet help check would show any of them that changed an applet or an option. When the image's BusyBox changes, update panel.config and patches/ the same way and re-capture applets.txt and help.txt from a panel.

The inputs are pinned (source tarball sha256, these files); the output is not, because each host's compiler gives a different binary. The cache key in $OUT/busybox-armv7l-panel.key covers the tarball, these files and the compiler version.