[poky] Defconfig mods, Zynq-zx3 netmodule

Michael Davis mdavis at planetaryresources.com
Thu Oct 31 10:33:29 PDT 2013


Hi Khem,

This is generally the method I have been having trouble with.  Running menuconfig and savedefconfig I am able to generate a .config file with the desired configurations.  I then save that file as zx3_starter_defconfig over the same file under arch/arm/configs in my work directory.  Then I use git to create a patch.  This patch I put in the netmodule linux-zynq_git.bb SRC_URI_append line and remove the patches that were there for zx3_starter_defconfig originally.  When I build, the new zx3_starter_defconfig shows up under arch/arm/configs and in fact the options I want show up in the top level .config, though this file is not identical to the file made by my patch.  In the log.do_configure, the line "make zx3_starter_defconfig" shows up and it looks like it is parsing out all of my options.  When I boot up, no dice. 

Does this sound like the method you are describing?  Would it be better to somehow specify a real version of this file for yocto to copy over?  Is it possible that the configurations would not show up in my /proc/config.gz file?

Thanks for all your help

-Mike

-----Original Message-----
From: Khem Raj [mailto:raj.khem at gmail.com] 
Sent: Wednesday, October 30, 2013 8:08 PM
To: Michael Davis
Cc: poky at yoctoproject.org
Subject: Re: [poky] Defconfig mods, Zynq-zx3 netmodule

On Wed, Oct 30, 2013 at 7:17 PM, Michael Davis <mdavis at planetaryresources.com> wrote:
> Hi David,
>
>
>
> I am currently using the netmodule meta layer in yocto to build a 
> kernel and ramdisk for my zynq zx3 on a starter board.  I need to 
> enable kernel function tracing and a few other configurations in my 
> build.  I need help on the correct way to enable kernel configurations 
> (specifically I need CONFIG_FTRACE and CONFIG_PROFILING) using the meta layer.
>
>  My attempts have been based on the KERNEL_DEFCONFIG_zynq_zx3_starter 
> variable in recipes-kernel/linux/linux-zynq-git.bb.  I have tried 
> specifying my own patch to create this file as well as pointing it to 
> my own modified copy of the defconfig created by the patches in 
> meta-netmodule.  After building, the modified defconfig file with the 
> flags shows up in my work directory as .config but no changes ever 
> appear in /proc/config.gz after booting my image.  I am able to verify that the ‘make zynq_zx3_defconfig’
> step was run.  I wonder if the steps to do this are different here 
> using the linux-zynq recipe as opposed to linux-yocto.  Any input on 
> the correct way to do this would be greatly appreciated.

looking at the layer it seems that you have to store it in defconfig for the machine you are interested in. There are few ways to go about it. So go to the configured kernel tree and use make menuconfig to add options you need to add and then do 'make savedefconfig' which should create a new defconfig with your changes in it which then you can save along side other machine defconfigs in kernel tree via a patch or may be keep it in metadata and add changes to recipe to use it for your machine.

>
> Thanks for the help in advance.
>
>
>
> -Mike
>
>
> _______________________________________________
> poky mailing list
> poky at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
>


More information about the poky mailing list