Skip to main content
Lead
July 18, 2024
Question

How do I flash OpenSTLinux onto STM32MP151 with eMMC by using STM32CubeProgrammer?

  • July 18, 2024
  • 2 replies
  • 2149 views

I have built my own STM32MP15XXAC board from scratch DanielMartensson/STM32-Computer: STM32 Computer were Linux can be deployed onto (github.com)

Instead of SD-card, it has eMMC. Now I want to flash the eMMC with OpenSTLinux. How can I do that with STM32CubeProgrammer?

I find lack of information how to install Linux or other kind of Linux-OS onto eMMC for STM32MP15XXAC.

 

 

2 replies

ST Employee
July 18, 2024

Hi @DMårt ,

 

It works in the same way as with an SD card, you just have to be sure that the file you're sending is for emmc.

 

Regards,

Grégory

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.
DMårtAuthor
Lead
July 18, 2024

@Gregory PLANCHON 

Thank you for your reply.

But where do I start?

I have downloaded the software STM32CubeProgrammer. So now I need some image right or firmware? Where can I find that?

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-ComputerSTM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer
ST Employee
July 18, 2024

You can adapt the ostl to your physical characteristics, using either 

Then follow this example to flash your EMMC : https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-EV1/Let%27s_start/Populate_the_target_and_boot_the_image

 

Regards,

Grégory

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.
DMårtAuthor
Lead
July 18, 2024

@Gregory PLANCHON 

Hi!

There is no pre-compiled OS image? 

Compile the linux kernel for this processor can take weeks.

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-ComputerSTM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer
DMårtAuthor
Lead
July 19, 2024

@Gregory PLANCHON 

 

Now I have flashed the board. Is this correct?

I did not get any pop-up that saying "Flash complete"

Skärmklipp.PNG


 

 

 02:42:03 : STM32CubeProgrammer API v2.17.0 | Windows-64Bits 
 02:42:10 : Read TSV File: C:\Users\danie\Downloads\stm32mp1-openstlinux-6.1-yocto-mickledore-mpu-v24.06.26\images\stm32mp1\flashlayout_st-image-weston\optee\FlashLayout_emmc_stm32mp157a-ev1-optee.tsv
 02:42:10 : Number of partitions: 13
 02:43:38 : UR connection mode is defined with the HWrst reset mode
 02:43:38 : USB speed : High Speed (480MBit/s)
 02:43:38 : Manuf. ID : STMicroelectronics
 02:43:38 : Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000
 02:43:38 : SN : 002600373431510433383938
 02:43:38 : DFU protocol: 1.1
 02:43:38 : Board : --
 02:43:38 : Device ID : 0x0500
 02:44:01 : Start Embedded Flashing service
 02:44:01 : Memory Programming ...
 02:44:01 : Opening and parsing file: tf-a-stm32mp157a-ev1-usb.stm32
 02:44:01 : File : tf-a-stm32mp157a-ev1-usb.stm32
 02:44:01 : Size : 220.41 KB 
 02:44:01 : Partition ID : 0x01 
 02:44:01 : Download in Progress:
 02:44:03 : File download complete
 02:44:03 : Time elapsed during download operation: 00:00:02.465
 02:44:03 : RUNNING Program ... 
 02:44:03 : PartID: :0x01 ​

 

 

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-ComputerSTM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer