Skip to main content
Visitor II
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

    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