Unable to boot preinstalled Ubuntu 23.10 server image

Hello forum,

I recently received a StarFive VisionFive 2 board. I was able to successfully flash U-Boot and the SPL firmware using the TFTP method as described in s 3.8.1 of the Quick Start Guide.

I am unable to boot off of the preinstalled Ubuntu 23.10 server image by following these instructions:

RISC-V/StarFive VisionFive 2 - Ubuntu Wiki

I decompressed and wrote the image to the microSD card using an image writer. I inserted the microSD card with the board powered off. There were no other storage devices connected. I set the boot mode to QSPI (both switches 0). I plugged in the USB power and see the firmware boot messages over the serial USB adapter.

However, the image does not boot. This is what I am seeing:

StarFive VisionFive 2 boot preinstalled Ubuntu image - Pastebin.com

I tried again, but this time with a brand new NVMe plugged into the M2 port. When I run nvme scan the firmware appears to crash:

StarFive VisionFive 2 boot with Ubuntu installer on microSD and NVMe connected - Pastebin.com

Any help appreciated.

Kip

1 Like

I wrote this tutorial (Install Ubuntu 23.10 for VF2 (NVMe SSD) step by step) to introduce the installation steps roughly, may it help you.

I remember it seems I didn’t ever test the preinstalled server image but live server image. :sweat_smile:

Thanks @larryw3i. Unfortunately when I get to step 4(1) and run bootefi $kernel_addr_r $fdt_addr_r I have a problem. The Ubuntu installer begins, but then hangs on a stalled CPU:

