U-Boot doesn't find SDMMC1 (mmc0)
Hi,
I have a problem while trying to bring up my board, which is based on the STM32MP157A-EV1.
What I'm doing is trying to flash the board with the same method as in the Starter Package, so I created a copy of the appropriate *.tfv file changing the name of the *.stm32 files it points to to the one I compiled after getting the proper device tree files from CubeMX.
I've come to a point where TF-A seems to load correctly, then it proceeds with the U-Boot and everything stops when it doesn't find the mmc0 (SD card if I'm not wrong).
The thing is, all the SDMMC1 signals are connected just as it is on the EV1, except for "uSD_DETECT". On our design, the "uSD_DETECT" line is located on PG12 (Ball J4) instead of PG1 (Y4), which is where it is on the EV1.
I've been trying to figure out how to change that on the device tree but so far I haven't learned how to do that, however, I tried checking the line that's connected to PG1 (Y4) on our design (we can still have access to it) and I see that it is not pulled up (it should have an active internal pull-up). However I tried pulling it down and up externally and nothing happens.
Is there a chance there any sort of incompatibility with some uSD cards? I tried with two 16Gb cards, one from Samsung and another from Toshiba.
Greetings,
J.
This is what I get on the serial port:
NOTICE: CPU: STM32MP157AAA Rev.B
NOTICE: Model: STMicroelectronics STM32MP157A-EV1 STM32CubeMX board
INFO: Reset reason (0x15):
INFO: Power-on Reset (rst_por)
INFO: Using USB
INFO: Instance 2
INFO: Boot used partition fsbl1
INFO: Product_below_2v5=1: HSLVEN update is
INFO: destructive, no update as VDD>2.7V
NOTICE: BL2: v2.0(debug):
NOTICE: BL2: Built : 13:15:14, Sep 16 2019
INFO: BL2: Doing platform setup
INFO: PMIC version = 0x00
INFO: RAM: DDR3-DDR3L 32bits 533000Khz
INFO: Memory size = 0x40000000 (1024 MB)
INFO: BL2 runs SP_MIN setup
INFO: BL2: Loading image id 4
INFO: Loading image id=4 at address 0x2fff0000
INFO: Image id=4 loaded: 0x2fff0000 - 0x30000000
INFO: BL2: Loading image id 5
INFO: GETSTATUS :
INFO: DFU_STATE_IDLE
INFO: Receive DFU abort
INFO: GETSTATUS :
INFO: DFU_STATE_IDLE
INFO: UPLOAD :
INFO: Phase ID : 0
INFO: address 0x2ffee768
INFO: GETSTATUS :
INFO: DFU_STATE_IDLE
INFO: GETSTATUS :
INFO: DFU_STATE_IDLE
INFO: UPLOAD :
INFO: Phase ID : 0
INFO: address 0x2ffee768
INFO: GETSTATUS :
INFO: DFU_STATE_IDLE
INFO: Start Download partition 0 to address 0xc0000000 length 0
INFO: USB : DFU : end of download partition : 0
INFO: Loading image id=5 at address 0xc0100000
INFO: GETSTATUS :
INFO: DFU_STATE_IDLE
INFO: UPLOAD :
INFO: Phase ID : 3
INFO: address 0x2ffee768
INFO: GETSTATUS :
INFO: DFU_STATE_IDLE
INFO: receive request 6
INFO: GETSTATUS :
INFO: DFU_STATE_IDLE
INFO: UPLOAD :
INFO: Phase ID : 3
INFO: address 0x2ffee768
INFO: GETSTATUS :
INFO: DFU_STATE_IDLE
INFO: usb_partition_size: partition size : 0xb8e50
INFO: Start Download partition 3 to address 0xc0100000 length 757328
INFO: USB : DFU : end of download partition : 3
WARNING: Skip signature check (header option)
INFO: GETSTATUS :
INFO: DFU_STATE_IDLE
INFO: UPLOAD :
INFO: Phase ID : 0
INFO: address 0xffffffff
INFO: Send detach request
INFO: GETSTATUS :
INFO: DFU_STATE_IDLE
INFO: Receive Detach
INFO: Image id=5 loaded: 0xc0100000 - 0xc01b8e50
INFO: read version 0 current version 0
NOTICE: BL2: Booting BL32
INFO: Entry point address = 0x2fff0000
INFO: SPSR = 0x1d3
INFO: PMIC version = 0x00
NOTICE: SP_MIN: v2.0(debug):
NOTICE: SP_MIN: Built : 13:15:23, Sep 16 2019
INFO: ARM GICv2 driver initialized
INFO: stm32mp HSI (18): Secure only
INFO: stm32mp HSE (20): Secure only
INFO: stm32mp PLL2 (27): Secure only
INFO: stm32mp PLL2_R (30): Secure only
INFO: SP_MIN: Initializing runtime services
INFO: SP_MIN: Preparing exit to normal world
U-Boot 2018.11-stm32mp-r2 (Sep 17 2019 - 13:58:46 +0200)
CPU: STM32MP157AAA Rev.B
Model: STMicroelectronics STM32MP157A-EV1 STM32CubeMX board
Board: stm32mp1 in trusted mode (st,stm32mp157a-ev1-mx)
Watchdog enabled
DRAM: 1 GiB
Clocks:
- MPU : 650 MHz
- MCU : 208.878 MHz
- AXI : 266.500 MHz
- PER : 0 MHz
- DDR : 533 MHz
unknown chip id: 0xfb
Fastboot key pressed, STM32Programmer key pressed, entering download mode...
NAND: 0 MiB
MMC: STM32 SDMMC2: 0, STM32 SDMMC2: 1
In: serial
Out: serial
Err: serial
Enter STM32CubeProgrammer mode!
invalid MAC address in OTP 00:00:00:00:00:00Net:
Error: ethernet@5800a000 address not set.
eth-1: ethernet@5800a000
Error: mmc device 0 not found
DFU alt info setting: done