guysoft / CustomPiOS

A Raspberry Pi and other ARM devices distribution builder
GNU General Public License v3.0
509 stars 146 forks source link

aarch64 OrangePi Zero Plus #23

Closed mr-miky closed 4 years ago

mr-miky commented 6 years ago

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 ....

guysoft commented 6 years ago

Can you provide a download link to the image you are using as a base image? I want to test with it.

mr-miky commented 6 years ago

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

mr-miky commented 6 years ago

but fails later ....

Why does the script require armhf files ??

mr-miky commented 6 years ago

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
guysoft commented 6 years ago

Strange, perhaps you have out of date files in the workspace folder?

mr-miky commented 6 years ago

No, they seem to be already present in the image... https://dl.armbian.com/orangepizeroplus/Debian_stretch_next.7z

mr-miky commented 6 years ago

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

guysoft commented 6 years ago

See answer in #25 , touch the file, I suggest you make a new variant and we can add it here too.

guysoft commented 6 years ago

Any news? Should I close this?

mr-miky commented 6 years ago

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.

guysoft commented 4 years ago

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.

guysoft commented 4 years ago

Fixed, you can now set in your config:

export BASE_ARCH=aarch64

And then the 64bit qemu version would be used.