Hi,

If you want to boot OpenBSD on an HP EliteBook 830 G7/G8, the bootloader
will hang while loading the kernel.  Because, the UEFI loads the
bootloader on the same place in memory, where the bootloader will copy
the kernel.  We are unable to load the kernel on arbitrary memory.
Thus, the following diff will help you, to get OpenBSD running on these
machines.  It moves the hardcoded Kernel address to a free place.

I don't intend to commit this.  Its just a hint for people who are
running in the same issues, as I did.

bye,
Jan

Index: arch/amd64/conf//ld.script
===================================================================
RCS file: /cvs/src/sys/arch/amd64/conf/ld.script,v
retrieving revision 1.17
diff -u -p -r1.17 ld.script
--- arch/amd64/conf//ld.script  7 Mar 2021 23:10:54 -0000       1.17
+++ arch/amd64/conf//ld.script  18 Mar 2021 21:11:18 -0000
@@ -38,8 +38,8 @@ PHDRS
  */
 __ALIGN_SIZE = 0x1000;
 __kernel_base = 0xffffffff80000000;
-__kernel_virt_base = __kernel_base + 0x1000000;
-__kernel_phys_base = 0x1000000;
+__kernel_virt_base = __kernel_base + 0x1030000;
+__kernel_phys_base = 0x1030000;
 __kernel_virt_to_phys = __kernel_phys_base - __kernel_virt_base;
 
 ENTRY(start)

Reply via email to