Author Topic: regarding modifying kernel in petalinux 2021.2 version  (Read 460 times)


  • Active Member
  • *
  • Posts: 11
regarding modifying kernel in petalinux 2021.2 version
« on: January 20, 2023, 01:38:06 PM »

I am trying to modify the kernel to disable power management in linux.
I am using petalinux 2021.2 version.

I use petalinux-config -c kernel and make the necessary modification .  Then I save the changes. The menuconfig prompts to save it in a file, I give it a name and said it saved the file (say kchanges.config).
But when I search for the file (kchanges.config) in the build directory, I cannot find the .config file.

Moreover, when I do a petalinux-build after the above kernel changes. The above power management changes doesn't seems to have taken effect.

Can someone please explain how to correctly make kernel modification in petalinux 2021.2 version.


M Kirberg

  • Active Member
  • *
  • Posts: 33
Re: regarding modifying kernel in petalinux 2021.2 version
« Reply #1 on: January 24, 2023, 09:27:00 AM »

you do not have to do anything. Petalinux (Yocto) creates a kernel-config fragment in the directory meta-user\recipes-kernel\linux\linux-xlnx for you.
This will be merged to reach a final .config.

However, in your case this does not seem to be the case.
Specifically what setting are you trying to achieve (CONFIG_XXX=n) ?

If you need more debugging possibilities you can use the underlying bitbake with tasks like:

see for how to fire up bitbake for your petalinux project.