Re: grub2 BIOS booting iso and code

2022-05-23 Thread Thomas Schmitt
Hi, another experiment proposal for Dominik 'Rathann' Mierzejewski: Zeroize the GPT of a copy of boot-grub2-f36.iso and adjust MBR partition 1. Do this in bash for the $'\x...' gestures: # Create the playground cp boot-grub2-f36.iso test.iso # Zeroize the main GPT dd if=/dev/zero bs=1 s

Re: grub2 BIOS booting iso and code

2022-05-22 Thread Thomas Schmitt
Hi, i wrote: > > If test_oldlayout.iso does not boot, then i am quite clueless. Dominik 'Rathann' Mierzejewski wrote: > I'm afraid that this is the case. What a naughty machine. :)) I'll think about making a BIOS-only GRUB ISO, just for testing. (Am busy with finding out how to merge the two De

Re: grub2 BIOS booting iso and code

2022-04-26 Thread Thomas Schmitt
Hi, Neal Gompa wrote: > I don't know if it's been mentioned, IIRC, Chris Murphy did. > but until very recently, pretty > much all TianoCore based UEFI implementations failed to boot > protective MBR marked GPT partitions. > [...] > https://github.com/tianocore/edk2/commit/b3db0cb1f8d163f22b769c2

Re: grub2 BIOS booting iso and code

2022-04-26 Thread Thomas Schmitt
Hi, Brian C. Lane wrote: > If this fixes the boot issues with the XPS 15 then it's probably worth > using this instead of the 'clean' GPT method and then revisit later once > BIOS support finally goes away. (Now i am not sure whether i shall hope for a significant test result.) It should be note

Re: grub2 BIOS booting iso and code

2022-04-23 Thread Thomas Schmitt
uld report: GNU xorriso 1.5.5 : RockRidge filesystem manipulator, libburnia project. GNU xorriso 1.5.5 ISO 9660 Rock Ridge filesystem manipulator and CD/DVD/BD burn program Copyright (C) 2021, Thomas Schmitt , libburnia project. xorriso version : 1.5.5 Version timestamp : 2022.04.22.1133

Re: grub2 BIOS booting iso and code

2022-04-21 Thread Thomas Schmitt
Hi, i wrote: > Whatever, if you want to try already now with the buggy result, It comes to me that the MBR signature will be missing too. So it won't be recognized by BIOS and its x86 code won't start. The signature could be inserted by echo $'\x55'$'\xAA' | dd of="$new_iso" conv=notrunc bs=1

Re: grub2 BIOS booting iso and code

2022-04-21 Thread Thomas Schmitt
Hi, i wrote: > > Does it boot with ubuntu-21.10-desktop-amd64.iso ? Dominik 'Rathann' Mierzejewski wrote: > It doesn't. Same error. > [...] > $ grub2-mkrescue -o output-mbr.iso --mbr-force-bootable minimal > gives me the "Operation System not found" BIOS error again. > > Building something neare

Re: grub2 BIOS booting iso and code

2022-04-20 Thread Thomas Schmitt
Hi, Dusty Mabe wrote: > Currently we use isohybrid [1] (also from syslinux package) to modify the > ISO to be able to be booted on a USB key. Would we be able to still get that > functionality without isohybrid from the syslinux package? Yes. The GRUB2 MBR code will get the equivalent treatment a

Re: grub2 BIOS booting iso and code

2022-04-19 Thread Thomas Schmitt
Hi, Dominik 'Rathann' Mierzejewski wrote: > Looks like it's a common issue with USB stick booting on these old Dell > XPS 15s: > https://askubuntu.com/questions/611135/operation-system-not-found-during-usb-boot > https://askubuntu.com/questions/451931/operation-system-not-found-dell-xps-15z-l511z

Re: grub2 BIOS booting iso and code

2022-04-19 Thread Thomas Schmitt
Hi, i wrote: > > Does the following bash hack "repair" the USB stick so that it boots on > > the affected machine ? > > echo $'\x80' | dd of=/dev/sdX conv=notrunc bs=1 seek=446 count=1 Dominik 'Rathann' Mierzejewski wrote: > No, it doesn't. Still getting "Operation System not found". A new fir

Re: grub2 BIOS booting iso and code

2022-04-18 Thread Thomas Schmitt
Hi, i wrote: > > xorrisofs option --mbr-force-bootable Chris Murphy wrote: > with the bit set it means older versions of > Tianocore or anything based on Tianocore up until maybe 6 months ago, > won't boot. Is this maybe about the code snippet of Tianocore which Alexander E. Patrakov showed in t

Re: grub2 BIOS booting iso and code

2022-04-18 Thread Thomas Schmitt
Hi, Dominik 'Rathann' Mierzejewski wrote: > > > Dell XPS 15 L502X 8GB RAM (BIOS only) BIOS-only on a laptop might mean the firmware quirk which demands to see the "boot/active" flag at some MBR partition table slot. See a thread of grub-bug (and later grub-devel) from 2015/16 https://marc.info

Re: grub2 BIOS booting iso and code

2022-04-18 Thread Thomas Schmitt
Hi, Dominik 'Rathann' Mierzejewski wrote: > - same machine USB media (written to whole device using dd) > Boot fails with "Operation system not found" error. (Looks like my optimism was somewhat premature.) I wonder from where this message comes. Was it really "Operation system" and not "Operati

Re: grub2 BIOS booting iso and code

2022-04-15 Thread Thomas Schmitt
Hi, > Initial test with a CD-R and an HP Compaq 8510w are mixed. > It boots to GRUB, but it spins a long time blinking the HDD light displaying > nothing but "Welcome to GRUB". It eventually spits out "failure reading > sector 0x4f838 from 'hd31'." 'hd31' looks strange for HDD as well as for CD-R

Re: F37 Change: Deprecate Legacy BIOS (System-Wide Change proposal)

2022-04-14 Thread Thomas Schmitt
Hi, Brian C. Lane wrote: > https://bcl.fedorapeople.org/boot-grub2-f36.iso > [...] > I have not tested it on CD or DVD physical media. I can confirm that it boots to a GRUB 2.06 menu via real iron EFI from real plastic DVD+RW. The menu offers me to install Fedora 36. So the boot lures for EFI fro

Re: F37 Change: Deprecate Legacy BIOS (System-Wide Change proposal)

2022-04-13 Thread Thomas Schmitt
Hi, Neal Gompa wrote: > The binary RPM for grub's BIOS boot code is grub2-pc (and > grub2-pc-modules), not grub2. But "grub2-pc" is not particularly > descriptive as a source package name, so grub2-bios makes sense for > the source package name if we need to split it. May i propose "grub2-pc-bios

Re: F37 Change: Deprecate Legacy BIOS (System-Wide Change proposal)

2022-04-11 Thread Thomas Schmitt
Hi, Chris Murphy wrote: > At least with the BIOS firmware without a bug, the GRUB LBA 0 code > jumps direct to core.img, no instruction on how to read the GPT and > find the core.img from BIOS boot partition. That's probably because the GRUB MBR code for hard disk gets the LBA of the next stage p

Re: F37 Change: Deprecate Legacy BIOS (System-Wide Change proposal)

2022-04-10 Thread Thomas Schmitt
Hi, Nikolay Nikolov wrote: > I imagine it is like those polyglot programs, that are simultaneously valid > in several totally different programming languages: Yep. A boot-everywhere ISO for x86 is quite like that. Every firmware variant can see in it what it expects. > Actually, I have already

Re: F37 Change: Deprecate Legacy BIOS (System-Wide Change proposal)

2022-04-09 Thread Thomas Schmitt
Hi, Nikolay Nikolov wrote: > Maybe I should try adapting my code, so that it finds the GRUB BIOS boot > partition and loads it? This would be a nice stunt for which we would have to find a use case. As stated yesterday, the GRUB El Torito image contains a core.img which serves the same purpose as

Re: F37 Change: Deprecate Legacy BIOS (System-Wide Change proposal)

2022-04-09 Thread Thomas Schmitt
Hi, this is what i propose as boot layout of an entirely GRUB based ISO which boots on EFI and not-so-buggy legacy BIOS from USB stick and DVD: $ xorriso -indev grub_mkrescue_gpt_appended.iso -report_el_torito plain -repor

Re: F37 Change: Deprecate Legacy BIOS (System-Wide Change proposal)

2022-04-09 Thread Thomas Schmitt
Hi, Nikolay Nikolov wrote: > I haven't looked at GRUB's MBR code, but there's enough space in the MBR to > scan the GPT entries, find a specific GUID partition type and load the first > several kilobytes from it and transfer control to it. Well, GRUB goes a different way on legacy BIOS. It boots

Re: F37 Change: Deprecate Legacy BIOS (System-Wide Change proposal)

2022-04-09 Thread Thomas Schmitt
Hi, > OK so there isn't (yet) an option to embed the GRUB core.img in a GPT > BIOS boot partition, I take it? The assumption is MBR? On hard drives, > core.img goes in the MBR gap. I'm not sure where it goes on xorriso > produced ISOs though, but presumably not the gap because there's a > valid GP

Re: F37 Change: Deprecate Legacy BIOS (System-Wide Change proposal)

2022-04-08 Thread Thomas Schmitt
Hi, Chris Murphy wrote: > Is there a possibility of dropping MBR? i.e. use GPT containing both a > biosboot partition type, and EFI System partition type? I am not aware that legacy BIOS would hop directly on any GPT partition or any MBR partition table partition. The convention for hard-disk-li

Re: F37 Change: Deprecate Legacy BIOS (System-Wide Change proposal)

2022-04-08 Thread Thomas Schmitt
Hi, i'm the developer of xorriso. Please CC me with replies just in case that i unsubscribe because of too much traffic. Further: Sorry for my reply-id pointing to the predecessor of the message which i quote. I found it at https://www.spinics.net/lists/fedora-devel/msg299915.html Chris Murphy

Re: F34 Change proposal: Compress Kernel Firmware (Self-Contained Change)

2020-10-26 Thread Thomas Schmitt
Hi, i wrote: > Date: Fri, 23 Oct 2020 19:29:46 +0200 > Date: Fri, 23 Oct 2020 21:55:56 +0200 My apologies for these repetitions. I had hoped that the queue dropped them either because of their mail header deficiencies or because i was not subscribed when i sent them. Have a nice day :) Thomas

