Skip to main content
Visitor II
June 20, 2019
Solved

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

  • June 20, 2019
  • 2 replies
  • 1204 views

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

    This topic has been closed for replies.
    Best answer by Olivier GALLIEN

    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

    2 replies

    Technical Moderator
    June 20, 2019

    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

    DMaliAuthor
    Visitor II
    June 21, 2019

    Hi Patrick,

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

    Technical Moderator
    June 20, 2019

    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

    DMaliAuthor
    Visitor II
    June 21, 2019

    Hi Oliver,

    Thanks for quick response and detailed information.

    Deshvir