[Bug 276805] starfive-vf2 no storage devices found

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 03 Feb 2024 13:43:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276805

            Bug ID: 276805
           Summary: starfive-vf2 no storage devices found
           Product: Base System
           Version: 14.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: riscv
          Assignee: riscv@FreeBSD.org
          Reporter: rdunkle@smallcatbrain.com

starfive vf2-  booting from sdcard using the
sysutils/u-boot-starfive-visionfive2.
I am using the dtb file from:
https://github.com/starfive-tech/VisionFive2/releases/download/JH7110_VF2_515_v5.10.3/jh7110-visionfive-v2.dtb
I am using memstick image. FreeBSD 14.0-STABLE #0 stable/14-dcae96578
There appears to be no storage devices found.
OK load /boot/kernel/kernel
/boot/kernel/kernel text=0x5b7ae4 text=0x14a52c data=0xf0720
data=0x216c+0x1beacc 0x8+0x2158ed8+0x8+0xf2722
OK lsmod
 0xffffffc000000000: /boot/kernel/kernel (elf kernel, 0x2c00968)
  modules: riscv_syscon.1 xdr.1 ufs.1 kernel_mac_support.5 krpc.1 cryptosoft.1
crypto.1 nfslockd.1 nfssvc.1 netlink.1 ipsec_support.1 ertt.1 cubic.2 if_vlan.3
if_tap.1 if_tun.1 if_tuntap.1 if_gif.1 ether.1 zlib.1 aio.1 sysvshm.1 sysvsem.1
sysvmsg.1 firmware.1 acl_posix1e.1 acl_nfs4.1 kernel.1400507 cd9660.1
geom_raid.0 geom_part_mbr.0 geom_part_gpt.0 geom_part_bsd.0 g_part.0
geom_label.0 pseudofs.1 procfs.1 nfsd.1 nfscl.1 nfs.1 nfscommon.1 msdosfs.1
virtio_blk.1 vtnet.1 virtio_mmio.1 virtio_pci.1 virtio.1 usb_quirk.1 ukbd.1
uhub.1 usb.1 umass.1 tcp_log_dev.1 spibus.1 ofw_spibus.1 random_device.1
random_harvestq.1 pci.1 ofwbus.1 ofw_firmware.1 nvme.1 nvd.1 null.1
mii_bitbang.1 miibus.1 mem.1 geom_md.0 ofw_iicbus.1 iicbus.1 hidquirk.1 hid.1
ofw_gpiobus.1 gpioc.1 gpiobus.1 simple_mfd.1 fbd.1 syscon_generic.1 clk_fixed.1
ofw_clkbus.1 cam.1
OK
OK lsdev
disk devices:
    disk0:    61405184 X 512 blocks (removable)
      disk0p1: EFI
      disk0p2: FreeBSD UFS
http: (unknown)
net devices:
    net0:
OK boot -v
Using DTB provided by EFI at 0xfe6e7000.
Kernel entry at 0xf680002e...
Kernel args: -v
---<<BOOT>>---
Physical memory chunk(s):
  0x40000000 - 0x23fffffff,  8192 MB (2097152 pages)
Excluded memory regions:
  0x40000000 - 0x401fffff,     2 MB (    512 pages) NoAlloc NoDump
  0xf6800000 - 0xf9495fff,    44 MB (  11414 pages) NoAlloc
Found 4 CPUs in the device tree
Copyright (c) 1992-2023 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 14.0-STABLE #0 stable/14-dcae96578: Sat Feb  3 10:50:17 EET 2024
   
