[opensuse-arm] Chroot error while building kiwi arm image
Hi, I'm trying to build a modified kiwi image for Cubieboard (forked from devel:ARM:12.3:Contrib:sunxi/JeOS-cubieboard). When I try to build it, it gives me the following error: [ 39s] running aaa_base preinstall script [ 39s] chroot: failed to run command 'sh': Exec format error [ 39s] running aaa_base postinstall script [ 39s] chroot: failed to run command 'sh': Exec format error [ 39s] running qemu-accel-armv7hl postinstall script [ 39s] chroot: failed to run command 'sh': Exec format error [ 39s] initializing rpm db... [ 39s] chroot: failed to run command 'rpm': Exec format error At first i thought that qemu was incorrectly setup, but after some tests I think everything is OK. For example, I can execute a "hello world" test program compiled in arm just fine from the command line: oscar@gardenia:~> file hello_world-arm-static hello_world-arm-static: ELF 32-bit LSB executable, ARM, version 1, statically linked, for GNU/Linux 2.6.9, stripped oscar@gardenia:~> ./hello_world-arm-static -->Hello world using ARM! Any ideas for whats happening here? -- Cheers -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Hi Oscar, Am 08.09.2013 13:02, schrieb Oscar C:
Hi,
I'm trying to build a modified kiwi image for Cubieboard (forked from devel:ARM:12.3:Contrib:sunxi/JeOS-cubieboard). When I try to build it, it gives me the following error:
[ 39s] running aaa_base preinstall script [ 39s] chroot: failed to run command 'sh': Exec format error [ 39s] running aaa_base postinstall script [ 39s] chroot: failed to run command 'sh': Exec format error [ 39s] running qemu-accel-armv7hl postinstall script [ 39s] chroot: failed to run command 'sh': Exec format error [ 39s] initializing rpm db... [ 39s] chroot: failed to run command 'rpm': Exec format error
At first i thought that qemu was incorrectly setup, but after some tests I think everything is OK. For example, I can execute a "hello world" test program compiled in arm just fine from the command line:
oscar@gardenia:~> file hello_world-arm-static hello_world-arm-static: ELF 32-bit LSB executable, ARM, version 1, statically linked, for GNU/Linux 2.6.9, stripped oscar@gardenia:~> ./hello_world-arm-static -->Hello world using ARM!
It looks like everything is ok, sure...
Any ideas for whats happening here?
...but I had a similar looking problem and installing qemu-linux-user did fix it for me (it was missing on my machine). But then I'm quite sure you have a different problem since you obviously have some sort of qemu installed or you could not execute the binary... -- Stefan Seyfried "If your lighter runs out of fluid or flint and stops making fire, and you can't be bothered to figure out about lighter fluid or flint, that is not Zippo's fault." -- bkw -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Am 08.09.2013 um 16:00 schrieb Stefan Seyfried
Hi Oscar,
Am 08.09.2013 13:02, schrieb Oscar C:
Hi,
I'm trying to build a modified kiwi image for Cubieboard (forked from devel:ARM:12.3:Contrib:sunxi/JeOS-cubieboard). When I try to build it, it gives me the following error:
[ 39s] running aaa_base preinstall script [ 39s] chroot: failed to run command 'sh': Exec format error [ 39s] running aaa_base postinstall script [ 39s] chroot: failed to run command 'sh': Exec format error [ 39s] running qemu-accel-armv7hl postinstall script [ 39s] chroot: failed to run command 'sh': Exec format error [ 39s] initializing rpm db... [ 39s] chroot: failed to run command 'rpm': Exec format error
At first i thought that qemu was incorrectly setup, but after some tests I think everything is OK. For example, I can execute a "hello world" test program compiled in arm just fine from the command line:
oscar@gardenia:~> file hello_world-arm-static hello_world-arm-static: ELF 32-bit LSB executable, ARM, version 1, statically linked, for GNU/Linux 2.6.9, stripped oscar@gardenia:~> ./hello_world-arm-static -->Hello world using ARM!
It looks like everything is ok, sure...
Any ideas for whats happening here?
...but I had a similar looking problem and installing qemu-linux-user did fix it for me (it was missing on my machine). But then I'm quite sure you have a different problem since you obviously have some sort of qemu installed or you could not execute the binary...
Yup. My guess would be that the exec format error is for the qemu binary inside the chroot which is x86_64. What host platform are you running this on? Can you manually call qemu-arm inside the chroot? Alex
-- Stefan Seyfried "If your lighter runs out of fluid or flint and stops making fire, and you can't be bothered to figure out about lighter fluid or flint, that is not Zippo's fault." -- bkw -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
participants (3)
-
Alexander Graf
-
Oscar C
-
Stefan Seyfried