UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer mishuk
Observer
2,516 Views
Registered: ‎09-11-2017

kernel config file

Jump to solution

Hi!

I`m using Petalinux 2017.2 and wondering where to find kernel configuration file.  I know how to work with "petalinux-config -c kernel" but I want to get actual configuration file.  Currently I open /proc/config.gz on target, but I want this file on host before deploying to target.

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
Adventurer
Adventurer
3,198 Views
Registered: ‎10-04-2017

Re: kernel config file

Jump to solution
the .config is in

build/tmp/work/plnx_arm-xilinx-linux-gnueabi/linux-xlnx/4.9-xilinx-v2017.2+gitAUTOINC+5d029fdc25-r0/linux-plnx_arm-standard-build/

jeff
0 Kudos
13 Replies
Xilinx Employee
Xilinx Employee
2,483 Views
Registered: ‎02-07-2018

Re: kernel config file

Jump to solution

Hi,

 

You can find the defconfig & user_xx.cfg genarated file in this path:build/tmp/work/plnx_aarch64-xilinx-linux/linux-xlnx/4.9-xilinx-v2017.3+gitAUTOINC+f1b1e077d6-r0/  once the build finished.

 

When you run petalinux-config -c kernel

this will generate  configuration details here.

project-spec/meta-user/recipes-kernel/linux/linux-xlnx/user_xx.cfg

 

Please refer below  link for more details.

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2017_4/ug1144-petalinux-tools-reference-guide.pdf

 

Thanks & regards

Aravind

 

 

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

 

0 Kudos
Observer mishuk
Observer
2,469 Views
Registered: ‎09-11-2017

Re: kernel config file

Jump to solution

I do find defconfig and user_xx.cfg`s in build/tmp/work/plnx_aarch64-xilinx-linux/linux-xlnx/4.9-xilinx-v2017.3+gitAUTOINC+f1b1e077d6-r0/ but where is kernel configuration?  defconfig is not kernel configuration file

0 Kudos
Adventurer
Adventurer
3,199 Views
Registered: ‎10-04-2017

Re: kernel config file

Jump to solution
the .config is in

build/tmp/work/plnx_arm-xilinx-linux-gnueabi/linux-xlnx/4.9-xilinx-v2017.2+gitAUTOINC+5d029fdc25-r0/linux-plnx_arm-standard-build/

jeff
0 Kudos
Observer mishuk
Observer
2,435 Views
Registered: ‎09-11-2017

Re: kernel config file

Jump to solution

Thanks a lot!   Is there a way to force Petalinux copy .config to images/linux folder during petalinux-build process?

0 Kudos
Moderator
Moderator
2,424 Views
Registered: ‎09-12-2007

Re: kernel config file

Jump to solution

You could update the recipe to do this.

0 Kudos
Observer mishuk
Observer
2,418 Views
Registered: ‎09-11-2017

Re: kernel config file

Jump to solution

Can you guide me how to do this?

0 Kudos
Explorer
Explorer
2,346 Views
Registered: ‎09-14-2016

Re: kernel config file

Jump to solution

Hi @mishuk,

 

you can add this part in a .bbappend file :

 

do_install_append () {

    # Create destination folder
    #
    mkdir -p ${TOPDIR}/sav

    # Save the kernel config
    #
    cp ${B}/.config ${TOPDIR}/sav/u-boot-xlnx.config
}

Cheers,

Trigger

Observer mishuk
Observer
2,327 Views
Registered: ‎09-11-2017

Re: kernel config file

Jump to solution

Thanks, it works!

0 Kudos
Contributor
Contributor
2,317 Views
Registered: ‎03-21-2010

Re: kernel config file

Jump to solution

Hi, @jrhtech.

  The .config in the fold you mentioned is not the final one. I saw the content. It is for x86 after running petailnux-build. Could you help me to figure out the final .config for ARM(ZYNQ/MPSOC)?

Thanks

B/R

Jerry Yau

0 Kudos
Adventurer
Adventurer
1,527 Views
Registered: ‎07-05-2017

Re: kernel config file

Jump to solution

I ran petalinux-config -c kernel in my petalinux project and did not see any user_xxx.cfg under

./project-spec/meta-user/recipes-kernel/linux/linux-xlnx/

0 Kudos
Observer mishuk
Observer
1,515 Views
Registered: ‎09-11-2017

Re: kernel config file

Jump to solution

Hi!

You need to make some changes in kernel configuration during " petalinux-config -c", for instance add some drivers, to get user_xxx.cfg in ./project-spec/meta-user/recipes-kernel/linux/linux-xlnx/

Adventurer
Adventurer
1,489 Views
Registered: ‎07-05-2017

Re: kernel config file

Jump to solution

Thanks Mishuk,

 

Selected some new driver in kernel menu, this created a user_xx.cfg under ./project-spec/meta-user/recipes-kernel/linux/linux-xlnx/

0 Kudos
Observer figo
Observer
1,278 Views
Registered: ‎06-13-2018

Re: kernel config file

Jump to solution

If i use the xilinx-zcu106-v2018.1-final.bsp to create a petalinux project i can find the recipes-kernel under the meta-user folder.

But if i use the template to create a petalinux project, I can't find the recipes-kernel under the meta-user folder. After I added some driver in petalinux-config -c kernel, there is no change.

what is the problem with my project?

0 Kudos