-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Locked out of mtdblock edk2 updates on orangepi 5 plus #140
Comments
You need to use a DTB compatible with your kernel version. The one bundled with the firmware only works along Rockchip's SDK kernel. Updating the firmware on SPI NOR is not currently supported with ACPI boot, so you'd have to use a separate computer. |
OK, so let me have another go at this. Just to be clear, when you say "you need to use a DTB compatible with your kernel version" what do you mean precisely? Are you talking about https://github.com/edk2-porting/edk2-rk3588?tab=readme-ov-file#custom-device-tree-blob-dtb-override-and-overlays? |
Yes. |
OK, thanks. So I actually have tried doing that but the system crashes and I cannot really see where. Initially it seemed to crash when accessing my nvme SATA 5 ports card but I will have to test again. |
It needs to be placed in the same partition as the bootloader, that is the FAT32 EFI System Partition.
Yes, the firmware only looks in that specific location. You could probably load the DTB from another path with Grub instead. |
Thanks, I was able to move on by using a separate computer. |
EDK2 vs U-Boot is just a matter of preference in this case, either will do provided you use a compatible device tree. I am not up-to-date on the mainlining efforts, but the plan is to eventually include mainline DTBs for a few of the supported boards in EDK2, which would greatly simplify booting off-the-shelf distro images. |
This is interesting. Are you actually testing it? And who's going to declare that a board is "supported"? From what I see the level of "support" is never black and white... Are you going to provide both a mainline DTB and a legacy one? |
Yeah, I'd need to test a few distros that have recent enough kernel by that time. So Fedora would be a candidate.
"Supported" in the sense that I have validated it to boot and has reasonable functionality (goal is better than ACPI). For this, I am only going to pick popular boards that have decent mainline support. Still missing functionality in Linux falls outside the scope of this project. Mainline DTBs will only be provided for convenience.
True. As soon as you leave Rockchip's legacy BSP, your mileage will greatly vary. Since most board vendors don't care about investing in mainline, proper firmware, etc, users are at the mercy of community support (i.e. if it even exists for the board in question). This has always been the case with SBCs.
Yes, that's the plan. |
So, 6.10.0rc1 exists on koji and I tried to run it. However (as I kind of expected) while panthor is compiled, is not loaded and if I try force loading it it doesn't get used. |
SATA likely needs a DT overlay. See: https://github.com/edk2-porting/edk2-rk3588?tab=readme-ov-file#device-tree-configuration for more info. |
You mean something like this? But for the pcie3 nvme slot? And in my case (I'm just trying here...):
Or maybe just:
|
I am using Fedora 40/rawhide on my orangepi 5 plus after having installed edk2 on the mtdblock device (latest nightly release version in order to get a working keyboard).
I can't update the firmware anymore because fedora doesn't see any mtd devices (using ACPI, it won't work, that's understood) and if I try using dtb the system just fails rebooting. Do you have a suggestion on how to break the deadlock?
The text was updated successfully, but these errors were encountered: