2021-05-27 02: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
2021-05-27 02: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
2021-05-27 04: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