You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently trying to build an image from standard Raspberry Pi 64-bit image (2022-09-22-raspios-bullseye-arm64). However it fails with the following error:
Mhm wait, I'm building the image from my workstation, not from my pi, so I'm doing a cross compilation here.
Do you still need the output from those two commands you posted?
Edit: I'm not running it from Docker, but from the "live" system
The error at the bottom is that its using qemu-arm-static which is not compatible with the /bin/bash in the image.
If you are building on ubuntu perhaps using the docker build method would be a good way to ensure that there is no environment irregularity.
So the challenge that I see with this is that when I try to build an armv7l distro on an aarch64 system, it fails with
++++ uname -m
+++ '[' aarch64 '!=' aarch64 ']'
+++ echo 'Building on ARM device a armv7l/aarch64/arm64 system, not using qemu'
Building on ARM device a armv7l/aarch64/arm64 system, not using qemu
+++ chroot . /bin/bash /chroot_script
chroot: failed to run command '/bin/bash': Exec format error
Hello,
Thank you for the ping. Honestly I simply reverted to the 32-bit version, since it's pretty critical for my application. Maybe in the future I'll try again, if I have problems I'll open a new issue
Activity
guysoft commentedon Jan 16, 2023
Hey, what is the output of
uname -mon your pi? and what is the output ofarch?Because it looks like the pi is saying its using a 32bit system.
It might also be related to a commit that went in yesterday that changed the detection method:
7657844
cc @bwalex who made that commit if its relevant
tampe125 commentedon Jan 16, 2023
Mhm wait, I'm building the image from my workstation, not from my pi, so I'm doing a cross compilation here.
Do you still need the output from those two commands you posted?
Edit: I'm not running it from Docker, but from the "live" system
guysoft commentedon Jan 16, 2023
A full log might help.
The error at the bottom is that its using qemu-arm-static which is not compatible with the /bin/bash in the image.
If you are building on ubuntu perhaps using the docker build method would be a good way to ensure that there is no environment irregularity.
hrueger commentedon Jan 17, 2023
@tampe125 did you add
export BASE_ARCH=arm64to theconfigfile? that solves the issue for me.guysoft commentedon Jan 18, 2023
Thanks @hrueger forgot to ask that too.
See:
https://github.com/guysoft/CustomPiOS/blob/devel/src/modules/base/config#L100
dirkhh commentedon Apr 21, 2023
So the challenge that I see with this is that when I try to build an
armv7ldistro on anaarch64system, it fails withi.e., it fails to run the shell inside the
chrootTry to fix building an armv7l on an aarch64/arm64 system #189
guysoft commentedon Apr 25, 2023
@dirkhh
hmm, it looks like the arch is set to 64bit.
I am pushing a fix, make sure that you set in config:
export BASE_ARCH=armv7lCould you test that it works for you?
If not a full log might help me diagnose better
guysoft commentedon Aug 21, 2023
Any news on this? Closing if no reply.
dirkhh commentedon Aug 21, 2023
My issue is solved, but I'm not the original poster...
guysoft commentedon Aug 21, 2023
Will wait to see if @tampe125 has an answer, and if not will close it
tampe125 commentedon Aug 21, 2023
Hello,
Thank you for the ping. Honestly I simply reverted to the 32-bit version, since it's pretty critical for my application. Maybe in the future I'll try again, if I have problems I'll open a new issue
guysoft commentedon Aug 21, 2023
Ok, since we think its fixed closing for now. If you change your mind feel free to re-open the issue.