Closed mr-miky closed 4 years ago
Can you provide a download link to the image you are using as a base image? I want to test with it.
https://dl.armbian.com/orangepizeroplus/Debian_stretch_next.7z
I temporary "solved" mv /usr/bin/qemu-arm-static /usr/bin/qemu-arm-static_save ln -s /usr/bin/qemu-aarch64-static /usr/bin/qemu-arm-static
but fails later ....
Why does the script require armhf files ??
Workaround is to add rm -rf /var/lib/apt/lists/* in CustomPiOS/src/variants/armbian/pre_chroot_script
#cleanup
rm -rf /var/lib/apt/lists/*
mkdir -p /var/cache/apt/archives
apt-get clean
apt-get update
and in
OctoPi/src/modules/octopi/start_chroot_script
and unpack /filesystem/boot /boot
rm -rf /var/lib/apt/lists/*
apt-get update
Strange, perhaps you have out of date files in the workspace
folder?
No, they seem to be already present in the image... https://dl.armbian.com/orangepizeroplus/Debian_stretch_next.7z
This armbian image is a nightmare. No GCC 4.9 , NO regenerate_ssh_host_keys.service ....
sed: can't read /lib/systemd/system/regenerate_ssh_host_keys.service: No such file or
See answer in #25 , touch the file, I suggest you make a new variant and we can add it here too.
Any news? Should I close this?
I practically could not complete the image generation. I would like to finish the thing but unfortunately I do not have the free time to invest in this project. Close the report if you think it's appropriate.
Hey, updating I stared looking on building aarch64bit distros. At the moment you need a device that can execute both aarch64 and armf in many cases, which means you need a Rpi or an equivelent. The docker build method seems to work.
Fixed, you can now set in your config:
export BASE_ARCH=aarch64
And then the 64bit qemu version would be used.
I'm trying to generate an image to useon Orange PiZero Plus (H5 4 core 64bit) armbian variant I'm using the OPi0 + to build the image, it seems to be all successful but then the script tries to run /bin/bash with Qemu-arm-static generates an error because it tries to run bash aarch64 with qemo-arm (32bit) .
You probably need to make sure that the right qemu is used according to the target architecture ....