cancel
Showing results for 
Search instead for 
Did you mean: 

Best way to modify bitbake image

WLeun.3
Associate III

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

1 REPLY 1
Olivier GALLIEN
ST Employee

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.