Page MenuHomeFreeBSD

arm64: generate ISO release images
ClosedPublic

Authored by mhorne on Wed, Sep 16, 1:09 PM.

Details

Summary

Some IPMI implementations on arm64 are reportedly unable to load
our memstick installer images, but support the older ISO format. Start
generating these for arm64.

Unlike installers ISOs on other platforms, these images are UEFI-only.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

mhorne created this revision.Wed, Sep 16, 1:09 PM
mhorne requested review of this revision.Wed, Sep 16, 1:09 PM

So far the images generated are bootable, but the bootable image header is incorrectly labeled "BIOS", rather than "UEFI" which may be causing the images to be unrecognized on certain firmware. I'm not sure yet if there is a bug in makefs.

$ xorriso -indev /usr/obj/usr/home/mitchell/freebsd/arm64.aarch64/release/disc1.iso -report_el_torito plain -report_system_area plain
xorriso 1.5.0 : RockRidge filesystem manipulator, libburnia project.

xorriso : NOTE : Loading ISO image tree from LBA 0
xorriso : UPDATE :   22302 nodes read in 1 seconds
libisofs: WARNING : Found hidden El-Torito image. Its size could not be figured out, so image modify or boot image patching may lead to bad results.
xorriso : NOTE : Detected El-Torito boot information which currently is set to be discarded
Drive current: -indev '/usr/obj/usr/home/mitchell/Development/freebsd/arm64.aarch64/release/disc1.iso'
Media current: stdio file, overwriteable
Media status : is written , is appendable
Boot record  : El Torito
Media summary: 1 session, 253593 data blocks,  495m data,  111g free
Volume id    : '13_0_CURRENT_AARCH64_CD'
El Torito catalog  : 19  1
El Torito images   :   N  Pltf  B   Emul  Ld_seg  Hdpt  Ldsiz         LBA
El Torito boot img :   1  BIOS  y   none  0x0000  0x00   1600          20
El Torito img blks :   1  1600
xorriso : NOTE : No System Area was loaded
emaste accepted this revision.Thu, Sep 17, 7:41 PM

Let's commit this for now... there's lots of refactoring to be done in release later on.

This revision is now accepted and ready to land.Thu, Sep 17, 7:41 PM
emaste added a subscriber: releng.Thu, Sep 17, 7:41 PM
emaste added inline comments.
release/arm64/mkisoimages.sh
3–5 ↗(On Diff #77095)

Just delete these lines

mhorne updated this revision to Diff 77180.Fri, Sep 18, 1:22 PM

Make use of "efi" system type in makefs.

Create a partition table for the EFI partition.

This revision now requires review to proceed.Fri, Sep 18, 1:22 PM
mhorne marked an inline comment as done.Fri, Sep 18, 1:23 PM
emaste accepted this revision.Fri, Sep 18, 1:31 PM
This revision is now accepted and ready to land.Fri, Sep 18, 1:31 PM
mhorne edited the summary of this revision. (Show Details)Fri, Sep 18, 2:34 PM

Relnotes: yes I presume?

Yeah, relnotes makes sense.

This revision was automatically updated to reflect the committed changes.