<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 20, 2014 at 9:24 AM, Baruch Siach <span dir="ltr"><<a href="mailto:baruch@tkos.co.il" target="_blank">baruch@tkos.co.il</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Erez,<br>
<div class=""><br>
On Tue, May 20, 2014 at 09:14:16AM +0300, Erez D wrote:<br>
> I am using centos 6 and developing for an armel platform<br>
><br>
> i created a rootfs using multistrap/debbootstrap<br>
><br>
> i copied qemu-arm-static to rootfs/usr/bin/qemu-arm-static<br>
<br>
</div>Is this QEMU built for your host (presumably x86) or your target (ARM)?<br></blockquote><div>obviously for my host <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Do you really need to run QEMU on your target?<br></blockquote><div>no, my target runs armel natively, my host uses qemu-arm for that <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class=""><br>
> and i was astonished that doing just 'chroot rootfs' worked, without<br>
> explicitly telling 'chroot' to use qemu-arm-static - somehow it decided<br>
> automatically to run everything under qemu-arm-static without me telling it<br>
> to.<br>
><br>
> after a restart of the server. rootfs does not work anymore automatically,<br>
> i get a "chroot: failed to run command `/bin/bash': Exec format error"<br>
> doing "chroot rootfs /usr/bin/qemu-arm-static /bin/bash" does chroot, but<br>
> i get : "bash: /bin/cat: cannot execute binary file" (although<br>
> rootfs/bin/cat is a perfectly ok armel binary, tested on the armel target).<br>
> i also checked the md5sum of the rootfs/qemu-arm-static binary, and it is ok<br>
><br>
> i mounted the rootfs on the armel target using nfs, and chrooted from the<br>
> target, and it works perfectly, meaning there is nothing wrong with the<br>
> rootfs filesystem<br>
<br>
</div>Chrooted from what target? Is it a hardware ARM system? QEMU?<br></blockquote><div>my target is armel and it chrooted to rootfs dir and ran the armel code natively,just to show that the rootfs a valid armel rootfs.<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
baruch<br>
<div class="HOEnZb"><div class="h5"><br>
> as it wonderously worked, now it wonerously doesn't<br>
><br>
> tryed googleling for it , but still cant find how to make it work<br>
><br>
> any idea ?<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
<a href="http://baruch.siach.name/blog/" target="_blank">http://baruch.siach.name/blog/</a> ~. .~ Tk Open Systems<br>
=}------------------------------------------------ooO--U--Ooo------------{=<br>
- <a href="mailto:baruch@tkos.co.il">baruch@tkos.co.il</a> - tel: <a href="tel:%2B972.2.679.5364" value="+97226795364">+972.2.679.5364</a>, <a href="http://www.tkos.co.il" target="_blank">http://www.tkos.co.il</a> -<br>
</font></span></blockquote></div><br></div></div>