Board not booting

I bought this board as Kickstarter so it should be one of the early releases.

Never been able to boot! But I didn’t have time to dig it.

After some time I bought two more boards, when they arrived I checked that they could boot and I was out of time again :frowning:

Now I have some hour to spare so I decided to dig it a little bit and connected a serial2usb to see what is happening

this was what I was reading


U-Boot SPL 2021.10 (Oct 31 2022 - 12:11:37 +0800)
DDR version: dc2e84f0.
Trying to boot from SPI

OpenSBI v1.0
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name             : StarFive VisionFive V2
Platform Features         : medeleg
Platform HART Count       : 5
Platform IPI Device       : aclint-mswi
Platform Timer Device     : aclint-mtimer @ 4000000Hz
Platform Console Device   : uart8250
Platform HSM Device       : ---
Platform Reboot Device    : ---
Platform Shutdown Device  : ---
Firmware Base             : 0x40000000
Firmware Size             : 360 KB
Runtime SBI Version       : 0.3

Domain0 Name              : root
Domain0 Boot HART         : 1
Domain0 HARTs             : 0*,1*,2*,3*,4*
Domain0 Region00          : 0x0000000002000000-0x000000000200ffff (I)
Domain0 Region01          : 0x0000000040000000-0x000000004007ffff ()
Domain0 Region02          : 0x0000000000000000-0xffffffffffffffff (R,W,X)
Domain0 Next Address      : 0x0000000040200000
Domain0 Next Arg1         : 0x0000000042200000
Domain0 Next Mode         : S-mode
Domain0 SysReset          : yes

Boot HART ID              : 1
Boot HART Domain          : root
Boot HART Priv Version    : v1.11
Boot HART Base ISA        : rv64imafdcbx
Boot HART ISA Extensions  : none
Boot HART PMP Count       : 8
Boot HART PMP Granularity : 4096
Boot HART PMP Address Bits: 34
Boot HART MHPM Count      : 2
Boot HART MIDELEG         : 0x0000000000000222
Boot HART MEDELEG         : 0x000000000000b109


U-Boot 2021.10 (Oct 31 2022 - 12:11:37 +0800), Build: jenkins-VF2_515_Branch_SDK_Release-10

CPU:   rv64imacu
Model: StarFive VisionFive V2
DRAM:  8 GiB
MMC:   sdio0@16010000: 0, sdio1@16020000: 1
Loading Environment from SPIFlash... SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

StarFive EEPROM format v2

--------EEPROM INFO--------
Vendor : StarFive Technology Co., Ltd.
Product full SN: VF7110A1-2250-D008E000-00000926
data version: 0x2
PCB revision: 0xa1
BOM revision: A
Ethernet MAC0 address: 6c:cf:39:00:1a:bb
Ethernet MAC1 address: 6c:cf:39:00:1a:bc
--------EEPROM INFO--------

In:    serial@10000000
Out:   serial@10000000
Err:   serial@10000000
Model: StarFive VisionFive V2
Net:   eth0: ethernet@16030000, eth1: ethernet@16040000
switch to partitions #0, OK
mmc1 is current device
found device 1
bootmode flash device 1
Can't set block device
Failed to load '/boot/uEnv.txt'
Hit any key to stop autoboot:  0
Can't set block device
Importing environment from mmc1 ...
## Warning: Input data exceeds 1048576 bytes - truncated
## Info: input data size = 1048578 = 0x100002
## Error: "boot2" not defined
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:2...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
863 bytes read in 10 ms (84 KiB/s)
U-Boot menu
1:      Debian GNU/Linux bookworm/sid 5.15.0-starfive
2:      Debian GNU/Linux bookworm/sid 5.15.0-starfive (rescue target)
Enter choice: 1:        Debian GNU/Linux bookworm/sid 5.15.0-starfive
Retrieving file: /boot/initrd.img-5.15.0-starfive
9684944 bytes read in 2514 ms (3.7 MiB/s)
Retrieving file: /boot/vmlinuz-5.15.0-starfive
8015160 bytes read in 2129 ms (3.6 MiB/s)
append: root=/dev/mmcblk1p3 root=/dev/mmcblk1p3 rw console=tty0 console=ttyS0,115200 earlycon rootwait stmmaceth=chain_mode:1 selinux=0
Retrieving file: /boot/dtbs/starfive/starfive_visionfive2.dtb
Failed to load '/boot/dtbs/starfive/starfive_visionfive2.dtb'
kernel_comp_addr_r or kernel_comp_size is not provided!
2:      Debian GNU/Linux bookworm/sid 5.15.0-starfive (rescue target)
Retrieving file: /boot/initrd.img-5.15.0-starfive
9684944 bytes read in 2463 ms (3.7 MiB/s)
Retrieving file: /boot/vmlinuz-5.15.0-starfive
8015160 bytes read in 2117 ms (3.6 MiB/s)
append: root=/dev/mmcblk1p3 root=/dev/mmcblk1p3 rw console=tty0 console=ttyS0,115200 earlycon rootwait stmmaceth=chain_mode:1 selinux=0 single
Retrieving file: /boot/dtbs/starfive/starfive_visionfive2.dtb
Failed to load '/boot/dtbs/starfive/starfive_visionfive2.dtb'
kernel_comp_addr_r or kernel_comp_size is not provided!
SCRIPT FAILED: continuing...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Card did not respond to voltage select! : -110
** Unable to read file ubootefi.var **
Failed to load EFI variables
Scanning mmc 1:3...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
ethernet@16030000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
phy_startup() failed: -110FAILED: -110ethernet@16040000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
phy_startup() failed: -110FAILED: -110ethernet@16030000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
phy_startup() failed: -110FAILED: -110ethernet@16040000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
phy_startup() failed: -110FAILED: -110StarFive #

Then I followed instructions On quickstart guide on how to recover the Bootloader, using the files found here Releases · starfive-tech/VisionFive2 · GitHub. It all went seemingly right but, alas, new boot log is even worse

U-Boot SPL 2021.10 (Aug 31 2023 - 12:55:45 +0800)
LPDDR4: 8G version: g8ad50857.
Trying to boot from SPI

OpenSBI v1.2
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|___/_____|
        | |
        |_|

Platform Name             : StarFive VisionFive V2
Platform Features         : medeleg
Platform HART Count       : 5
Platform IPI Device       : aclint-mswi
Platform Timer Device     : aclint-mtimer @ 4000000Hz
Platform Console Device   : uart8250
Platform HSM Device       : ---
Platform PMU Device       : ---
Platform Reboot Device    : pm-reset
Platform Shutdown Device  : pm-reset
Platform Suspend Device   : ---
Firmware Base             : 0x40000000
Firmware Size             : 392 KB
Firmware RW Offset        : 0x40000
Runtime SBI Version       : 1.0