EFI stub: Booting Linux Kernel...
EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services...
clk u5_dw_i2c_clk_core already disabled
clk u5_dw_i2c_clk_apb already disabled
[    0.000000] Linux version 6.5.0-9-generic (buildd@riscv64-qemu-lgw01-068) (riscv64-linux-gnu-gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.41) #9.1-Ubuntu SMP Sat Oct  7 17:18:31 UTC 2023 (Ubuntu 6.5.0-9.9.1-generic 6.5.3)
[    0.000000] Machine model: StarFive VisionFive 2 v1.3B
[    0.000000] SBI specification v1.0 detected
[    0.000000] SBI implementation ID=0x1 Version=0x10002
[    0.000000] SBI TIME extension detected
[    0.000000] SBI IPI extension detected
[    0.000000] SBI RFENCE extension detected
[    0.000000] SBI SRST extension detected
[    0.000000] efi: Getting UEFI parameters from /chosen in DT:
[    0.000000] efi:   System Table         : 0x00000000f7f0cd10
[    0.000000] efi:   MemMap Address       : 0x00000000ea08d068
[    0.000000] efi:   MemMap Size          : 0x00000000000005c8
[    0.000000] efi:   MemMap Desc. Size    : 0x0000000000000028
[    0.000000] efi:   MemMap Desc. Version : 0x0000000000000001
[    0.000000] efi:   Secure Boot Enabled  : 0x00000002
[    0.000000] efi: EFI v2.8 by Das U-Boot
[    0.000000] efi: RTPROP=0xf66e4040 SMBIOS=0xf66e0000 INITRD=0xea090040 MEMRESERVE=0xea08f040 
[    0.000000] secureboot: Secure boot disabled
[    0.000000] efi: Processing EFI memory map:
[    0.000000] efi:   0x000040000000-0x0000401fffff [Reserved    |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x000040200000-0x00004256dfff [Loader Data |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x00004256e000-0x000047efffff [Conventional|   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x000047f00000-0x000047f09fff [ACPI Reclaim|   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x000047f0a000-0x0000e9a85fff [Conventional|   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000e9a86000-0x0000e9c86fff [Loader Data |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000e9c87000-0x0000e9d86fff [Loader Code |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000e9d87000-0x0000e9d87fff [Loader Data |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000e9d88000-0x0000e9e87fff [Loader Code |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000e9e88000-0x0000e9e88fff [Loader Data |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000e9e89000-0x0000e9f88fff [Loader Code |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000e9f89000-0x0000e9f89fff [Loader Data |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000e9f8a000-0x0000ea089fff [Loader Code |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000ea08a000-0x0000ea08cfff [Conventional|   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000ea08d000-0x0000ea08dfff [ACPI Reclaim|   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000ea08e000-0x0000efe57fff [Loader Data |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000efe58000-0x0000efe58fff [Boot Data   |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000efe59000-0x0000efe59fff [Loader Data |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000efe5a000-0x0000f21c7fff [Loader Code |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f21c8000-0x0000f442cfff [Loader Data |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f442d000-0x0000f642cfff [Loader Code |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f642d000-0x0000f642efff [Loader Data |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f642f000-0x0000f6431fff [Boot Data   |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f6432000-0x0000f6432fff [Loader Data |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f6433000-0x0000f6433fff [Boot Data   |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f6434000-0x0000f66dafff [Loader Code |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f66db000-0x0000f66dffff [Boot Data   |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f66e0000-0x0000f66e0fff [Runtime Data|RUN|  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f66e1000-0x0000f66e3fff [Boot Data   |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f66e4000-0x0000f66e6fff [Runtime Data|RUN|  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f66e7000-0x0000f66e7fff [Boot Data   |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f66e8000-0x0000f66ebfff [Runtime Data|RUN|  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f66ec000-0x0000f66fafff [Boot Data   |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f66fb000-0x0000f7f0bfff [Loader Data |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f7f0c000-0x0000f7f0cfff [Runtime Code|RUN|  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f7f0d000-0x0000ffffffff [Loader Data |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x000100000000-0x00013fffffff [Boot Data   |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] OF: reserved mem: 0x0000000040000000..0x00000000401fffff (2048 KiB) nomap non-reusable opensbi@40000000
[    0.000000] cma: Reserved 32 MiB at 0x00000000fe000000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000013fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x13fdce1c0-0x13fdcffff]
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040000000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000013fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x00000000401fffff]
[    0.000000]   node   0: [mem 0x0000000040200000-0x00000000f66dffff]
[    0.000000]   node   0: [mem 0x00000000f66e0000-0x00000000f66e0fff]
[    0.000000]   node   0: [mem 0x00000000f66e1000-0x00000000f66e3fff]
[    0.000000]   node   0: [mem 0x00000000f66e4000-0x00000000f66e6fff]
[    0.000000]   node   0: [mem 0x00000000f66e7000-0x00000000f66e7fff]
[    0.000000]   node   0: [mem 0x00000000f66e8000-0x00000000f66ebfff]
[    0.000000]   node   0: [mem 0x00000000f66ec000-0x00000000f7f0bfff]
[    0.000000]   node   0: [mem 0x00000000f7f0c000-0x00000000f7f0cfff]
[    0.000000]   node   0: [mem 0x00000000f7f0d000-0x000000013fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000013fffffff]
[    0.000000] SBI HSM extension detected
[    0.000000] CPU with hartid=0 is not available
[    0.000000] riscv: base ISA extensions acdfim
[    0.000000] riscv: ELF capabilities acdfim
[    0.000000] percpu: cpu 0 has no node -1 or node-local memory
[    0.000000] percpu: Embedded 30 pages/cpu s83368 r8192 d31320 u122880
[    0.000000] Kernel command line: BOOT_IMAGE=/casper/vmlinux fsck.mode=skip efi=debug sysctl.kernel.watchdog_thresh=60 ---
[    0.000000] Unknown kernel command line parameters "--- BOOT_IMAGE=/casper/vmlinux", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Fallback order for Node 0: 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1032192
[    0.000000] Policy zone: Normal
[    0.000000] mem auto-init: stack:all(zero), heap alloc:on, heap free:off
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: mapped [mem 0x00000000fa000000-0x00000000fe000000] (64MB)
[    0.000000] Memory: 3869244K/4194304K available (13238K kernel code, 5883K rwdata, 12288K rodata, 2705K init, 1063K bss, 292292K reserved, 32768K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 47733 entries in 187 pages
[    0.000000] ftrace: allocated 187 pages with 6 groups
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=32 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: unable to find hart id for /cpus/cpu@0/interrupt-controller
[    0.000000] riscv-intc: 64 local interrupts mapped
[    0.000000] plic: interrupt-controller@c000000: mapped 136 interrupts with 4 handlers for 9 contexts.
[    0.000000] riscv: providing IPIs using SBI IPI extension
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 881590404240 ns
[    0.000001] sched_clock: 64 bits at 4MHz, resolution 250ns, wraps every 2199023255500ns
[    0.000767] Console: colour dummy device 80x25
[    0.000779] printk: console [tty0] enabled
[    0.005039] Calibrating delay loop (skipped), value calculated using timer frequency.. 8.00 BogoMIPS (lpj=16000)
[    0.005075] pid_max: default: 32768 minimum: 301
[    0.010435] LSM: initializing lsm=lockdown,capability,landlock,yama,apparmor,integrity
[    0.010533] landlock: Up and running.
[    0.010549] Yama: becoming mindful.
[    0.010958] AppArmor: AppArmor initialized
[    0.012927] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.013021] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.018771] CPU node for /cpus/cpu@0 exist but the possible cpu range is :0-3
[    0.020286] RCU Tasks Rude: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[    0.020463] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[    0.020616] ASID allocator disabled (0 bits)
[    0.020799] rcu: Hierarchical SRCU implementation.
[    0.020817] rcu:     Max phase no-delay instances is 1000.
[    0.021830] Remapping and enabling EFI services.
[    0.022597] smp: Bringing up secondary CPUs ...
[    0.026213] smp: Brought up 1 node, 4 CPUs
[    0.028752] devtmpfs: initialized
[    0.038357] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.038465] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.040094] pinctrl core: initialized pinctrl subsystem
[    0.043328] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.045895] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.046390] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.046535] audit: initializing netlink subsys (disabled)
[    0.046870] audit: type=2000 audit(0.044:1): state=initialized audit_enabled=0 res=1
[    0.047787] thermal_sys: Registered thermal governor 'fair_share'
[    0.047796] thermal_sys: Registered thermal governor 'bang_bang'
[    0.047817] thermal_sys: Registered thermal governor 'step_wise'
[    0.047834] thermal_sys: Registered thermal governor 'user_space'
[    0.047850] thermal_sys: Registered thermal governor 'power_allocator'
[    0.047922] cpuidle: using governor ladder
[    0.047970] cpuidle: using governor menu
[    0.053431] platform soc: Fixed dependency cycle(s) with /soc/interrupt-controller@c000000
[    0.065712] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.065738] HugeTLB: 16380 KiB vmemmap can be freed for a 1.00 GiB page
[    0.065757] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.065774] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
[    0.082970] fbcon: Taking over console
[    0.083033] ACPI: Interpreter disabled.
[    0.083522] iommu: Default domain type: Translated
[    0.083543] iommu: DMA domain TLB invalidation policy: strict mode
[    0.085413] SCSI subsystem initialized
[    0.085858] usbcore: registered new interface driver usbfs
[    0.085909] usbcore: registered new interface driver hub
[    0.085957] usbcore: registered new device driver usb
[    0.086295] pps_core: LinuxPPS API ver. 1 registered
[    0.086314] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.086355] PTP clock support registered
[    0.086790] EDAC MC: Ver: 3.0.0
[    0.087484] efivars: Registered efivars operations
[    0.089218] NetLabel: Initializing
[    0.089239] NetLabel:  domain hash size = 128
[    0.089254] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.089355] NetLabel:  unlabeled traffic allowed by default
[    0.089762] mctp: management component transport protocol core
[    0.089784] NET: Registered PF_MCTP protocol family
[    0.090018] vgaarb: loaded
[    0.096583] clocksource: Switched to clocksource riscv_clocksource
[    0.193264] VFS: Disk quotas dquot_6.6.0
[    0.193594] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.195039] AppArmor: AppArmor Filesystem Enabled
[    0.195147] pnp: PnP ACPI: disabled
[    0.210510] NET: Registered PF_INET protocol family
[    0.211197] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.220493] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.220818] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.221144] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.222420] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.223507] TCP: Hash tables configured (established 32768 bind 32768)
[    0.224671] MPTCP token hash table entries: 4096 (order: 4, 98304 bytes, linear)
[    0.225095] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.225283] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.226316] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.226379] NET: Registered PF_XDP protocol family
[    0.226409] PCI: CLS 0 bytes, default 64
[    0.226879] Trying to unpack rootfs image as initramfs...
[    0.228209] Initialise system trusted keyrings
[    0.228316] Key type blacklist registered
[    0.228875] workingset: timestamp_bits=44 max_order=20 bucket_order=0
[    0.228974] zbud: loaded
[    0.246490] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.252857] fuse: init (API version 7.38)
[    0.254642] integrity: Platform Keyring initialized
[    0.254714] integrity: Machine keyring initialized
[    0.336326] Key type asymmetric registered
[    0.336369] Asymmetric key parser 'x509' registered
[    0.336625] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    0.337063] io scheduler mq-deadline registered
[    0.340280] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[    0.349615] CCACHE: DataError @ 0x00000000.08040140
[    0.349744] CCACHE: DataFail @ 0x00000000.08040270
[    0.349952] CCACHE: 8 banks, 16 ways, sets/bank=256, bytes/block=64
[    0.349987] CCACHE: Index of the largest way enabled: 15
[    0.352040] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[    0.375903] SuperH (H)SCI(F) driver initialized
[    0.393979] loop: module loaded
[    0.397669] tun: Universal TUN/TAP device driver, 1.6
[    0.398128] PPP generic driver version 2.4.2
[    0.399699] mousedev: PS/2 mouse device common for all mice
[    0.400481] i2c_dev: i2c /dev entries driver
[    0.402756] device-mapper: core: CONFIG_IMA_DISABLE_HTABLE is disabled. Duplicate IMA measurements will not be recorded in the IMA log.
[    0.403067] device-mapper: uevent: version 1.0.3
[    0.403665] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
[    0.404056] EDAC DEVICE0: Giving out device to module Sifive ECC Manager controller sifive_edac.0: DEV sifive_edac.0 (INTERRUPT)
[    0.405324] ledtrig-cpu: registered to indicate activity on CPUs
[    0.405949] riscv-pmu-sbi: SBI PMU extension is available
[    0.406042] riscv-pmu-sbi: 16 firmware and 4 hardware counters
[    0.406069] riscv-pmu-sbi: Perf sampling/filtering is not supported as sscof extension is not available
[    0.406873] drop_monitor: Initializing network drop monitor service
[    0.507417] NET: Registered PF_INET6 protocol family
[    2.856417] Freeing initrd memory: 96024K
[    2.906392] Segment Routing with IPv6
[    2.906539] In-situ OAM (IOAM) with IPv6
[    2.906778] NET: Registered PF_PACKET protocol family
[    2.907182] Key type dns_resolver registered
[    2.921790] registered taskstats version 1
[    2.923092] Loading compiled-in X.509 certificates
[    2.927745] Loaded X.509 cert 'Build time autogenerated kernel key: 690ee1b8da08b728b0623d9d477354baa5ebf7eb'
[    2.932124] Loaded X.509 cert 'Canonical Ltd. Live Patch Signing: 14df34d1a87cf37625abec039ef2bf521249b969'
[    2.936407] Loaded X.509 cert 'Canonical Ltd. Kernel Module Signing: 88f752e560a1e0737e31163a466ad7b70a850c19'
[    2.936451] blacklist: Loading compiled-in revocation X.509 certificates
[    2.936646] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing: 61482aa2830d0ab2ad5af10b7250da9033ddcef0'
[    2.936847] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2017): 242ade75ac4a15e50d50c84b0d45ff3eae707a03'
[    2.937100] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (ESM 2018): 365188c1d374d6b07c3c8f240f8ef722433d6a8b'
[    2.937281] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2019): c0746fd6c5da3ae827864651ad66ae47fe24b3e8'
[    2.937514] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2021 v1): a8d54bbb3825cfb94fa13c9f8a594a195c107b8d'
[    2.937705] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2021 v2): 4cf046892d6fd3c9a5b03f98d845f90851dc6a8c'
[    2.937910] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2021 v3): 100437bb6de6e469b581e61cd66bce3ef4ed53af'
[    2.938099] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (Ubuntu Core 2019): c1d57b8f6b743f23ee41f4f7ee292f06eecadfb9'
[    2.957095] Key type .fscrypt registered
[    2.957128] Key type fscrypt-provisioning registered
[    2.978897] Key type encrypted registered
[    2.978947] AppArmor: AppArmor sha1 policy hashing enabled
[    2.979153] ima: No TPM chip found, activating TPM-bypass!
[    2.979212] Loading compiled-in module X.509 certificates
[    2.983546] Loaded X.509 cert 'Build time autogenerated kernel key: 690ee1b8da08b728b0623d9d477354baa5ebf7eb'
[    2.983590] ima: Allocated hash algorithm: sha1
[    2.983644] ima: No architecture policies found
[    2.983757] evm: Initialising EVM extended attributes:
[    2.983780] evm: security.selinux
[    2.983799] evm: security.SMACK64
[    2.983818] evm: security.SMACK64EXEC
[    2.983837] evm: security.SMACK64TRANSMUTE
[    2.983856] evm: security.SMACK64MMAP
[    2.983875] evm: security.apparmor
[    2.983894] evm: security.ima
[    2.983912] evm: security.capability
[    2.983931] evm: HMAC attrs: 0x1
[    3.022502] pl08xdmac 16008000.dma-controller: initialized 8 virtual memcpy channels
[    3.022603] pl08xdmac 16008000.dma-controller: initialized 16 virtual slave channels
[    3.025631] debugfs: Directory '16008000.dma-controller' with parent 'dmaengine' already present!
[    3.025690] pl08xdmac 16008000.dma-controller: DMA: PL080 rev0 at 0x16008000 irq 17
[    3.026562] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    3.027079] starfive-jh7110-sys-pinctrl 13040000.pinctrl: StarFive GPIO chip registered 64 GPIOs
[    3.029298] pcie-starfive 940000000.pcie: host bridge /soc/pcie@940000000 ranges:
[    3.029377] pcie-starfive 940000000.pcie:      MEM 0x0030000000..0x0037ffffff -> 0x0030000000
[    3.029429] pcie-starfive 940000000.pcie:      MEM 0x0900000000..0x093fffffff -> 0x0900000000
[    3.244618] pcie-starfive 940000000.pcie: port link up
[    3.246805] pcie-starfive 940000000.pcie: PCI host bridge to bus 0000:00
[    3.246840] pci_bus 0000:00: root bus resource [bus 00-ff]
[    3.246869] pci_bus 0000:00: root bus resource [mem 0x30000000-0x37ffffff]
[    3.246899] pci_bus 0000:00: root bus resource [mem 0x900000000-0x93fffffff pref]
[    3.246969] pci 0000:00:00.0: [1556:1111] type 01 class 0x060400
[    3.247077] pci 0000:00:00.0: supports D1 D2
[    3.247102] pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    3.249459] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.249728] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    3.249781] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    3.249909] pci 0000:01:00.0: PME# supported from D0 D3cold
[    3.250335] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    3.250389] pci 0000:00:00.0: BAR 14: assigned [mem 0x30000000-0x300fffff]
[    3.250427] pci 0000:01:00.0: BAR 0: assigned [mem 0x30000000-0x30000fff 64bit]
[    3.250474] pci 0000:00:00.0: PCI bridge to [bus 01]
[    3.250503] pci 0000:00:00.0:   bridge window [mem 0x30000000-0x300fffff]
[    3.250688] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    3.251058] pcieport 0000:00:00.0: PME: Signaling with IRQ 34
[    3.251531] pcieport 0000:00:00.0: AER: enabled with IRQ 34
[    3.251804] pci 0000:01:00.0: enabling device (0000 -> 0002)
[    3.252684] pcie-starfive 9c0000000.pcie: host bridge /soc/pcie@9c0000000 ranges:
[    3.252796] pcie-starfive 9c0000000.pcie:      MEM 0x0038000000..0x003fffffff -> 0x0038000000
[    3.252849] pcie-starfive 9c0000000.pcie:      MEM 0x0980000000..0x09bfffffff -> 0x0980000000
[    3.468618] pcie-starfive 9c0000000.pcie: port link up
[    3.470563] pcie-starfive 9c0000000.pcie: PCI host bridge to bus 0001:00
[    3.470596] pci_bus 0001:00: root bus resource [bus 00-ff]
[    3.470624] pci_bus 0001:00: root bus resource [mem 0x38000000-0x3fffffff]
[    3.470654] pci_bus 0001:00: root bus resource [mem 0x980000000-0x9bfffffff pref]
[    3.470716] pci 0001:00:00.0: [1556:1111] type 01 class 0x060400
[    3.470816] pci 0001:00:00.0: supports D1 D2
[    3.470841] pci 0001:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    3.473127] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.524061] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01
[    3.524106] pci 0001:00:00.0: PCI bridge to [bus 01]
[    3.524615] pcieport 0001:00:00.0: PME: Signaling with IRQ 50
[    3.525119] pcieport 0001:00:00.0: AER: enabled with IRQ 50
[    3.547108] 10000000.serial: ttyS0 at MMIO 0x10000000 (irq = 51, base_baud = 1500000) is a 16550A
[    3.547195] printk: console [ttyS0] enabled
[   24.024575] watchdog: Watchdog detected hard LOCKUP on cpu 0
[   24.030256] Modules linked in:
[   65.588579] rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
[   65.594517] rcu:     0-...0: (1 GPs behind) idle=7da4/1/0x4000000000000002 softirq=124/124 fqs=7501
[   65.603327] rcu:              hardirqs   softirqs   csw/system
[   65.608910] rcu:      number: 10732382          0            0
[   65.614497] rcu:     cputime:        0          0            0   ==> 30016(ms)
[   65.621472] rcu:     (detected by 3, t=15005 jiffies, g=-531, q=7 ncpus=4)
[   65.628102] Task dump for CPU 0:
[   65.631343] task:swapper/0       state:R  running task     stack:0     pid:0     ppid:0      flags:0x00000008
[   65.641288] Call Trace:
[   65.643750] [<ffffffff80ce749c>] __schedule+0x27a/0x82e
1 Like

