Hacker News new | ask | show | jobs
by spyremeown 1516 days ago
>I was able to run a Yocto rootfs build for ARM completely, including init, and IIRC networking, using LXC and binfmt_misc

I'd love to try that! Any pointers? :)

1 comments

very, very, roughly:

- build a rootfs using the poky reference distro (but do it for your arm target).

- https://docs.yoctoproject.org/

- https://docs.yoctoproject.org/brief-yoctoprojectqs/index.htm...

- you'll need to make or get a layer for your machine type. for example, for rpi you'll want: https://github.com/agherzan/meta-raspberrypi

    bitbake core-image-minimal (or whatever the machine layer wants you to do)
- find the unpacked root image (or unpack the final image). should be like build/tmp/work/<machine>/<blah>-image/1.0-r0/rootfs

- run (note: in the past I used LXC, but lets try podman today)

    apt install qemu-user-static podman
    podman run -it --rootfs <rootfsloc> /sbin/init