Domain0 Name              : root
Domain0 Boot HART         : 1
Domain0 HARTs             : 0*,1*,2*,3*,4*
Domain0 Region00          : 0x0000000002000000-0x000000000200ffff M: (I,R,W) S/U: ()
Domain0 Region01          : 0x0000000040000000-0x000000004003ffff M: (R,X) S/U: ()
Domain0 Region02          : 0x0000000040040000-0x000000004007ffff M: (R,W) S/U: ()
Domain0 Region03          : 0x0000000000000000-0xffffffffffffffff M: (R,W,X) S/U: (R,W,X)
Domain0 Next Address      : 0x0000000040200000
Domain0 Next Arg1         : 0x0000000042200000
Domain0 Next Mode         : S-mode
Domain0 SysReset          : yes
Domain0 SysSuspend        : yes

Boot HART ID              : 1
Boot HART Domain          : root
Boot HART Priv Version    : v1.11
Boot HART Base ISA        : rv64imafdcbx
Boot HART ISA Extensions  : none
Boot HART PMP Count       : 8
Boot HART PMP Granularity : 4096
Boot HART PMP Address Bits: 34
Boot HART MHPM Count      : 2
Boot HART MIDELEG         : 0x0000000000000222
Boot HART MEDELEG         : 0x000000000000b109


U-Boot 2021.10 (Aug 31 2023 - 12:55:45 +0800), Build: jenkins-github_visionfive2-17

CPU:   rv64imacu_zba_zbb
Model: StarFive VisionFive V2
DRAM:  8 GiB
cdns3_bind: unsupported dr_mode
MMC:   sdio0@16010000: 0, sdio1@16020000: 1
Loading Environment from SPIFlash... SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

StarFive EEPROM format v2

--------EEPROM INFO--------
Vendor : StarFive Technology Co., Ltd.
Product full SN: VF7110A1-2250-D008E000-00000926
data version: 0x2
PCB revision: 0xa1
BOM revision: A
Ethernet MAC0 address: 6c:cf:39:00:1a:bb
Ethernet MAC1 address: 6c:cf:39:00:1a:bc
--------EEPROM INFO--------

In:    serial
Out:   serial
Err:   serial
Model: StarFive VisionFive V2
Net:   eth0: ethernet@16030000, eth1: ethernet@16040000
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc1 is current device
Try booting from MMC1 ...
Can't set block device
## Info: input data size = 16453 = 0x4045
## Error: "boot2" not defined
Card did not respond to voltage select! : -110
starfive_pcie pcie@2B000000: Starfive PCIe bus probed.
PCI: Failed autoconfig bar 10
starfive_pcie pcie@2C000000: Starfive PCIe bus probed.
PCI: Failed autoconfig bar 10

Device 0: unknown device

Device 0: unknown device
Tring booting distro ...
switch to partitions #0, OK
mmc1 is current device
Try booting from MMC1 ...
Can't set block device
## Warning: defaulting to text format
## Info: input data size = 16453 = 0x4045
Can't set block device
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
fatwrite - write file into a dos filesystem

Usage:
fatwrite <interface> <dev[:part]> <addr> <filename> [<bytes> [<offset>]]
    - write file 'filename' from the address 'addr' in RAM
      to 'dev' on 'interface'
Retrieving file: /extlinux/extlinux.conf
Can't set block device
Error reading config file
Card did not respond to voltage select! : -110

Device 0: unknown device

Device 0: unknown device
StarFive #

Anyone can suggest further tests?

Write the latest release to a micro SD card, set the boot switches and try again. I hope you have one board where you didn’t try to update the firmware.

https://rvspace.org/en/project/VisionFive2_Debian_Wiki_202308_Release#boot-mode-settings

I used 202308, it works with the newest cards but not in the Kickstarter one.

Did you try changing the boot switches?
Can you try with image 55?
I only see a torrent file, but I hope the torrent is still available.

What do you mean with “image 55”?

Go to: debian.starfivetech.com
I use OneDrive and look for image 55.

Oh it is an image to flash the sd card. I don’t think the problem is in the debian image which doesn’t even get loaded. Here the first part of the log of a working board:

U-Boot SPL 2021.10 (Feb 12 2023 - 18:15:33 +0800)
DDR version: dc2e84f0.
Trying to boot from SPI

OpenSBI v1.2
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name             : StarFive VisionFive V2
Platform Features         : medeleg
Platform HART Count       : 5
Platform IPI Device       : aclint-mswi
Platform Timer Device     : aclint-mtimer @ 4000000Hz
Platform Console Device   : uart8250
Platform HSM Device       : jh7110-hsm
Platform PMU Device       : ---
Platform Reboot Device    : pm-reset
Platform Shutdown Device  : pm-reset
Firmware Base             : 0x40000000
Firmware Size             : 292 KB
Runtime SBI Version       : 1.0

Domain0 Name              : root
Domain0 Boot HART         : 1
Domain0 HARTs             : 0*,1*,2*,3*,4*
Domain0 Region00          : 0x0000000002000000-0x000000000200ffff (I)
Domain0 Region01          : 0x0000000040000000-0x000000004007ffff ()
Domain0 Region02          : 0x0000000000000000-0xffffffffffffffff (R,W,X)
Domain0 Next Address      : 0x0000000040200000
Domain0 Next Arg1         : 0x0000000042200000
Domain0 Next Mode         : S-mode
Domain0 SysReset          : yes

Boot HART ID              : 1
Boot HART Domain          : root
Boot HART Priv Version    : v1.11
Boot HART Base ISA        : rv64imafdcbx
Boot HART ISA Extensions  : none
Boot HART PMP Count       : 8
Boot HART PMP Granularity : 4096
Boot HART PMP Address Bits: 34
Boot HART MHPM Count      : 2
Boot HART MIDELEG         : 0x0000000000000222
Boot HART MEDELEG         : 0x000000000000b109


U-Boot 2021.10 (Feb 12 2023 - 18:15:33 +0800), Build: jenkins-VF2_515_Branch_SDK_Release-24

CPU:   rv64imacu
Model: StarFive VisionFive V2
DRAM:  8 GiB
MMC:   sdio0@16010000: 0, sdio1@16020000: 1
Loading Environment from SPIFlash... SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

StarFive EEPROM format v2

--------EEPROM INFO--------
Vendor : StarFive Technology Co., Ltd.
Product full SN: VF7110B1-2253-D008E000-00003422
data version: 0x2
PCB revision: 0xb2
BOM revision: A
Ethernet MAC0 address: 6c:cf:39:00:3e:18
Ethernet MAC1 address: 6c:cf:39:00:3e:19
--------EEPROM INFO--------

