2020-05-03 20:19:55 |
Ryan Finnie |
bug |
|
|
added bug |
2020-05-03 20:19:55 |
Ryan Finnie |
attachment added |
|
grub2-riscv64.debdiff https://bugs.launchpad.net/bugs/1876620/+attachment/5365841/+files/grub2-riscv64.debdiff |
|
2020-05-03 20:20:15 |
Ryan Finnie |
description |
RISC-V EFI support is not yet in the Linux kernel (ca. 5.8: https://lkml.org/lkml/2020/4/20/1800), and while GRUB2 EFI Loader support needs to happen with the kernel (https://lists.gnu.org/archive/html/grub-devel/2020-04/msg00203.html), GRUB2 already has RISC-V EFI support. It can't currently boot anything, but it is a valid UEFI application and displays a pretty menu.
Please see the attached debdiff. Of note:
* grub2 requires efibootmgr and efivar. I've filed Debian bugs to enable riscv64 for them (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959498 and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959499 respectively), but if this is actioned before those end up happening, it's a simple Architecture: update on each.
* riscv-default-platform.patch: Upstreamed, allows `grub-install` to work without --platform.
* riscv-relocation-offset.patch: Upstreamed: fixes "unaligned pointer" failure.
* riscv-ubuntu-linuxefi.patch: Patches ubuntu-linuxefi.patch for riscv support; not sure if this should be integrated into linuxefi.patch.
* Tested on qemu-system-riscv64 focal. |
RISC-V EFI support is not yet in the Linux kernel (ca. 5.8: https://lkml.org/lkml/2020/4/20/1800), and while GRUB2 EFI Loader support needs to happen with the kernel (https://lists.gnu.org/archive/html/grub-devel/2020-04/msg00203.html), GRUB2 already has RISC-V EFI support. It can't currently boot anything, but it is a valid UEFI application and displays a pretty menu.
Please see the attached debdiff. Of note:
* grub2 requires efibootmgr and efivar. I've filed Debian bugs to enable riscv64 for them (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959498 and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959499 respectively), but if this is actioned before those end up happening, it's a simple Architecture: update on each.
* riscv-default-platform.patch: Upstreamed, allows `grub-install` to work without --platform.
* riscv-relocation-offset.patch: Upstreamed, fixes "unaligned pointer" failure.
* riscv-ubuntu-linuxefi.patch: Patches ubuntu-linuxefi.patch for riscv support; not sure if this should be integrated into linuxefi.patch.
* Tested on qemu-system-riscv64 focal. |
|
2020-05-03 20:20:51 |
Ryan Finnie |
bug |
|
|
added subscriber William Grant |
2020-05-03 20:24:31 |
Ryan Finnie |
description |
RISC-V EFI support is not yet in the Linux kernel (ca. 5.8: https://lkml.org/lkml/2020/4/20/1800), and while GRUB2 EFI Loader support needs to happen with the kernel (https://lists.gnu.org/archive/html/grub-devel/2020-04/msg00203.html), GRUB2 already has RISC-V EFI support. It can't currently boot anything, but it is a valid UEFI application and displays a pretty menu.
Please see the attached debdiff. Of note:
* grub2 requires efibootmgr and efivar. I've filed Debian bugs to enable riscv64 for them (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959498 and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959499 respectively), but if this is actioned before those end up happening, it's a simple Architecture: update on each.
* riscv-default-platform.patch: Upstreamed, allows `grub-install` to work without --platform.
* riscv-relocation-offset.patch: Upstreamed, fixes "unaligned pointer" failure.
* riscv-ubuntu-linuxefi.patch: Patches ubuntu-linuxefi.patch for riscv support; not sure if this should be integrated into linuxefi.patch.
* Tested on qemu-system-riscv64 focal. |
RISC-V EFI support is not yet in the Linux kernel (ca. 5.8: https://lkml.org/lkml/2020/4/20/1800), and while GRUB2 EFI Loader support needs to happen with the kernel (https://lists.gnu.org/archive/html/grub-devel/2020-04/msg00203.html), GRUB2 already has RISC-V EFI support. It can't currently boot anything, but it is a valid UEFI application and displays a pretty menu.
Please see the attached debdiff. Of note:
* grub2 requires efibootmgr and efivar. I've filed Debian bugs to enable riscv64 for them (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959498 and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959499 respectively), but if this is actioned before those end up happening, it's a simple Architecture: update on each.
* riscv-default-platform.patch: Upstreamed, allows `grub-install` to work without --platform.
* riscv-relocation-offset.patch: Upstreamed, fixes "unaligned pointer" failure.
* riscv-ubuntu-linuxefi.patch: Patches ubuntu-linuxefi.patch for riscv support; not sure if this should be integrated into ubuntu-linuxefi.patch.
* Tested on qemu-system-riscv64 focal. |
|
2020-05-03 20:25:21 |
Ubuntu Foundations Team Bug Bot |
tags |
|
patch |
|
2020-05-03 20:25:28 |
Ubuntu Foundations Team Bug Bot |
bug |
|
|
added subscriber Ubuntu Sponsors Team |
2020-05-04 22:08:05 |
Mathew Hodson |
grub2 (Ubuntu): importance |
Undecided |
Wishlist |
|
2021-08-02 12:40:24 |
Heinrich Schuchardt |
tags |
patch |
riscv64 |
|
2021-09-23 13:52:59 |
Heinrich Schuchardt |
tags |
riscv64 |
fr-1681 riscv64 |
|
2021-11-19 14:58:16 |
Julian Andres Klode |
removed subscriber Ubuntu Sponsors Team |
|
|
|
2021-11-19 18:42:29 |
Ryan Finnie |
removed subscriber William Grant |
|
|
|
2021-11-19 18:42:35 |
Ryan Finnie |
removed subscriber Ryan Finnie |
|
|
|
2022-01-03 13:37:17 |
Heinrich Schuchardt |
grub2 (Ubuntu): assignee |
|
Heinrich Schuchardt (xypron) |
|
2022-02-09 16:25:49 |
Launchpad Janitor |
grub2 (Ubuntu): status |
New |
Confirmed |
|
2022-02-18 16:43:03 |
Julian Andres Klode |
grub2 (Ubuntu): status |
Confirmed |
Fix Committed |
|
2022-02-18 16:53:18 |
Julian Andres Klode |
tags |
fr-1681 riscv64 |
block-proposed fr-1681 riscv64 |
|
2022-02-21 19:58:30 |
Julian Andres Klode |
tags |
block-proposed fr-1681 riscv64 |
fr-1681 riscv64 |
|
2022-02-21 21:31:51 |
Launchpad Janitor |
grub2 (Ubuntu): status |
Fix Committed |
Fix Released |
|