Re: F34 Change proposal: Compress Kernel Firmware (Self-Contained Change)

2020-10-26 Thread Thomas Schmitt
Hi, Chris Adams wrote: > Although: now that I look at the ISO structure with isoinfo, it does > appear that the files are not actually duplicated ECMA-119 (ISO 9660 for free) allows the equivalent to hardlinking by 6.5.1 Relation to File Sections ... A File Section may be part of more than

Re: F34 Change proposal: Compress Kernel Firmware (Self-Contained Change)

2020-10-26 Thread Thomas Schmitt
Hi, Neal Gompa wrote: > Could we just drop syslinux/isolinux and use GRUB there? Other > distributions have done that I understand Ubuntu did it just yesterday. https://releases.ubuntu.com/20.10/ubuntu-20.10-desktop-amd64.iso The lesson from https://bugs.launchpad.net/ubuntu-cdimage/+bug/188

Re: F34 Change proposal: Compress Kernel Firmware (Self-Contained Change)

2020-10-26 Thread Thomas Schmitt
Hi, Gerd Hoffmann wrote: > There isn't something like a link > count field in the directory listing, so this is *not* visible with > "ls". There is something like a link count field. But a link count > 1 makes full sense only if the link siblings have the same inode number. Those numbers can be r

Re: F34 Change proposal: Compress Kernel Firmware (Self-Contained Change)

2020-10-23 Thread Thomas Schmitt
Hi, Chris Adams wrote: > Although: now that I look at the ISO structure with isoinfo, it does > appear that the files are not actually duplicated ECMA-119 (ISO 9660 for free) allows the equivalent to hardlinking by 6.5.1 Relation to File Sections ... A File Section may be part of more than

Re: F34 Change proposal: Compress Kernel Firmware (Self-Contained Change)

2020-10-23 Thread Thomas Schmitt
Hi, Neal Gompa wrote: > Could we just drop syslinux/isolinux and use GRUB there? Other > distributions have done that I understand Ubuntu did it just yesterday. https://releases.ubuntu.com/20.10/ubuntu-20.10-desktop-amd64.iso The lesson from https://bugs.launchpad.net/ubuntu-cdimage/+bug/188