In:    serial@10000000
Out:   serial@10000000
Err:   serial@10000000
Model: StarFive VisionFive V2
Net:   eth0: ethernet@16030000, eth1: ethernet@16040000
switch to partitions #0, OK
mmc1 is current device
found device 1
bootmode flash device 1
Can't set block device
Failed to load '/boot/uEnv.txt'
Hit any key to stop autoboot:  0
Can't set block device
Importing environment from mmc1 ...
## Warning: Input data exceeds 1048576 bytes - truncated
## Info: input data size = 1048578 = 0x100002
385 bytes read in 8 ms (46.9 KiB/s)
## Warning: defaulting to text format
## Error: "boot2" not defined
47546 bytes read in 16 ms (2.8 MiB/s)
47546 bytes written in 30 ms (1.5 MiB/s)
Retrieving file: /boot/extlinux/extlinux.conf
863 bytes read in 12 ms (69.3 KiB/s)
U-Boot menu
1:      Debian GNU/Linux bookworm/sid 5.15.0-starfive
2:      Debian GNU/Linux bookworm/sid 5.15.0-starfive (rescue target)
Enter choice: 1:        Debian GNU/Linux bookworm/sid 5.15.0-starfive
Retrieving file: /boot/initrd.img-5.15.0-starfive
9684944 bytes read in 2283 ms (4 MiB/s)
Retrieving file: /boot/vmlinuz-5.15.0-starfive
8015160 bytes read in 2007 ms (3.8 MiB/s)
append: root=/dev/mmcblk1p3 root=/dev/mmcblk1p3 rw console=tty0 console=ttyS0,115200 earlycon rootwait stmmaceth=chain_mode:1 selinux=0
Retrieving file: /boot/dtbs/starfive/jh7110-visionfive-v2.dtb
47546 bytes read in 15 ms (3 MiB/s)
   Uncompressing Kernel Image
Moving Image from 0x44000000 to 0x40200000, end=41767000
## Flattened Device Tree blob at 48000000
   Booting using the fdt blob at 0x48000000
   Using Device Tree in place at 0000000048000000, end 000000004800e9b9

Starting kernel ...

the key part is

found device 1
bootmode flash device 1

which is missing in the “brick” board

Can you try image 55 anyway?

The problem, as I see it, is that the QSPI NOR flash on your board contains a very old bootloader.

And the size that has been allocated to that bootloader1 (SPL ; /dev/mtd0 ; u-boot-spl.bin.normal.out ) has changed since that firmware was created. It was originally allocated 0x20000 bytes (128KiB), but it is currently allocated 0x40000 bytes (256KiB).

So if you boot up using the onboard QSPI NOR FLASH, that first partition (/dev/mtd0) is too small. If you try and write the current bootloader1 (147336 bytes) everything after the first 128KiB (131072 bytes) will be truncated and you will be missing about 13% of the firmware.

Here is what I see on my fully updated board when I boot up the “current” StarFive VisionFive 2 202308 Debian image:

user@starfive:~$ cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00001000 "spl"
mtd1: 00300000 00001000 "uboot"
mtd2: 00100000 00001000 "data"
user@starfive:~$ uname -a
Linux starfive 5.15.0-starfive #1 SMP Wed Aug 23 11:18:20 CST 2023 riscv64 GNU/Linux
user@starfive:~$ sudo strings /dev/mtd0 | grep "U-Boot SPL 2021.10"
[sudo] password for user:
U-Boot SPL 2021.10 (Aug 31 2023 - 12:55:45 +0800)
user@starfive:~/firmware$ sudo strings /dev/mtd1 | grep "U-Boot 2021.10"
U-Boot 2021.10 (Aug 31 2023 - 12:55:45 +0800)
user@starfive:~$

I know that a compile/build date of “August 31 2023” corresponds to the “VF2_v3.6.1/u-boot-spl.bin.normal.out” (bootloader1) and the “VF2_v3.6.1/visionfive2_fw_payload.img” (bootloader2).

This is what I would expect to see for your board (00020000 is the problem area):

dev:    size   erasesize  name
mtd0: 00020000 00001000 "spl"
mtd1: 00300000 00001000 "uboot"
mtd2: 00100000 00001000 "data"

U-Boot SPL 2021.10 (Oct 31 2022 - 12:11:37 +0800)
U-Boot 2021.10 (Oct 31 2022 - 12:11:37 +0800), Build: jenkins-VF2_515_Branch_SDK_Release-10

Because the bootloader1 (/dev/md0 ; U-Boot SPL ; u-boot-spl.bin.normal.out) has a current filesize of 147336 bytes (~144 KiB) that is now too large to be written to the 128 KiB allocated on your QSPI flash.

The way I see it you have 3 options be able to boot up using the latest image.

1> Upgrade the firmware on the QSPI NOR FLASH using a TFTP server from within the U-Boot bootloader.
2> Change the boot switches to boot from SDIO 3.0 and read both firmware/bootloaders from the last SD (or eMMC) image that supported that (now depreciated) feature (StarFive VisionFive 2 202303 Debian image)
3> Decompile your current dtb (Device Tree Binary) file for image-55, patch it with the new size, boot up using the newly patched dtb with the larger allocation and then upgrade the QSPI NOR FLASH from Linux using flashcp command (apt install mtd-utils).

I choose option 2 because it was the simplest method with the least effort for me to upgrade my QSPI NOR FLASH.

For now I suspect that the only two image files that will work for you are Image-55 if you are booting using QSPI (the current recommended way of booting the board) provided you leave the boot switches in the factory default position. Or image image-202303 if, and only if, you change the boot switches (while the board is powered off) to boot from SDIO3.0. P.S. If you boot using image-55 you can not easily write the latest firmware without using option 3 above, which is simple for some and a nightmare for others.

1 Like

I went through my notes again, and image 55 is still available from Github. https://github.com/starfive-tech/VisionFive2/releases/download/VF2_v2.5.0/sdcard.img
If you write the image to SD card with a Linux machine, you can try to mount it and add the firmware files, before using it to boot the VisionFive 2. Another option is to copy the firmware files to a USB stick.
Assuming you know how to find the IP address, you can do the update with ssh.
https://youtu.be/KyUA3YEV95w

SUCCESS

:star_struck:

I repeated the “Recovering the Bootloader” procedure from QSG with u-boot-spl.bin.normal.out and visionfive2_fw_payload.img both from release 2.5

and now I’m able to boot into latest debian and login as user.

Fun fact, I flashed the 2.5 image to a microSD also and, for strange it may seem, It didn’t really go as expected and I couldn’t log in, for the curious here’s the (last part of) boot log (post was too long):


Starting kernel ...

clk u5_dw_i2c_clk_core already disabled
clk u5_dw_i2c_clk_apb already disabled
[    0.000000] Linux version 5.15.0 (jenkins@soft05) (riscv64-buildroot-linux-gnu-gcc.br_real (Buildroot VF2_v2.5.0) 10.3.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP Sun Dec 25 20:59:22 CST 2022
[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Machine model: StarFive VisionFive V2
[    0.000000] earlycon: sbi0 at I/O port 0x0 (options '')
[    0.000000] printk: bootconsole [sbi0] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000080000000, size 512 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000023fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x00000000c010ffff]
[    0.000000]   node   0: [mem 0x00000000c0110000-0x00000000c01fffff]
[    0.000000]   node   0: [mem 0x00000000c0200000-0x000000023fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x000000023fffffff]
[    0.000000] SBI specification v0.3 detected
[    0.000000] SBI implementation ID=0x1 Version=0x10000
[    0.000000] SBI TIME extension detected
[    0.000000] SBI IPI extension detected
[    0.000000] SBI RFENCE extension detected
[    0.000000] SBI v0.2 HSM extension detected
[    0.000000] CPU with hartid=0 is not available
[    0.000000] CPU with hartid=0 is not available
[    0.000000] riscv: ISA extensions acdfim
[    0.000000] riscv: ELF capabilities acdfim
[    0.000000] percpu: Embedded 17 pages/cpu s31528 r8192 d29912 u69632
[    0.000000] pcpu-alloc: s31528 r8192 d29912 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 2067975
[    0.000000] Kernel command line: earlyprintk console=ttyS0,115200 debug rootwait earlycon=sbi root=/dev/mmcblk1p4
[    0.000000] Unknown command line parameters: earlyprintk
[    0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[    0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x00000000fbfff000-0x00000000fffff000] (64MB)
[    0.000000] Memory: 7468836K/8386560K available (9878K kernel code, 4982K rwdata, 4096K rodata, 2191K init, 401K bss, 393436K reserved, 524288K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] rcu:     RCU debug extended QS entry/exit.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 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] CPU with hartid=0 is not available
[    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: plic@c000000: mapped 136 interrupts with 4 handlers for 9 contexts.
[    0.000000] random: get_random_bytes called from start_kernel+0x4d0/0x6e2 with crng_init=0
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [1]
[    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.008246] clocksource: timer@13050000.ch0: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.018469] clocksource: timer@13050000.ch1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.028792] clocksource: timer@13050000.ch2: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.039098] clocksource: timer@13050000.ch3: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.049572] Console: colour dummy device 80x25
[    0.053981] Calibrating delay loop (skipped), value calculated using timer frequency.. 8.00 BogoMIPS (lpj=40000)
[    0.064175] pid_max: default: 32768 minimum: 301
[    0.069092] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.076762] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.086138] ASID allocator disabled
[    0.089659] rcu: Hierarchical SRCU implementation.
[    0.094578] EFI services will not be available.
[    0.099418] smp: Bringing up secondary CPUs ...
[    0.105514] smp: Brought up 1 node, 4 CPUs
[    0.111424] devtmpfs: initialized
[    0.122025] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.131811] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.152430] pinctrl core: initialized pinctrl subsystem
[    0.158466] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.164992] cpuidle: using governor menu
[    0.190469] platform soc:dsi-output: Fixing up cyclic dependency with 29400000.dc8200
[    0.198770] platform 295d0000.mipi: Fixing up cyclic dependency with soc:dsi-output
[    0.206752] platform 29590000.hdmi: Fixing up cyclic dependency with 29400000.dc8200
[    0.226320] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.232947] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.242888] vgaarb: loaded
[    0.245755] SCSI subsystem initialized
[    0.249569] libata version 3.00 loaded.
[    0.253520] usbcore: registered new interface driver usbfs
[    0.258962] usbcore: registered new interface driver hub
[    0.264414] usbcore: registered new device driver usb
[    0.269698] mc: Linux media interface: v0.10
[    0.273906] videodev: Linux video capture interface: v2.00
[    0.279627] Advanced Linux Sound Architecture Driver Initialized.
[    0.286018] Bluetooth: Core ver 2.22
[    0.289550] NET: Registered PF_BLUETOOTH protocol family
[    0.294884] Bluetooth: HCI device and connection manager initialized
[    0.301313] Bluetooth: HCI socket layer initialized
[    0.306242] Bluetooth: L2CAP socket layer initialized
[    0.311373] Bluetooth: SCO socket layer initialized
[    0.316581] clocksource: Switched to clocksource riscv_clocksource
[    0.329829] NET: Registered PF_INET protocol family
[    0.335854] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.351082] tcp_listen_portaddr_hash hash table entries: 4096 (order: 5, 163840 bytes, linear)
[    0.359877] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.368553] TCP bind hash table entries: 65536 (order: 9, 2097152 bytes, linear)
[    0.378318] TCP: Hash tables configured (established 65536 bind 65536)
[    0.385065] UDP hash table entries: 4096 (order: 6, 393216 bytes, linear)
[    0.392216] UDP-Lite hash table entries: 4096 (order: 6, 393216 bytes, linear)
[    0.400063] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.406312] RPC: Registered named UNIX socket transport module.
[    0.412176] RPC: Registered udp transport module.
[    0.416934] RPC: Registered tcp transport module.
[    0.421692] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.428908] PCI: CLS 0 bytes, default 64
[    0.433391] Initialise system trusted keyrings
[    0.436937] Unpacking initramfs...
[    0.437926] workingset: timestamp_bits=62 max_order=21 bucket_order=0
[    0.453686] NFS: Registering the id_resolver key type
[    0.458707] Key type id_resolver registered
[    0.462910] Key type id_legacy registered
[    0.467094] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.473744] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.481272] ntfs: driver 2.1.32 [Flags: R/W].
[    0.485873] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.492369] fuse: init (API version 7.34)
[    0.535126] NET: Registered PF_ALG protocol family
[    0.539892] Key type asymmetric registered
[    0.544015] Asymmetric key parser 'x509' registered
[    0.549068] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.556409] io scheduler mq-deadline registered
[    0.561027] io scheduler kyber registered
[    0.565994] start plist test
[    0.573354] end plist test
[    0.671362] clk-starfive-jh7110 13020000.clock-controller: starfive JH7110 clkgen init successfully.
[    0.681586] L2CACHE: DataError @ 0x00000000.08040140
[    0.686534] L2CACHE: DataFail @ 0x00000000.0804006C
[    0.691530] L2CACHE: No. of Banks in the cache: 8
[    0.696190] L2CACHE: No. of ways per bank: 16
[    0.700627] L2CACHE: Sets per bank: 256
[    0.704509] L2CACHE: Bytes per cache block: 64
[    0.709031] L2CACHE: Index of the largest way enabled: 15
[    0.714791] jh7110-pmu 17030000.power-controller: registered 8 power domains
[    0.782561] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    0.791699] @@#########################@@
[    0.833871] @@ dev ptr:ffffffe0bff00000/1500/1
[    0.838511] PVR_K:  1: Read BVNC 36.50.54.182 from HW device registers
[    0.845038] PVR_K:  1: RGX Device registered BVNC 36.50.54.182 with 1 core in the system
[    0.854402] [drm] Initialized pvr 1.17.6210866 20170530 for 18000000.gpu on minor 0
[    0.871601] loop: module loaded
[    0.877142] spi-nor spi0.0: gd25lq128d (16384 Kbytes)
[    6.213317] Initramfs unpacking failed: invalid magic at start of compressed archive
[    6.387623] Freeing initrd memory: 122788K
[    6.403208] 3 fixed-partitions partitions found on MTD device 13010000.spi.0
[    6.410233] Creating 3 MTD partitions on "13010000.spi.0":
[    6.415750] 0x000000000000-0x000000020000 : "spl"
[    6.422334] 0x000000100000-0x000000400000 : "uboot"
[    6.428753] 0x000000f00000-0x000001000000 : "data"
[    6.436126] libphy: Fixed MDIO Bus: probed
[    6.441667] CAN device driver interface
[    6.446010] starfive-eth-plat 16030000.ethernet: force_sf_dma_mode is ignored if force_thresh_dma_mode is set.
[    6.456337] starfive-eth-plat 16030000.ethernet: User ID: 0x41, Synopsys ID: 0x52
[    6.463764] starfive-eth-plat 16030000.ethernet:     DWMAC4/5
[    6.469304] starfive-eth-plat 16030000.ethernet: DMA HW capability register supported
[    6.477187] starfive-eth-plat 16030000.ethernet: RX Checksum Offload Engine supported
[    6.485062] starfive-eth-plat 16030000.ethernet: Wake-Up On Lan supported
[    6.491921] starfive-eth-plat 16030000.ethernet: TSO supported
[    6.497813] starfive-eth-plat 16030000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    6.506210] starfive-eth-plat 16030000.ethernet: Enabled Flow TC (entries=1)
[    6.513328] starfive-eth-plat 16030000.ethernet: TSO feature enabled
[    6.519740] starfive-eth-plat 16030000.ethernet: Using 40 bits DMA width
[    6.768950] libphy: stmmac: probed
[    6.772291] YT8531 Gigabit Ethernet stmmac-0:00: attached PHY driver (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    6.782284] YT8531 Gigabit Ethernet stmmac-0:01: attached PHY driver (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
[    6.793435] starfive-eth-plat 16040000.ethernet: force_sf_dma_mode is ignored if force_thresh_dma_mode is set.
[    6.803751] starfive-eth-plat 16040000.ethernet: User ID: 0x41, Synopsys ID: 0x52
[    6.811182] starfive-eth-plat 16040000.ethernet:     DWMAC4/5
[    6.816719] starfive-eth-plat 16040000.ethernet: DMA HW capability register supported
[    6.824590] starfive-eth-plat 16040000.ethernet: RX Checksum Offload Engine supported
[    6.832489] starfive-eth-plat 16040000.ethernet: Wake-Up On Lan supported
[    6.839336] starfive-eth-plat 16040000.ethernet: TSO supported
[    6.845216] starfive-eth-plat 16040000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    6.853642] starfive-eth-plat 16040000.ethernet: Enabled Flow TC (entries=1)
[    6.860745] starfive-eth-plat 16040000.ethernet: TSO feature enabled
[    6.867157] starfive-eth-plat 16040000.ethernet: Using 40 bits DMA width
[    7.115052] libphy: stmmac: probed
[    7.118420] YT8512B Ethernet stmmac-1:00: attached PHY driver (mii_bus:phy_addr=stmmac-1:00, irq=POLL)
[    7.127762] YT8512B Ethernet stmmac-1:03: attached PHY driver (mii_bus:phy_addr=stmmac-1:03, irq=POLL)
[    7.138621] Intel(R) Wireless WiFi driver for Linux
[    7.145325] cdns3-starfive 10210000.usbdrd: usb mode 2 2.0 probe success
[    7.152745] usbcore: registered new interface driver uas
[    7.158058] usbcore: registered new interface driver usb-storage
[    7.176911] starfive-rtc 17040000.rtc: registered as rtc0
[    7.182247] starfive-rtc 17040000.rtc: setting system clock to 2001-01-01T00:00:00 UTC (978307200)
[    7.191405] i2c_dev: i2c /dev entries driver
[    7.195848] usbcore: registered new interface driver uvcvideo
[    7.202698] starfive-wdt 13070000.wdog: Heartbeat: timeout=15, count/2=180000000 (0aba9500)
[    7.211511] Bluetooth: HCI UART driver ver 2.3
[    7.215886] Bluetooth: HCI UART protocol H4 registered
[    7.221317] starfive-cpufreq soc:starfive,jh7110-cpufreq: Failed to get regulator for cpu!
[    7.229536] starfive-cpufreq soc:starfive,jh7110-cpufreq: Failed to init starfive cpu dvfs info
[    7.238815] sdhci: Secure Digital Host Controller Interface driver
[    7.244929] sdhci: Copyright(c) Pierre Ossman
[    7.249397] Synopsys Designware Multimedia Card Interface Driver
[    7.255721] sdhci-pltfm: SDHCI platform and OF driver helper
[    7.262116] jh7110-sec 16000000.crypto: Unable to request sec_m dma channel in DMA channel
[    7.270336] jh7110-sec 16000000.crypto: Cannot initial dma chan
[    7.276608] usbcore: registered new interface driver usbhid
[    7.282112] usbhid: USB HID core driver
[    7.286256] usbcore: registered new interface driver snd-usb-audio
[    7.300156] NET: Registered PF_PACKET protocol family
[    7.305157] can: controller area network core
[    7.309696] NET: Registered PF_CAN protocol family
[    7.314421] can: raw protocol
[    7.317472] can: broadcast manager protocol
[    7.321706] can: netlink gateway - max_hops=1
[    7.326465] Bluetooth: RFCOMM TTY layer initialized
[    7.331324] Bluetooth: RFCOMM socket layer initialized
[    7.336498] Bluetooth: RFCOMM ver 1.11
[    7.340342] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    7.345662] Bluetooth: BNEP filters: protocol multicast
[    7.350972] Bluetooth: BNEP socket layer initialized
[    7.356181] 9pnet: Installing 9P2000 support
[    7.360463] Key type dns_resolver registered
[    7.365475] Loading compiled-in X.509 certificates
[    7.406175] starfive_jh7110-pinctrl 13040000.gpio: SiFive GPIO chip registered 64 GPIOs
[    7.414915] starfive_jh7110-pinctrl 17020000.gpio: SiFive GPIO chip registered 4 GPIOs
[    7.423004] pl08xdmac 16008000.sec_dma: initialized 8 virtual memcpy channels
[    7.430104] pl08xdmac 16008000.sec_dma: initialized 16 virtual slave channels
[    7.438960] debugfs: Directory '16008000.sec_dma' with parent 'dmaengine' already present!
[    7.447203] pl08xdmac 16008000.sec_dma: DMA: PL080 rev0 at 0x16008000 irq 23
[    7.454531] ssp-pl022 10060000.spi: ARM PL022 driver for StarFive SoC platform, device ID: 0x00041022
[    7.463715] ssp-pl022 10060000.spi: mapped registers from 0x0000000010060000 to (____ptrval____)
[    7.472998] ssp-pl022 10060000.spi: Requested frequency: 10000000 Hz is unsupported,select by default 8250000 Hz
[    7.483507] ssp-pl022 10060000.spi: will use autosuspend for runtime pm, delay 100ms
[    7.492552] i2c 2-0045: Fixing up cyclic dependency with 295d0000.mipi
[    7.499303] seeed_panel 2-0045: Unknown Atmel firmware revision: 0x00
[    7.505870] i2c 2-0019: Fixing up cyclic dependency with 295d0000.mipi
[    7.513767] at24 5-0050: supply vcc not found, using dummy regulator
[    7.520886] at24 5-0050: 512 byte 24c04 EEPROM, writable, 16 bytes/write
[    7.529441] axp15060-regulator 5-0036: Register mipi_0p9 done! vol range:900 ~ 900 mV
[    7.538711] axp15060-regulator 5-0036: Register hdmi_1p8 done! vol range:1800 ~ 1800 mV
[    7.548153] axp15060-regulator 5-0036: Register hdmi_0p9 done! vol range:900 ~ 900 mV
[    7.557436] axp15060-regulator 5-0036: Register cpu_vdd done! vol range:500 ~ 1540 mV
[    7.565969] i2c 6-0010: Fixing up cyclic dependency with 19800000.vin_sysctl
[    7.573370] imx219 6-0010: supply VANA not found, using dummy regulator
[    7.580067] imx219 6-0010: supply VDIG not found, using dummy regulator
[    7.586688] imx219 6-0010: supply VDDL not found, using dummy regulator
[    7.600772] imx219 6-0010: failed to read chip id 219
[    7.605963] imx219: probe of 6-0010 failed with error -5
[    7.613776] pcie_plda 2b000000.pcie: host bridge /soc/pcie@2B000000 ranges:
[    7.620753] pcie_plda 2b000000.pcie:      MEM 0x0030000000..0x0037ffffff -> 0x0030000000
[    7.628868] pcie_plda 2b000000.pcie:      MEM 0x0900000000..0x093fffffff -> 0x0900000000
[    7.637041] ATR entry: 0x0940000000 -> 0x0000000000 [0x0010000000] (param: 0x000001)
[    7.644776] ATR entry: 0x0030000000 -> 0x0030000000 [0x0008000000] (param: 0x000000)
[    7.652592] ATR entry: 0x0900000000 -> 0x0900000000 [0x0040000000] (param: 0x000000)
[    8.006677] pcie_plda 2b000000.pcie: Port link up.
[    8.011555] pcie_plda 2b000000.pcie: PCI host bridge to bus 0000:00
[    8.017773] pci_bus 0000:00: root bus resource [bus 00-ff]
[    8.023296] pci_bus 0000:00: root bus resource [mem 0x30000000-0x37ffffff]
[    8.030248] pci_bus 0000:00: root bus resource [mem 0x900000000-0x93fffffff pref]
[    8.037812] pci 0000:00:00.0: [1556:1111] type 01 class 0x060400
[    8.043847] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0xffffffff 64bit pref]
[    8.051184] pci 0000:00:00.0: supports D1 D2
[    8.055449] pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    8.065614] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.073702] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    8.079665] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    8.086564] pci 0000:01:00.0: PME# supported from D0 D3cold
[    8.095414] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    8.102020] pci 0000:00:00.0: BAR 0: no space for [mem size 0x100000000 64bit pref]
[    8.109694] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x100000000 64bit pref]
[    8.117753] pci 0000:00:00.0: BAR 8: assigned [mem 0x30000000-0x300fffff]
[    8.124585] pci 0000:01:00.0: BAR 0: assigned [mem 0x30000000-0x30000fff 64bit]
[    8.131976] pci 0000:00:00.0: PCI bridge to [bus 01]
[    8.136991] pci 0000:00:00.0:   bridge window [mem 0x30000000-0x300fffff]
[    8.143924] pci 0000:00:00.0: enabling device (0000 -> 0002)
[    8.149574] pci 0000:01:00.0: enabling device (0000 -> 0002)
[    8.155321] pci 0000:01:00.0: quirk_usb_early_handoff+0x0/0x9d4 took 11139 usecs
[    8.162935] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    8.168121] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    8.175982] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000040000000890
[    8.185122] pcie_plda 2b000000.pcie: msi#0 address_hi 0x0 address_lo 0x190
[    8.192361] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    8.197547] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    8.204975] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    8.212037] hub 1-0:1.0: USB hub found
[    8.215745] hub 1-0:1.0: 1 port detected
[    8.220764] hub 2-0:1.0: USB hub found
[    8.224473] hub 2-0:1.0: 4 ports detected
[    8.231296] pcie_plda 2c000000.pcie: host bridge /soc/pcie@2C000000 ranges:
[    8.238254] pcie_plda 2c000000.pcie:      MEM 0x0038000000..0x003fffffff -> 0x0038000000
[    8.246362] pcie_plda 2c000000.pcie:      MEM 0x0980000000..0x09bfffffff -> 0x0980000000
[    8.254562] ATR entry: 0x09c0000000 -> 0x0000000000 [0x0010000000] (param: 0x000001)
[    8.262319] ATR entry: 0x0038000000 -> 0x0038000000 [0x0008000000] (param: 0x000000)
[    8.270110] ATR entry: 0x0980000000 -> 0x0980000000 [0x0040000000] (param: 0x000000)
[    8.436627] usb usb2-port2: over-current condition
[    8.536634] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    8.596659] usb usb2-port4: over-current condition
[    8.706847] pcie_plda 2c000000.pcie: Port link down, exit.
[    8.725998] clk-starfive-jh7110-vout 295c0000.clock-controller: starfive JH7110 clk_vout init successfully.
[    8.747368] clk-starfive-jh7110-isp 19810000.clock-controller: starfive JH7110 clk_isp init successfully.
[    8.747836] hub 1-1:1.0: USB hub found
[    8.757515] dw_axi_dmac_platform 16050000.dma-controller: DesignWare AXI DMA Controller, 4 channels
[    8.761091] hub 1-1:1.0: 4 ports detected
[    8.770818] printk: console [ttyS0] disabled
[    8.807421] printk: console [ttyS0] enabled0x10000000 (irq = 17, base_baud = 1500000) is a 16550A
[    8.807421] printk: console [ttyS0] enabled
[    8.815704] printk: bootconsole [sbi0] disabled
[    8.815704] printk: bootconsole [sbi0] disabled
[    8.825322] jh7110-vin 19800000.vin_sysctl: stfcamss probe enter!
[    8.833416] jh7110-vin 19800000.vin_sysctl: stfcamss probe success!
[    8.842160] dwmmc_starfive 16010000.sdio0: IDMAC supports 32-bit address mode.
[    8.842628] dwmmc_starfive 16020000.sdio1: IDMAC supports 32-bit address mode.
[    8.849477] dwmmc_starfive 16010000.sdio0: Using internal DMA controller.
[    8.856711] dwmmc_starfive 16020000.sdio1: Using internal DMA controller.
[    8.863472] dwmmc_starfive 16010000.sdio0: Version ID is 290a
[    8.870274] dwmmc_starfive 16020000.sdio1: Version ID is 290a
[    8.876046] dwmmc_starfive 16010000.sdio0: DW MMC controller at irq 29,32 bit host data width,32 deep fifo
[    8.881803] dwmmc_starfive 16020000.sdio1: DW MMC controller at irq 30,32 bit host data width,32 deep fifo
[    8.891553] mmc_host mmc0: card is non-removable.
[    8.901264] mmc_host mmc1: card is polling.
[    8.906175] jh7110-sec 16000000.crypto: will run requests pump with realtime priority
[    8.919718] jh7110-sec 16000000.crypto: Initialized
[    8.925241] starfive-i2s 120b0000.i2stx_4ch0:  designware: play supported
[    8.932045] starfive-i2s 120b0000.i2stx_4ch0: designware: i2s master mode supported
[    8.939807] sf-mipi-dphy-tx 295e0000.mipi-dphy: sf_dphy_probe begin
[    8.946077] sf-mipi-dphy-tx 295e0000.mipi-dphy: ===> sf_dphy_probe enter, 445
[    8.953374] sf-mipi-dphy-tx 295e0000.mipi-dphy: control ECO
[    8.958967] sf-mipi-dphy-tx 295e0000.mipi-dphy: supply mipi_1p8 not found, using dummy regulator
[    8.967920] sf-mipi-dphy-tx 295e0000.mipi-dphy: sf_dphy_probe end
[    8.974106] cdns-dsi 295d0000.mipi: dsi_sys_clk = 297000000
[    8.979847] cdns-dsi 295d0000.mipi: starfive dsi bind end
[    8.986465] of_cfs_init
[    8.988991] of_cfs_init: OK
[    8.992103] starfive-pwmdac 100b0000.pwmdac: clk_apb0 = 49500000, clk_pwmdac_apb = 49500000, clk_pwmdac_core = 4068493
[    9.003081] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    9.117701] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    9.126634] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 400000Hz, actual 399193HZ div = 248)
[    9.128345] starfive soc:display-subsystem: bound 29400000.dc8200 (ops 0xffffffff80e75b38)
[    9.136629] mmc_host mmc1: Bus speed (slot 0) = 198000000Hz (slot req 400000Hz, actual 399193HZ div = 248)
[    9.144635] innohdmi-starfive 29590000.hdmi: inno hdmi bind begin
[    9.161428] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    9.170134] cfg80211: failed to load regulatory.db
[    9.175971] innohdmi-starfive 29590000.hdmi: [drm:inno_hdmi_bind] registered Inno HDMI I2C bus driver success
[    9.186185] innohdmi-starfive 29590000.hdmi: HDMI&AUDIO register done.
[    9.192800] innohdmi-starfive 29590000.hdmi: inno hdmi bind end
[    9.198754] starfive soc:display-subsystem: bound 29590000.hdmi (ops 0xffffffff80e768e8)
[    9.206874] vs-simple-encoder soc:dsi-output: encoder_bind begin
[    9.212923] no panel, -517
[    9.215638] vs-simple-encoder soc:dsi-output: encoder_bind error
[    9.221673] starfive soc:display-subsystem: bound soc:dsi-output (ops 0xffffffff80e76530)
[    9.230317] [drm] Initialized starfive 1.0.0 20191101 for soc:display-subsystem on minor 1
[    9.366818] random: fast init done
[    9.394589] mmc_host mmc1: Bus speed (slot 0) = 198000000Hz (slot req 50000000Hz, actual 49500000HZ div = 2)
[    9.404657] mmc1: new high speed SDHC card at address 0007
[    9.412001] mmcblk1: mmc1:0007 SD04G 3.71 GiB
[    9.427155]  mmcblk1: p1 p2 p3 p4
[    9.576695] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 300000Hz, actual 300000HZ div = 330)
[   10.016714] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 200000Hz, actual 200000HZ div = 495)
[   10.466690] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 100000Hz, actual 100000HZ div = 990)
[   11.296664] ALSA device list:
[   11.299660]   #0: Starfive-PWMDAC-Sound-Card
[   11.303960]   #1: Starfive-HDMI-Sound-Card
[   11.313279] Freeing unused kernel image (initmem) memory: 2188K
[   11.319528] Run /init as init process
[   11.323216]   with arguments:
[   11.326201]     /init
[   11.328529]     earlyprintk
[   11.331345]   with environment:
[   11.334508]     HOME=/
[   11.336917]     TERM=linux
find /dev/mmcblk1p4: 0
[   12.957388] EXT4-fs (mmcblk1p4): recovery complete
[   12.966854] EXT4-fs (mmcblk1p4): mounted filesystem with ordered data mode. Opts: (null). Quota mode: disabled.
mount: /rootfs/dev/shm: special device /dev/shm does not exist.
mount: /rootfs/dev/pts: special device /dev/pts does not exist.
INIT: version  booting
INIT: No inittab.d directory found
[   13.527809] EXT4-fs (mmcblk1p4): re-mounted. Opts: (null). Quota mode: disabled.
INIT: Entering runlevel: 3
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Populating /dev using udev: [   13.989691] udevd[220]: starting version 3.2.10
[   14.007607] random: udevd: uninitialized urandom read (16 bytes read)
[   14.015586] random: udevd: uninitialized urandom read (16 bytes read)
[   14.022172] random: udevd: uninitialized urandom read (16 bytes read)
[   14.054772] udevd[221]: starting eudev-3.2.10
[   14.163853] jpu: loading out-of-tree module taints kernel.
[   14.166450] vdec: loading out-of-tree module taints kernel.
[   14.172150] cnm_jpu 13090000.jpu: init device.
[   14.177329] SUCCESS alloc_chrdev_region
[   14.181653] vdec 130a0000.vpu_dec: device init.
[   14.187857] SUCCESS alloc_chrdev_region
done
Initializing random number generator: OK
Saving random seed: OK
Starting system message bus: dbus[266]: Unknown username "pulse" in message bus configuration file
done
Starting rpcbind: OK
Starting iptables: OK
Starting bluetoothd: OK
Starting network: OK
Starting Network Interface Plugging Daemon: eth0[   14.765459] starfive-eth-plat 16030000.ethernet eth0: PHY [stmmac-0:00] driver [YT8531 Gigabit Ethernet] (irq=POLL)
 eth1.
[   14.777105] starfive-eth-plat 16030000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
Starting dropbear sshd: [   14.795556] dwmac4: Master AXI performs fixed burst length
[   14.801081] starfive-eth-plat 16030000.ethernet eth0: No Safety Features support found
[   14.809036] starfive-eth-plat 16030000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   14.818284] starfive-eth-plat 16030000.ethernet eth0: configuring for phy/rgmii-id link mode
[   14.829053] starfive-eth-plat 16040000.ethernet eth1: PHY [stmmac-1:00] driver [YT8512B Ethernet] (irq=POLL)
[   14.839224] starfive-eth-plat 16040000.ethernet eth1: Register MEM_TYPE_PAGE_POOL RxQ-0
[   14.847740] dwmac4: Master AXI performs fixed burst length
[   14.853254] starfive-eth-plat 16040000.ethernet eth1: No Safety Features support found
[   14.861217] starfive-eth-plat 16040000.ethernet eth1: IEEE 1588-2008 Advanced Timestamp supported
[   14.871786] starfive-eth-plat 16040000.ethernet eth1: configuring for phy/rgmii-id link mode
OK
Starting NFS statd: OK
Starting NFS services: OK
Starting NFS daemon: rpc.nfsd: Unable to access /proc/fs/nfsd errno 2 (No such file or directory).
Please try, as root, 'mount -t nfsd nfsd /proc/fs/nfsd' and then restart rpc.nfsd to correct the problem
FAIL
Starting NFS mountd: rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
OK
Starting isp_ctrl_daemon.sh: OK
Starting DHCP server: FAIL

Welcome to Buildroot
buildroot login:

Trying to recap my understanding: the “kickstarter” unit was released earlier and it has QSPI NOR FLASH partitioned in the wrong way (and possibly a different hardware revision? how can I check that?) and, ideally I should update its formatting through the procedure 1> linked by mzs which I’ll dig next.

And then there are the other possibilities in 2> and 3> which I admit don’t really understand due to a general lack of information (aka ignorance) in the field of embedded linux in general and on this system in particular (one should start learing somewhere), pointers on how tackle my ignorance are welcome.

Thank you both, guys!

1 Like

There are two (public) hardware revisions of the board that I know about:
Hardware Board: VisionFive 2 version 1.2A (some of the Super Early Bird and Early Bird options on kickstarter, and some early online sellers). two different Ethernet ports, one support 10/100Mbps speed, other is 1000Mbps only
photo of 1.2A revision of the Visionfive 2 board

Hardware Board: VisionFive 2 version 1.3B (most of the boards on kickstarter, and nearly all of the online sellers). 2x 10/100/1000Mbit/second network ports.
photo of 1.3B revision of the Visionfive 2 board

I have also seen photographs of a 1.0 board and 1.1 board, but I suspect that those were not publicly distributed.

If you do not understand the information in one of my posts, that is usually my fault for assuming far too much technical background knowledge, and not yours for failing to understand. But when it comes to a new board with a new architecture, the people who initially frequent the forums arrive with a lot of knowledge.

