OpenSBI v1.0 ____ _____ ____ _____ / __ \ / ____| _ \_ _| | | | |_ __ ___ _ __ | (___ | |_) || | | | | | '_ \ / _ \ '_ \ \___ \| _ < | | | |__| | |_) | __/ | | |____) | |_) || |_ \____/| .__/ \___|_| |_|_____/|____/_____| | | |_| fdt_reset_driver_init: gpio-restart init failed, -1001 Platform Name : StarFive VisionFive V1 Platform Features : medeleg Platform HART Count : 2 Platform IPI Device : aclint-mswi Platform Timer Device : aclint-mtimer @ 6250000Hz Platform Console Device : uart8250 Platform HSM Device : --- Platform Reboot Device : --- Platform Shutdown Device : --- Firmware Base : 0x80000000 Firmware Size : 300 KB Runtime SBI Version : 0.3 Domain0 Name : root Domain0 Boot HART : 0 Domain0 HARTs : 0*,1* Domain0 Region00 : 0x0000000002000000-0x000000000200ffff (I) Domain0 Region01 : 0x0000000080000000-0x000000008007ffff () Domain0 Region02 : 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 : rv64imafdcsux Boot HART Features : scounteren,mcounteren Boot HART PMP Count : 16 Boot HART PMP Granularity : 4096 Boot HART PMP Address Bits: 36 Boot HART MHPM Count : 2 Boot HART MIDELEG : 0x0000000000000222 Boot HART MEDELEG : 0x000000000000b109 U-Boot 2022.04-rc2-VisionFive-gef571fcead-dirty (Mar 01 2022 - 20:37:33 +0800)St arFive CPU: rv64imafdc Model: StarFive VisionFive V1 DRAM: 8 GiB Core: 13 devices, 9 uclasses, devicetree: separate MMC: mmc@10000000: 0, mmc@10010000: 1 Loading Environment from SPIFlash... cadence_spi spi@11860000: Can't get reset: -524 SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB OK StarFive EEPROM format v1 --------EEPROM INFO-------- Vendor : StarFive Technology Co., Ltd. Product full SN: VF7100A1-2204-D008E000-0000013E data version: 0x1 PCB revision: 0x1 BOM revision: A Ethernet MAC address: 6c:cf:39:00:01:3d --------EEPROM INFO-------- In: serial@12440000 Out: serial@12440000 Err: serial@12440000 Net: dwmac.10020000 MMC CD is 0x1, force to True. MMC CD is 0x1, force to True. switch to partitions #0, OK mmc0 is current device MMC CD is 0x1, force to True. MMC CD is 0x1, force to True. Can't set block device Failed to load '/boot/uEnv.txt' VisionFive # VisionFive # VisionFive #ext4load mmc 0:3 $loadaddr /boot/Image 19727360 bytes read in 4111 ms (4.6 MiB/s) VisionFive #ext4load mmc 0:3 a12e0000 /boot/jh7100-starfive-visionfive-v1.dtb 21724 bytes read in 27 ms (785.2 KiB/s) VisionFive #set bootargs root=/dev/mmcblk0p3 Unknown command 'set' - try 'help' VisionFive #setenv bootargs root=/dev/mmcblk0p3 VisionFive #bootm $loadaddr - a12e0000 Wrong Image Format for bootm command ERROR: can't get kernel image! VisionFive #booti $loadaddr - a12e0000 Moving Image from 0xa0000000 to 0x80200000, end=81528000 ## Flattened Device Tree blob at a12e0000 Booting using the fdt blob at 0xa12e0000 Loading Device Tree to 00000000ff6df000, end 00000000ff6e74db ... OK Starting kernel ... Linux version 5.17.0-visionfive-g6c7cd3577168 (tienhock.loh@mdcsw01) (riscv64-li nux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0, GNU ld (GNU Binutils for Ubuntu ) 2.34) #1 SMP Tue Apr 5 10:30:39 UTC 2022 OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 Machine model: StarFive VisionFive V1 efi: UEFI not found. Reserved memory: created CMA memory pool at 0x00000000a0000000, size 640 MiB OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool Reserved memory: created DMA memory pool at 0x00000000f9000000, size 16 MiB OF: reserved mem: initialized node framebuffer@f9000000, compatible id shared-dm a-pool Reserved memory: created DMA memory pool at 0x00000000fb000000, size 32 MiB OF: reserved mem: initialized node framebuffer@fb000000, compatible id shared-dm a-pool Zone ranges: DMA32 [mem 0x0000000080200000-0x00000000ffffffff] Normal [mem 0x0000000100000000-0x000000027fffffff] Movable zone start for each node Early memory node ranges node 0: [mem 0x0000000080200000-0x00000000cfffffff] node 0: [mem 0x00000000d0000000-0x00000000f7ffffff] node 0: [mem 0x00000000f8000000-0x00000000f8ffffff] node 0: [mem 0x00000000f9000000-0x00000000f9ffffff] node 0: [mem 0x00000000fa000000-0x00000000faffffff] node 0: [mem 0x00000000fb000000-0x00000000fcffffff] node 0: [mem 0x00000000fd000000-0x000000027fffffff] Initmem setup node 0 [mem 0x0000000080200000-0x000000027fffffff] SBI specification v0.3 detected SBI implementation ID=0x1 Version=0x10000 SBI TIME extension detected SBI IPI extension detected SBI RFENCE extension detected SBI HSM extension detected riscv: ISA extensions acdfim riscv: ELF capabilities acdfim percpu: Embedded 15 pages/cpu s31256 r0 d30184 u61440 Built 1 zonelists, mobility grouping on. Total pages: 2067975 Kernel command line: root=/dev/mmcblk0p3 Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear) Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear) mem auto-init: stack:off, heap alloc:off, heap free:off software IO TLB: mapped [mem 0x000000009c000000-0x00000000a0000000] (64MB) Memory: 6747084K/8386560K available (7488K kernel code, 4830K rwdata, 4096K roda ta, 2146K init, 347K bss, 984116K reserved, 655360K cma-reserved) SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 rcu: Hierarchical RCU implementation. rcu: RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. Tracing variant of Tasks RCU enabled. rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 riscv-intc: 64 local interrupts mapped plic: disable L2 cache irq 128 in plic plic: disable L2 cache irq 131 in plic plic: disable L2 cache irq 129 in plic plic: disable L2 cache irq 130 in plic plic: disable L2 cache irq 128 in plic plic: disable L2 cache irq 131 in plic plic: disable L2 cache irq 129 in plic plic: disable L2 cache irq 130 in plic plic: interrupt-controller@c000000: mapped 127 interrupts with 2 handlers for 4 contexts. riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x171024e6b , max_idle_ns: 440795202301 ns sched_clock: 64 bits at 6MHz, resolution 160ns, wraps every 4398046511040ns Console: colour dummy device 80x25 printk: console [tty0] enabled Calibrating delay loop (skipped), value calculated using timer frequency.. 12.50 BogoMIPS (lpj=25000) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear) Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear) cblist_init_generic: Setting adjustable number of callback queues. cblist_init_generic: Setting shift to 1 and lim to 1. ASID allocator disabled (0 bits) rcu: Hierarchical SRCU implementation. EFI services will not be available. smp: Bringing up secondary CPUs ... smp: Brought up 1 node, 2 CPUs devtmpfs: initialized random: get_random_u32 called from bucket_table_alloc.isra.0+0x4e/0x13e with crn g_init=0 clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645 041785100000 ns futex hash table entries: 512 (order: 3, 32768 bytes, linear) pinctrl core: initialized pinctrl subsystem NET: Registered PF_NETLINK/PF_ROUTE protocol family thermal_sys: Registered thermal governor 'step_wise' platform 12000000.crtc: Fixing up cyclic dependency with soc:display-encoder raid6: skipped pq benchmark and selected int64x8 raid6: using intx1 recovery algorithm SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb Advanced Linux Sound Architecture Driver Initialized. Bluetooth: Core ver 2.22 NET: Registered PF_BLUETOOTH protocol family Bluetooth: HCI device and connection manager initialized Bluetooth: HCI socket layer initialized Bluetooth: L2CAP socket layer initialized Bluetooth: SCO socket layer initialized clocksource: Switched to clocksource riscv_clocksource NET: Registered PF_INET protocol family IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear) tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear ) TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear) TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear) TCP: Hash tables configured (established 65536 bind 65536) UDP hash table entries: 4096 (order: 5, 131072 bytes, linear) UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear) NET: Registered PF_UNIX/PF_LOCAL protocol family RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. Initialise system trusted keyrings workingset: timestamp_bits=62 max_order=21 bucket_order=0 xor: measuring software checksum speed 8regs : 2188 MB/sec 8regs_prefetch : 2183 MB/sec 32regs : 2346 MB/sec 32regs_prefetch : 2338 MB/sec xor: using function: 32regs (2346 MB/sec) Key type asymmetric registered Asymmetric key parser 'x509' registered Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) io scheduler bfq registered simple-pm-bus soc: coherent device 0 dev->dma_coherent 0 clk-starfive-jh7100 11800000.clock-controller: coherent device 0 dev->dma_cohere nt 0 clk-starfive-jh7100-audio 10480000.clock-controller: coherent device 0 dev->dma_ coherent 0 dw_axi_dmac_platform 100b0000.dma-controller: coherent device 1 dev->dma_coheren t 0 dw_axi_dmac_platform 100b0000.dma-controller: DesignWare AXI DMA Controller, 4 c hannels dw_axi_dmac_platform 10500000.dma-controller: coherent device 0 dev->dma_coheren t 0 dw_axi_dmac_platform 10500000.dma-controller: DesignWare AXI DMA Controller, 16 channels L2CACHE: No. of Banks in the cache: 2 L2CACHE: No. of ways per bank: 16 L2CACHE: Sets per bank: 1024 L2CACHE: Bytes per cache block: 64 L2CACHE: Index of the largest way enabled: 15 jh7100-reset 11840000.reset-controller: coherent device 0 dev->dma_coherent 0 jh7100-reset-audio 10490000.reset-controller: coherent device 0 dev->dma_coheren t 0 Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled vic-rng 118d0000.trng: coherent device 0 dev->dma_coherent 0 vic-rng 118d0000.trng: Initialized starfive-crtc 12000000.crtc: coherent device 0 dev->dma_coherent 0 starfive-drm soc:display-subsystem: coherent device 1 dev->dma_coherent 0 loop: module loaded zram: Added device: zram0 wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information. wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld . All Rig hts Reserved. tun: Universal TUN/TAP device driver, 1.6 cdns-usb3 104c0000.usb: coherent device 0 dev->dma_coherent 0 xhci-hcd xhci-hcd.0.auto: xHCI Host Controller xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1 xhci-hcd xhci-hcd.0.auto: hcc params 0x200073c8 hci version 0x100 quirks 0x00000 02000018010 xhci-hcd xhci-hcd.0.auto: irq 17, io mem 0x104d0000 usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.17 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: xHCI Host Controller usb usb1: Manufacturer: Linux 5.17.0-visionfive-g6c7cd3577168 xhci-hcd usb usb1: SerialNumber: xhci-hcd.0.auto hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected xhci-hcd xhci-hcd.0.auto: xHCI Host Controller xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2 xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed usb usb2: We don't know the algorithms for LPM for this host, disabling LPM. usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.17 usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb2: Product: xHCI Host Controller usb usb2: Manufacturer: Linux 5.17.0-visionfive-g6c7cd3577168 xhci-hcd usb usb2: SerialNumber: xhci-hcd.0.auto hub 2-0:1.0: USB hub found hub 2-0:1.0: 1 port detected usbcore: registered new interface driver uas usbcore: registered new interface driver usb-storage i2c_dev: i2c /dev entries driver sfctemp 124a0000.tmon: coherent device 0 dev->dma_coherent 0 starfive-si5-wdt 12480000.watchdog: coherent device 0 dev->dma_coherent 0 starfive-si5-wdt 12480000.watchdog: Heartbeat: timeout=15, count=750000000 (2cb4 1780) Bluetooth: HCI UART driver ver 2.3 Bluetooth: HCI UART protocol H4 registered Synopsys Designware Multimedia Card Interface Driver leds-gpio leds: coherent device 0 dev->dma_coherent 0 usbcore: registered new interface driver usbhid usbhid: USB HID core driver asoc-simple-card soc:snd-card: coherent device 0 dev->dma_coherent 0 pwmdac-dit soc:pwmdac-transmitter: coherent device 0 dev->dma_coherent 0 NET: Registered PF_INET6 protocol family Segment Routing with IPv6 In-situ OAM (IOAM) with IPv6 NET: Registered PF_PACKET protocol family Bluetooth: RFCOMM TTY layer initialized Bluetooth: RFCOMM socket layer initialized Bluetooth: RFCOMM ver 1.11 Bluetooth: BNEP (Ethernet Emulation) ver 1.3 Bluetooth: BNEP socket layer initialized Bluetooth: HIDP (Human Interface Emulation) ver 1.2 Bluetooth: HIDP socket layer initialized Loading compiled-in X.509 certificates Btrfs loaded, crc32c=crc32c-generic, zoned=no, fsverity=no pinctrl-starfive 11910000.pinctrl: coherent device 0 dev->dma_coherent 0 pwm-sifive-ptc 12490000.pwm: coherent device 0 dev->dma_coherent 0 dw-apb-uart 11870000.serial: coherent device 0 dev->dma_coherent 0 dw-apb-uart 11870000.serial: detected caps 00000000 should be 00000100 11870000.serial: ttyS1 at MMIO 0x11870000 (irq = 21, base_baud = 4640625) is a 1 6550 dw-apb-uart 12440000.serial: coherent device 0 dev->dma_coherent 0 12440000.serial: ttyS0 at MMIO 0x12440000 (irq = 33, base_baud = 6250000) is a 1 6550A usb 1-1: new high-speed USB device number 2 using xhci-hcd printk: console [ttyS0] enabled usb 1-1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=93.91 dw_spi_mmio 12410000.spi: coherent device 0 dev->dma_coherent 0 usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 dw_spi_mmio 12410000.spi: DMA init failed usb 1-1: Product: USB2.1 Hub stmmaceth 10020000.ethernet: coherent device 0 dev->dma_coherent 0 usb 1-1: Manufacturer: GenesysLogic hub 1-1:1.0: USB hub found stmmaceth 10020000.ethernet: IRQ eth_lpi not found hub 1-1:1.0: 4 ports detected stmmaceth 10020000.ethernet: force_sf_dma_mode is ignored if force_thresh_dma_mo de is set. usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd stmmaceth 10020000.ethernet: User ID: 0x59, Synopsys ID: 0x37 usb 2-1: New USB device found, idVendor=05e3, idProduct=0620, bcdDevice=93.91 stmmaceth 10020000.ethernet: DWMAC1000 usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 stmmaceth 10020000.ethernet: DMA HW capability register supported usb 2-1: Product: USB3.2 Hub stmmaceth 10020000.ethernet: RX Checksum Offload Engine supported stmmaceth 10020000.ethernet: COE Type 2 usb 2-1: Manufacturer: GenesysLogic stmmaceth 10020000.ethernet: Wake-Up On Lan supported hub 2-1:1.0: USB hub found stmmaceth 10020000.ethernet: Enhanced/Alternate descriptors stmmaceth 10020000.ethernet: Enabled extended descriptors hub 2-1:1.0: 4 ports detected stmmaceth 10020000.ethernet: Ring mode enabled stmmaceth 10020000.ethernet: Enable RX Mitigation via HW Watchdog Timer stmmaceth 10020000.ethernet: device MAC address 6c:cf:39:00:01:3d YT8521 Gigabit Ethernet stmmac-0:00: attached PHY driver (mii_bus:phy_addr=stmma c-0:00, irq=POLL) YT8521 Gigabit Ethernet stmmac-0:03: attached PHY driver (mii_bus:phy_addr=stmma c-0:03, irq=POLL) restart-gpio gpio-restart: coherent device 0 dev->dma_coherent 0 pwrseq_simple wifi-pwrseq: coherent device 0 dev->dma_coherent 0 leds-gpio leds: coherent device 0 dev->dma_coherent 0 dw_mmc 10000000.mmc: coherent device 0 dev->dma_coherent 0 asoc-simple-card soc:snd-card: coherent device 0 dev->dma_coherent 0 dw_mmc 10000000.mmc: IDMAC supports 32-bit address mode. sf-pwmdac 10440000.pwmdac: coherent device 0 dev->dma_coherent 0 dw_mmc 10000000.mmc: Using internal DMA controller. Initialize pwmdac...success dw_mmc 10000000.mmc: Version ID is 290a i2c_designware 118b0000.i2c: coherent device 0 dev->dma_coherent 0 dw_mmc 10000000.mmc: DW MMC controller at irq 8,32 bit host data width,32 deep f ifo mmc_host mmc0: card is polling. dw_mmc 10010000.mmc: coherent device 0 dev->dma_coherent 0 dw_mmc 10010000.mmc: IDMAC supports 32-bit address mode. dw_mmc 10010000.mmc: Using internal DMA controller. mmc_host mmc0: Bus speed (slot 0) = 100000000Hz (slot req 400000Hz, actual 40000 0HZ div = 125) dw_mmc 10010000.mmc: Version ID is 290a dw_mmc 10010000.mmc: DW MMC controller at irq 10,32 bit host data width,32 deep fifo dw_mmc 10010000.mmc: allocated mmc-pwrseq mmc_host mmc1: card is non-removable. tps65086 0-005e: Device: TPS650861, OTP: A, Rev: 0 i2c 0-0070: Fixing up cyclic dependency with soc:display-encoder mmc_host mmc1: Bus speed (slot 0) = 123750000Hz (slot req 400000Hz, actual 39919 3HZ div = 155) mmc_host mmc0: Bus speed (slot 0) = 100000000Hz (slot req 50000000Hz, actual 500 00000HZ div = 1) mmc0: new high speed SDHC card at address aaaa mmcblk0: mmc0:aaaa SC32G 29.7 GiB random: fast init done mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 tda998x 0-0070: found TDA19988 at24 0-0050: 512 byte 24c04 EEPROM, writable, 16 bytes/write i2c_designware 118c0000.i2c: coherent device 0 dev->dma_coherent 0 i2c_designware 12450000.i2c: coherent device 0 dev->dma_coherent 0 display-encoder soc:display-encoder: coherent device 0 dev->dma_coherent 0 starfive-drm soc:display-subsystem: bound 12000000.crtc (ops 0xffffffff80c72448) [drm] found bridge on endpoint starfive-drm soc:display-subsystem: bound soc:display-encoder (ops 0xffffffff80c 72780) [drm] Initialized starfive 1.0.0 20210519 for soc:display-subsystem on minor 0 starfive-drm soc:display-subsystem: [drm] Cannot find any crtc or sizes asoc-simple-card soc:snd-card: coherent device 0 dev->dma_coherent 0 cfg80211: Loading compiled-in X.509 certificates for regulatory database cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' ALSA device list: #0: Starfive-Multi-Sound-Card dw-apb-uart 12440000.serial: forbid DMA for kernel console EXT4-fs (mmcblk0p3): mounting ext2 file system using the ext4 subsystem mmc_host mmc1: Bus speed (slot 0) = 123750000Hz (slot req 50000000Hz, actual 309 37500HZ div = 2) EXT4-fs (mmcblk0p3): mounted filesystem without journal. Quota mode: disabled. VFS: Mounted root (ext2 filesystem) readonly on device 179:3. mmc1: new high speed SDIO card at address 0001 devtmpfs: mounted Freeing unused kernel image (initmem) memory: 2144K Checked W+X mappings: passed, no W+X pages found rodata_test: all tests were successful Run /sbin/init as init process brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM4343 0/1 brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.starfive, visionfive-v1.bin failed with error -2 brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM4343 0/1 brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Feb 16 2020 22:39:24 version 7.45.98.97 (r724416 CY) FWID 01-bf41ed64 random: init: uninitialized urandom read (12 bytes read) init: sysrq-init main process (111) terminated with status 1 init: pstore main process (116) terminated with status 32 init: cros_configfs pre-start process (115) terminated with status 1 init: cros_configfs post-stop process (122) terminated with status 32 EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Quota mode: disa bled. EXT4-fs (mmcblk0p8): mounted filesystem with ordered data mode. Quota mode: disa bled. random: pvdisplay: uninitialized urandom read (4 bytes read) loop0: detected capacity change from 0 to 2427936 init: ureadahead pre-start process (165) terminated with status 1 EXT4-fs (mmcblk0p3): re-mounted. Quota mode: disabled. Unsafe core_pattern used with fs.suid_dumpable=2. Pipe handler or fully qualified core dump path required. Set kernel.core_pattern before fs.suid_dumpable. reboot: Restarting system