View previous topic :: View next topic |
Author |
Message |
Blackmorse n00b
Joined: 28 Mar 2021 Posts: 52
|
Posted: Sun May 23, 2021 5:22 pm Post subject: Kernel build removes my parameters |
|
|
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 |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Sun May 23, 2021 5:55 pm Post subject: |
|
|
Maybe you need
make oldconfig........ _________________
|
|
Back to top |
|
|
Blackmorse n00b
Joined: 28 Mar 2021 Posts: 52
|
Posted: Sun May 23, 2021 6:48 pm Post subject: |
|
|
I used it while upgrading kernel.
And now I'm working with new kernel.. |
|
Back to top |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Sun May 23, 2021 6:48 pm Post subject: |
|
|
Use "make menuconfig". Don't use nano or other editor. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Sun May 23, 2021 7:50 pm Post subject: |
|
|
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 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 |
|
|
fluffysheap n00b
Joined: 10 Dec 2017 Posts: 9
|
Posted: Sat May 29, 2021 7:30 am Post subject: |
|
|
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 |
|
|
Ralphred Guru
Joined: 31 Dec 2013 Posts: 501
|
Posted: Sat May 29, 2021 7:40 am Post subject: |
|
|
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 |
|
|
|