Does Knoppix 8 DVD boot in native EFI mode ? (qemu+OVMF aborts early)

Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

Does Knoppix 8 DVD boot in native EFI mode ? (qemu+OVMF aborts early)

Thomas Schmitt

first of all, thank you for chosing xorriso for packing up the Knoppix 8
ISO 9660 filesystem, which i got on the DELUG DVD which came with Linux
Magazin 04/17. I am xorriso's developer.

Nevertheless i wonder:
What is the success/failure ratio with booting Knoppix 8 from DVD
(not USB stick or alike) while EFI is in its native mode (not emulating
legacy BIOS) ?

Why i ask:
After a reader's letter in issue 05/17, that it does not start on a
"Samsung laptop", i had a look into the EFI System Partition of the DVD.
SYSLINUX for EFI from DVD ? Up to now only Didier Spaier demonstrated
working examples on syslinux mailing list. The partitions were huge.
All major distros use GRUB2 for EFI therefore.

So i tried (on Debian 8 as host system) what happens if i let qemu with
OVMF as EFI boot from emulated optical drive:

  $ dd if=/dev/sr0 bs=1M of=knoppix_v8_linuxmag_04_17.iso
  4547162112 bytes (4.5 GB) copied, 293.851 s, 15.5 MB/s                    

  $ qemu-system-x86_64 -m 512 -cdrom knoppix_v8_linuxmag_04_17.iso \
                       -bios /usr/share/ovmf/OVMF.fd
  qemu: fatal: Trying to execute code outside RAM or ROM at 0x0000000100000000

  RAX=000000000000000b RBX=ffff0000fffffff8 RCX=000000001d8d9ff8 RDX=000000000000003f
  RSI=000000001d8d9838 RDI=000000001d695600 RBP=000000001d695600 RSP=000000001fab6600
  R8 =000000000001f800 R9 =000000001d8d9818 R10=0000000000000020 R11=0000000000000200
  R12=000000001d693180 R13=000000001d8ee328 R14=0000000000000000 R15=0000000000000000
  RIP=00000000ffffffe4 RFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
  ES =0008 0000000000000000 ffffffff 00cf9300 DPL=0 DS   [-WA]
  CS =0028 0000000000000000 ffffffff 00af9b00 DPL=0 CS64 [-RA]
  SS =0008 0000000000000000 ffffffff 00cf9300 DPL=0 DS   [-WA]
  DS =0008 0000000000000000 ffffffff 00cf9300 DPL=0 DS   [-WA]
  FS =0008 0000000000000000 ffffffff 00cf9300 DPL=0 DS   [-WA]
  GS =0008 0000000000000000 ffffffff 00cf9300 DPL=0 DS   [-WA]
  LDT=0000 0000000000000000 0000ffff 00008200 DPL=0 LDT
  TR =0000 0000000000000000 0000ffff 00008b00 DPL=0 TSS64-busy
  GDT=     000000001fa3ee98 0000003f
  IDT=     000000001f9314c0 00000fff
  CR0=80000033 CR2=0000000000000000 CR3=000000001fa55000 CR4=00000668
  DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
  DR6=00000000ffff0ff0 DR7=0000000000000400
  CCS=0000000000000200 CCD=000000001fab6620 CCO=ADDQ    
  FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
  FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
  FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
  FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
  FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
  XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000
  XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000
  XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000
  XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000
  XMM08=00000000000000000000000000000000 XMM09=00000000000000000000000000000000
  XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000
  XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000
  XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000

The same run with -hdc rather than -cdrom boots fine.
(So isohybridisation for EFI is ok.)
Only the attempt to extend partition 3 to the end of the storage device
yielded not more than 64 blocks enlargement (the Backup GPT's range)
which then caused a warning
  "Overlay /KNOPPIX-DATA: Partition ist zu klein (<400MB)"
One can work around by appending the necessary amount of zeros before
starting qemu:
  $ dd if=/dev/zero bs=1M count=400 >>knoppix_v8_linuxmag_04_17.iso

The only EFI machine in my reach may not be used for experiments.
Further i cannot instigate others in the world to try with real hardware
and real DVD, because i don't know any download link for a Knoppix 8 ISO.

Have a nice day :)