Re: Dell XPS 9310 succesful install but bootloader can't read disk label
On 02/12/2020 05:08, George Koehler wrote: On Wed, 2 Dec 2020 01:59:00 +0100 Noth wrote: Disk: sd0 Usable LBA: 34 to 4000797326 [4000797360 Sectors] #: type [ start: size ] 0: EFI Sys [ 2048: 389120 ] 1: e3c9e316-0b5c-4db8-817d-f92df00215ae [ 391168: 262144 ] 2: FAT12 [ 653312: 1071679488 ] 3: 516e7cba-6ecf-11d6-8ff8-00022d09712b [ 1072332800: 3905536 ] 4: Linux files* [ 1076238336: 2692558848 ] 5: OpenBSD [ 3768797184: 195311616 ] 6: Win Recovery [ 3964108800: 2027520 ] 7: Win Recovery [ 3966136320: 31772672 ] 8: Win Recovery [ 3997911040: 2885632 ] OpenBSD offset 3768797184 is about 1797G. I believe that our EFI bootloader works only if OpenBSD partition 'a' is in the first 1024G of the drive. Back in January 2020, I suspected that a daddr32_t would overflow in /sys/arch/amd64/stand/efiboot/efidev.c, see https://marc.info/?l=openbsd-bugs=158007879212894=2 I have no drives larger than 1024G, so I have no way to reproduce the problem.--George Ah that would make sense. I'll try redoing the setup with the OpenBSD slice moved to just behind the main Windows one, that'll put it in within the first 1024Gb. Cheers, Noth
Re: Dell XPS 9310 succesful install but bootloader can't read disk label
On Wed, 2 Dec 2020 01:59:00 +0100 Noth wrote: > Disk: sd0 Usable LBA: 34 to 4000797326 [4000797360 Sectors] > #: type [ start: size ] > > 0: EFI Sys [ 2048: 389120 ] > 1: e3c9e316-0b5c-4db8-817d-f92df00215ae [ 391168: 262144 ] > 2: FAT12 [ 653312: 1071679488 ] > 3: 516e7cba-6ecf-11d6-8ff8-00022d09712b [ 1072332800: 3905536 ] > 4: Linux files* [ 1076238336: 2692558848 ] > 5: OpenBSD [ 3768797184: 195311616 ] > 6: Win Recovery [ 3964108800: 2027520 ] > 7: Win Recovery [ 3966136320: 31772672 ] > 8: Win Recovery [ 3997911040: 2885632 ] OpenBSD offset 3768797184 is about 1797G. I believe that our EFI bootloader works only if OpenBSD partition 'a' is in the first 1024G of the drive. Back in January 2020, I suspected that a daddr32_t would overflow in /sys/arch/amd64/stand/efiboot/efidev.c, see https://marc.info/?l=openbsd-bugs=158007879212894=2 I have no drives larger than 1024G, so I have no way to reproduce the problem.--George
Re: Dell XPS 9310 succesful install but bootloader can't read disk label
Here we go (sd0 is the NVMe, sd0a is an encrypted OpenBSD install, which is on sd2). And yes, once decrypted, I can write to the partitions: Disk: sd0 Usable LBA: 34 to 4000797326 [4000797360 Sectors] #: type [ start: size ] 0: EFI Sys [ 2048: 389120 ] 1: e3c9e316-0b5c-4db8-817d-f92df00215ae [ 391168: 262144 ] 2: FAT12 [ 653312: 1071679488 ] 3: 516e7cba-6ecf-11d6-8ff8-00022d09712b [ 1072332800: 3905536 ] 4: Linux files* [ 1076238336: 2692558848 ] 5: OpenBSD [ 3768797184: 195311616 ] 6: Win Recovery [ 3964108800: 2027520 ] 7: Win Recovery [ 3966136320: 31772672 ] 8: Win Recovery [ 3997911040: 2885632 ] Disk: sd2 Usable LBA: 64 to 195311024 [195311088 Sectors] #: type [ start: size ] 1: EFI Sys [ 64: 960 ] 3: OpenBSD [ 1024: 195310001 ] # /dev/rsd0c: type: SCSI disk: SCSI disk label: KXG60PNV2T04 NVM duid: 9bfcd2a2080acb33 flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 249038 total sectors: 4000797360 boundstart: 3768797184 boundend: 3964108800 drivedata: 0 16 partitions: # size offset fstype [fsize bsize cpg] a: 195311616 3768797184 RAID c: 4000797360 0 unused i: 389120 2048 MSDOS j: 262144 391168 unknown k: 1071679488 653312 MSDOS l: 2027520 3964108800 unknown m: 31772672 3966136320 unknown n: 2885632 3997911040 unknown o: 3905536 1072332800 ext2fs p: 2692558848 1076238336 ext2fs # /dev/rsd2c: type: SCSI disk: SCSI disk label: SR CRYPTO duid: 72cca61970b173bb flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 12157 total sectors: 195311088 boundstart: 1024 boundend: 195311025 drivedata: 0 16 partitions: # size offset fstype [fsize bsize cpg] a: 2097152 1024 4.2BSD 2048 16384 12960 b: 17486680 2098176 swap c: 195311088 0 unused d: 8388576 19584864 4.2BSD 2048 16384 12960 e: 22683520 27973440 4.2BSD 2048 16384 12960 f: 12582912 50656960 4.2BSD 2048 16384 12960 g: 2097152 63239872 4.2BSD 2048 16384 12960 h: 28081408 65337024 4.2BSD 2048 16384 12960 i: 960 64 MSDOS j: 4194304 93418432 4.2BSD 2048 16384 12960 k: 12582912 97612736 4.2BSD 2048 16384 12960 l: 85115360 110195648 4.2BSD 2048 16384 12960 I hope this isn't because I'm triplebooting? I guess that is an edgecase, but all the same... Cheers, Noth On 01/12/2020 21:39, Mark Kettenis wrote: From: Noth Date: Tue, 1 Dec 2020 21:18:14 +0100 Hi, As a follow up, I got a usb-c stick and installed -current to that. It boots the system so I now have a dmesg, pcidump and usbdump for you: http://casper.nineinchnetworks.ch/images/dmesg9310.txt http://casper.nineinchnetworks.ch/images/pcidump9310.txt http://casper.nineinchnetworks.ch/images/usbdump9310.txt Cheers, Noth While booted using the USB stick, can you: a) Access the NVMe drive? b) Show the output of disklabel sd0? c) Show the output of fdisk sd0? Cheers, Mark On 19/11/2020 00:31, Noth wrote: Hi, I've got a brand new Dell XPS 9310 and I've tried to get 6.7, 6.8 and the latest snapshot on it. Installation works fine but neither the 3.50, 3.54 or 3.55 UEFI bootloaders can read the disk label so it's unbootable. I of course disactivated Secure Boot and anything in the BIOS that looked like it might be an obstacle. I've got two pictures of the bsd.rd dmesg for the latest snapshot for you here: http://casper.nineinchnetworks.ch/images/dmesg1.jpg http://casper.nineinchnetworks.ch/images/dmesg2.jpg I have no idea what to do next, hope this is of use to you. Cheers, Noth P.S.: I'm not subscribed to this mailing list, please CC me when answering.
Re: Dell XPS 9310 succesful install but bootloader can't read disk label
> From: Noth > Date: Tue, 1 Dec 2020 21:18:14 +0100 > > Hi, > > As a follow up, I got a usb-c stick and installed -current to that. > It boots the system so I now have a dmesg, pcidump and usbdump for you: > > http://casper.nineinchnetworks.ch/images/dmesg9310.txt > > http://casper.nineinchnetworks.ch/images/pcidump9310.txt > > http://casper.nineinchnetworks.ch/images/usbdump9310.txt > > Cheers, > > Noth While booted using the USB stick, can you: a) Access the NVMe drive? b) Show the output of disklabel sd0? c) Show the output of fdisk sd0? Cheers, Mark > On 19/11/2020 00:31, Noth wrote: > > Hi, > > > > I've got a brand new Dell XPS 9310 and I've tried to get 6.7, 6.8 > > and the latest snapshot on it. Installation works fine but neither the > > 3.50, 3.54 or 3.55 UEFI bootloaders can read the disk label so it's > > unbootable. I of course disactivated Secure Boot and anything in the > > BIOS that looked like it might be an obstacle. I've got two pictures > > of the bsd.rd dmesg for the latest snapshot for you here: > > > > http://casper.nineinchnetworks.ch/images/dmesg1.jpg > > > > http://casper.nineinchnetworks.ch/images/dmesg2.jpg > > > > I have no idea what to do next, hope this is of use to you. > > > > Cheers, > > > > Noth > > > > P.S.: I'm not subscribed to this mailing list, please CC me when > > answering. > > > >
Re: Dell XPS 9310 succesful install but bootloader can't read disk label
Hi, As a follow up, I got a usb-c stick and installed -current to that. It boots the system so I now have a dmesg, pcidump and usbdump for you: http://casper.nineinchnetworks.ch/images/dmesg9310.txt http://casper.nineinchnetworks.ch/images/pcidump9310.txt http://casper.nineinchnetworks.ch/images/usbdump9310.txt Cheers, Noth On 19/11/2020 00:31, Noth wrote: Hi, I've got a brand new Dell XPS 9310 and I've tried to get 6.7, 6.8 and the latest snapshot on it. Installation works fine but neither the 3.50, 3.54 or 3.55 UEFI bootloaders can read the disk label so it's unbootable. I of course disactivated Secure Boot and anything in the BIOS that looked like it might be an obstacle. I've got two pictures of the bsd.rd dmesg for the latest snapshot for you here: http://casper.nineinchnetworks.ch/images/dmesg1.jpg http://casper.nineinchnetworks.ch/images/dmesg2.jpg I have no idea what to do next, hope this is of use to you. Cheers, Noth P.S.: I'm not subscribed to this mailing list, please CC me when answering.