On 11. Apr 19 22:19, Jakub Jermář wrote: > - PP > - the entire arm64 port, prepared the PR for merge > > - JJ: why not create the UEFI binary via objcopy?
This does not seem to be currently possible because GNU binutils do not support the PE/COFF format for AArch64 (see bfd/targets.c [1]). > - JJ: What would be necessary to boot using QEMU's -kernel (without UEFI)? > - JJ: What would be necessary to boot using the same format as Linux? Looking at the QEMU's source code, its -kernel option on AArch64 appears to handle ELF images, Linux kernel format and U-Boot uImages. The Linux format [2] is nice because it allows the image to also remain a valid EFI binary. The current AArch64 bootloader in HelenOS depends on UEFI services to print messages on the console and to obtain a memory map of the system. It will be needed to remove these dependencies to make the bootloader useable without UEFI and with the QEMU's -kernel option. [1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=bfd/targets.c;h=158168cb3ba275df2efaefed2e33543bbf709c40;hb=HEAD#l589 [2] https://github.com/torvalds/linux/blob/master/Documentation/arm64/booting.txt Cheers, Petr _______________________________________________ HelenOS-devel mailing list [email protected] http://lists.modry.cz/listinfo/helenos-devel
