cancel
Showing results for 
Search instead for 
Did you mean: 

how can I create image for stm32mp157a-dk1 and how to add other debian packages as part of image?

Arahm.1
Associate II

I'm working on STM32MP157a-dk1

I followed the link https://wiki.st.com/stm32mpu/wiki/STM32MP1_Distribution_Package

and used these steps to create a image

Steps:

PC $> cd <working directory path>/Distribution-Package

PC $> mkdir openstlinux-5.10-dunfell-mp1-21-03-31

PC $> cd openstlinux-5.10-dunfell-mp1-21-03-31

PC $> repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-5.10-dunfell-mp1-21-03-31

PC $> repo sync

PC $> DISTRO=openstlinux-weston MACHINE=stm32mp1-disco source layers/meta-st/scripts/envsetup.sh

PC $> bitbake st-image-weston

build creates the image openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxweston-stm32mp1-disco/tmp-glibc/deploy/images/stm32mp1-disco/flashlayout_st-image-weston/trusted/FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv

but it doesn't create image for stm32mp157a-dk1.

how to make image for stm32mp157a-dk1 with additional debian packages

2 REPLIES 2
Olivier GALLIEN
ST Employee

Hi @Arahm.1​ ,

Indeed MACHINE=stm32mp1-disco only generate image for DK2 .. but I agree this is not obvious in our wiki.

For DK1 you need to use MACHINE=stm32mp1 which generate image for all ST boards.

To add debian package you can either add it by customizing your Yocto build following this method :

https://wiki.st.com/stm32mpu/wiki/How_to_add_a_customer_application#Adding_an_application_already_present_in_layers

Or adding directly at run time thanks to apt-get :

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

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.
Jean-Marc B
ST Employee

Hi @Arahm.1​ 

to comment @Community member​ 's reply, if you only want an image for stm32mp157a-dk1, you can update the file layers/meta-st/meta-st-stm32mp/conf/machine/stm32mp1-disco.conf. In this file, look for the variable STM32MP_DT_FILES_DK (some are in comment) and replace the current value stm32mp157c-dk2 by stm32mp157a-dk1 as followed:

STM32MP_DT_FILES_DK += "stm32mp157a-dk1"

Then re-launch the command

bitbake st-image-weston

That should do the trick too.

Best regards,

--JM