Skip to main content
WLeun.3
Associate III
June 8, 2022
Question

Best way to modify bitbake image

  • June 8, 2022
  • 1 reply
  • 844 views

Hi all,

I am using stm32mp157f-dk2 with ecosystem 3.1.

During development, I need to update the device tree and kernel config very often.

My current approach is to do

bitbake -c cleansstate <image>
bitbake virtual/kernel -c menuconfig
bitbake <image>

However, I found that bitbake -c cleansstate will reset all my kernel config that I have done in menuconfig.

This mean I need to reconfig my kernel every time I update my device tree, which is quite troublesome.

There should be some better way to do this.

Regards,

Leung

This topic has been closed for replies.

1 reply

Olivier GALLIEN
Technical Moderator
June 9, 2022

Hi @WLeun.3​ ,

Please refer to Menuconfig or how to configure kernel - stm32mpu

It's clearly stated your approach is fine for temporary/prototyping solution.

For permanent one :

  • To make this temporary modification permanent, the delta between defconfig and defconfig.old must be saved in a configuration fragment file (fragment-*.config) based on fragment.cfg file, and the Linux kernel configuration/compilation steps must be re-executed (as explained in the README.HOW_TO.txt helper file).

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.