On Mon, Mar 14, 2016 at 03:00:35PM +0000, Gordan Bobic wrote: > On 2016-03-01 22:32, Michael Howard wrote: > >On 01/03/2016 22:26, Richard W.M. Jones wrote: > >>On Mon, Feb 29, 2016 at 03:20:03PM +0000, Michael Howard wrote: > >>>Just to let you know, I can't get this to work. aarch64 is supposed > >>>to be binary compatible, with the correct libraries installed, but > >>>I'm thinking the cpu isn't. > >>> > >>>All I get is 'cannot execute binary file: Exec format error', > >>>regardless of what I try. > >>As I understand it the problem is page size - 64K was chosen by > >>Red Hat for aarch64, where as 4K is the norm on armv7. > >> > >>Anyway, you can run a 32 bit VM and it works well -- in fact a lot > >>faster than regular 32 bit armv7 hardware. > >> > > > >Yes, with CONFIG_ARM64_4K_PAGES=y and CONFIG_COMPAT=y, 32 bit > >binaries run fine. > > I built a kernel with these options enabled, but chrooting into an > armv5tel subtree segfaults immediately. :-( I may be missing some context here, but is there some reason not to just use a VM? It's more predictable because you'll be running the same kernel that the 32 bit environment is expecting. Also it will (or should) work without you needing to compile your own host kernel. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/