[Bug 1995261] [NEW] [SRU] Copy OpenSBI 1.1 to Jammy
Heinrich Schuchardt
1995261 at bugs.launchpad.net
Mon Oct 31 11:03:13 UTC 2022
Public bug reported:
[ Impact ]
We support boards with the Allwinner D1 SoC on Ubuntu Jammy.
Up to now we have officially launched a 22.04.1 image for the Nezha D1
board but with 22.04.2 we should also support the LicheeRV which is
supported by 22.10.
The Allwinner D1 SoC does not implement the fence.tso instruction. This
leads into crashes in programs like clang (cf. LP #1995080).
OpenSBI 1.1 provides an emulation of the instruction.
OpenSBI 1.1 is used in the Kinetic release.
[ Test plan ]
* Test running Ubuntu 22.04 on QEMU.
* Use a rebuilt U-Boot to boot the Nezha D1.
* Run clang --verson on all mentioned platforms (This was the command the demonstrated the problem.)
* Run apt-get update, apt-get install, and executed an application.
* Run snap install and execute an application.
[ Where problems could occur ]
OpenSBI is only used directly when running a RISC-V emulation in QEMU.
For all real hardware we OpenSBI is build into U-Boot SPL. So getting
OpenSBI onto the Nezha board will require a rebuild of U-Boot.
Theoretically upgrading OpenSBI could
* stop RISC-V boards from booting
* cause failures when the operating system calls into OpenSBI
* cause failures when OpenSBI emulates missing instructions.
[ Other Info ]
Upgrading to the same OpenSBI 1.1 that we use in Kinetic and Lunar instead of applying selected patches to 22.04 is easier to maintain in the long time.
OpenSBI 1.1 is the first release that is based on an officially approved
version of the RISC-V SBI specification.
** Affects: opensbi (Ubuntu)
Importance: Undecided
Assignee: Heinrich Schuchardt (xypron)
Status: New
** Tags: foundations-todo
** Changed in: opensbi (Ubuntu)
Assignee: (unassigned) => Heinrich Schuchardt (xypron)
** Tags added: foundations-todo
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to opensbi in Ubuntu.
https://bugs.launchpad.net/bugs/1995261
Title:
[SRU] Copy OpenSBI 1.1 to Jammy
Status in opensbi package in Ubuntu:
New
Bug description:
[ Impact ]
We support boards with the Allwinner D1 SoC on Ubuntu Jammy.
Up to now we have officially launched a 22.04.1 image for the Nezha D1
board but with 22.04.2 we should also support the LicheeRV which is
supported by 22.10.
The Allwinner D1 SoC does not implement the fence.tso instruction.
This leads into crashes in programs like clang (cf. LP #1995080).
OpenSBI 1.1 provides an emulation of the instruction.
OpenSBI 1.1 is used in the Kinetic release.
[ Test plan ]
* Test running Ubuntu 22.04 on QEMU.
* Use a rebuilt U-Boot to boot the Nezha D1.
* Run clang --verson on all mentioned platforms (This was the command the demonstrated the problem.)
* Run apt-get update, apt-get install, and executed an application.
* Run snap install and execute an application.
[ Where problems could occur ]
OpenSBI is only used directly when running a RISC-V emulation in QEMU.
For all real hardware we OpenSBI is build into U-Boot SPL. So getting
OpenSBI onto the Nezha board will require a rebuild of U-Boot.
Theoretically upgrading OpenSBI could
* stop RISC-V boards from booting
* cause failures when the operating system calls into OpenSBI
* cause failures when OpenSBI emulates missing instructions.
[ Other Info ]
Upgrading to the same OpenSBI 1.1 that we use in Kinetic and Lunar instead of applying selected patches to 22.04 is easier to maintain in the long time.
OpenSBI 1.1 is the first release that is based on an officially
approved version of the RISC-V SBI specification.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/opensbi/+bug/1995261/+subscriptions
More information about the foundations-bugs
mailing list