问题
I need to disable a CONFIG_STRICT_DEVMEM
option in my Linux kernel and recompile it. Why? I was told to do so. I know I can disable it by simply commenting it out in the .config
file, but I need to see how it is done through make menuconfig
or make nconfig
. Why? This is for a demo and I need to be able to show it. Does anyone know how to do it?
Any help is appreciated.
回答1:
If you don't know your way around menuconfig, hit / to search (à la vim and friends), and type in enough of the config option to narrow it down, e.g. "strict_devmem" or just "devmem". You can then hit one of the numbers in parentheses to jump straight to the relevant menu. It's an absolute lifesaver when you need to check on a whole bunch of random options (e.g. making whatever development defconfig you've got play nicely with a systemd filesystem).
In this specific case, it should be available under "kernel hacking" as "filter access to /dev/mem".
来源:https://stackoverflow.com/questions/39129785/how-to-disable-config-strict-devmem-through-make-menuconfig-or-make-nconfig