> > I'm working on to make grub2 work on OpenBSD to replace
> > pxelinux on my netinstall server and I have this question -
> > - why is there 'ONLY_FOR_ARCHS= i386' in our old grub?
> 
> Try building. You get the following during configure:
> 
> > checking whether the C compiler works... configure: error: cannot run C 
> > compiled programs.
> > If you meant to cross compile, use `--host'.
> > See `config.log' for more details.
> > *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2700 
> > '/usr/ports/pobj/grub-0.97/.configure_done': @for d in 
> > /usr/ports/pobj/grub-...)
> > *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1923 
> > '/usr/ports/packages/amd64/all/grub-0.97p6.tgz')
> > *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2465 
> > '_internal-package')
> > *** Error 1 in /usr/ports/sysutils/grub 
> > (/usr/ports/infrastructure/mk/bsd.port.mk:2445 'package')
> 
> I recall finding a better explanation (or coming up with one myself)
> when I originally tried this a few months ago, but I've since forgotten.
> Considering that PIE broke it when introduced, I wouldn't be surprised
> if some of our linking features are related.

Hmm, I was able to successfully build grub2 and I'm able to
load grub2 via pxe with qemu x86_64 VM:

But then I can't load 'pxeboot' from grub, here are steps:

> set
[...]
> insmod pxechain
> pxechainloader /openbsd/pxeboot
alising devices...ok
probing: pc0 com0 pxe![2.1] mem[624K 253M 320K a20=on]
disk: fd0
net: mac 52:54:00:12:34:56, ip 10.0.2.15, server 10.0.2.2
>> OpenBSD/amd64 PXEBOOT 3.25 Network Boot Firmware -- http://ipxe.org
sendrecv: short write! (-1 < 23)E bzImage ELF MBOOT PXE Menu PXEXT

j.

Reply via email to