root@sky22.smallcatbrain.com:/usr/obj/usr/src-stable-14/riscv.riscv64/sys/GENERIC
riscv
FreeBSD clang version 17.0.6 (https://github.com/llvm/llvm-project.git
llvmorg-17.0.6-0-g6009708b4367)
VT: init without driver.
Preloaded elf kernel "/boot/kernel/kernel" at 0xffffffc002c70000.
Preloaded boot_entropy_platform "efi_rng_seed" at 0xffffffc002c792f8.
Preloaded TSLOG data "TSLOG" at 0xffffffc002c79350.
SBI: OpenSBI v1.4
SBI Specification Version: 2.0
CPU 0  : Vendor=SiFive Core=6/7/P200/X200-Series Processor (Hart 1)
  marchid=0x8000000000000007, mimpid=0x4210427
  MMU: 0x1<Sv39>
  ISA: 0x112d<Atomic,Compressed,Double,Float,Mult/Div>
  S-mode Extensions: 0
real memory  = 8589934592 (8192 MB)
Physical memory chunk(s):
0x0000000040200000 - 0x00000000f67fffff, 3059744768 bytes (747008 pages)
0x00000000f9496000 - 0x000000023356efff, 5268934656 bytes (1286361 pages)
avail memory = 8300789760 (7916 MB)
No static device mappings.
Starting CPU 1 (hart 2)
Starting CPU 2 (hart 3)
Starting CPU 3 (hart 4)
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
CPU 1  : Vendor=SiFive Core=6/7/P200/X200-Series Processor (Hart 2)
CPU 2  : Vendor=SiFive Core=6/7/P200/X200-Series Processor (Hart 3)
CPU 3  : Vendor=SiFive Core=6/7/P200/X200-Series Processor (Hart 4)
random: no preloaded entropy cache
random: read 2048 bytes from platform bootloader
random: unblocking device.
VIMAGE (virtualized network stack) enabled
hostuuid: using 00000000-0000-0000-0000-000000000000
ULE: setup cpu 0
ULE: setup cpu 1
ULE: setup cpu 2
ULE: setup cpu 3
random: entropy device external interface
kbd0 at kbdmux0
mem: <memory>
null: <full device, null device, zero device>
openfirm: <Open Firmware control device>
tcp_log: tcp_log device
crypto: <crypto core>
ofwbus0: <Open Firmware Device Tree>
clk_fixed0: <Fixed clock> on ofwbus0
clk_fixed1: <Fixed clock> on ofwbus0
clk_fixed2: <Fixed clock> on ofwbus0
clk_fixed3: <Fixed clock> on ofwbus0
clk_fixed4: <Fixed clock> on ofwbus0
clk_fixed5: <Fixed clock> on ofwbus0
clk_fixed6: <Fixed clock> on ofwbus0
clk_fixed7: <Fixed clock> on ofwbus0
clk_fixed8: <Fixed clock> on ofwbus0
clk_fixed9: <Fixed clock> on ofwbus0
clk_fixed10: <Fixed clock> on ofwbus0
clk_fixed11: <Fixed clock> on ofwbus0
clk_fixed12: <Fixed clock> on ofwbus0
clk_fixed13: <Fixed clock> on ofwbus0
clk_fixed14: <Fixed clock> on ofwbus0
clk_fixed15: <Fixed clock> on ofwbus0
clk_fixed16: <Fixed clock> on ofwbus0
clk_fixed17: <Fixed clock> on ofwbus0
clk_fixed18: <Fixed clock> on ofwbus0
clk_fixed19: <Fixed clock> on ofwbus0
simplebus0: <Flattened device tree simple bus> on ofwbus0
plic0: <RISC-V PLIC> mem 0xc000000-0xfffffff irq 14,15,16,17,18,19,20,21,22 on
simplebus0
timer0: <RISC-V Timer>
Timecounter "RISC-V Timecounter" frequency 4000000 Hz quality 1000
Event timer "RISC-V Eventtimer" frequency 4000000 Hz quality 1000
ram0: reserving memory region:   40200000-f6800000
ram0: reserving memory region:   f9496000-240000000
ram0: reserving excluded region: 40000000-401fffff
ram0: reserving excluded region: f6800000-f9495fff
rcons0: <RISC-V console>
ofwbus0: <opp-table-0> compat operating-points-v2 (no driver attached)
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
cpu0: missing 'clock-frequency' property
riscv64_cpu0: register <0>
cpu1: <Open Firmware CPU> on cpulist0
cpu1: missing 'clock-frequency' property
riscv64_cpu1: register <1>
cpu2: <Open Firmware CPU> on cpulist0
cpu2: missing 'clock-frequency' property
riscv64_cpu2: register <2>
cpu3: <Open Firmware CPU> on cpulist0
cpu3: missing 'clock-frequency' property
riscv64_cpu3: register <3>
cpu4: <Open Firmware CPU> on cpulist0
cpu4: missing 'clock-frequency' property
ofwbus0: <mailbox_client> compat starfive,mailbox-test (no driver attached)
simplebus0: <cache-controller@2010000> mem
0x2010000-0x2013fff,0x8000000-0x9ffffff irq 0,1,2,3 compat
sifive,fu740-c000-ccache (no driver attached)
syscon_generic_dev0: <syscon> mem 0x17010000-0x17010fff on simplebus0
simplebus0: <multi-phyctrl@10210000> mem 0x10210000-0x1021ffff compat
starfive,phyctrl (no driver attached)
simplebus0: <pcie1-phyctrl@10220000> mem 0x10220000-0x1022ffff compat
starfive,phyctrl (no driver attached)
syscon_generic_dev1: <syscon> mem 0x10240000-0x10240fff on simplebus0
syscon_generic_dev2: <syscon> mem 0x13030000-0x13030fff on simplebus0
simplebus0: <clint@2000000> mem 0x2000000-0x200ffff irq 4,5,6,7,8,9,10,11,12,13
compat riscv,clint0 (no driver attached)
simplebus0: <clock-controller> mem
0x13020000-0x1302ffff,0x10230000-0x1023ffff,0x17000000-0x1700ffff compat
starfive,jh7110-clkgen (no driver attached)
simplebus0: <clock-controller@295C0000> mem 0x295c0000-0x295cffff compat
starfive,jh7110-clk-vout (no driver attached)
simplebus0: <clock-controller@19810000> mem 0x19810000-0x1981ffff compat
starfive,jh7110-clk-isp (no driver attached)
simplebus0: <spi@13010000> mem 0x13010000-0x1301ffff,0x21000000-0x213fffff irq
23 compat cdns,qspi-nor (no driver attached)
simplebus0: <otp@17050000> mem 0x17050000-0x1705ffff compat starfive,jh7110-otp
(no driver attached)
simplebus0: <usbdrd> mem 0x10210000-0x10210fff,0x10200000-0x10200fff compat
starfive,jh7110-cdns3 (no driver attached)
simplebus0: <timer@13050000> mem 0x13050000-0x1305ffff irq 24,25,26,27 compat
starfive,jh7110-timers (no driver attached)
simplebus0: <wdog@13070000> mem 0x13070000-0x1307ffff irq 28 compat
starfive,jh7110-wdt (no driver attached)
simplebus0: <rtc@17040000> mem 0x17040000-0x1704ffff irq 29,30,31 compat
starfive,jh7110-rtc (no driver attached)
simplebus0: <power-controller@17030000> mem 0x17030000-0x1703ffff irq 32 compat
starfive,jh7110-pmu (no driver attached)
simplebus0: <serial@10000000> mem 0x10000000-0x1000ffff irq 33 compat
snps,dw-apb-uart (no driver attached)
simplebus0: <serial@10010000> mem 0x10010000-0x1001ffff irq 34 disabled compat
snps,dw-apb-uart (no driver attached)
simplebus0: <serial@10020000> mem 0x10020000-0x1002ffff irq 35 disabled compat
snps,dw-apb-uart (no driver attached)
simplebus0: <serial@12000000> mem 0x12000000-0x1200ffff irq 36 disabled compat
snps,dw-apb-uart (no driver attached)
simplebus0: <serial@12010000> mem 0x12010000-0x1201ffff irq 37 disabled compat
snps,dw-apb-uart (no driver attached)
simplebus0: <serial@12020000> mem 0x12020000-0x1202ffff irq 38 disabled compat
snps,dw-apb-uart (no driver attached)
simplebus0: <dma-controller@16050000> mem 0x16050000-0x1605ffff irq 39 compat
starfive,jh7110-axi-dma (no driver attached)
simplebus0: <gpio@13040000> mem 0x13040000-0x1304ffff irq 40 compat
starfive,jh7110-sys-pinctrl (no driver attached)
simplebus0: <gpio@17020000> mem 0x17020000-0x1702ffff irq 41 compat
starfive,jh7110-aon-pinctrl (no driver attached)
simplebus0: <tmon@120e0000> mem 0x120e0000-0x120effff irq 42 compat
starfive,jh7110-temp (no driver attached)
simplebus0: <trng@1600C000> mem 0x1600c000-0x1600ffff irq 43 compat
starfive,jh7110-trng (no driver attached)
simplebus0: <sec_dma@16008000> mem 0x16008000-0x1600bfff irq 44 compat
arm,pl080 (no driver attached)
simplebus0: <crypto@16000000> mem 0x16000000-0x16003fff,0x16008000-0x1600bfff
irq 45,46 compat starfive,jh7110-sec (no driver attached)
simplebus0: <i2c@10030000> mem 0x10030000-0x1003ffff irq 47 compat
snps,designware-i2c (no driver attached)
simplebus0: <i2c@10040000> mem 0x10040000-0x1004ffff irq 48 disabled compat
snps,designware-i2c (no driver attached)
simplebus0: <i2c@10050000> mem 0x10050000-0x1005ffff irq 49 compat
snps,designware-i2c (no driver attached)
simplebus0: <i2c@12030000> mem 0x12030000-0x1203ffff irq 50 disabled compat
snps,designware-i2c (no driver attached)
simplebus0: <i2c@12040000> mem 0x12040000-0x1204ffff irq 51 disabled compat
snps,designware-i2c (no driver attached)
simplebus0: <i2c@12050000> mem 0x12050000-0x1205ffff irq 52 compat
snps,designware-i2c (no driver attached)
simplebus0: <i2c@12060000> mem 0x12060000-0x1206ffff irq 53 compat
snps,designware-i2c (no driver attached)
simplebus0: <sdio0@16010000> mem 0x16010000-0x1601ffff irq 54 compat
starfive,jh7110-sdio (no driver attached)
simplebus0: <sdio1@16020000> mem 0x16020000-0x1602ffff irq 55 compat
starfive,jh7110-sdio (no driver attached)
simplebus0: <vin_sysctl@19800000> mem
0x19800000-0x1980ffff,0x19810000-0x1981ffff,0x19820000-0x1982ffff,0x19840000-0x1984ffff,0x19870000-0x1989ffff,0x11840000-0x1184ffff,0x17030000-0x1703ffff,0x13020000-0x1302ffff
irq 56,57,58,59,60 compat starfive,jh7110-vin (no driver attached)
simplebus0: <jpu@11900000> mem 0x13090000-0x130902ff irq 61 compat starfive,jpu
(no driver attached)
simplebus0: <vpu_dec@130A0000> mem 0x130a0000-0x130affff irq 62 compat
starfive,vdec (no driver attached)
simplebus0: <vpu_enc@130B0000> mem 0x130b0000-0x130bffff irq 63 compat
starfive,venc (no driver attached)
simplebus0: <reset-controller> mem
0x13020000-0x1302ffff,0x10230000-0x1023ffff,0x17000000-0x1700ffff,0x19810000-0x1981ffff,0x295c0000-0x295cffff
compat starfive,jh7110-reset (no driver attached)
simplebus0: <ethernet@16030000> mem 0x16030000-0x1603ffff irq 64,65,66 compat
starfive,dwmac (no driver attached)
simplebus0: <ethernet@16040000> mem 0x16040000-0x1604ffff irq 67,68,69 compat
starfive,dwmac (no driver attached)
simplebus0: <gpu@18000000> mem 0x18000000-0x180fffff,0x130c000-0x131bfff irq 70
compat img-gpu (no driver attached)
simplebus0: <can@130d0000> mem 0x130d0000-0x130d0fff irq 71 disabled compat
starfive,jh7110-can (no driver attached)
simplebus0: <can@130e0000> mem 0x130e0000-0x130e0fff irq 72 disabled compat
starfive,jh7110-can (no driver attached)
simplebus0: <tdm@10090000> mem 0x10090000-0x10090fff disabled compat
starfive,jh7110-tdm (no driver attached)
simplebus0: <spdif0@100a0000> mem 0x100a0000-0x100a0fff irq 73 disabled compat
starfive,jh7110-spdif (no driver attached)
simplebus0: <pwmdac@100b0000> mem 0x100b0000-0x100b0fff compat
starfive,jh7110-pwmdac (no driver attached)
simplebus0: <i2stx@100c0000> mem 0x100c0000-0x100c0fff disabled compat
snps,designware-i2stx (no driver attached)
simplebus0: <pdm@100d0000> mem 0x100d0000-0x100d0fff compat starfive,jh7110-pdm
(no driver attached)
simplebus0: <i2srx_mst@100e0000> mem 0x100e0000-0x100e0fff disabled compat
starfive,jh7110-i2srx-master (no driver attached)
simplebus0: <i2srx_3ch@100e0000> mem 0x100e0000-0x100e0fff disabled compat
starfive,jh7110-i2srx (no driver attached)
simplebus0: <i2stx_4ch0@120b0000> mem 0x120b0000-0x120b0fff compat
starfive,jh7110-i2stx-4ch0 (no driver attached)
simplebus0: <i2stx_4ch1@120c0000> mem 0x120c0000-0x120c0fff disabled compat
starfive,jh7110-i2stx-4ch1 (no driver attached)
simplebus0: <pwm@120d0000> mem 0x120d0000-0x120dffff compat starfive,jh7110-pwm
(no driver attached)
simplebus0: <spdif_transmitter> disabled compat linux,spdif-dit (no driver
attached)
simplebus0: <pwmdac-transmitter> compat starfive,jh7110-pwmdac-dit (no driver
attached)
simplebus0: <dmic_codec> disabled compat dmic-codec (no driver attached)
simplebus0: <spi@10060000> mem 0x10060000-0x1006ffff irq 74 compat arm,pl022
(no driver attached)
simplebus0: <spi@10070000> mem 0x10070000-0x1007ffff irq 75 disabled compat
arm,pl022 (no driver attached)
simplebus0: <spi@10080000> mem 0x10080000-0x1008ffff irq 76 disabled compat
arm,pl022 (no driver attached)
simplebus0: <spi@12070000> mem 0x12070000-0x1207ffff irq 77 disabled compat
arm,pl022 (no driver attached)
simplebus0: <spi@12080000> mem 0x12080000-0x1208ffff irq 78 disabled compat
arm,pl022 (no driver attached)
simplebus0: <spi@12090000> mem 0x12090000-0x1209ffff irq 79 disabled compat
arm,pl022 (no driver attached)
simplebus0: <spi@120A0000> mem 0x120a0000-0x120affff irq 80 disabled compat
arm,pl022 (no driver attached)
simplebus0: <pcie@2B000000> mem 0x2b000000-0x2bffffff,0x940000000-0x94fffffff
irq 81 type pci compat starfive,jh7110-pcie (no driver attached)
simplebus0: <pcie@2C000000> mem 0x2c000000-0x2cffffff,0x9c0000000-0x9cfffffff
irq 82 type pci compat starfive,jh7110-pcie (no driver attached)
simplebus0: <mailbox@0> mem 0x13060000-0x13060fff irq 83,84 compat
starfive,mail_box (no driver attached)
simplebus0: <display-subsystem> compat starfive,jh7110-display (no driver
attached)
syscon_generic_dev3: <syscon> mem 0x295b0000-0x295b008f on simplebus0
simplebus0: <tda988x_pin> disabled compat starfive,tda998x_rgb_pin (no driver
attached)
simplebus0: <rgb-output> disabled compat starfive,jh7110-rgb_output (no driver
attached)
simplebus0: <dc8200@29400000> mem
0x29400000-0x294000ff,0x29400800-0x294027ff,0x17030000-0x17030fff irq 85 compat
starfive,jh7110-dc8200 (no driver attached)
simplebus0: <dsi-output> compat starfive,jh7110-display-encoder (no driver
attached)
simplebus0: <mipi-dphy@295e0000> mem 0x295e0000-0x295effff compat
starfive,jh7110-mipi-dphy-tx (no driver attached)
simplebus0: <mipi@295d0000> mem 0x295d0000-0x295dffff irq 86 compat
starfive,jh7110-mipi_dsi (no driver attached)
simplebus0: <hdmi@29590000> mem 0x29590000-0x29593fff irq 87 compat
starfive,jh7110-hdmi (no driver attached)
simplebus0: <snd-card0> compat simple-audio-card (no driver attached)
simplebus0: <snd-card1> compat simple-audio-card (no driver attached)
simplebus0: <snd-card2> compat simple-audio-card (no driver attached)
simplebus0: <snd-card3> compat simple-audio-card (no driver attached)
simplebus0: <snd-card4> compat simple-audio-card (no driver attached)
simplebus0: <snd-card5> compat simple-audio-card (no driver attached)
simplebus0: <snd-card6> compat simple-audio-card (no driver attached)
simplebus0: <e24@0> mem 0x6e210000-0x6e210fff,0x6e211000-0x6e24ffff compat
starfive,e24 (no driver attached)
simplebus0: <sof_dsp@0> mem 0x20020000-0x2002ffff disabled compat
starfive,vf2-dsp-v1 (no driver attached)
simplebus0: <starfive,jh7110-cpufreq> compat starfive,jh7110-cpufreq (no driver
attached)
ofwbus0: <leds> compat gpio-leds (no driver attached)
ofwbus0: <backlight> compat pwm-backlight (no driver attached)
ofwbus0: <gpio-restart> compat gpio-restart (no driver attached)
crypto: assign cryptosoft0 driver id 0, flags 0x6000000
Device configuration finished.
procfs registered
Timecounters tick every 1.000 msec
lo0: bpf attached
vlan: initialized, using hash tables with chaining
IPsec: Initialized Security Association Processing.
tcp_init: net.inet.tcp.tcbhashsize auto tuned to 65536
usb_needs_explore_all: no devclass
Release APs
Secondary CPU 2 fully online
Secondary CPU 1 fully online
Trying to mount root from ufs:/dev/ufs/FreeBSD_Install [ro,noatime]...
Secondary CPU 3 fully online
mountroot: waiting for device /dev/ufs/FreeBSD_Install...
Mounting from ufs:/dev/ufs/FreeBSD_Install failed with error 19.

Loader variables:
  vfs.root.mountfrom=ufs:/dev/ufs/FreeBSD_Install
  vfs.root.mountfrom.options=ro,noatime

Manual root filesystem specification:
  <fstype>:<device> [options]
      Mount <device> using filesystem <fstype>
      and with the specified (optional) option list.

    eg. ufs:/dev/da0s1a
        zfs:zroot/ROOT/default
        cd9660:/dev/cd0 ro
          (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /)

  ?               List valid disk boot devices
  .               Yield 1 second (for background tasks)
  <empty line>    Abort manual input

mountroot> ?

List of GEOM managed disk devices:


mountroot>

-- 
You are receiving this mail because:
You are the assignee for the bug.