Skip to main content
OKN
Associate III
May 14, 2026
Question

[Distribution Package] Configuring the kernel via menuconfig

  • May 14, 2026
  • 1 reply
  • 64 views

I am developing a custom board using the STM32MP255F-AK.

After configuring the kernel via menuconfig, the .config file reverts to its default state for some reason.

The custom board settings and device tree are located in `meta-st-stm32mp-addons`.

I have already fetched the source code using `devtool modify virtual/kernel`.


Run `bitbake -c menuconfig virtual/kernel`

ADIN_PHY was set to y

The .config file is saved in the following location:

workspace/source/linux-stm32mp/.config.new -> ~/OpenSTLinux/distpkg_ev1/build-openstlinuxweston-stm32mp25 -disco/tmp-glibc/work/stm32mp25_disco-ostl-linux/linux-stm32mp/6.6.48-stm32mp-r1/build/.config

Next,

I ran `bitbake virtual/kernel`

The ADIN_PHY=y setting remained in .config

I tried running bitbake virtual/kernel again

The ADIN_PHY=y setting remains in .config

I tried modifying the kernel's DeviceTree

I ran bitbake virtual/kernel

It reverted back to “ADIN_PHY is not set.” Also, the build result showed that the ADIN_PHY driver was not included.

How can I prevent the .config file, which I modified in menuconfig, from reverting to its original state?

-----------------------

We are proceeding with development by referring to ”https://wiki.st.com/stm32mpu/wiki/How_to_create_your_own_machine#Create_a_customer_machine 

Build Configuration:
BB_VERSION = "2.8.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-ostl-linux"
MACHINE = "stm32mp25-ddlskt"
DISTRO = "openstlinux-weston"
DISTRO_VERSION = "5.0.3-snapshot-20260514"
TUNE_FEATURES = "aarch64 crc cortexa35"
TARGET_FPU = ""
DISTRO_CODENAME = "scarthgap"
ACCEPT_EULA_stm32mp25-disco = "1"
GCCVERSION = "13.%"
PREFERRED_PROVIDER_virtual/kernel = "linux-stm32mp"

 

 

1 reply

OKN
OKNAuthor
Associate III
May 19, 2026