Brénainn Woodsend
Brénainn Woodsend
`openwrtorg/rootfs:mips_24kc` works well for me. Do you have qemu set up for docker?
Although it's impossible to build the bootloader on it after all due to OpenWRT's sstrip policy... :roll_eyes:
Install whatever package provides `/usr/bin/qemu-mips-static` on Ubuntu then run ``` docker run --rm --privileged multiarch/qemu-user-static --reset -p yes --credential yes ```
If you're using docker desktop on macOS, that should have qemu set up already.
I'm having a go at building the bootloader on `openwrtorg/sdk:mips_24kc-openwrt-22.03`. I'll get back to you in about 10 years once it's finished downloading...
Yeah, that's worked. I've put it all together into a dockerfile. It compiled a PyInstaller wheel in `openwrtorg/sdk` then installs PyInstaller into a MIPS `openwrtorg/rootfs` container. I did need to...
> exec /bin/sh: exec format error That's the *qemu isn't set up properly* error message. I don't know which goat you need to sacrifice on Ubuntu to setup qemu right....
```bash $ docker images | grep -E 'multiarch/qemu-user-static|openwrtorg/rootfs|openwrtorg/sdk' openwrtorg/rootfs mips_24kc c5369bccd27f 5 days ago 12.4MB openwrtorg/sdk mips_24kc-openwrt-22.03 ee466503f8ef 9 days ago 2.01GB multiarch/qemu-user-static latest 3539aaa87393 2 months ago 305MB ```
Oh hello. Now I'm getting that error too.
I think it's actually docker itself that's changed. Every Docker image has to declare its architecture somewhere in its metadata. Those `openwrt/rootfs` are misconfigured. ```bash $ docker image inspect openwrtorg/rootfs:mips_24kc...