$ 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 <giome...@linux.it> [ 0.130598] PTP clock support registered [ 0.131242] EDAC MC: Ver: 3.0.0 [ 0.137651] NetLabel: Initializing [ 0.137691] NetLabel: domain hash size = 128 [ 0.137713] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO [ 0.138599] NetLabel: unlabeled traffic allowed by default [ 0.140835] clocksource: Switched to clocksource riscv_clocksource [ 0.230246] VFS: Disk quotas dquot_6.6.0 [ 0.230437] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.233544] AppArmor: AppArmor Filesystem Enabled [ 0.251968] NET: Registered protocol family 2 [ 0.256973] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear) [ 0.257135] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 0.257401] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear) [ 0.257603] TCP: Hash tables configured (established 16384 bind 16384) [ 0.258771] MPTCP token hash table entries: 2048 (order: 3, 49152 bytes, linear) [ 0.259003] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 0.259201] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 0.261598] NET: Registered protocol family 1 [ 0.261830] NET: Registered protocol family 44 [ 0.261964] PCI: CLS 0 bytes, default 64 [ 0.264496] Trying to unpack rootfs image as initramfs... [ 6.250392] Freeing initrd memory: 177996K [ 6.252471] Initialise system trusted keyrings [ 6.253796] Key type blacklist registered [ 6.254510] workingset: timestamp_bits=46 max_order=19 bucket_order=0 [ 6.262508] zbud: loaded [ 6.265766] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 6.267422] fuse: init (API version 7.33) [ 6.270835] integrity: Platform Keyring initialized [ 6.289755] Key type asymmetric registered [ 6.289828] Asymmetric key parser 'x509' registered [ 6.290002] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244) [ 6.290736] io scheduler mq-deadline registered [ 6.294624] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 [ 6.296810] pci-host-generic 30000000.pci: host bridge /soc/pci@30000000 ranges: [ 6.297434] pci-host-generic 30000000.pci: IO 0x0003000000..0x000300ffff -> 0x0000000000 [ 6.297774] pci-host-generic 30000000.pci: MEM 0x0040000000..0x007fffffff -> 0x0040000000 [ 6.298728] pci-host-generic 30000000.pci: ECAM at [mem 0x30000000-0x3fffffff] for [bus 00-ff] [ 6.299537] pci-host-generic 30000000.pci: PCI host bridge to bus 0000:00 [ 6.299664] pci_bus 0000:00: root bus resource [bus 00-ff] [ 6.299724] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] [ 6.299780] pci_bus 0000:00: root bus resource [mem 0x40000000-0x7fffffff] [ 6.300593] pci 0000:00:00.0: [1b36:0008] type 00 class 0x060000 [ 6.302751] pci 0000:00:01.0: [1af4:1001] type 00 class 0x010000 [ 6.303403] pci 0000:00:01.0: reg 0x10: [io 0x1000-0x107f] [ 6.303859] pci 0000:00:01.0: reg 0x14: [mem 0x40000000-0x40000fff] [ 6.305149] pci 0000:00:01.0: reg 0x20: [mem 0x40004000-0x40007fff 64bit pref] [ 6.307415] pci 0000:00:01.0: BAR 4: assigned [mem 0x40000000-0x40003fff 64bit pref] [ 6.308005] pci 0000:00:01.0: BAR 1: assigned [mem 0x40004000-0x40004fff] [ 6.308240] pci 0000:00:01.0: BAR 0: assigned [io 0x0000-0x007f] [ 6.314877] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled [ 6.328859] 10000000.uart: ttyS0 at MMIO 0x10000000 (irq = 2, base_baud = 230400) is a 16550A [ 6.353372] printk: console [ttyS0] enabled [ 6.372921] loop: module loaded [ 6.376838] libphy: Fixed MDIO Bus: probed [ 6.377009] tun: Universal TUN/TAP device driver, 1.6 [ 6.377521] PPP generic driver version 2.4.2 [ 6.378184] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 6.378412] ehci-pci: EHCI PCI platform driver [ 6.378674] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 6.378870] ohci-pci: OHCI PCI platform driver [ 6.379103] uhci_hcd: USB Universal Host Controller Interface driver [ 6.380111] mousedev: PS/2 mouse device common for all mice [ 6.382419] goldfish_rtc 101000.rtc: registered as rtc0 [ 6.383090] goldfish_rtc 101000.rtc: setting system clock to 2021-07-20T10:35:26 UTC (1626777326) [ 6.383616] i2c /dev entries driver [ 6.385740] syscon-poweroff soc:poweroff: pm_power_off already claimed for default_power_off [ 6.386050] syscon-poweroff: probe of soc:poweroff failed with error -16 [ 6.386526] device-mapper: uevent: version 1.0.3 [ 6.387306] device-mapper: ioctl: 4.43.0-ioctl (2020-10-01) initialised: dm-de...@redhat.com [ 6.388159] EDAC DEVICE0: Giving out device to module Sifive ECC Manager controller sifive_edac.0: DEV sifive_edac.0 (INTERRUPT) [ 6.389334] ledtrig-cpu: registered to indicate activity on CPUs [ 6.390004] drop_monitor: Initializing network drop monitor service [ 6.391468] NET: Registered protocol family 10 [ 6.569456] Segment Routing with IPv6 [ 6.569945] NET: Registered protocol family 17 [ 6.570552] Key type dns_resolver registered [ 6.571066] registered taskstats version 1 [ 6.571370] Loading compiled-in X.509 certificates [ 6.578564] Loaded X.509 cert 'Build time autogenerated kernel key: af08d988fc8795004aae061b649dcceaded291a1' [ 6.580389] Loaded X.509 cert 'Canonical Ltd. Live Patch Signing: 14df34d1a87cf37625abec039ef2bf521249b969' [ 6.581970] Loaded X.509 cert 'Canonical Ltd. Kernel Module Signing: 88f752e560a1e0737e31163a466ad7b70a850c19' [ 6.583572] zswap: loaded using pool lzo/zbud [ 6.585467] Key type ._fscrypt registered [ 6.585631] Key type .fscrypt registered [ 6.585769] Key type fscrypt-provisioning registered [ 6.658127] Key type encrypted registered [ 6.658340] AppArmor: AppArmor sha1 policy hashing enabled [ 6.658778] ima: No TPM chip found, activating TPM-bypass! [ 6.658968] ima: Allocated hash algorithm: sha1 [ 6.660152] ima: No architecture policies found [ 6.660524] evm: Initialising EVM extended attributes: [ 6.660768] evm: security.selinux [ 6.660877] evm: security.SMACK64 [ 6.660971] evm: security.SMACK64EXEC [ 6.661066] evm: security.SMACK64TRANSMUTE [ 6.661175] evm: security.SMACK64MMAP [ 6.661276] evm: security.apparmor [ 6.661367] evm: security.ima [ 6.661447] evm: security.capability [ 6.661548] evm: HMAC attrs: 0x1 [ 6.700255] Freeing unused kernel memory: 2516K [ 6.722363] ------------[ cut here ]------------ [ 6.722517] riscv/mm: Found insecure W+X mapping at address (____ptrval____)/0xffffffdff8000000 [ 6.723114] WARNING: CPU: 0 PID: 1 at arch/riscv/mm/ptdump.c:231 note_page+0x254/0x25a [ 6.723383] Modules linked in: [ 6.723614] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.11.0-1007-generic #7-Ubuntu [ 6.724054] epc: ffffffe00000b680 ra : ffffffe00000b680 sp : ffffffe001fcbb20 [ 6.724287] gp : ffffffe001a13f60 tp : ffffffe001fc6780 t0 : ffffffe001f05000 [ 6.724473] t1 : ffffffe001f050a0 t2 : 0000000000000000 s0 : ffffffe001fcbb70 [ 6.724801] s1 : ffffffe001fcbde8 a0 : 0000000000000053 a1 : ffffffe001905a90 [ 6.725110] a2 : 0000000000000010 a3 : 0000000000000000 a4 : 4b09a3b1895d3600 [ 6.725305] a5 : 4b09a3b1895d3600 a6 : 0000000000000012 a7 : ffffffe000556c28 [ 6.725491] s2 : ffffffdff8001000 s3 : 0000000000000000 s4 : 0000000000000004 [ 6.725674] s5 : 0000000000000000 s6 : 0000000000000000 s7 : ffffffe001fcbd18 [ 6.725858] s8 : ffffffdff8001000 s9 : ffffffe001a17148 s10: ffffffdff8002000 [ 6.726035] s11: ffffffe000e18980 t3 : 0000000007200720 t4 : 0000000000000001 [ 6.726215] t5 : 0000000000000009 t6 : ffffffe001fcb838 [ 6.726361] status: 0000000000000120 badaddr: 0000000000000000 cause: 0000000000000003 [ 6.726576] ---[ end trace ca4f7fb9e6928855 ]--- [ 6.726991] Checked W+X mappings: failed, 1 W+X pages found [ 6.727287] Run /init as init process Loading, please wait... Starting version 247.3-3ubuntu3 [ 8.294845] virtio_blk virtio1: [vda] 7340032 512-byte logical blocks (3.76 GB/3.50 GiB) [ 8.338332] vda: vda1 vda12 vda13 vda14 vda15 Begin: Loading essential drivers ... [ 10.888668] raid6: int64x8 gen() 706 MB/s [ 10.956697] raid6: int64x8 xor() 593 MB/s [ 11.024741] raid6: int64x4 gen() 2012 MB/s [ 11.092674] raid6: int64x4 xor() 1190 MB/s [ 11.160673] raid6: int64x2 gen() 2493 MB/s [ 11.228668] raid6: int64x2 xor() 1460 MB/s [ 11.296666] raid6: int64x1 gen() 2070 MB/s [ 11.364759] raid6: int64x1 xor() 1234 MB/s [ 11.365090] raid6: using algorithm int64x2 gen() 2493 MB/s [ 11.365395] raid6: .... xor() 1460 MB/s, rmw enabled [ 11.365641] raid6: using intx1 recovery algorithm [ 11.372096] xor: measuring software checksum speed [ 11.375379] 8regs : 3496 MB/sec [ 11.378930] 8regs_prefetch : 3202 MB/sec [ 11.382530] 32regs : 3385 MB/sec [ 11.385695] 32regs_prefetch : 3331 MB/sec [ 11.385833] xor: using function: 8regs (3496 MB/sec) [ 11.390038] async_tx: api initialized (async) done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... [ 13.105884] Btrfs loaded, crc32c=crc32c-generic, zoned=yes Scanning for Btrfs filesystems [ 13.208331] random: fast init done done. Warning: fsck not present, so skipping root file system [ 13.572274] EXT4-fs (vda1): INFO: recovery required on readonly filesystem [ 13.572607] EXT4-fs (vda1): write access will be enabled during recovery [ 13.777975] EXT4-fs (vda1): recovery complete [ 13.781354] EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none. done. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... done. [ 16.902221] systemd[1]: Inserted module 'autofs4' [ 17.005485] systemd[1]: systemd 247.3-3ubuntu3 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid) [ 17.007170] systemd[1]: Detected architecture riscv64. Welcome to Ubuntu 21.04! [ 17.060619] systemd[1]: Set hostname to <ubuntu>. [ 19.758781] random: lvmconfig: uninitialized urandom read (4 bytes read) [ 21.949327] systemd[1]: /lib/systemd/system/plymouth-start.service:17: Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed. [ 22.221660] systemd[1]: Queued start job for default target Graphical Interface. [ 22.370164] systemd[1]: Created slice system-modprobe.slice. [ OK ] Created slice system-modprobe.slice. [ 22.380340] systemd[1]: Created slice system-serial\x2dgetty.slice. [ OK ] Created slice system-serial\x2dgetty.slice. [ 22.388705] systemd[1]: Created slice system-systemd\x2dfsck.slice. [ OK ] Created slice system-systemd\x2dfsck.slice. [ 22.398091] systemd[1]: Created slice User and Session Slice. [ OK ] Created slice User and Session Slice. [ 22.402099] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ OK ] Started Forward Password R…uests to Wall Directory Watch. [ 22.419843] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. [ OK ] Set up automount Arbitrary…s File System Automount Point. [ 22.422939] systemd[1]: Reached target User and Group Name Lookups. [ OK ] Reached target User and Group Name Lookups. [ 22.424975] systemd[1]: Reached target Slices. [ OK ] Reached target Slices. [ 22.426438] systemd[1]: Reached target Swap. [ OK ] Reached target Swap. [ 22.430536] systemd[1]: Listening on Device-mapper event daemon FIFOs. [ OK ] Listening on Device-mapper event daemon FIFOs. [ 22.434752] systemd[1]: Listening on LVM2 poll daemon socket. [ OK ] Listening on LVM2 poll daemon socket. [ 22.437456] systemd[1]: Listening on multipathd control socket. [ OK ] Listening on multipathd control socket. [ 22.441494] systemd[1]: Listening on Syslog Socket. [ OK ] Listening on Syslog Socket. [ 22.445556] systemd[1]: Listening on fsck to fsckd communication Socket. [ OK ] Listening on fsck to fsckd communication Socket. [ 22.448149] systemd[1]: Listening on initctl Compatibility Named Pipe. [ OK ] Listening on initctl Compatibility Named Pipe. [ 22.453947] systemd[1]: Listening on Journal Audit Socket. [ OK ] Listening on Journal Audit Socket. [ 22.457949] systemd[1]: Listening on Journal Socket (/dev/log). [ OK ] Listening on Journal Socket (/dev/log). [ 22.463037] systemd[1]: Listening on Journal Socket. [ OK ] Listening on Journal Socket. [ 22.466773] systemd[1]: Listening on Network Service Netlink Socket. [ OK ] Listening on Network Service Netlink Socket. [ 22.471007] systemd[1]: Listening on udev Control Socket. [ OK ] Listening on udev Control Socket. [ 22.474189] systemd[1]: Listening on udev Kernel Socket. [ OK ] Listening on udev Kernel Socket. [ 22.492115] systemd[1]: Mounting Huge Pages File System... Mounting Huge Pages File System... [ 22.509386] systemd[1]: Mounting POSIX Message Queue File System... Mounting POSIX Message Queue File System... [ 22.527626] systemd[1]: Mounting Kernel Debug File System... Mounting Kernel Debug File System... [ 22.558765] systemd[1]: Mounting Kernel Trace File System... Mounting Kernel Trace File System... [ 22.705142] systemd[1]: Starting Journal Service... Starting Journal Service... [ 22.856461] systemd[1]: Starting Set the console keyboard layout... Starting Set the console keyboard layout... [ 22.873692] systemd[1]: Starting Create list of static device nodes for the current kernel... Starting Create list of st…odes for the current kernel... [ 22.890477] systemd[1]: Starting Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling... Starting Monitoring of LVM…meventd or progress polling... [ 22.917222] systemd[1]: Starting Load Kernel Module configfs... Starting Load Kernel Module configfs... [ 22.938387] systemd[1]: Starting Load Kernel Module drm... Starting Load Kernel Module drm... [ 22.995486] systemd[1]: Starting Load Kernel Module fuse... Starting Load Kernel Module fuse... [ 23.026093] systemd[1]: Condition check resulted in OpenVSwitch configuration for cleanup being skipped. [ 23.039595] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped. [ 23.116138] systemd[1]: Starting File System Check on Root Device... Starting File System Check on Root Device... [ 23.301556] systemd[1]: Starting Load Kernel Modules... Starting Load Kernel Modules... [ 23.323087] random: lvm: uninitialized urandom read (4 bytes read) [ 23.345518] systemd[1]: Starting Coldplug All udev Devices... Starting Coldplug All udev Devices... [ 23.444044] systemd[1]: Starting Uncomplicated firewall... Starting Uncomplicated firewall... [ 24.134184] systemd[1]: Mounted Huge Pages File System. [ OK ] Mounted Huge Pages File System. [ 24.146067] systemd[1]: Mounted POSIX Message Queue File System. [ OK ] Mounted POSIX Message Queue File System. [ 24.151949] systemd[1]: Mounted Kernel Debug File System. [ OK ] Mounted Kernel Debug File System. [ 24.171621] systemd[1]: Mounted Kernel Trace File System. [ OK ] Mounted Kernel Trace File System. [ 24.370370] systemd[1]: Finished Create list of static device nodes for the current kernel. [ OK ] Finished Create list of st… nodes for the current kernel. [ 24.410540] systemd[1]: modprobe@configfs.service: Succeeded. [ 24.439524] systemd[1]: Finished Load Kernel Module configfs. [ OK ] Finished Load Kernel Module configfs. [ 24.462741] systemd[1]: modprobe@fuse.service: Succeeded. [ 24.491559] systemd[1]: Finished Load Kernel Module fuse. [ OK ] Finished Load Kernel Module fuse. [ 24.531243] systemd[1]: Finished Load Kernel Modules. [ OK ] Finished Load Kernel Modules. [ 24.580567] systemd[1]: Finished Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling. [ OK ] Finished Monitoring of LVM… dmeventd or progress polling. [ 24.655641] systemd[1]: Finished Uncomplicated firewall. [ OK ] Finished Uncomplicated firewall. [ 24.712293] systemd[1]: Mounting FUSE Control File System... Mounting FUSE Control File System... [ 24.762450] systemd[1]: Mounting Kernel Configuration File System... Mounting Kernel Configuration File System... [ 24.792502] systemd[1]: Started File System Check Daemon to report status. [ OK ] Started File System Check Daemon to report status. [ 24.864331] systemd[1]: Starting Apply Kernel Variables... Starting Apply Kernel Variables... [ 24.905648] systemd[1]: Started Journal Service. [ OK ] Started Journal Service. [ OK ] Finished Load Kernel Module drm. [ OK ] Finished File System Check on Root Device. [ OK ] Mounted FUSE Control File System. [ OK ] Mounted Kernel Configuration File System. [ OK ] Finished Apply Kernel Variables. Starting Remount Root and Kernel File Systems... .... So the 9.1 hirsute sru is incomplete / broken. Please remove u-boot hirsute-proposed 9.1 from hirsute-proposed as verification failed. ** Tags removed: verification-needed-hirsute ** Tags added: verification-failed-hirsute -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux-riscv in Ubuntu. https://bugs.launchpad.net/bugs/1923162 Title: riscv64 images fail to boot in qemu Status in linux-riscv package in Ubuntu: Invalid Status in u-boot package in Ubuntu: Fix Released Status in u-boot-menu package in Ubuntu: Fix Released Status in linux-riscv source package in Focal: Invalid Status in u-boot source package in Focal: Fix Committed Status in u-boot-menu source package in Focal: Fix Committed Status in linux-riscv source package in Hirsute: Invalid Status in u-boot source package in Hirsute: Fix Committed Status in u-boot-menu source package in Hirsute: Fix Released 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://lists.denx.de/pipermail/u-boot/2021-May/449176.html To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux-riscv/+bug/1923162/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp