polarfire-soc / hart-software-services

PolarFire SoC hart software services
Other
36 stars 45 forks source link

Board hangs at selecting SDCARD #22

Closed eenurkka closed 3 years ago

eenurkka commented 3 years ago

With the latest hart-software-services as of today (commit: 58b03943834fe34991dc5fa924436b3620e07aa5), the sdcard detection hangs always:

[1.939392] HSS_MMCInit(): Attempting to select SDCARD ... ▒▒▒

Commenting this line below will no longer cause the board to hang: HW_set_uint32(SDIO_REGISTER_ADDRESS, 1);

but the sdcard never works. I've tried 3.3v/1.8v dip switch, different releases, no matter what, the system gets an error at MSS_MMC_init() function, on line 657. I'm using the board mpfs-icicle-kit-es and Microchip SoftConsole v6.5.0.442.

hughbreslin commented 3 years ago

Hey @eenurkka are you still having this issue?

ziqiaozhou commented 3 years ago

I got the same issue. The board hangs when initializing SDcard. HSS_MMCInit(): Attempting to select SDCARD ... ▒▒▒ Then the problem disappear after unsetting CONFIG_SERVICE_SDIO_REGISTER_PRESENT in config (skip HW_set_uint32(SDIO_REGISTER_ADDRESS, 1)). My SD card never works. I have no idea whether it is a hardware problem or the software problem.

ziqiaozhou commented 3 years ago

With the latest hart-software-services as of today (commit: 58b0394), the sdcard detection hangs always:

[1.939392] HSS_MMCInit(): Attempting to select SDCARD ... ▒▒▒

Commenting this line below will no longer cause the board to hang: HW_set_uint32(SDIO_REGISTER_ADDRESS, 1);

but the sdcard never works. I've tried 3.3v/1.8v dip switch, different releases, no matter what, the system gets an error at MSS_MMC_init() function, on line 657. I'm using the board mpfs-icicle-kit-es and Microchip SoftConsole v6.5.0.442.

I also encountered the same problem today. I just figured out the reason after reading their release comments. It is because the board's FPGA design is not compatible to support that SDIO_REGISTER. My board design is the original one. The original design does not support dynamic switching between SD card and eMMC. After programming the lastest icicle kit reference design to my board using Libero, it now can boot well using the latest HSS. :>

hughbreslin commented 3 years ago

Glad to hear this is working for you now 🙂