2025.01-rc2 fails to boot on VisionFive2
"Error reading cluster" is the new error.
U-Boot SPL 2025.01-rc2 (Nov 08 2024 - 07:13:26 +0000) DDR version: dc2e84f0.
Trying to boot from MMC2
U-Boot 2025.01-rc2 (Nov 08 2024 - 07:13:26 +0000)
CPU: sifive,u74-mc Model: StarFive VisionFive 2 v1.2A DRAM: 4 GiB Core: 136 devices, 26 uclasses, devicetree: board WDT: Not starting watchdog@13070000 MMC: mmc@16010000: 0, mmc@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-2249-D004E000-00000408
data version: 0x2
PCB revision: 0xa1
BOM revision: A
Ethernet MAC0 address: 6c:cf:39:00:16:8d
Ethernet MAC1 address: 6c:cf:39:00:16:8e
--------EEPROM INFO--------
starfive_7110_pcie pcie@2b000000: Starfive PCIe bus probed. starfive_7110_pcie pcie@2c000000: Starfive PCIe bus probed.
In: serial@10000000 Out: serial@10000000 Err: serial@10000000 Net: eth0: ethernet@16030000, eth1: ethernet@16040000
starting USB...
Bus xhci_pci: Register 5000420 NbrPorts 5
Starting the controller
USB XHCI 1.00
scanning bus xhci_pci for devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Working FDT set to ff72ca10
Hit any key to stop autoboot: 0
Card did not respond to voltage select! : -110
** Booting bootflow '<NULL>' with efi_mgr
Error reading cluster
Loading Boot0000 'mmc 1' failed
EFI boot manager: Cannot load any image
Boot failed (err=-14)
Card did not respond to voltage select! : -110
Signature · 3 lines
Andreas Schwab, SUSE Labs, [email protected] GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."
Quoted 36 lines · Andreas Schwab
"Error reading cluster" is the new error.
U-Boot SPL 2025.01-rc2 (Nov 08 2024 - 07:13:26 +0000) DDR version:
dc2e84f0.
Trying to boot from MMC2U-Boot 2025.01-rc2 (Nov 08 2024 - 07:13:26 +0000)
CPU: sifive,u74-mc Model: StarFive VisionFive 2 v1.2A DRAM: 4 GiB Core: 136 devices, 26 uclasses, devicetree: board WDT: Not starting watchdog@13070000 MMC: mmc@16010000: 0, mmc@16020000: 1Loading 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-2249-D004E000-00000408
data version:0x2
PCB revision:0xa1
BOM revision: A
Ethernet MAC0 address: 6c:cf:39:00:16:8d
Ethernet MAC1 address: 6c:cf:39:00:16:8e
--------EEPROM INFO--------
starfive_7110_pciepcie@2b000000: Starfive PCIe bus probed.starfive_7110_pciepcie@2c000000: Starfive PCIe bus probed.In: serial@10000000 Out: serial@10000000 Err: serial@10000000 Net: eth0: ethernet@16030000, eth1: ethernet@16040000
Quoted 11 lines
starting USB...
Busxhci_pci: Register 5000420 NbrPorts 5
Starting the controller
USB XHCI 1.00
scanning busxhci_pcifor devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Working FDT set toff72ca10
Hit any key to stop autoboot: 0
Card did not respond to voltage select! : -110
** Booting bootflow '<NULL>' withefi_mgr
Error reading cluster
This is a message from the FAT file system driver.
Which image reproduces the problem?
Did you run dosfsck on the ESP?
Best regards
Heinrich
Quoted 5 lines
Loading Boot0000 'mmc 1' failed
EFI boot manager: Cannot load any image
Boot failed (err=-14)
Card did not respond to voltage select! : -110
Quoted 42 lines · Heinrich Schuchardt
Quoted 29 lines · Andreas Schwab
"Error reading cluster" is the new error. U-Boot SPL 2025.01-rc2 (Nov 08 2024 - 07:13:26 +0000) DDR version:
dc2e84f0.
Trying to boot from MMC2
U-Boot 2025.01-rc2 (Nov 08 2024 - 07:13:26 +0000)CPU: sifive,u74-mc Model: StarFive VisionFive 2 v1.2A DRAM: 4 GiB Core: 136 devices, 26 uclasses, devicetree: board WDT: Not starting watchdog@13070000 MMC: mmc@16010000: 0, mmc@16020000: 1Loading 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-2249-D004E000-00000408
data version:0x2
PCB revision:0xa1
BOM revision: A
Ethernet MAC0 address: 6c:cf:39:00:16:8d
Ethernet MAC1 address: 6c:cf:39:00:16:8e
--------EEPROM INFO--------starfive_7110_pciepcie@2b000000: Starfive PCIe bus probed.starfive_7110_pciepcie@2c000000: Starfive PCIe bus probed.In: serial@10000000 Out: serial@10000000 Err: serial@10000000 Net: eth0: ethernet@16030000, eth1: ethernet@16040000Quoted 11 lines
starting USB...
Busxhci_pci: Register 5000420 NbrPorts 5
Starting the controller
USB XHCI 1.00
scanning busxhci_pcifor devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Working FDT set toff72ca10
Hit any key to stop autoboot: 0
Card did not respond to voltage select! : -110
** Booting bootflow '<NULL>' withefi_mgr
Error reading cluster
Quoted 1 line
This is a message from the FAT file system driver.
The file system is ok when read after interrupting the boot.
StarFive # mmc dev 1
switch to partitions #0, OK
mmc1 is current device
StarFive # ls mmc 1:1
EFI/
304 ubootefi.var
1 file(s), 1 dir(s)
StarFive # ls mmc 1:1 EFI
./
../
BOOT/0 file(s), 3 dir(s)
StarFive # ls mmc 1:1 EFI/BOOT
./
../
167936 BOOTRISCV64.EFI
164 grub.cfg2 file(s), 2 dir(s)
But running boot will end with the above error, and mmc 1 no longer works.
Quoted 1 line
Which image reproduces the problem?
I've built U-Boot here
<https://build.opensuse.org/project/show/home:Andreas_Schwab:riscv:u-boot>.
Signature · 3 lines
Andreas Schwab, SUSE Labs, [email protected] GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."
Quoted 44 lines · Andreas Schwab
Quoted 42 lines · Heinrich Schuchardt
Quoted 40 lines · Andreas Schwab
"Error reading cluster" is the new error. U-Boot SPL 2025.01-rc2 (Nov 08 2024 - 07:13:26 +0000) DDR version:
dc2e84f0.
Trying to boot from MMC2
U-Boot 2025.01-rc2 (Nov 08 2024 - 07:13:26 +0000)CPU: sifive,u74-mc Model: StarFive VisionFive 2 v1.2A DRAM: 4 GiB Core: 136 devices, 26 uclasses, devicetree: board WDT: Not starting watchdog@13070000 MMC: mmc@16010000: 0, mmc@16020000: 1Loading 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-2249-D004E000-00000408
data version:0x2
PCB revision:0xa1
BOM revision: A
Ethernet MAC0 address: 6c:cf:39:00:16:8d
Ethernet MAC1 address: 6c:cf:39:00:16:8e
--------EEPROM INFO--------starfive_7110_pciepcie@2b000000: Starfive PCIe bus probed.starfive_7110_pciepcie@2c000000: Starfive PCIe bus probed.In: serial@10000000 Out: serial@10000000 Err: serial@10000000 Net: eth0: ethernet@16030000, eth1: ethernet@16040000starting USB...
Busxhci_pci: Register 5000420 NbrPorts 5
Starting the controller
USB XHCI 1.00
scanning busxhci_pcifor devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Working FDT set toff72ca10
Hit any key to stop autoboot: 0
Card did not respond to voltage select! : -110
** Booting bootflow '<NULL>' withefi_mgr
Error reading cluster
Quoted 3 lines
Quoted 1 line
This is a message from the FAT file system driver.
The file system is ok when read after interrupting the boot.
That ls works does not mean that the file system is not corrupted.
dosfsck will tell you if there is something wrong.
Quoted 25 lines
StarFive # mmc dev 1
switch to partitions #0, OK
mmc1 is current device
StarFive # ls mmc 1:1
EFI/
304 ubootefi.var1 file(s), 1 dir(s)
StarFive # ls mmc 1:1 EFI
./ ../ BOOT/0 file(s), 3 dir(s)
StarFive # ls mmc 1:1 EFI/BOOT
./ ../ 167936 BOOTRISCV64.EFI 164 grub.cfg2 file(s), 2 dir(s)
Quoted 8 lines
But running boot will end with the above error, and mmc 1 no longer works.
Quoted 1 line
Which image reproduces the problem?
I've built U-Boot here
<https://build.opensuse.org/project/show/home:Andreas_Schwab:riscv:u-boot>.
I was asking which SD-card image that was used, e.g. some Suse preinstalled image.
Best regards
Heinrich
Quoted 88 lines · Heinrich Schuchardt
Quoted 44 lines · Andreas Schwab
Quoted 42 lines · Heinrich Schuchardt
Quoted 40 lines · Andreas Schwab
"Error reading cluster" is the new error. U-Boot SPL 2025.01-rc2 (Nov 08 2024 - 07:13:26 +0000) DDR version:
dc2e84f0.
Trying to boot from MMC2
U-Boot 2025.01-rc2 (Nov 08 2024 - 07:13:26 +0000)CPU: sifive,u74-mc Model: StarFive VisionFive 2 v1.2A DRAM: 4 GiB Core: 136 devices, 26 uclasses, devicetree: board WDT: Not starting watchdog@13070000 MMC: mmc@16010000: 0, mmc@16020000: 1Loading 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-2249-D004E000-00000408
data version:0x2
PCB revision:0xa1
BOM revision: A
Ethernet MAC0 address: 6c:cf:39:00:16:8d
Ethernet MAC1 address: 6c:cf:39:00:16:8e
--------EEPROM INFO--------starfive_7110_pciepcie@2b000000: Starfive PCIe bus probed.starfive_7110_pciepcie@2c000000: Starfive PCIe bus probed.In: serial@10000000 Out: serial@10000000 Err: serial@10000000 Net: eth0: ethernet@16030000, eth1: ethernet@16040000starting USB...
Busxhci_pci: Register 5000420 NbrPorts 5
Starting the controller
USB XHCI 1.00
scanning busxhci_pcifor devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Working FDT set toff72ca10
Hit any key to stop autoboot: 0
Card did not respond to voltage select! : -110
** Booting bootflow '<NULL>' withefi_mgr
Error reading clusterQuoted 3 lines
Quoted 1 line
This is a message from the FAT file system driver.
The file system is ok when read after interrupting the boot.
That ls works does not mean that the file system is not corrupted.
dosfsck will tell you if there is something wrong.
Quoted 25 lines
StarFive # mmc dev 1
switch to partitions #0, OK
mmc1 is current device
StarFive # ls mmc 1:1
EFI/
304 ubootefi.var1 file(s), 1 dir(s)
StarFive # ls mmc 1:1 EFI
./ ../ BOOT/0 file(s), 3 dir(s)
StarFive # ls mmc 1:1 EFI/BOOT
./ ../ 167936 BOOTRISCV64.EFI 164 grub.cfg2 file(s), 2 dir(s)
Quoted 8 lines
But running boot will end with the above error, and mmc 1 no longer works.
Quoted 1 line
Which image reproduces the problem?
I've built U-Boot here
<https://build.opensuse.org/project/show/home:Andreas_Schwab:riscv:u-boot>.
Quoted 6 lines
I was asking which SD-card image that was used, e.g. some Suse preinstalled image.
Best regards
Heinrich
Hi Andreas,
There is an offset (1GB?) in address space to DRAM. On boards having 4GB DRAM and more there is a failure to load data with mmc driver to the 4GB memory address. . If you load data smaller than the length of the offset to the 4GB address it is a valid action, however the MMC driver limitation will cause this to fail. Similarly you can load that same data to $loadaddr (2GB+320MB) or $kernel_addr_r (1GB+2MB) and that does not cause a problem.
Try 'load' from mmc storage and experiment with addresses above and below 0x100000000 (1024*1024*1024*4) this way to get a failure and a success. When there is a failure then the mmc storage appears to not respond in future requests. The content of data being transferred (OS image, EFI app, ...) does not matter there, so it should be easy to test for.
-E
Quoted 1 line · Heinrich Schuchardt
That ls works does not mean that the file system is not corrupted.
This obviously has nothing to do with the file system:
StarFive # load mmc 1 0x40200000 efi/boot/bootriscv64.efi 167936 bytes read in 14 ms (11.4 MiB/s)
StarFive # load mmc 1 0x100000000 efi/boot/bootriscv64.efi mmc fail to send stop cmd
Error reading cluster
Failed to load 'efi/boot/bootriscv64.efi' StarFive # load mmc 1 0x40200000 efi/boot/bootriscv64.efi
** fs_devread read error - block
** fs_devread read error - block
Can't set block device
Only a reset can revive the MMC interface.
Signature · 3 lines
Andreas Schwab, SUSE Labs, [email protected] GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."
Quoted 18 lines · Andreas Schwab
Quoted 1 line · Heinrich Schuchardt
That ls works does not mean that the file system is not corrupted.
This obviously has nothing to do with the file system:
StarFive # load mmc 1
0x40200000efi/boot/bootriscv64.efi 167936 bytes read in 14 ms (11.4 MiB/s)
StarFive # load mmc 10x100000000efi/boot/bootriscv64.efi mmc fail to send stop cmd
Error reading cluster
Failed to load 'efi/boot/bootriscv64.efi' StarFive # load mmc 10x40200000efi/boot/bootriscv64.efi
**fs_devreadread error - block
**fs_devreadread error - block
Can't set block device
Quoted 6 lines
Only a reset can revive the MMC interface.
--
Andreas Schwab, SUSE Labs, [email protected]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."
Thank you for confirming this Andreas. Can you please test and review the patch today from Sughosh?:
https://lore.kernel.org/u-boot/[email protected]/
( Patchwork for same:
https://patchwork.ozlabs.org/project/uboot/list/?series=434841 )
It can be applied on v2025.01-rc3 and withCONFIG_EFI_LOADER_BOUNCE_BUFFER=nCONFIG_BOUNCE_BUFFER=n
I have been testing withCONFIG_BOOTSTD=n
There should be now a success on 4GB+ DRAM VisionFive2 board loading some < 1GB data file from mmc to U-Boot address > 4GB.
Please test and reply to Sughosh patch with remarks. Thank you!
-E