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

neels

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

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.

Thanks

M Kirberg

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

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:
https://docs.yoctoproject.org/singleindex.html#do-kernel-configcheck

see https://docs.xilinx.com/r/en-US/ug1144-petalinux-tools-reference-guide/Accessing-BitBake/Devtool-in-a-Project for how to fire up bitbake for your petalinux project.

Best,
Markus