Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel build removes my parameters
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Blackmorse
n00b
n00b


Joined: 28 Mar 2021
Posts: 52

PostPosted: Sun May 23, 2021 5:22 pm    Post subject: Kernel build removes my parameters Reply with quote

Hi. I'm stuck with configuring kernel.
After this post https://forums.gentoo.org/viewtopic-t-1134765-highlight-.html I've set mentioned parameters and this solved my problem. It was on 5.4, and now I'm rebuild kernel to 5.10, and the problem returns back.

I noticed that some parameters are gone. So I tried to return them back. After just typing them at .config and running make command, they disappeared again.

For example, CONFIG_BACKLIGHT_DA9052
By searching at make menuconfig, It depends on CONFIG_PMIC_DA9052, which depends on CONFIG_I2C. So, I set them both to =y, and CONFIG_BACKLIGHT_DA9052=m

After building with make && make modules install both CONFIG_PMIC_DA9052 and CONFIG_BACKLIGHT_DA9052 become again =n

How to enable all that flags?
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun May 23, 2021 5:55 pm    Post subject: Reply with quote

Maybe you need
make oldconfig........
_________________
:)
Back to top
View user's profile Send private message
Blackmorse
n00b
n00b


Joined: 28 Mar 2021
Posts: 52

PostPosted: Sun May 23, 2021 6:48 pm    Post subject: Reply with quote

I used it while upgrading kernel.
And now I'm working with new kernel..
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Sun May 23, 2021 6:48 pm    Post subject: Reply with quote

Use "make menuconfig". Don't use nano or other editor.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sun May 23, 2021 7:50 pm    Post subject: Reply with quote

Blackmorse,

One kernel configuration symbol may change a lot more without telling you.
When you $EDITOR on the kernel .config, you are unlikely to get all these other symbols.
If you are unlucky your get a kernel that builds but is broken in difficult to diagnose ways.

Any of the
Code:
make *config
options gets these depondencies right.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
fluffysheap
n00b
n00b


Joined: 10 Dec 2017
Posts: 9

PostPosted: Sat May 29, 2021 7:30 am    Post subject: Reply with quote

The only way to safely manually edit the kernel config file is to unset configured options by deleting the lines defining them.
Then you must run 'make oldconfig' which will allow the "missing" options to be safely configured by the config tool. oldconfig goes through a line by line procedure in which you can set any option which is defined but not configured. I actually prefer the line by line option over menuconfig, because it ensures I see everything, and don't miss options.

Sometimes oldconfig will force an option to a certain value. If make oldconfig does not allow you to set an option the way you like, it might conflict with some other option. A web search for the option's name might help you find what other options it depends on.

The kernel may ignore your settings, or worse, become unusable, if you attempt to override the configured options manually.
Back to top
View user's profile Send private message
Ralphred
Guru
Guru


Joined: 31 Dec 2013
Posts: 501

PostPosted: Sat May 29, 2021 7:40 am    Post subject: Reply with quote

fluffysheap wrote:
it might conflict with some other option

That's when you can just fire up menuconfig, use / to search for the option, or ? if you know where it is in the menu, the results will show dependencies, and also what "turned the option on" if it has dependants.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum