cancel
Showing results for 
Search instead for 
Did you mean: 

SD Card creation script for STM32MP157A-DK1 board "Not found in SDK"

DMali
Associate II

Hi,

I want to create custom SD card for STM32MP157A-DK1board but I did not find any script for it in SDK available. Could you please let me know the procedure to create SD card and how to flash images in it?

Thanks,

Deshvir Malik

1 ACCEPTED SOLUTION

Accepted Solutions
Olivier GALLIEN
ST Employee

Hi @DMali​ 

Complete SDcard content and partitioning can be create by using Distribution Package ( Yocto/Bitbake build)

Then you can flash your SDCard using STM32CubeProgrammer Tool :

https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157C-DK2/Let%27s_start/Populate_the_target_and_boot_the_image

or either in raw format using dd command :

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

If you want only to change the content of one partition of an already created SDCard with Developer Package you can use dd .

See one exemple here for update of tf-a and u-boot partition

https://wiki.st.com/stm32mpu/wiki/How_to_cross-compile_with_the_Developer_Package

Hope it help

Olivier

Olivier GALLIEN
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.

View solution in original post

4 REPLIES 4
PatrickF
ST Employee

Hello,

SD-Card mapping is described in https://wiki.st.com/stm32mpu/wiki/STM32MP15_Flash_mapping#SD_card_memory_mapping

To fill the SD-Card, you could either:

  1. use CubeProgrammer on the target board. Flashlayout examples for SD-Card on our Evaluation/Discovery boards are provided in our deliveries (e.g. Starter package).
  2. use SD-Card directly on a Linux PC https://wiki.st.com/stm32mpu/wiki/How_to_populate_the_SD_card_with_dd_command

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.
Olivier GALLIEN
ST Employee

Hi @DMali​ 

Complete SDcard content and partitioning can be create by using Distribution Package ( Yocto/Bitbake build)

Then you can flash your SDCard using STM32CubeProgrammer Tool :

https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157C-DK2/Let%27s_start/Populate_the_target_and_boot_the_image

or either in raw format using dd command :

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

If you want only to change the content of one partition of an already created SDCard with Developer Package you can use dd .

See one exemple here for update of tf-a and u-boot partition

https://wiki.st.com/stm32mpu/wiki/How_to_cross-compile_with_the_Developer_Package

Hope it help

Olivier

Olivier GALLIEN
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.

Hi Patrick,

Thank for quick response. I'll try with the above links.

Hi Oliver,

Thanks for quick response and detailed information.

Deshvir