[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: UEFI PC?



Hi,

Samuel Thibault wrote:
> Mmm, actually I had tested with the amd64 debian iso image , not the
> i386. The i386
http://cdimage.debian.org/cdimage/release/10.2.0/i386/iso-cd/debian-10.2.0-i386-netinst.iso
> has the same issue,

Aren't amd64 and i386 GNU/Linux systems ?
Those have ISOLINUX equipment for PC-BIOS and GRUB for EFI. CD and USB stick.

Don't we talk about ISOs like
  https://cdimage.debian.org/cdimage/ports/current-hurd-i386/iso-cd/debian-hurd-2019-i386-NETINST-1.iso

It has a GRUB El Torito image for CD via PC-BIOS. No recognizable MBR code
for booting via PC-BIOS from USB stick.

Can it be that hurd-i386 is prepared by
  https://sources.debian.org/src/debian-cd/3.1.27/tools/boot/bullseye/boot-hurd-common
whereas i386 and amd64 are prepared by
  https://sources.debian.org/src/debian-cd/3.1.27/tools/boot/bullseye/boot-x86
?

Both tinker with xorrisofs boot options. boot-x86 is much more elaborate
than boot-hurd-common. In both it seems that ISOLINUX and GRUB binaries
are already prepared. Dunno where this is done.
The hurd script shows no traces of xorrisofs options for EFI, which would
be --efi-boot or -e. No option --grub2-mbr is to see for booting via PC-BIOS
from USB stick.
As said, it uses GRUB for PC-BIOS, whereas i386/amd64 use ISOLINUX.

(In case you plan to join boot-x86 with EFI:
 I have a change proposal pending for i386 and amd64 images. Motivated in
 detail at:
   https://lists.debian.org/debian-cd/2019/07/msg00007.html
 It would be worth to adopt it if you copy all the boot-x86 stuff.
 I should prod Steve again. His excuse about the old xorriso version is
 gone meanwhile. The i386 ISO has
   Preparer Id  : XORRISO-1.5.0 2018.09.15.133001, ...
)

---------------------------------------------------------------------------

xorriso offers commands for inspection of boot equipment.
E.g.

  xorriso -indev debian-hurd-2019-i386-NETINST-1.iso \
          -report_system_area plain \
          -report_el_torito plain
yields
  ...
  Volume id    : 'Debian 2019 h-i386 n'
  System area options: 0x00000201
  System area summary: MBR protective-msdos-label cyl-align-off
  ISO image size/512 : 457764
  Partition offset   : 0
  MBR heads per cyl  : 64
  MBR secs per head  : 32
  MBR partition table:   N Status  Type        Start       Blocks
  MBR partition      :   1   0x80  0xcd            1       457763
  El Torito catalog  : 804  1
  El Torito cat path : /boot/boot.cat
  El Torito images   :   N  Pltf  B   Emul  Ld_seg  Hdpt  Ldsiz         LBA
  El Torito boot img :   1  BIOS  y   none  0x0000  0x00      4       53448
  El Torito img path :   1  /boot/grub/grub_eltorito
  El Torito img opts :   1  boot-info-table

With i386 GNU/Linux:

  Volume id    : 'Debian 10.2.0 i386 n'
  System area options: 0x00000102
  System area summary: MBR isohybrid cyl-align-on GPT APM
  ISO image size/512 : 872448
  Partition offset   : 0
  MBR heads per cyl  : 64
  MBR secs per head  : 32
  MBR partition table:   N Status  Type        Start       Blocks
  MBR partition      :   1   0x80  0x00            0       872448
  MBR partition      :   2   0x00  0xef         3856         4416
  MBR partition path :   2  /boot/grub/efi.img
  ...
  ... invalid GPT and useless APM ...
  ...
  El Torito catalog  : 963  1
  El Torito cat path : /isolinux/boot.cat
  El Torito images   :   N  Pltf  B   Emul  Ld_seg  Hdpt  Ldsiz         LBA
  El Torito boot img :   1  BIOS  y   none  0x0000  0x00      4        2068
  El Torito boot img :   2  UEFI  y   none  0x0000  0x00   4416         964
  El Torito img path :   1  /isolinux/isolinux.bin
  El Torito img opts :   1  boot-info-table isohybrid-suitable
  El Torito img path :   2  /boot/grub/efi.img

With Guix (made by grub-mkrescue):

  Volume id    : 'GUIXSD_IMAGE'
  System area options: 0x00004201
  System area summary: MBR protective-msdos-label grub2-mbr cyl-align-off GPT APM
  ISO image size/512 : 2109436
  Partition offset   : 0
  MBR heads per cyl  : 65
  MBR secs per head  : 32
  MBR partition table:   N Status  Type        Start       Blocks
  MBR partition      :   1   0x00  0xee            1      2109435
  GPT                :   N  Info
  GPT disk GUID      :      38bec621914e604ea91884e71f367b5c
  GPT entry array    :      20  176  separated
  GPT lba range      :      64  2109390  2109435
  GPT partition name :   1  4700610070003000
  GPT partname local :   1  Gap0
  GPT partition GUID :   1  38bec621914e604ea91984e71f367b5c
  GPT type GUID      :   1  a2a0d0ebe5b9334487c068b6b72699c7
  GPT partition flags:   1  0x1000000000000001
  GPT start and size :   1  64  34424
  GPT partition name :   2  450046004900200062006f006f007400200070006100720074006900740069006f006e00
  GPT partname local :   2  EFI boot partition
  GPT partition GUID :   2  38bec621914e604ea91a84e71f367b5c
  GPT type GUID      :   2  28732ac11ff8d211ba4b00a0c93ec93b
  GPT partition flags:   2  0x1000000000000001
  GPT start and size :   2  34488  2880
  GPT partition path :   2  /efi.img
  GPT partition name :   3  48004600530050004c0055005300
  GPT partname local :   3  HFSPLUS
  GPT partition GUID :   3  38bec621914e604ea91b84e71f367b5c
  GPT type GUID      :   3  005346480000aa11aa1100306543ecac
  GPT partition flags:   3  0x1000000000000001
  GPT start and size :   3  37368  2071420
  GPT partition name :   4  4700610070003100
  GPT partname local :   4  Gap1
  GPT partition GUID :   4  38bec621914e604ea91c84e71f367b5c
  GPT type GUID      :   4  a2a0d0ebe5b9334487c068b6b72699c7
  GPT partition flags:   4  0x1000000000000001
  GPT start and size :   4  2108788  600
  APM                :   N  Info
  APM block size     :      2048
  APM gap fillers    :      2
  APM partition name :   1  Gap0
  APM partition type :   1  ISO9660_data
  APM start and size :   1  16  9326
  APM partition name :   2  HFSPLUS_Hybrid
  APM partition type :   2  Apple_HFS
  APM start and size :   2  9342  517855
  APM partition name :   3  Gap1
  APM partition type :   3  ISO9660_data
  APM start and size :   3  527197  162
  El Torito catalog  : 25042  1
  El Torito cat path : /boot.catalog
  El Torito images   :   N  Pltf  B   Emul  Ld_seg  Hdpt  Ldsiz         LBA
  El Torito boot img :   1  BIOS  y   none  0x0000  0x00      4       26390
  El Torito boot img :   2  UEFI  y   none  0x0000  0x00   2880        8622
  El Torito img path :   1  /boot/grub/i386-pc/eltorito.img
  El Torito img opts :   1  boot-info-table grub2-boot-info
  El Torito img path :   2  /efi.img


Have a nice day :)

Thomas
Running with C source


Reply to: