<div dir="ltr"><div><div><div><div>I am using centos 6 and developing for an armel platform<br><br></div>i created a rootfs using multistrap/debbootstrap<br><br></div>i copied qemu-arm-static to rootfs/usr/bin/qemu-arm-static<br>
<br></div>and i was astonished that doing just 'chroot rootfs' worked, without explicitly telling 'chroot' to use qemu-arm-static - somehow it decided automatically to run everything under qemu-arm-static without me telling it to.<br>
<br><br></div><div>after a restart of the server. rootfs does not work anymore automatically,<br></div><div>i get a "chroot: failed to run command `/bin/bash': Exec format error"<br></div><div>doing "chroot rootfs /usr/bin/qemu-arm-static /bin/bash" does chroot, but<br>
</div><div>i get : "bash: /bin/cat: cannot execute binary file" (although rootfs/bin/cat is a perfectly ok armel binary, tested on the armel target).<br></div><div>i also checked the md5sum of the rootfs/qemu-arm-static binary, and it is ok<br>
<br></div><div>i mounted the rootfs on the armel target using nfs, and chrooted from the target, and it works perfectly, meaning there is nothing wrong with the rootfs filesystem<br><br></div><div>as it wonderously worked, now it wonerously doesn't<br>
<br></div><div>tryed googleling for it , but still cant find how to make it work<br><br></div><div>any idea ?<br></div><div><br></div></div>