how can I create image for stm32mp157a-dk1 and how to add other debian packages as part of image?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-05-27 2:35 AM
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
- Labels:
-
STM32MP15 Lines
-
Yocto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-05-27 2:54 AM
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 :
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
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-05-27 4:43 AM
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