The simple version would that when the board was released there were in theory at least four different ways to begin to bootup the board.

  1. UART (load a bootloader/firmware over the serial port) and get the board to begin the boot process.
  2. (factory default) 1-bit QSPI NOR FLASH (there is a 128Mbit flash chip, 16MiB GD25lQ128D, that is soldered onto the board that can store the bootloaders/firmwares) and get the board to begin the boot process.
  3. eMMC (embedded MultiMediaCard) module, there is a connector underneath the board where a storage module can plug in and it can hold the bootloaders/firmwares and full operating system.
  4. MicroSD (Secure Digital) card, there is a connector near the edge of the board where a SDIO 3.0 storage module can plug in and it can hold the bootloaders/firmwares and full operating system.

There are little switches on the board to toggle between these four options. See images in my previous post. The switches are not shown, but the text that mentions the boot options is.

This is not related to your problem but recently the last two options have been depreciated by StarFive (most of the time they will still work without issue, but not all the time, which is at a guess why they have been depreciated).

Oh, and at least 1 new boot option has been added NVMe (NonVolatile Memory express).

But to be able to boot images for the very latest MicroSD cards/EMMc modules/NVMe cards this now requires that the firmware stored in the onboard 16MiB 1-bit QSPI NOR FLASH is the latest and greatest. And the two firmwares/bootloaders on your board originally dated back to 2022-10-31:
U-Boot SPL 2021.10 (Oct 31 2022 - 12:11:37 +0800)
U-Boot 2021.10 (Oct 31 2022 - 12:11:37 +0800), Build: jenkins-VF2_515_Branch_SDK_Release-10

Update.

So “Kickstarter” board is effectively V1.2A (while the other two are v1.3B) and after a little “struggle” now I read

user@starfive:~$ cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00001000 "spl"
mtd1: 00300000 00001000 "uboot"
mtd2: 00100000 00001000 "data"
user@starfive:~$

So, but for one ETH100, I assume all the boards are equivalent.

1 Like