On Sun, 11 Jul 2021 at 13:10, Coiby Xu <coiby...@gmail.com> wrote: > > Hi Peter, > > On Sat, Jul 10, 2021 at 02:30:36PM +0100, Peter Maydell wrote: > >I've noticed recently that intermittently 'make check' will hang on > >my aarch32 test system (really an aarch64 box with an aarch32 chroot). > > I have a newbie question. How do you do an aarch32 chroot on an aarch64 > box? At least, this issue seems to be not reproducible on an aarch64 box > directly. I specifically ran the qos-test for 5 consecutive times and > each time the test could finish successfully,
Your aarch64 host CPU needs to support aarch32 at EL0 (some AArch64 CPUs are pure-64 bit these days). The host kernel needs to implement the 32-bit compat layer. It probably also needs to be built for 4K pages (which mostly means "not RedHat"). Then you can set up the 32-bit chroot however you'd normally set up a chroot (for Debian you can do this with debootstrap; other distros will vary; schroot is also a bit nicer than raw chroot IMHO.) -- PMM