Skip to content

Instantly share code, notes, and snippets.

@royratcliffe
Last active October 8, 2023 07:20
Show Gist options
  • Save royratcliffe/703fad8c827e692d4c58aa89e1fae6e6 to your computer and use it in GitHub Desktop.
Save royratcliffe/703fad8c827e692d4c58aa89e1fae6e6 to your computer and use it in GitHub Desktop.
Buildroot Tarball on Docker ARM
rootfs:
docker run -it --rm -v rootfs:/mnt -v .:/home alpine tar -C /mnt -xf /home/rootfs.tar
rootfs-%:
docker run -it --rm -v rootfs:/mnt --privileged --platform linux/arm arm32v7/alpine $*
ash: rootfs-ash
# /etc/init.d/rcK
# /etc/init.d/rcS
# mount proc /proc -t proc
chroot:
docker run -it --rm -v rootfs:/mnt --privileged --platform linux/arm arm32v7/alpine chroot /mnt bash
mnt-swipl:
/mnt/lib/ld-linux-armhf.so.3 --library-path /mnt/usr/lib/swipl/lib/armv7l-linux:/mnt/usr/lib /mnt/usr/bin/swipl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment