Boot issue

Use official images (second_bootloader, ddrint, opensbi/uboot) but the board could not boot, and there isn’t any log.

I could enter the recovery mode by long-pressing the power button,
and could also walk through the recovery process to reset the second_bootloader and ddr_init.

But the board still won’t boot in the normal mode, and no log could be captured.
(The baudrate has been checked, 115200 in normal mode and 9600 in recovery mode).

our boards were shipped only after the factory tested them without any problems.
Is it the first time power on the boards after receiving it ?It is recommended that the adapter use 5V/3A, the adapter has fast charging function better

1.make sure the connection is right
the normal mode should connect the uart (40pin),115200
the recovery mode should connect the debug pin
2. could you show me the log of recovery process

Thanks. I will provide the logs of recovery process later.

And there’re some updates for this issue:
If i comment out the following statements in the boot/bootmain.c: BootMain() function in the JH7100_secondBoot module,

//_SET_SYSCON_REG_register104_SCFG_io_padshare_sel(6);

the bootloader could boot in the normal mode. And ddrinit, opensbi as well as uboot could be loaded. But it seems that uboot fails to load image from Micro SDCARD.
This is the log captured after patching the bootloader:

bootloader version:220212-f93f109
ddr 0x00000000, 1M test
ddr 0x00100000, 2M test
DDR clk 2133M,Version: 211102-d086aee
2 1 0 crc flash: c08c9d08, crc ddr: c08c9d08
crc check PASSED

bootloader.

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

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             : 296 KB
Runtime SBI Version       : 0.3

Domain0 Name              : root
Domain0 Boot HART         : 1
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              : 1
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.01-rc4-VisionFive-g0c08d335c5 (Dec 30 2021 - 20:05:04 +0800)StarFive

CPU:   rv64imafdc
Model: StarFive VisionFive V1
DRAM:  8 GiB
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

fail to read EEPROM.
In:    serial@12440000
Out:   serial@12440000
Err:   serial@12440000
Net:   dwmac.10020000
MMC CD is 0x0, force to True.
MMC CD is 0x0, force to True.
Card did not respond to voltage select! : -110
MMC CD is 0x0, force to True.
MMC CD is 0x0, force to True.
Autoboot in 2 seconds
dwmac.10020000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY dwmac.10020000
dwmac.10020000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY dwmac.10020000
MMC CD is 0x0, force to True.
MMC CD is 0x0, force to True.
VisionFive #

NOTE: this is not the log of recovery process.

Yes, it’s the first time power on the boards after receiving it.

I actually use the charger for my phone, which is capable to output 5V/3A.

Oh, suddenly notice that i connected to the wrong pin for UART in normal mode.
I thought serial use the same pin for recovery mode and normal mode.

Will try again and report the latest status.

Can boot now with the original official image after i change the pin.
Thanks very much.

more about visionfive can refer to VisionFive Single Board Computer Software Technical Reference Manual | RVspace