[Bug 1996285] Re: [SRU] riscv64 images fail to boot with libvirt and u-boot-qemu in 22.10
Heinrich Schuchardt
1996285 at bugs.launchpad.net
Fri Nov 25 20:18:31 UTC 2022
** Summary changed:
- riscv64 images fail to boot with libvirt and u-boot-qemu in 22.10
+ [SRU] riscv64 images fail to boot with libvirt and u-boot-qemu in 22.10
** Changed in: libvirt (Ubuntu)
Status: Confirmed => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to u-boot in Ubuntu.
https://bugs.launchpad.net/bugs/1996285
Title:
[SRU] riscv64 images fail to boot with libvirt and u-boot-qemu in
22.10
Status in libvirt package in Ubuntu:
Invalid
Status in u-boot package in Ubuntu:
Fix Released
Bug description:
1) The release of Ubuntu you are using, via 'lsb_release -rd' or
System -> About Ubuntu
$ lsb_release -rd
Description: Ubuntu 22.10
Release: 22.10
2) The version of the package you are using, via 'apt-cache policy
pkgname' or by checking in Software Center
$ apt-cache policy libvirt0
libvirt0:
Installed: 8.6.0-0ubuntu3
Candidate: 8.6.0-0ubuntu3
Version table:
*** 8.6.0-0ubuntu3 500
500 http://archive.ubuntu.com/ubuntu kinetic/main amd64 Packages
100 /var/lib/dpkg/status
$ apt-cache policy u-boot-qemu
u-boot-qemu:
Installed: 2022.07+dfsg-1ubuntu4
Candidate: 2022.07+dfsg-1ubuntu4
Version table:
*** 2022.07+dfsg-1ubuntu4 500
500 http://archive.ubuntu.com/ubuntu kinetic/main i386 Packages
500 http://archive.ubuntu.com/ubuntu kinetic/main amd64 Packages
100 /var/lib/dpkg/status
3) What you expected to happen
A riscv64-based image should start without any issues using the u-boot
binary from the u-boot-qemu package (/usr/lib/u-boot/qemu-
riscv64_smode/uboot.elf).
This works without issue on 22.04, and when calling qemu-system-
riscv64 manually without libvirt (which is why I'm filing the bug
here).
4) What happened instead
The VM fails to boot with the following output:
OpenSBI v1.0
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | |
| |__| | |_) | __/ | | |____) | |_) || |_
\____/| .__/ \___|_| |_|_____/|____/_____|
| |
|_|
Platform Name : riscv-virtio,qemu
Platform Features : medeleg
Platform HART Count : 8
Platform IPI Device : aclint-mswi
Platform Timer Device : aclint-mtimer @ 10000000Hz
Platform Console Device : uart8250
Platform HSM Device : ---
Platform Reboot Device : sifive_test
Platform Shutdown Device : sifive_test
Firmware Base : 0x80000000
Firmware Size : 308 KB
Runtime SBI Version : 0.3
Domain0 Name : root
Domain0 Boot HART : 0
Domain0 HARTs : 0*,1*,2*,3*,4*,5*,6*,7*
Domain0 Region00 : 0x0000000002000000-0x000000000200ffff (I)
Domain0 Region01 : 0x0000000080000000-0x000000008007ffff ()
Domain0 Region02 : 0x0000000000000000-0xffffffffffffffff (R,W,X)
Domain0 Next Address : 0x0000000080200000
Domain0 Next Arg1 : 0x00000000bf000000
Domain0 Next Mode : S-mode
Domain0 SysReset : yes
Boot HART ID : 0
Boot HART Domain : root
Boot HART ISA : rv64imafdcsuh
Boot HART Features : scounteren,mcounteren,time
Boot HART PMP Count : 16
Boot HART PMP Granularity : 4
Boot HART PMP Address Bits: 54
Boot HART MHPM Count : 0
Boot HART MIDELEG : 0x0000000000001666
Boot HART MEDELEG : 0x0000000000f0b509
U-Boot 2022.07+dfsg-1ubuntu4 (Oct 13 2022 - 10:12:03 +0000)
CPU: rv64imafdcsuh
Model: riscv-virtio,qemu
DRAM: 8 GiB
Core: 31 devices, 13 uclasses, devicetree: board
Flash: 32 MiB
Loading Environment from nowhere... OK
In: uart at 10000000
Out: uart at 10000000
Err: uart at 10000000
Net: No ethernet found.
Hit any key to stop autoboot: 0
Unhandled exception: Load access fault
EPC: 00000000fff789e6 RA: 00000000fff789e4 TVAL: 0000000040100014
EPC: 00000000802249e6 RA: 00000000802249e4 reloc adjusted
Code: 8082 1141 e022 e406 842e 40ef fe1f 611c (c783 0147)
resetting ...
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1996285/+subscriptions
More information about the foundations-bugs
mailing list