From: Michael Brown Date: Mon, 20 Oct 2025 11:35:36 +0000 (+0100) Subject: [cloud] Display build architecture in AWS EC2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c8f088d4e11a1dedda4829c4be1bb1b14e9da016;p=thirdparty%2Fipxe.git [cloud] Display build architecture in AWS EC2 On some newer (7th and 8th generation) instance types, the 32-bit build of iPXE cannot access PCI configuration space since the ECAM is placed outside of the 32-bit address space. The visible symptom is that iPXE fails to detect any network devices. The public AMIs are all now built as 64-bit binaries, but there is nothing that prevents the building and importing of a 32-bit AMI. There are still potentially valid use cases for 32-bit AMIs (e.g. if planning to use the AMI only for older instance types), and so we cannot sensibly prevent this error at build time. Display the build architecture as part of the AWS EC2 embedded script, to at least allow for easy identification of this particular failure mode at run time. Signed-off-by: Michael Brown --- diff --git a/src/config/cloud/aws.ipxe b/src/config/cloud/aws.ipxe index 6c007398e..d8e4d6ad3 100644 --- a/src/config/cloud/aws.ipxe +++ b/src/config/cloud/aws.ipxe @@ -1,7 +1,7 @@ #!ipxe echo Amazon EC2 - iPXE boot via user-data -echo CPU: ${cpuvendor} ${cpumodel} +echo CPU: ${buildarch} ${cpuvendor} ${cpumodel} ifstat || set attempt:int8 1