How Do I Save My Kernel Configuration As The Default Settings?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How Do I Save My Kernel Configuration As The Default Settings?

跳至解决方案
1,362 次查看
freewaymad
Contributor IV

Hi,

How do I save my kernel configuration as the default settings? I use this:

$ make menuconfig

I save the settings when asked, but how do I make them the default settings so I don't have to keep going back and setting it all up again? When I build a kernel the settings are saved, but when I build a boot.img or do a:

$ make distclean

the settings revert back to what they were originally. What am I missing? Please help.

Thanks,

标签 (2)
标记 (2)
1 解答
1,121 次查看
freewaymad
Contributor IV

Problem Solved!!

I went through the process of setting up to build a kernel. I then entered the following commands:

$ make distclean

$ make imx6_android_defconfig

$ make menuconfig

After getting all my settings the way I wanted them, instead of exiting all the way to the "save settings yes or no", I exited to the main or home screen and hit the

"Save an Alternate Configuration File". Then I named the file. This was saved in the "kernel_imx" directory (by default). I went into the kernel_imx/arch/arm/configs folder and renamed the "imx6_defconfig" and "imx6_android_defconfig" files to "original_ imx6_defconfig" and "original_imx6_android_defconfig" (to keep the originals). I then took the Alternate Configuration file in the kernel_imx directory and copied the contents and created my own "imx6_defconfig" and "imx6_android_defconfig" files in the kernel_imx/arch/arm/configs folder. Now my settings are saved as the default settings (unless I go through this process again). I now can build a "rom" or a "boot.img". I can do a:

$ make distclean

and then:

$ make imx6_android_defconfig

I do not have to use the:

$ make menuconfig

to reset my settings.

在原帖中查看解决方案

2 回复数
1,122 次查看
freewaymad
Contributor IV

Problem Solved!!

I went through the process of setting up to build a kernel. I then entered the following commands:

$ make distclean

$ make imx6_android_defconfig

$ make menuconfig

After getting all my settings the way I wanted them, instead of exiting all the way to the "save settings yes or no", I exited to the main or home screen and hit the

"Save an Alternate Configuration File". Then I named the file. This was saved in the "kernel_imx" directory (by default). I went into the kernel_imx/arch/arm/configs folder and renamed the "imx6_defconfig" and "imx6_android_defconfig" files to "original_ imx6_defconfig" and "original_imx6_android_defconfig" (to keep the originals). I then took the Alternate Configuration file in the kernel_imx directory and copied the contents and created my own "imx6_defconfig" and "imx6_android_defconfig" files in the kernel_imx/arch/arm/configs folder. Now my settings are saved as the default settings (unless I go through this process again). I now can build a "rom" or a "boot.img". I can do a:

$ make distclean

and then:

$ make imx6_android_defconfig

I do not have to use the:

$ make menuconfig

to reset my settings.

1,121 次查看
gusarambula
NXP TechSupport
NXP TechSupport

Thank you very much for sharing your findings with the community! I'm sure they will be of help to other users!

0 项奖励
回复