riscv64 images fail to boot in qemu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-riscv (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Invalid
|
Undecided
|
Unassigned | ||
Hirsute |
Invalid
|
Undecided
|
Unassigned | ||
u-boot (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Hirsute |
Fix Released
|
Critical
|
Unassigned | ||
u-boot-menu (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
William Wilson | ||
Hirsute |
Fix Released
|
Critical
|
Unassigned |
Bug Description
[Impact]
* u-boot may crash when attempting to boot extlinux.conf which specifies fdtdir; the given u-boot config doesn't specify a dtb filename to load; autodetection tries to make one up using $soc & $board variables; and if one or both of them are not set (as it is the case for qemu) it would crash. Fix this crash by doing validation / checking when quering for $soc & $board variables in autodetectionn.
[Test Plan]
* Use qemu & uboot produced by the build that fixes this bug report properly and attempt to boot hirsute's riscv64+unmatched image.
* It should boot correctly without a crash / qemu backtrace.
[Where problems could occur]
* This patch is bein upstreamed. If one is using external uboot (i.e. provided by some other vendor) it may still crash when trying to boot Ubuntu's riscv64 rootfs or cloud image.
[Other Info]
* Patch is being reviewed upstream https:/
Related branches
- Dave Jones (community): Approve
- git-ubuntu developers: Pending requested
-
Diff: 260 lines (+141/-47)7 files modifieddebian/changelog (+17/-0)
debian/patches/0001-cmd-pxe-Use-internal-FDT-if-retrieving-from-FDTDIR-f.patch (+57/-0)
debian/patches/0001-cmd-pxe_utils-sysboot-fix-crash-if-either-board-or-s.patch (+39/-0)
debian/patches/riscv64/sifive-unleashed-default-fdt-files.patch (+0/-21)
debian/patches/riscv64/sifive-unmatched-default-fdt-files.patch (+24/-0)
debian/patches/series (+4/-2)
dev/null (+0/-24)
tags: | added: fr-1282 |
Changed in u-boot (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in u-boot (Ubuntu Hirsute): | |
status: | Fix Released → New |
tags: | added: block-proposed block-proposed-hirsute |
tags: | removed: block-proposed block-proposed-hirsute |
Changed in u-boot (Ubuntu): | |
status: | Fix Released → New |
Changed in u-boot (Ubuntu Hirsute): | |
status: | Fix Released → Triaged |
status: | Triaged → New |
Changed in u-boot (Ubuntu): | |
importance: | Critical → Undecided |
Changed in linux-riscv (Ubuntu Focal): | |
status: | New → Invalid |
Changed in u-boot-menu (Ubuntu Focal): | |
status: | New → Invalid |
description: | updated |
Changed in u-boot (Ubuntu): | |
status: | New → Fix Committed |
Changed in u-boot-menu (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
Changed in u-boot (Ubuntu Hirsute): | |
status: | Confirmed → Fix Released |
This is reproducible with any uboot from focal/groovy/ hirsute.