cancel
Showing results for 
Search instead for 
Did you mean: 

How can I set up or reset my SD card for the STM32MP157A-DK1 board?

MDann.1
Associate

Hello everybody,

i have a problem booting the SD card. The problem occurred after I copied the device tree (.dtb) from my project from STM32CubeMx to the STM32MP157A under / boot. When booting, the U-Boot and the start kernel run endlessly. How can I solve the problem?

Thanks a lot

Here is the output from the board:

U-Boot 2018.11-stm32mp-r2 (Nov 14 2018 - 16:10:06 +0000)

CPU: STM32MP157AAC Rev.B

Model: STMicroelectronics STM32MP157A-DK1 Discovery Board

Board: stm32mp1 in trusted mode (st,stm32mp157a-dk1)

Board: MB1272 Var1 Rev.C-01

      Watchdog enabled

DRAM: 512 MiB

Clocks:

- MPU : 650 MHz

- MCU : 208.878 MHz

- AXI : 266.500 MHz

- PER : 24 MHz

- DDR : 533 MHz

*******************************************

*  WARNING 500mA power supply detected  *

* Current too low, use a 3A power supply! *

*******************************************

NAND: 0 MiB

MMC:  STM32 SDMMC2: 0

In:   serial

Out:  serial

Err:  serial

Net:  eth0: ethernet@5800a000

Boot over mmc0!

Hit any key to stop autoboot: 0

switch to partitions #0, OK

mmc0 is current device

Scanning mmc 0:4...

Found U-Boot script /boot.scr.uimg

1553 bytes read in 1 ms (1.5 MiB/s)

## Executing script at c4100000

Scanning mmc 0:4...

Found /mmc0_stm32mp157a-dk1_extlinux/extlinux.conf

Retrieving file: /mmc0_stm32mp157a-dk1_extlinux/extlinux.conf

237 bytes read in 1 ms (231.4 KiB/s)

Retrieving file: /mmc0_stm32mp157a-dk1_extlinux/../splash.bmp

46180 bytes read in 3 ms (14.7 MiB/s)

1:     stm32mp157a-dk1-sdcard

Enter choice: 1:       stm32mp157a-dk1-sdcard

Retrieving file: /uImage

6569168 bytes read in 291 ms (21.5 MiB/s)

append: root=/dev/mmcblk0p6 rootwait rw console=ttySTM0,115200

Retrieving file: /stm32mp157a-dk1.dtb

103076 bytes read in 6 ms (16.4 MiB/s)

## Booting kernel from Legacy Image at c2000000 ...

  Image Name:  Linux-4.19.9

  Image Type:  ARM Linux Kernel Image (uncompressed)

  Data Size:   6569104 Bytes = 6.3 MiB

  Load Address: c2000040

  Entry Point: c2000040

  Verifying Checksum ... OK

## Flattened Device Tree blob at c4000000

  Booting using the fdt blob at 0xc4000000

  XIP Kernel Image ... OK

  Using Device Tree in place at c4000000, end c401c2a3

Starting kernel ...

NOTICE: CPU: STM32MP157AAC Rev.B

NOTICE: Model: STMicroelectronics STM32MP157A-DK1 Discovery Board

NOTICE: Board: MB1272 Var1 Rev.C-01

INFO:   Reset reason (0x214):

INFO:     IWDG2 Reset (rst_iwdg2)

INFO:   Using SDMMC

INFO:     Instance 1

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:13:37, Oct 2 2018

INFO:   BL2: Doing platform setup

INFO:   PMIC version = 0x10

INFO:   RAM: DDR3-1066/888 bin G 1x4Gb 533MHz v1.41

INFO:   Memory size = 0x20000000 (512 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:   Loading image id=5 at address 0xc0100000

INFO:   STM32 Image size : 746647

WARNING: Skip signature check (header option)

INFO:   Image id=5 loaded: 0xc0100000 - 0xc01b6497

INFO:   read version 0 current version 0

NOTICE: BL2: Booting BL32

INFO:   Entry point address = 0x2fff0000

INFO:   SPSR = 0x1d3

INFO:   PMIC version = 0x10

NOTICE: SP_MIN: v2.0(debug):

NOTICE: SP_MIN: Built : 13:13:37, Oct 2 2018

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 (Nov 14 2018 - 16:10:06 +0000)

CPU: STM32MP157AAC Rev.B

Model: STMicroelectronics STM32MP157A-DK1 Discovery Board

Board: stm32mp1 in trusted mode (st,stm32mp157a-dk1)

Board: MB1272 Var1 Rev.C-01

      Watchdog enabled

DRAM: 512 MiB

Clocks:

- MPU : 650 MHz

- MCU : 208.878 MHz

- AXI : 266.500 MHz

- PER : 24 MHz

- DDR : 533 MHz

*******************************************

*  WARNING 500mA power supply detected  *

* Current too low, use a 3A power supply! *

*******************************************

NAND: 0 MiB

MMC:  STM32 SDMMC2: 0

In:   serial

Out:  serial

Err:  serial

Net:  eth0: ethernet@5800a000

Boot over mmc0!

Hit any key to stop autoboot: 0

switch to partitions #0, OK

mmc0 is current device

Scanning mmc 0:4...

Found U-Boot script /boot.scr.uimg

1553 bytes read in 1 ms (1.5 MiB/s)

## Executing script at c4100000

Scanning mmc 0:4...

Found /mmc0_stm32mp157a-dk1_extlinux/extlinux.conf

Retrieving file: /mmc0_stm32mp157a-dk1_extlinux/extlinux.conf

237 bytes read in 1 ms (231.4 KiB/s)

Retrieving file: /mmc0_stm32mp157a-dk1_extlinux/../splash.bmp

46180 bytes read in 3 ms (14.7 MiB/s)

1:     stm32mp157a-dk1-sdcard

Enter choice: 1:       stm32mp157a-dk1-sdcard

Retrieving file: /uImage

6569168 bytes read in 291 ms (21.5 MiB/s)

append: root=/dev/mmcblk0p6 rootwait rw console=ttySTM0,115200

Retrieving file: /stm32mp157a-dk1.dtb

103076 bytes read in 6 ms (16.4 MiB/s)

## Booting kernel from Legacy Image at c2000000 ...

  Image Name:  Linux-4.19.9

  Image Type:  ARM Linux Kernel Image (uncompressed)

  Data Size:   6569104 Bytes = 6.3 MiB

  Load Address: c2000040

  Entry Point: c2000040

  Verifying Checksum ... OK

## Flattened Device Tree blob at c4000000

  Booting using the fdt blob at 0xc4000000

  XIP Kernel Image ... OK

  Using Device Tree in place at c4000000, end c401c2a3

Starting kernel ...

1 REPLY 1
PatrickF
ST Employee

Hello,

I suggest to use the wiki https://wiki.st.com/stm32mpu/wiki/Main_Page

The Getting started for DK2 will help you to reflash your board https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2

(The tutorial is for DK2, but very same for dk1, except you need to select the dk1 flashlayout)

Note that SD-Card could also be populated directly on Unix (e.g. with an USB => SD-Card adapter)

https://wiki.st.com/stm32mpu/wiki/How_to_populate_the_SD_card_with_dd_command

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.