#16499: uboot.scr script lockup u-boot.bin + qemu
--------------------------------+--------------------------
Reporter: kallisti5 | Owner: nobody
Type: bug | Status: new
Priority: low | Milestone: Unscheduled
Component: System/Boot Loader | Version: R1/beta2
Keywords: u-boot | Blocked By:
Blocking: | Platform: All
--------------------------------+--------------------------
When attempting to use u-boot.bin + qemu on arm to load our EFI
bootloader, our boot.scr locks up here:
{{{
Found U-Boot script /boot.scr
1563 bytes read in 2 ms (762.7 KiB/s)
## Executing script at 40200000
Haiku u-boot script entry
(LOCKUP)
}}}
I dug into this in the past, and it turns our loading an environment file
in qemu results in a lockup. This doesn't happen anywhere except
u-boot.bin running under qemu.
I originally had a "really hacky" workaround here but removed it:
https://git.haiku-
os.org/haiku/commit?id=9f739dd2e868114ce19ae73afcff07caf2ddb8b6
{{{
test ${media} != virtio && test -e ${media} 0 uEnv.txt && fatload ${media}
0 ${scriptaddr} uEnv.txt && env import -t ${scriptaddr} ${filesize} \
}}}
Essentially, if bootmedia is not virtio, load uEnv.txt from the block
device. The lockup if I remember correctly happens during the {{{env
import}}}
Mostly storing this issue here for bus factor since i'm the only one who
knows about it :-)
--
Ticket URL: <https://dev.haiku-os.org/ticket/16499>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.