cancel
Showing results for 
Search instead for 
Did you mean: 

create_emmc_from_flashlayout.sh

Mark81
Associate III

With the Distribution Package for STM32MP1 I created my own machine (STM32MP151A) and I was able to generate a the flashlayout for both sdcard and emmc.

I don't see any script to create the image for emmc, like `create_sdcard_from_flashlayout.sh`.

Is there such a template or I am on my own?

2 REPLIES 2
PatrickF
ST Employee

Hi,

The SD-Card image is only required when you program SD-Card out of the target, e,g, on a Linux PC using dd command.

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

As the eMMC is soldered, it is intended to be programmed on-board using CubeProgrammer (via USB), so only a flashlayout (.tsv) is needed.

If you wish to program eMMC before soldering it (usually only for large production scale), it is up to you to create the image suited for your programming system.

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.

Hi! Both solutions are not applicable here. We want to do the following:

  1. boot the target with the sd-card
  2. copy (aka dd) the emmc image into the device (I see it as /dev/mmcblk2)
  3. reboot from the emmc removing the sd-card

This will allow also an easy way to update the software if needed.

For this reason I want to create the raw image. I saw that changing the script setting mmc1 as device will produce an "emmc" image.

Do you think it's ok my idea?