$ dpkg-query -W u-boot-qemu u-boot-qemu 2021.01+dfsg-3ubuntu9.1 $ qemu-system-riscv64 -machine virt -nographic -m 2048 -smp 4 -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.elf -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf -device virtio-net-device,netdev=eth0 -netdev user,id=eth0 -drive file=ubuntu-21.04-preinstalled-server-riscv64+unmatched.img,format=raw,if=virtio OpenSBI v0.9 ____ _____ ____ _____ / __ \ / ____| _ \_ _| | | | |_ __ ___ _ __ | (___ | |_) || | | | | | '_ \ / _ \ '_ \ \___ \| _ < | | | |__| | |_) | __/ | | |____) | |_) || |_ \____/| .__/ \___|_| |_|_____/|____/_____| | | |_| Platform Name : riscv-virtio,qemu Platform Features : timer,mfdeleg Platform HART Count : 4 Firmware Base : 0x80000000 Firmware Size : 124 KB Runtime SBI Version : 0.2 Domain0 Name : root Domain0 Boot HART : 0 Domain0 HARTs : 0*,1*,2*,3* Domain0 Region00 : 0x0000000080000000-0x000000008001ffff () Domain0 Region01 : 0x0000000000000000-0xffffffffffffffff (R,W,X) Domain0 Next Address : 0x0000000080200000 Domain0 Next Arg1 : 0x0000000082200000 Domain0 Next Mode : S-mode Domain0 SysReset : yes Boot HART ID : 0 Boot HART Domain : root Boot HART ISA : rv64imafdcsu 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 MHPM Count : 0 Boot HART MIDELEG : 0x0000000000000222 Boot HART MEDELEG : 0x000000000000b109 U-Boot 2021.01+dfsg-3ubuntu9.1 (May 14 2021 - 15:54:50 +0000) CPU: rv64imafdcsu Model: riscv-virtio,qemu DRAM: 2 GiB In: uart@10000000 Out: uart@10000000 Err: uart@10000000 Net: eth0: virtio-net#0 Hit any key to stop autoboot: 0 Device 0: 1af4 VirtIO Block Device Type: Hard Disk Capacity: 3584.0 MB = 3.5 GB (7340032 x 512) ... is now current device Scanning virtio 0:1... Found /boot/extlinux/extlinux.conf Retrieving file: /boot/extlinux/extlinux.conf 743 bytes read in 1 ms (725.6 KiB/s) U-Boot menu 1: Ubuntu 21.04 5.11.0-1007-generic 2: Ubuntu 21.04 5.11.0-1007-generic (rescue target) Enter choice: 1: Ubuntu 21.04 5.11.0-1007-generic Retrieving file: /boot/initrd.img-5.11.0-1007-generic 182268553 bytes read in 2852 ms (60.9 MiB/s) Retrieving file: /boot/vmlinuz-5.11.0-1007-generic 27355136 bytes read in 6 ms (4.2 GiB/s) append: root=LABEL=cloudimg-rootfs ro earlycon Retrieving file: /lib/firmware/5.11.0-1007-generic/device-tree/qemu-riscv.dtb Failed to load '/lib/firmware/5.11.0-1007-generic/device-tree/qemu-riscv.dtb' Skipping l0 for failure retrieving fdt 2: Ubuntu 21.04 5.11.0-1007-generic (rescue target) Retrieving file: /boot/initrd.img-5.11.0-1007-generic 182268553 bytes read in 40 ms (4.2 GiB/s) Retrieving file: /boot/vmlinuz-5.11.0-1007-generic 27355136 bytes read in 4 ms (6.4 GiB/s) append: root=LABEL=cloudimg-rootfs ro earlycon single Retrieving file: /lib/firmware/5.11.0-1007-generic/device-tree/qemu-riscv.dtb Failed to load '/lib/firmware/5.11.0-1007-generic/device-tree/qemu-riscv.dtb' Skipping l0r for failure retrieving fdt SCRIPT FAILED: continuing... libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disk virtio-blk#8... ** Unrecognized filesystem type ** ** Unrecognized filesystem type ** Found 6 disks ** Invalid partition 21 ** Cannot read EFI system partition BootOrder not defined EFI boot manager: Cannot load any image Scanning virtio 0:f... ** Unable to read file / ** Failed to load '/' libfdt fdt_check_header(): FDT_ERR_BADMAGIC BootOrder not defined EFI boot manager: Cannot load any image scanning bus for devices... Device 0: unknown device BOOTP broadcast 1 DHCP client bound to address 10.0.2.15 (1 ms) Using virtio-net#0 device TFTP from server 10.0.2.2; our IP address is 10.0.2.15 Filename 'boot.scr.uimg'. Load address: 0x88100000 Loading: * TFTP error: 'Access violation' (2) Not retrying... BOOTP broadcast 1 DHCP client bound to address 10.0.2.15 (0 ms) Using virtio-net#0 device TFTP from server 10.0.2.2; our IP address is 10.0.2.15 Filename 'boot.scr.uimg'. Load address: 0x84000000 Loading: * TFTP error: 'Access violation' (2) Not retrying... => Whereas with hirsute-release version of u-boot-qemu: $ dpkg-query -W u-boot-qemu u-boot-qemu 2021.01+dfsg-3ubuntu9 It boots fine: $ qemu-system-riscv64 -machine virt -nographic -m 2048 -smp 4 -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.elf -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf -device virtio-net-device,netdev=eth0 -netdev user,id=eth0 -drive file=ubuntu-21.04-preinstalled-server-riscv64+unmatched.img,format=raw,if=virtio OpenSBI v0.9 ____ _____ ____ _____ / __ \ / ____| _ \_ _| | | | |_ __ ___ _ __ | (___ | |_) || | | | | | '_ \ / _ \ '_ \ \___ \| _ < | | | |__| | |_) | __/ | | |____) | |_) || |_ \____/| .__/ \___|_| |_|_____/|____/_____| | | |_| Platform Name : riscv-virtio,qemu Platform Features : timer,mfdeleg Platform HART Count : 4 Firmware Base : 0x80000000 Firmware Size : 124 KB Runtime SBI Version : 0.2 Domain0 Name : root Domain0 Boot HART : 2 Domain0 HARTs : 0*,1*,2*,3* Domain0 Region00 : 0x0000000080000000-0x000000008001ffff () Domain0 Region01 : 0x0000000000000000-0xffffffffffffffff (R,W,X) Domain0 Next Address : 0x0000000080200000 Domain0 Next Arg1 : 0x0000000082200000 Domain0 Next Mode : S-mode Domain0 SysReset : yes Boot HART ID : 2 Boot HART Domain : root Boot HART ISA : rv64imafdcsu 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 MHPM Count : 0 Boot HART MIDELEG : 0x0000000000000222 Boot HART MEDELEG : 0x000000000000b109 U-Boot 2021.01+dfsg-3ubuntu9 (Apr 21 2021 - 17:05:00 +0000) CPU: rv64imafdcsu Model: riscv-virtio,qemu DRAM: 2 GiB In: uart@10000000 Out: uart@10000000 Err: uart@10000000 Net: eth0: virtio-net#0 Hit any key to stop autoboot: 0 Device 0: 1af4 VirtIO Block Device Type: Hard Disk Capacity: 3584.0 MB = 3.5 GB (7340032 x 512) ... is now current device Scanning virtio 0:1... Found /boot/extlinux/extlinux.conf Retrieving file: /boot/extlinux/extlinux.conf 743 bytes read in 1 ms (725.6 KiB/s) U-Boot menu 1: Ubuntu 21.04 5.11.0-1007-generic 2: Ubuntu 21.04 5.11.0-1007-generic (rescue target) Enter choice: 1: Ubuntu 21.04 5.11.0-1007-generic Retrieving file: /boot/initrd.img-5.11.0-1007-generic 182268553 bytes read in 39 ms (4.4 GiB/s) Retrieving file: /boot/vmlinuz-5.11.0-1007-generic 27355136 bytes read in 5 ms (5.1 GiB/s) append: root=LABEL=cloudimg-rootfs ro earlycon Moving Image from 0x84000000 to 0x80200000, end=81d11000 ## Flattened Device Tree blob at ff7487d0 Booting using the fdt blob at 0xff7487d0 Using Device Tree in place at 00000000ff7487d0, end 00000000ff74ce21 Starting kernel ... [ 0.000000] Linux version 5.11.0-1007-generic (buildd@riscv64-qemu-lcy01-063) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld (GNU Binutils for Ubuntu) 2.36.1) #7-Ubuntu SMP Wed Apr 14 21:09:49 UTC 2021 (Ubuntu 5.11.0-1007.7-generic 5.11.12) [ 0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 [ 0.000000] earlycon: ns16550a0 at MMIO 0x0000000010000000 (options '') [ 0.000000] printk: bootconsole [ns16550a0] enabled [ 0.000000] efi: UEFI not found. [ 0.000000] Initial ramdisk at: 0x(____ptrval____) (182272000 bytes) [ 0.000000] cma: Reserved 32 MiB at 0x00000000fd400000 [ 0.000000] Zone ranges: [ 0.000000] DMA32 [mem 0x0000000080200000-0x00000000ffffffff] [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000080200000-0x00000000ffffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x00000000ffffffff] [ 0.000000] DMA32 zone: 512 pages in unavailable ranges [ 0.000000] SBI specification v0.2 detected [ 0.000000] SBI implementation ID=0x1 Version=0x9 [ 0.000000] SBI v0.2 TIME extension detected [ 0.000000] SBI v0.2 IPI extension detected [ 0.000000] SBI v0.2 RFENCE extension detected [ 0.000000] software IO TLB: mapped [mem 0x00000000f6400000-0x00000000fa400000] (64MB) [ 0.000000] SBI v0.2 HSM extension detected [ 0.000000] riscv: ISA extensions acdfimsu [ 0.000000] riscv: ELF capabilities acdfim [ 0.000000] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 515592 [ 0.000000] Kernel command line: root=LABEL=cloudimg-rootfs ro earlycon [ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear) [ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear) [ 0.000000] Sorting __ex_table... [ 0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off [ 0.000000] Memory: 1737932K/2095104K available (9846K kernel code, 5762K rwdata, 8192K rodata, 2519K init, 997K bss, 324404K reserved, 32768K cma-reserved) [ 0.000000] random: get_random_u64 called from kmem_cache_open+0x38/0x33a with crng_init=0 [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 38882 entries in 152 pages [ 0.000000] ftrace: allocated 152 pages with 3 groups [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4. [ 0.000000] Rude variant of Tasks RCU enabled. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] riscv-intc: 64 local interrupts mapped [ 0.000000] plic: plic@c000000: mapped 53 interrupts with 4 handlers for 8 contexts. [ 0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [2] [ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns [ 0.000060] sched_clock: 64 bits at 10MHz, resolution 100ns, wraps every 4398046511100ns [ 0.003331] Console: colour dummy device 80x25 [ 0.003652] printk: console [tty0] enabled [ 0.004058] printk: bootconsole [ns16550a0] disabled [ 0.000000] Linux version 5.11.0-1007-generic (buildd@riscv64-qemu-lcy01-063) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld (GNU Binutils for Ubuntu) 2.36.1) #7-Ubuntu SMP Wed Apr 14 21:09:49 UTC 2021 (Ubuntu 5.11.0-1007.7-generic 5.11.12) [ 0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 [ 0.000000] earlycon: ns16550a0 at MMIO 0x0000000010000000 (options '') [ 0.000000] printk: bootconsole [ns16550a0] enabled [ 0.000000] efi: UEFI not found. [ 0.000000] Initial ramdisk at: 0x(____ptrval____) (182272000 bytes) [ 0.000000] cma: Reserved 32 MiB at 0x00000000fd400000 [ 0.000000] Zone ranges: [ 0.000000] DMA32 [mem 0x0000000080200000-0x00000000ffffffff] [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000080200000-0x00000000ffffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x00000000ffffffff] [ 0.000000] DMA32 zone: 512 pages in unavailable ranges [ 0.000000] SBI specification v0.2 detected [ 0.000000] SBI implementation ID=0x1 Version=0x9 [ 0.000000] SBI v0.2 TIME extension detected [ 0.000000] SBI v0.2 IPI extension detected [ 0.000000] SBI v0.2 RFENCE extension detected [ 0.000000] software IO TLB: mapped [mem 0x00000000f6400000-0x00000000fa400000] (64MB) [ 0.000000] SBI v0.2 HSM extension detected [ 0.000000] riscv: ISA extensions acdfimsu [ 0.000000] riscv: ELF capabilities acdfim [ 0.000000] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 515592 [ 0.000000] Kernel command line: root=LABEL=cloudimg-rootfs ro earlycon [ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear) [ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear) [ 0.000000] Sorting __ex_table... [ 0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off [ 0.000000] Memory: 1737932K/2095104K available (9846K kernel code, 5762K rwdata, 8192K rodata, 2519K init, 997K bss, 324404K reserved, 32768K cma-reserved) [ 0.000000] random: get_random_u64 called from kmem_cache_open+0x38/0x33a with crng_init=0 [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 38882 entries in 152 pages [ 0.000000] ftrace: allocated 152 pages with 3 groups [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4. [ 0.000000] Rude variant of Tasks RCU enabled. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] riscv-intc: 64 local interrupts mapped [ 0.000000] plic: plic@c000000: mapped 53 interrupts with 4 handlers for 8 contexts. [ 0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [2] [ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns [ 0.000060] sched_clock: 64 bits at 10MHz, resolution 100ns, wraps every 4398046511100ns [ 0.003331] Console: colour dummy device 80x25 [ 0.003652] printk: console [tty0] enabled [ 0.004058] printk: bootconsole [ns16550a0] disabled [ 0.006802] Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=40000) [ 0.006999] pid_max: default: 32768 minimum: 301 [ 0.007682] LSM: Security Framework initializing [ 0.008262] Yama: becoming mindful. [ 0.009946] AppArmor: AppArmor initialized [ 0.011366] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.011427] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.033411] rcu: Hierarchical SRCU implementation. [ 0.036145] EFI services will not be available. [ 0.038312] smp: Bringing up secondary CPUs ... [ 0.046120] smp: Brought up 1 node, 4 CPUs [ 0.054974] devtmpfs: initialized [ 0.060768] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.060936] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.063128] pinctrl core: initialized pinctrl subsystem [ 0.073740] NET: Registered protocol family 16 [ 0.075709] audit: initializing netlink subsys (disabled) [ 0.077238] audit: type=2000 audit(0.068:1): state=initialized audit_enabled=0 res=1 [ 0.079864] thermal_sys: Registered thermal governor 'fair_share' [ 0.079923] thermal_sys: Registered thermal governor 'bang_bang' [ 0.079964] thermal_sys: Registered thermal governor 'step_wise' [ 0.079984] thermal_sys: Registered thermal governor 'user_space' [ 0.102833] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages [ 0.102909] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.121401] fbcon: Taking over console [ 0.122495] iommu: Default domain type: Translated [ 0.125797] SCSI subsystem initialized [ 0.128632] vgaarb: loaded [ 0.129424] usbcore: registered new interface driver usbfs [ 0.129669] usbcore: registered new interface driver hub [ 0.129808] usbcore: registered new device driver usb [ 0.130429] pps_core: LinuxPPS API ver. 1 registered [ 0.130480] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti