-
Notifications
You must be signed in to change notification settings - Fork 7
Boot Haiku OS #13
Comments
Here, right? https://github.com/haiku/haiku/blob/master/src/system/boot/platform/efi/start.cpp#L194 It calls Good to see that you're trying to get the device tree from the system config table! We already put it there :) I can't see anything wrong but I can't find where |
https://github.com/tianocore/edk2/blob/stable/202011/MdePkg/Library/BasePeCoffLib/BasePeCoff.c#L313-L321 I did some debugging and this is where |
Here's the image with more debug output: http://danielschaefer.me/static/U540-virt-haiku-debug-mar1.fd |
Odd. I thought we had the Pe issues sorted out (u-boot's bootefi seems happy) Here are the relevant files which generate our RV64 EFI bootloader: |
I found the issue. https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#optional-header-windows-specific-fields-image-only says this value should be the number of data directory entries of which there are 16. I patched the binary and I can start the bootloader and make it start Haiku (but it gets stuck)! I'd like to find out how to contribute to Haiku and send this as a patch. I'll try to figure it out tomorrow. I'm happy about operating system diversity :) These are the last few lines when it appears to be stuck:
The stuff about memory attributes comes from our edk2 changes. |
Oh, nice! We use Gerrit for patches. Here are the guidelines for patches: https://dev.haiku-os.org/wiki/CodingGuidelines/SubmittingPatches |
Nice!! I can apply that fix to our codebase @JohnAZoidberg if you don't have the bandwidth / time :-) |
ooh.. also the cause of the hang jumping into our kernel isn't a EDK2 unique issue. I've been working through a patchset to setup a new Sv39 page table from our bootloader https://review.haiku-os.org/c/haiku/+/3733 It's getting there... but I don't know what I'm doing 😅 |
Linux boots fine, please try again when you've got time :) You cant get the latest FD from Github Actions. Now it is here: https://github.com/riscv/riscv-edk2-platforms/suites/2725452052/artifacts/60114481 (unpack the zip) |
Haiku doesn't currently boot. The bootloader returns
EFI_UNSUPPORTED
.Probably some driver isn't included in our build that the Haiki bootloader requires.
See: #7 (comment)
@kallisti5 where can I find the code and how can I build it easily? Or can you try to add some debugging prints to see what causes
EFI_UNSUPPORTED
?The text was updated successfully, but these errors were encountered: