RPi-Distro / pi-gen

Tool used to create the official Raspberry Pi OS images
BSD 3-Clause "New" or "Revised" License
2.57k stars 1.61k forks source link

armhf: not supported on this machine/kernel #789

Open pompushko opened 1 month ago

pompushko commented 1 month ago

Hello I dont know whats wrong... but now I got this :D

cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
uname -a
Linux pompo-1 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 2 warnings found (use docker --debug to expand):
 - InvalidBaseImagePlatform: Base image i386/debian:bullseye was pulled with platform "linux/386", expected "linux/amd64" for current build (line 2)
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 4)
Registering qemu-arm for binfmt_misc...
[sudo] password for pompushko:
Checking native armhf executable support...
armhf: not supported on this machine/kernel
WARNING: Only a native build environment is supported. Checking emulated support...
armhf: ok
User rename on the first boot is disabled
Be advised of the security risks linked to shipping a device with default username/password set.
XECDesign commented 1 month ago

It's saying that the CPU you're building the image on is not able to run armhf binaries directly. Then it tries to run them through qemu instead, checks that it works and continues. It's not an error, just a warning that this is not a supported setup - it may work or it may not, depending on your version of qemu and how your system is configured.