Skip to main content
RBruè.1
Associate II
July 27, 2021
Question

How to modify stm32mp1.c file on OpenSTLinux (Yocto approach)

  • July 27, 2021
  • 2 replies
  • 1085 views

Hi, I need to edit the "stm32mp1.c" file inside the uboot sources, in particular I have to set the following change on line 413:

nb_blink = 4;	

How can I do that on OpenSTLinux (Yocto approach) ?

Where is the file and how can I maintain such edit after recompiling the images ?

Thank you

This topic has been closed for replies.

2 replies

Olivier GALLIEN
Technical Moderator
July 27, 2021
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
July 27, 2021

Hi,

not answering directly to your question, but changing this 'nb_blink' in this file could mean you want to remove the boot dependency to USB Type-C supply detection.

This could be done easily by commenting the following line in uboot Device Tree.

		/* st,adc_usb_pd = <&adc1 18>, <&adc1 19>; */

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
RBruè.1
RBruè.1Author
Associate II
July 27, 2021

Thank you, I am now trying this solution. I've edited the DK2_A7/u-boot/stm32mp157c-dk2_a7-mx-u-boot.dtsi file.