Re: GPT boot, again

2019-07-28 Thread Emmanuel Dreyfus
Emmanuel Dreyfus wrote: > - in UEFI mode, bootstrap does not read boot.cfg and while it sees the > GPT partitions, it is unable to access a RAID that has a GPT inside. It > can access a RAID that has a disklabel inside, though, but that does not > help for > 2 TB. Reading the sources, I find

Re: GPT boot, again

2019-07-27 Thread Emmanuel Dreyfus
Emmanuel Dreyfus wrote: > I try to boot NetBSD/Xen from a GPT, with little success. > > I understand NetBSD EFI bootstrap does not support multiboot, so I > should use BIOS boot. That poins seems false, I found multiboot code in EFI boot after all. I made some progress: it seems the BIOS/UEFI

Re: GPT boot, again

2019-07-25 Thread Dima Veselov
They both point to 1 sector or 64 block. Also, you must have booting partition end lined up too, so it never can be bigger than 2Gb. I mean 2Tb, but this statement is anyway wrong. However - I have all booting wedges less than MBR partition, but never succeeded if boot wedge was bigger than

Re: GPT boot, again

2019-07-25 Thread Dima Veselov
I installed /boot, ran installboot and gpt biosboot. Here is fdisk output for the disk: What flags installboot was used with? installboot -o console=com0,speed=115200 /dev/rdk2 /usr/mdec/bootxx_ffsv2 Did you installed MBR ever? I always do that separately. Here is the result: # dkctl

Re: GPT boot, again

2019-07-25 Thread Emmanuel Dreyfus
wrote: > I guess it's on a i386/amd64 arch? Because, if my memory is right, > there is the need of the "\x55\xAA" in the two last bytes of the > first 512b block (the signature) for the BIOS. Yes, this is amd64. The magic number is there, indeed: # dd if=/dev/rwd2d bs=512 count=1|hexdump

Re: GPT boot, again

2019-07-25 Thread Martin Husemann
On Thu, Jul 25, 2019 at 05:46:31PM +0200, Emmanuel Dreyfus wrote: > Martin Husemann wrote: > > > You may want to use rwd2d instead of rdk2 > > What is the rationale? I expect that to destroy the GPT. There are various architectures that write the boot record to the disk, not the NetBSD root

Re: GPT boot, again

2019-07-25 Thread tlaronde
On Thu, Jul 25, 2019 at 04:20:59PM +0200, Emmanuel Dreyfus wrote: > Hello > > I try to boot NetBSD/Xen from a GPT, with little success. > > I understand NetBSD EFI bootstrap does not support multiboot, so I > should use BIOS boot. > > I installed /boot, ran installboot and gpt biosboot. Here is

Re: GPT boot, again

2019-07-25 Thread Emmanuel Dreyfus
Martin Husemann wrote: > You may want to use rwd2d instead of rdk2 What is the rationale? I expect that to destroy the GPT. # installboot -o console=com0,speed=115200 /dev/rwd2d /usr/mdec/bootxx_ffsv2 And indeed: # gpt show wd2 start size index contents 0

Re: GPT boot, again

2019-07-25 Thread Martin Husemann
On Thu, Jul 25, 2019 at 05:20:12PM +0200, Emmanuel Dreyfus wrote: > Dima Veselov wrote: > > > > I installed /boot, ran installboot and gpt biosboot. Here is fdisk > > > output for the disk: > > > > What flags installboot was used with? > > installboot -o console=com0,speed=115200 /dev/rdk2 >

Re: GPT boot, again

2019-07-25 Thread Emmanuel Dreyfus
Dima Veselov wrote: > > I installed /boot, ran installboot and gpt biosboot. Here is fdisk > > output for the disk: > > What flags installboot was used with? installboot -o console=com0,speed=115200 /dev/rdk2 /usr/mdec/bootxx_ffsv2 Here is the result: # dkctl wd2 listwedges /dev/rwd2d: 3

Re: GPT boot, again

2019-07-25 Thread Dima Veselov
I understand NetBSD EFI bootstrap does not support multiboot, so I should use BIOS boot. I installed /boot, ran installboot and gpt biosboot. Here is fdisk output for the disk: What flags installboot was used with? Partition table: 0: GPT Protective MBR (sysid 238) start 1, size

GPT boot, again

2019-07-25 Thread Emmanuel Dreyfus
Hello I try to boot NetBSD/Xen from a GPT, with little success. I understand NetBSD EFI bootstrap does not support multiboot, so I should use BIOS boot. I installed /boot, ran installboot and gpt biosboot. Here is fdisk output for the disk: Partition table: 0: GPT Protective MBR (sysid 238)