Installation of GRUB 2.06-2ubuntu17 fails on riscv64

Bug #2022379 reported by Heinrich Schuchardt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Fix Released
Undecided
Julian Andres Klode

Bug Description

Installation of GRUB 2.06-2ubuntu17 fails on riscv64

$ sudo grub-install --version
grub-install (GRUB) 2.06-2ubuntu17
$ sudo grub-install
Installing for riscv64-efi platform.
grub-install: error: relocation 0x13 is not implemented yet.
$ uname -a
Linux system 6.2.0-19-generic #19.1-Ubuntu SMP Fri Mar 31 12:41:53 UTC 2023 riscv64 riscv64 riscv64 GNU/Linux

My system is an HiFive SiFive Unmatched running Ubuntu Mantic but the problem should be reproducible in QEMU too.

ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: grub2-common 2.06-2ubuntu17
ProcVersionSignature: Ubuntu 6.2.0-19.19.1-generic 6.2.6
Uname: Linux 6.2.0-19-generic riscv64
ApportVersion: 2.26.1-0ubuntu3
Architecture: riscv64
CasperMD5json:
 {
   "result": "skip"
 }
Date: Fri Jun 2 17:09:55 2023
InstallationDate: Installed on 2023-04-19 (44 days ago)
InstallationMedia: Ubuntu-Server 23.04 "Lunar Lobster" - Release riscv64 (20230417)
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=vt220
SourcePackage: grub2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Heinrich Schuchardt (xypron) wrote :
Revision history for this message
Heinrich Schuchardt (xypron) wrote (last edit ):

In upstream GRUB, grub-core/kern/riscv/dl.c:191 support for R_RISCV_CALL_PLT (= 0x13) is implemented.
See commit 403d6540cd60 ("RISC-V: Handle R_RISCV_CALL_PLT reloc")

Changed in grub2 (Ubuntu):
assignee: nobody → Julian Andres Klode (juliank)
Revision history for this message
Julian Andres Klode (juliank) wrote :

I have applied the fix to git and built packages in ppa:ubuntu-uefi-team/ubuntu/ppa.

Revision history for this message
Julian Andres Klode (juliank) wrote :
Changed in grub2 (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package grub2 - 2.06-2ubuntu18

---------------
grub2 (2.06-2ubuntu18) mantic; urgency=medium

  * Cherry-pick "RISC-V: Handle R_RISCV_CALL_PLT reloc" (LP: #2022379)
  * Drop i386 from grub-efi-amd64* (LP: #2020907)
  * Turn depends on grub-efi-amd64/arm64 unversioned

 -- Julian Andres Klode <email address hidden> Mon, 05 Jun 2023 18:55:05 +0200

Changed in grub2 (Ubuntu):
status: Fix Committed → Fix Released
Benjamin Drung (bdrung)
tags: removed: foundations-todo
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.