@kip Friend, have you updated the firmware?

Hey @larryw3i. Yes, as I mentioned in the OP I was able to successfully flash U-Boot and the SPL firmware using the TFTP method as described in s 3.8.1 of the Quick Start Guide.

:sweat_smile: You’re using the firmware StarFive provided maybe, it doesn’t work for Ubuntu.

1 Like

@kip How is it going?

Hey @larryw3i. Let me give it a try again, but this time with the U-Boot and SPL firmware from the PPA.

1 Like

I updated the firmware based on your TFTP method and using the contents of the package on the PPA.

With the microSD card flashed with the Ubuntu Mantic live image and a brand new NVMe drive connected on the M2 port, I ran the following from the U-Boot as described in your instructions:

# load mmc 1:1 $fdt_addr_r dtb/starfive/jh7110-starfive-visionfive-2-v1.3b.dtb
# load mmc 1:1 $kernel_addr_r EFI/boot/bootriscv64.efi
# bootefi $kernel_addr_r $fdt_addr_r

The kernel began to load, but the same problem with a stalled CPU occurs:

EFI stub: Booting Linux Kernel...
EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services...
[    0.000000] Linux version 6.5.0-9-generic (buildd@riscv64-qemu-lgw01-068) (riscv64-linux-gnu-gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.41) #9.1-Ubuntu SMP Sat Oct  7 17:18:31 UTC 2023 (Ubuntu 6.5.0-9.9.1-generic 6.5.3)
[    0.000000] Machine model: StarFive VisionFive 2 v1.3B
[    0.000000] SBI specification v2.0 detected
[    0.000000] SBI implementation ID=0x1 Version=0x10003
[    0.000000] SBI TIME extension detected
[    0.000000] SBI IPI extension detected
[    0.000000] SBI RFENCE extension detected
[    0.000000] efi: Getting UEFI parameters from /chosen in DT:
[    0.000000] efi:   System Table         : 0x00000000fff42d40
[    0.000000] efi:   MemMap Address       : 0x00000000f2091068
[    0.000000] efi:   MemMap Size          : 0x00000000000005c8
[    0.000000] efi:   MemMap Desc. Size    : 0x0000000000000028
[    0.000000] efi:   MemMap Desc. Version : 0x0000000000000001
[    0.000000] efi:   Secure Boot Enabled  : 0x00000002
[    0.000000] efi: EFI v2.10 by Das U-Boot
[    0.000000] efi: RTPROP=0xfe6f1040 SMBIOS=0xfe725000 INITRD=0xf2095040 RNG=0xf2094040 MEMRESERVE=0xf2093040 
[    0.000000] random: crng init done
[    0.000000] secureboot: Secure boot disabled
[    0.000000] efi: Processing EFI memory map:
[    0.000000] efi:   0x000040000000-0x0000401fffff [Reserved    |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x000040200000-0x00004256dfff [Loader Data |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x00004256e000-0x0000f1a8afff [Conventional|   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f1a8b000-0x0000f1c8bfff [Loader Data |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f1c8c000-0x0000f1d8bfff [Loader Code |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f1d8c000-0x0000f1d8cfff [Loader Data |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f1d8d000-0x0000f1e8cfff [Loader Code |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f1e8d000-0x0000f1e8dfff [Loader Data |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f1e8e000-0x0000f1f8dfff [Loader Code |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f1f8e000-0x0000f1f8efff [Loader Data |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f1f8f000-0x0000f208efff [Loader Code |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f208f000-0x0000f2090fff [Conventional|   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f2091000-0x0000f2091fff [ACPI Reclaim|   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f2092000-0x0000f2093fff [Loader Data |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f2094000-0x0000f2094fff [ACPI Reclaim|   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f2095000-0x0000f7e5cfff [Loader Data |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f7e5d000-0x0000f7e5dfff [Boot Data   |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000f7e5e000-0x0000fa1cbfff [Loader Code |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000fa1cc000-0x0000fc430fff [Loader Data |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000fc431000-0x0000fe430fff [Loader Code |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000fe431000-0x0000fe433fff [Loader Data |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000fe434000-0x0000fe436fff [Boot Data   |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000fe437000-0x0000fe437fff [Loader Data |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000fe438000-0x0000fe6defff [Loader Code |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000fe6df000-0x0000fe6e2fff [Boot Data   |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000fe6e3000-0x0000fe6ecfff [ACPI Reclaim|   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000fe6ed000-0x0000fe6f0fff [Boot Data   |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000fe6f1000-0x0000fe6f1fff [Runtime Data|RUN|  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000fe6f2000-0x0000fe6f2fff [Boot Data   |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000fe6f3000-0x0000fe714fff [Runtime Data|RUN|  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000fe715000-0x0000fe724fff [Boot Data   |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000fe725000-0x0000fe725fff [Runtime Data|RUN|  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000fe726000-0x0000fe728fff [Boot Data   |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000fe729000-0x0000fff41fff [Boot Code   |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000fff42000-0x0000fff42fff [Runtime Code|RUN|  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x0000fff43000-0x0000ffffffff [Boot Code   |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] efi:   0x000100000000-0x00013fffffff [Boot Data   |   |  |  |  |  |  |  |  |  |   |WB|  |  |  ]
[    0.000000] OF: reserved mem: OVERLAP DETECTED!
[    0.000000] mmode_resv1@40000000 (0x0000000040000000--0x0000000040040000) overlaps with opensbi@40000000 (0x0000000040000000--0x0000000040200000)
[    0.000000] OF: reserved mem: OVERLAP DETECTED!
[    0.000000] opensbi@40000000 (0x0000000040000000--0x0000000040200000) overlaps with mmode_resv0@40040000 (0x0000000040040000--0x0000000040060000)
[    0.000000] OF: reserved mem: 0x0000000040000000..0x000000004003ffff (256 KiB) nomap non-reusable mmode_resv1@40000000
[    0.000000] OF: reserved mem: 0x0000000040000000..0x00000000401fffff (2048 KiB) nomap non-reusable opensbi@40000000
[    0.000000] OF: reserved mem: 0x0000000040040000..0x000000004005ffff (128 KiB) nomap non-reusable mmode_resv0@40040000
[    0.000000] cma: Reserved 32 MiB at 0x00000000fc600000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000013fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x13fdce1c0-0x13fdcffff]
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040000000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000013fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x00000000401fffff]
[    0.000000]   node   0: [mem 0x0000000040200000-0x00000000fe6f0fff]
[    0.000000]   node   0: [mem 0x00000000fe6f1000-0x00000000fe6f1fff]
[    0.000000]   node   0: [mem 0x00000000fe6f2000-0x00000000fe6f2fff]
[    0.000000]   node   0: [mem 0x00000000fe6f3000-0x00000000fe714fff]
[    0.000000]   node   0: [mem 0x00000000fe715000-0x00000000fe724fff]
[    0.000000]   node   0: [mem 0x00000000fe725000-0x00000000fe725fff]
[    0.000000]   node   0: [mem 0x00000000fe726000-0x00000000fff41fff]
[    0.000000]   node   0: [mem 0x00000000fff42000-0x00000000fff42fff]
[    0.000000]   node   0: [mem 0x00000000fff43000-0x000000013fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000013fffffff]
[    0.000000] SBI HSM extension detected
[    0.000000] CPU with hartid=0 is not available
[    0.000000] riscv: base ISA extensions acdfim
[    0.000000] riscv: ELF capabilities acdfim
[    0.000000] percpu: cpu 0 has no node -1 or node-local memory
[    0.000000] percpu: Embedded 30 pages/cpu s83368 r8192 d31320 u122880
[    0.000000] Kernel command line: BOOT_IMAGE=/casper/vmlinux fsck.mode=skip efi=debug sysctl.kernel.watchdog_thresh=60 ---
[    0.000000] Unknown kernel command line parameters "--- BOOT_IMAGE=/casper/vmlinux", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Fallback order for Node 0: 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1032192
[    0.000000] Policy zone: Normal
[    0.000000] mem auto-init: stack:all(zero), heap alloc:on, heap free:off
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: mapped [mem 0x00000000f8600000-0x00000000fc600000] (64MB)
[    0.000000] Memory: 3869128K/4194304K available (13238K kernel code, 5883K rwdata, 12288K rodata, 2705K init, 1063K bss, 292408K reserved, 32768K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 47733 entries in 187 pages
[    0.000000] ftrace: allocated 187 pages with 6 groups
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=32 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: unable to find hart id for /cpus/cpu@0/interrupt-controller
[    0.000000] riscv-intc: 64 local interrupts mapped
[    0.000000] plic: interrupt-controller@c000000: mapped 136 interrupts with 4 handlers for 9 contexts.
[    0.000000] riscv: providing IPIs using SBI IPI extension
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 881590404240 ns
[    0.000001] sched_clock: 64 bits at 4MHz, resolution 250ns, wraps every 2199023255500ns
[    0.000445] Console: colour dummy device 80x25
[    0.000457] printk: console [tty0] enabled
[    0.002129] Calibrating delay loop (skipped), value calculated using timer frequency.. 8.00 BogoMIPS (lpj=16000)
[    0.002165] pid_max: default: 32768 minimum: 301
[    0.002417] LSM: initializing lsm=lockdown,capability,landlock,yama,apparmor,integrity
[    0.002499] landlock: Up and running.
[    0.002514] Yama: becoming mindful.
[    0.002680] AppArmor: AppArmor initialized
[    0.002937] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.003034] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.004737] CPU node for /cpus/cpu@0 exist but the possible cpu range is :0-3
[    0.006075] RCU Tasks Rude: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[    0.006238] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[    0.006375] ASID allocator disabled (0 bits)
[    0.006549] rcu: Hierarchical SRCU implementation.
[    0.006567] rcu:     Max phase no-delay instances is 1000.
[    0.007462] Remapping and enabling EFI services.
[    0.008179] smp: Bringing up secondary CPUs ...
[    0.011416] smp: Brought up 1 node, 4 CPUs
[    0.013348] devtmpfs: initialized
[    0.021408] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.021523] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.022953] pinctrl core: initialized pinctrl subsystem
[    0.024579] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.027385] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.028041] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.028200] audit: initializing netlink subsys (disabled)
[    0.028504] audit: type=2000 audit(0.028:1): state=initialized audit_enabled=0 res=1
[    0.029277] thermal_sys: Registered thermal governor 'fair_share'
[    0.029286] thermal_sys: Registered thermal governor 'bang_bang'
[    0.029308] thermal_sys: Registered thermal governor 'step_wise'
[    0.029324] thermal_sys: Registered thermal governor 'user_space'
[    0.029340] thermal_sys: Registered thermal governor 'power_allocator'
[    0.029406] cpuidle: using governor ladder
[    0.029454] cpuidle: using governor menu
[    0.034071] platform soc: Fixed dependency cycle(s) with /soc/interrupt-controller@c000000
[    0.044748] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.044776] HugeTLB: 16380 KiB vmemmap can be freed for a 1.00 GiB page
[    0.044795] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.044812] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
[    0.059183] fbcon: Taking over console
[    0.059220] ACPI: Interpreter disabled.
[    0.059700] iommu: Default domain type: Translated
[    0.059720] iommu: DMA domain TLB invalidation policy: strict mode
[    0.060970] SCSI subsystem initialized
[    0.061406] usbcore: registered new interface driver usbfs
[    0.061456] usbcore: registered new interface driver hub
[    0.061506] usbcore: registered new device driver usb
[    0.061804] pps_core: LinuxPPS API ver. 1 registered
[    0.061823] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.061859] PTP clock support registered
[    0.062249] EDAC MC: Ver: 3.0.0
[    0.062899] efivars: Registered efivars operations
[    0.064459] NetLabel: Initializing
[    0.064479] NetLabel:  domain hash size = 128
[    0.064494] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.064595] NetLabel:  unlabeled traffic allowed by default
[    0.064908] mctp: management component transport protocol core
[    0.064928] NET: Registered PF_MCTP protocol family
[    0.065103] vgaarb: loaded
[    0.075766] clocksource: Switched to clocksource riscv_clocksource
[    0.151586] VFS: Disk quotas dquot_6.6.0
[    0.151698] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.152722] AppArmor: AppArmor Filesystem Enabled
[    0.152833] pnp: PnP ACPI: disabled
[    0.164816] NET: Registered PF_INET protocol family
[    0.165526] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.172176] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.172476] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.172901] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.174461] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.175548] TCP: Hash tables configured (established 32768 bind 32768)
[    0.176206] MPTCP token hash table entries: 4096 (order: 4, 98304 bytes, linear)
[    0.176436] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.176628] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.176982] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.177092] NET: Registered PF_XDP protocol family
[    0.177136] PCI: CLS 0 bytes, default 64
[    0.177509] Trying to unpack rootfs image as initramfs...
[    0.178729] Initialise system trusted keyrings
[    0.178786] Key type blacklist registered
[    0.179173] workingset: timestamp_bits=44 max_order=20 bucket_order=0
[    0.179274] zbud: loaded
[    0.181212] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.181986] fuse: init (API version 7.38)
[    0.182660] integrity: Platform Keyring initialized
[    0.182691] integrity: Machine keyring initialized
[    0.264475] Key type asymmetric registered
[    0.264514] Asymmetric key parser 'x509' registered
[    0.264664] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    0.265053] io scheduler mq-deadline registered
[    0.267983] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[    0.277071] CCACHE: 8 banks, 16 ways, sets/bank=256, bytes/block=64
[    0.277133] CCACHE: Index of the largest way enabled: 15
[    0.280076] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[    0.310825] SuperH (H)SCI(F) driver initialized
[    0.332041] loop: module loaded
[    0.336433] tun: Universal TUN/TAP device driver, 1.6
[    0.336938] PPP generic driver version 2.4.2
[    0.339164] mousedev: PS/2 mouse device common for all mice
[    0.340192] i2c_dev: i2c /dev entries driver
[    0.343236] device-mapper: core: CONFIG_IMA_DISABLE_HTABLE is disabled. Duplicate IMA measurements will not be recorded in the IMA log.
[    0.343396] device-mapper: uevent: version 1.0.3
[    0.343986] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
[    0.344502] EDAC DEVICE0: Giving out device to module Sifive ECC Manager controller sifive_edac.0: DEV sifive_edac.0 (INTERRUPT)
[    0.346064] ledtrig-cpu: registered to indicate activity on CPUs
[    0.346748] riscv-pmu-sbi: SBI PMU extension is available
[    0.346831] riscv-pmu-sbi: 16 firmware and 4 hardware counters
[    0.346869] riscv-pmu-sbi: Perf sampling/filtering is not supported as sscof extension is not available
[    0.348151] drop_monitor: Initializing network drop monitor service
[    0.493309] NET: Registered PF_INET6 protocol family
[    3.873741] Freeing initrd memory: 96024K
[    3.946788] Segment Routing with IPv6
[    3.946933] In-situ OAM (IOAM) with IPv6
[    3.947125] NET: Registered PF_PACKET protocol family
[    3.947548] Key type dns_resolver registered
[    3.968136] registered taskstats version 1
[    3.970018] Loading compiled-in X.509 certificates
[    3.977012] Loaded X.509 cert 'Build time autogenerated kernel key: 690ee1b8da08b728b0623d9d477354baa5ebf7eb'
[    3.983345] Loaded X.509 cert 'Canonical Ltd. Live Patch Signing: 14df34d1a87cf37625abec039ef2bf521249b969'
[    3.989690] Loaded X.509 cert 'Canonical Ltd. Kernel Module Signing: 88f752e560a1e0737e31163a466ad7b70a850c19'
[    3.989745] blacklist: Loading compiled-in revocation X.509 certificates
[    3.989975] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing: 61482aa2830d0ab2ad5af10b7250da9033ddcef0'
[    3.990217] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2017): 242ade75ac4a15e50d50c84b0d45ff3eae707a03'
[    3.990467] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (ESM 2018): 365188c1d374d6b07c3c8f240f8ef722433d6a8b'
[    3.990797] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2019): c0746fd6c5da3ae827864651ad66ae47fe24b3e8'
[    3.991056] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2021 v1): a8d54bbb3825cfb94fa13c9f8a594a195c107b8d'
[    3.991306] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2021 v2): 4cf046892d6fd3c9a5b03f98d845f90851dc6a8c'
[    3.991579] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2021 v3): 100437bb6de6e469b581e61cd66bce3ef4ed53af'
[    3.991876] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (Ubuntu Core 2019): c1d57b8f6b743f23ee41f4f7ee292f06eecadfb9'
[    4.015398] Key type .fscrypt registered
[    4.015442] Key type fscrypt-provisioning registered
[    4.046607] Key type encrypted registered
[    4.046693] AppArmor: AppArmor sha1 policy hashing enabled
[    4.047066] ima: No TPM chip found, activating TPM-bypass!
[    4.047125] Loading compiled-in module X.509 certificates
[    4.053494] Loaded X.509 cert 'Build time autogenerated kernel key: 690ee1b8da08b728b0623d9d477354baa5ebf7eb'
[    4.053557] ima: Allocated hash algorithm: sha1
[    4.053633] ima: No architecture policies found
[    4.053785] evm: Initialising EVM extended attributes:
[    4.053818] evm: security.selinux
[    4.053846] evm: security.SMACK64
[    4.053873] evm: security.SMACK64EXEC
[    4.053901] evm: security.SMACK64TRANSMUTE
[    4.053929] evm: security.SMACK64MMAP
[    4.053956] evm: security.apparmor
[    4.053984] evm: security.ima
[    4.054010] evm: security.capability
[    4.054037] evm: HMAC attrs: 0x1
[    4.100226] pl08xdmac 16008000.dma-controller: initialized 8 virtual memcpy channels
[    4.100345] pl08xdmac 16008000.dma-controller: initialized 16 virtual slave channels
[    4.104286] debugfs: Directory '16008000.dma-controller' with parent 'dmaengine' already present!
[    4.104372] pl08xdmac 16008000.dma-controller: DMA: PL080 rev0 at 0x16008000 irq 17
[    4.105476] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    4.106198] starfive-jh7110-sys-pinctrl 13040000.pinctrl: StarFive GPIO chip registered 64 GPIOs
[    4.109174] pcie-starfive 940000000.pcie: host bridge /soc/pcie@940000000 ranges:
[    4.109292] pcie-starfive 940000000.pcie:      MEM 0x0030000000..0x0037ffffff -> 0x0030000000
[    4.109370] pcie-starfive 940000000.pcie:      MEM 0x0900000000..0x093fffffff -> 0x0900000000
[    4.323827] pcie-starfive 940000000.pcie: port link up
[    4.326525] pcie-starfive 940000000.pcie: PCI host bridge to bus 0000:00
[    4.326579] pci_bus 0000:00: root bus resource [bus 00-ff]
[    4.326622] pci_bus 0000:00: root bus resource [mem 0x30000000-0x37ffffff]
[    4.326666] pci_bus 0000:00: root bus resource [mem 0x900000000-0x93fffffff pref]
[    4.326764] pci 0000:00:00.0: [1556:1111] type 01 class 0x060400
[    4.326916] pci 0000:00:00.0: supports D1 D2
[    4.326954] pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    4.330661] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    4.330736] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    4.330899] pci 0000:01:00.0: PME# supported from D0 D3cold
[    4.331483] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    4.331562] pci 0000:00:00.0: BAR 14: assigned [mem 0x30000000-0x300fffff]
[    4.331617] pci 0000:01:00.0: BAR 0: assigned [mem 0x30000000-0x30000fff 64bit]
[    4.331683] pci 0000:00:00.0: PCI bridge to [bus 01]
[    4.331725] pci 0000:00:00.0:   bridge window [mem 0x30000000-0x300fffff]
[    4.332499] pcieport 0000:00:00.0: PME: Signaling with IRQ 34
[    4.333248] pcieport 0000:00:00.0: AER: enabled with IRQ 34
[    4.333593] pci 0000:01:00.0: enabling device (0000 -> 0002)
[    4.334735] pcie-starfive 9c0000000.pcie: host bridge /soc/pcie@9c0000000 ranges:
[    4.334851] pcie-starfive 9c0000000.pcie:      MEM 0x0038000000..0x003fffffff -> 0x0038000000
[    4.334928] pcie-starfive 9c0000000.pcie:      MEM 0x0980000000..0x09bfffffff -> 0x0980000000
[    4.547826] pcie-starfive 9c0000000.pcie: port link up
[    4.550273] pcie-starfive 9c0000000.pcie: PCI host bridge to bus 0001:00
[    4.550323] pci_bus 0001:00: root bus resource [bus 00-ff]
[    4.550364] pci_bus 0001:00: root bus resource [mem 0x38000000-0x3fffffff]
[    4.550408] pci_bus 0001:00: root bus resource [mem 0x980000000-0x9bfffffff pref]
[    4.550499] pci 0001:00:00.0: [1556:1111] type 01 class 0x060400
[    4.550643] pci 0001:00:00.0: supports D1 D2
[    4.550679] pci 0001:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    4.603253] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01
[    4.603319] pci 0001:00:00.0: PCI bridge to [bus 01]
[    4.604011] pcieport 0001:00:00.0: PME: Signaling with IRQ 50
[    4.604725] pcieport 0001:00:00.0: AER: enabled with IRQ 50
[    4.627392] 10000000.serial: ttyS0 at MMIO 0x10000000 (irq = 51, base_baud = 1500000) is a 16550A
[    4.627514] printk: console [ttyS0] enabled
[    6.698715] clk: Disabling unused clocks
[    6.723905] Freeing unused kernel image (initmem) memory: 2704K
[   16.872383] platform cpufreq-dt: deferred probe pending
[   36.011761] watchdog: Watchdog detected hard LOCKUP on cpu 0
[   36.017456] Modules linked in:
[   64.615764] rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
[   64.621724] rcu:     (detected by 1, t=15003 jiffies, g=-403, q=30 ncpus=4)
[   64.628457] rcu: All QSes seen, last rcu_sched kthread activity 15003 (4294908452-4294893449), jiffies_till_next_fqs=1, root ->qsmask 0x0
[   64.640844] rcu: rcu_sched kthread timer wakeup didn't happen for 15005 jiffies! g-403 f0x2 RCU_GP_WAIT_FQS(5) ->state=0x200
[   64.652099] rcu:     Possible timer handling issue on cpu=0 timer-softirq=293
[   64.659000] rcu: rcu_sched kthread starved for 15010 jiffies! g-403 f0x2 RCU_GP_WAIT_FQS(5) ->state=0x200 ->cpu=0
[   64.669302] rcu:     Unless rcu_sched kthread gets sufficient CPU time, OOM is now expected behavior.
[   64.678293] rcu: RCU grace-period kthread stack dump:
[   64.683367] task:rcu_sched       state:R stack:0     pid:15    ppid:2      flags:0x00000000
[   64.691769] Call Trace:
[   64.694242] [<ffffffff80ce749c>] __schedule+0x27a/0x82e
[   64.699520] [<ffffffff80ce7a9e>] schedule+0x4e/0xde
[   64.704438] [<ffffffff80ced874>] schedule_timeout+0x8c/0x15e
[   64.710134] [<ffffffff800b0e26>] rcu_gp_fqs_loop+0x2fc/0x3d4
[   64.715838] [<ffffffff800b3322>] rcu_gp_kthread+0x11a/0x142
[   64.721452] [<ffffffff80044fe6>] kthread+0xc4/0xe4
[   64.726283] [<ffffffff80003f82>] ret_from_fork+0xe/0x20
[   64.731547] rcu: Stack dump where RCU GP kthread last ran:
[   64.737056] Task dump for CPU 0:
[   64.740308] task:swapper/0       state:R  running task     stack:0     pid:0     ppid:0      flags:0x00000000
[   64.750278] Call Trace:
[   64.752749] [<ffffffff80ce749c>] __schedule+0x27a/0x82e
1 Like

I’ve tried plugging the USB-C cable into my workstation’s USB 3.0 port, a standalone USB 3.0 hub that’s plugged into the wall, as well as bypassing the hub and plugging directly into the wall with a 120V adapter. Same problem. CPU stalls.

If it is a power issue I don’t have any other ways of providing power.

Hi Folks,

I followed larryw3i’s tutorial and got it to boot, but seeing a lot of exception tracebacks during the install. It seems stuck on “configuring apt”. I’m just going to let it run a while …

I’m using the supplied power supply, heat sink and fan, but no cover.

Matt

2 Likes