On 3 October 2013 10:03, Victor Kamensky victor.kamensky@linaro.org wrote:
On 2 October 2013 13:30, Michael Hudson-Doyle michael.hudson@linaro.org wrote:
Maxim Uvarov maxim.uvarov@linaro.org writes:
This happens because original system is little endian. And Lava does chroot to big endian root fs. And it's expected that you can not run be binaries on le system. So the only way to do is to avoid chroot.
Is there a qemu-arm-static-equivalent that can run BE binaries?
No, there is no such. In fact at this point even basic BE ARM qemu and KVM, just got barely alive very recently. We did not have plans to make x86 host to run BE ARM at all.
Frankly the requirement to have qemu-arm-static just to repackage final images is a bit weird IMHO. Even in LE case: personally I am Fedora user and never get qemu-arm- static working on my Fedora machine. I ended up installing ubuntu under VirtualBox just to run Linaro image packaging tool! I saw some version of qemu-arm-static for Fedora that Fathi put a while back but it does not work on newer version of Fedora ... Note that OE build system can construct final images without really running any target code under qemu. Given It is done with some amount of trickery and set of target postinstall scripts but I like it better than qemu-arm-static. IMHO it work better for all embedded CPUs types.
Wondering how it works in LE aarch64 ... does qemu-arm-static equivalent exist out there?
Our aarch64 support doesn't use QEMU. We use OE and extract archives of cross-built binaries.
According to previous comments, the problem is that we try to run Ubuntu specific commands. Most likely because LAVA code path detects the rootfs and seems to think it's Ubuntu.
In BE case, LAVA behavior should be similar to aarch64: - LAVA detects OE - we don't run native OS commands but only extract archives (QEMU isn't involved, or flash-kernel...)
btw, OpenSUSE guys have just released QEMU aarch64 port: http://news.opensuse.org/2013/10/01/suse-speeds-up-building-aarch64-software... https://github.com/openSUSE/qemu/commits/aarch64-work
Cheers, Fathi