New u-boot binary for TF card compatibility

Has any one encounter boot up issue(from TF card), like @darkgeek post: Can not boot. please update this binary to try it again. highly welcome to receive your feedback.

fw_payload_visionfive.bin.out (2.9 MB)

3 Likes

Is there any how-to describing the update process? :slight_smile:
Thank you.

Please follow the below wiki page to update u-boot
https://wiki.rvspace.org/en/Product/VisionFive/Technical_Documents/VisionFive_Single_Board_Computer_Quick_Start_Guide#appendix-b-updating-firmware-and-u-boot

1 Like

Thanks, found it myself a couple of minutes ago :slight_smile:

Before and after update my 64G sd card not working.(SmartBuy 64GB SN TB64GBNT8A1B2125AU1)

mmc csd read /sys/class/mmc_host/mmc0/mmc0\:b368/

type: 'SD'
card classes: 10 switch, 8 application specific, 5 erase, 4 block write, 2 block read, 0 basic, 
capacity: 58.24Gbyte (62534975488 bytes, 122138624 sectors, 512 bytes each)

dmesg | grep mmc

[10857.091737] mmc0: new ultra high speed SDR104 SDXC card at address b368
[10857.091976] mmcblk0: mmc0:b368 NCard 58.2 GiB 

Can you try another TF card?

Yes. Another card is working. I have problems only with the 64gb.

additional information:

U-Boot 2022.04-rc2-VisionFive (Mar 07 2022 - 21:12:22 +0800)StarFive

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
*** Warning - bad CRC, using default environment

StarFive EEPROM format v1

--------EEPROM INFO--------
Vendor : StarFive Technology Co., Ltd.
Product full SN: VF7100A1-2204-D008E000-00000115
data version: 0x1
PCB revision: 0x1
BOM revision: A
Ethernet MAC address: 6c:cf:39:00:01:14
--------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.
Failed to load 'uEnv.txt'
** Invalid partition 3 **
Couldn't find partition mmc 0:3
Can't set block device

mmc info

VisionFive #mmc info
MMC CD is 0x1, force to True.
Device: mmc@10000000
Manufacturer ID: 89
OEM: 303
Name: NCard 
Bus Speed: 10000000
Mode: MMC legacy
Rd Block Len: 512
SD version 2.0
High Capacity: No
Capacity: 1.9 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes

All the sd cards I have do not work.

SanDisk Ultra 32GB
Samsung EVO plus 128GB
SanDisk Extreme PRO 64GB
Transcend Ultimate 600x 8GB
Sandisk (Unknown) 8GB

U-Boot 2022.04-rc2-VisionFive (Mar 07 2022 - 21:12:22 +0800)StarFive

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
*** Warning - bad CRC, using default environment

StarFive EEPROM format v1

--------EEPROM INFO--------
Vendor : StarFive Technology Co., Ltd.
Product full SN: VF7100A1-2206-D008E000-0000031A
data version: 0x1
PCB revision: 0x1
BOM revision: A
Ethernet MAC address: 6c:cf:39:00:03:19
--------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.
Card did not respond to voltage select! : -110
MMC CD is 0x1, force to True.
MMC CD is 0x1, force to True.
Card did not respond to voltage select! : -110
VisionFive #mmc info
MMC CD is 0x1, force to True.
MMC CD is 0x1, force to True.
Card did not respond to voltage select! : -110

Are you sure these cards are inserted into the TF card slot?
Could you type MMC info on the serial command line to see if you can detect the card?

yes.

The post contains mmc info logs.
The same message is output for all sd cards.

Is that the problem happened out-of-the box?

Since my board arrived, the board has never detected the sd card.
I don’t know if it’s a compatibility issue or a HW issue.

This uboot version(2022.04-rc2) has already solved the problem of TF card compatibility.
Have you tried TFTP network boot, can you enter the buildroot system?

I can enter the buildroot system with the VisionFive Software v2.3.3 image.
It does not seem to be able to detect the sd card.

# dmesg |grep mmc
dw_mmc 10000000.mmc: coherent device 0 dev->dma_coherent 0
dw_mmc 10000000.mmc: IDMAC supports 32-bit address mode.
dw_mmc 10000000.mmc: Using internal DMA controller.
dw_mmc 10000000.mmc: Version ID is 290a
dw_mmc 10000000.mmc: DW MMC controller at irq 8,32 bit host data width,32 deep fifo
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.
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.
mmc_host mmc0: Bus speed (slot 0) = 100000000Hz (slot req 400000Hz, actual 400000HZ div = 125)
mmc_host mmc1: Bus speed (slot 0) = 123750000Hz (slot req 400000Hz, actual 399193HZ div = 155)
mmc_host mmc0: Bus speed (slot 0) = 100000000Hz (slot req 300000Hz, actual 299401HZ div = 167)
mmc_host mmc0: Bus speed (slot 0) = 100000000Hz (slot req 200000Hz, actual 200000HZ div = 250)
mmc_host mmc0: Bus speed (slot 0) = 100000000Hz (slot req 100000Hz, actual 100000HZ div = 500)
mmc_host mmc1: Bus speed (slot 0) = 123750000Hz (slot req 50000000Hz, actual 30937500HZ div = 2)
mmc1: new high speed SDIO card at address 0001
brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.starfive,visionfive-v1.bin failed with error -2