Skip to main content
TStas.1
Visitor II
August 9, 2021
Solved

openSTlinux build from stm32cubeide to sdcard image

  • August 9, 2021
  • 3 replies
  • 2083 views

I've build all part (linux, tf-a, u-boot) in stm32cubeide, acording to my device tree configured in cube.

I would like to ask if there is short way to create sd-card image from cube gui? If not, could any one share way how to do that from build to ready image.

I found this tutorial https://wiki.stmicroelectronics.cn/stm32mpu/wiki/How_to_populate_the_SD_card_with_dd_command

but i can't find the script.

i'm using vitrual machine with ubuntu 20.04

Sory if question will be trival. I'm new in linux compilation. Usualy i used already prepared.

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

Hi @AlexandrShipovsky​ ,

Unfortunately this is a restriction of STM32CubeIDE today.

It's not capable to generate the *.ext4 ( rootfs, bootfs etc.. ) partitions.

For such you should indeed use Yocto build system.

Hope wiki material may help you to start with it.

Else please elaborate further what you want to do and difficulties you are facing.

Olivier

3 replies

AlexandrShipovsky
Associate III
August 19, 2021

I would also like to know a quick way to build an image from compiled files in STM32CubeIDE.

PatrickF
Technical Moderator
August 23, 2021

Hi,

I'm not expert, but your could rather:

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.NEW ! Sidekick STM32 AI agent, see here
AlexandrShipovsky
Associate III
August 24, 2021

Hi! Thank you for the answer! I use what you suggest and it works well, but when compiling I only get files with the extension *. bin *. stm32. For the full package, I also need files with the *.ext4 extension. I should probably use Yocto and the command line, but I have no experience with Yocto and I hope that there are ready-made tools in STM32CubeIDE for generating files with the *.ext4 extension

Olivier GALLIEN
Olivier GALLIENBest answer
Technical Moderator
August 31, 2021

Hi @AlexandrShipovsky​ ,

Unfortunately this is a restriction of STM32CubeIDE today.

It's not capable to generate the *.ext4 ( rootfs, bootfs etc.. ) partitions.

For such you should indeed use Yocto build system.

Hope wiki material may help you to start with it.

Else please elaborate further what you want to do and difficulties you are facing.

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.
PatrickF
Technical Moderator
September 6, 2021

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

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.NEW ! Sidekick STM32 AI agent, see here