yasuoka / openbsd-uefi Goto Github PK
View Code? Open in Web Editor NEWUEFI boot support for OpenBSD
UEFI boot support for OpenBSD
I'm testing on a Macbook 2015. I've tried from both an external USB drive as well as my own EFI partition on the laptop. It only has the EFI partition on the internal disk, created by OSX running on a USB flash drive.
I'm using the snapshot from ftp.openbsd.org/pub/OpenBSD/snapshots/amd64, both the bootx and bsd.sd. Ihad trouble objcopy as noted, so I was going for a fresh install when I found the snapshot files.
When booted from external USB, the boot strings find hd0 and hd1--which maps logically to me to the USB drive and internal drive. The default drive is fd0a. fd0a doesn't seem to function with ls. I'm having a similar problem with the drives. I'm not sure what to call them. hd0, sd0, wd0, hd0a....?
The same holds true for a boot using only the internal disk. Only hd0 found on boot, defaults to fd0a, can't find bsd to push forward.
Anything I can do, i will try.
So I'm trying to build the efi bootloader on OpenBSD 5.7 but I'm hitting this error
===> bootx64
objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel -j .rel.* -j .rela -j .rela.* -j .reloc --target=efi-app-x86_64 BOOTX64.so BOOTX64.EFI
objcopy: BOOTX64.so: Invalid bfd target
*** Error 1 in bootx64 (../Makefile.common:63 'BOOTX64.EFI')
*** Error 1 in /usr/src/openbsd-uefi/src/sys/arch/amd64/stand/efiboot (<bsd.subdir.mk>:48 'all')
Indeed objcopy doesn't support this target
$ objcopy -h
[...]
objcopy: supported targets: elf64-x86-64 elf32-i386 coff-i386 efi-app-ia32 elf64-little elf64-big elf32-little elf32-big srec symbolsrec tekhex binary ihex netbsd-core
How do you get this to build? Have the targets been changed in OpenBSD-current?
I've been trying to build binutils with this target manually but I haven't been successful.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.