Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't have a guide that documents everything I did, but the process is described in pretty good detail here: https://wiki.debian.org/RaspberryPi/qemu-user-static

You can skip the first part about creating the image, since presumably you already have one. So the process for me is something like:

    apt-get install qemu qemu-user-static binfmt-support
    cp /usr/bin/qemu-arm-static ~/rpi_mnt/usr/bin
    systemd-nspawn -D ~/rpi_mnt bin/bash
(Some additional steps needed if you want to use regular chroot instead of nspawn.)

Sometimes qemu shows an error saying some operation isn't supported, but this hasn't broken anything yet for me, even after I did a whole Raspbian Stretch -> Buster upgrade this way.



BTW, with Debian buster and later, you won't have to copy the qemu-arm-static binary around, since the Linux kernel will now use the file from outside the chroot/container.


Awesome. Many thanks.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: