如何通过make menuconfig或make nconfig禁用CONFIG_STRICT_DEVMEM [英] how to disable CONFIG_STRICT_DEVMEM through make menuconfig or make nconfig
问题描述
我需要在Linux内核中禁用 CONFIG_STRICT_DEVMEM
选项,然后重新编译.为什么?我被告知要这样做.我知道可以通过在 .config
文件中将其注释掉来禁用它,但是我需要查看如何通过 make menuconfig
或 make nconfig
.为什么?这是一个演示,我需要能够演示它.有人知道怎么做吗?
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?
感谢您的帮助.
推荐答案
如果您不了解菜单配置的方式,请按/进行搜索(输入vim和朋友),然后输入足够的配置选项来缩小范围,例如"strict_devmem"或仅仅是"devmem".然后,您可以点击括号中的数字之一,直接跳至相关菜单.当您需要检查一大堆随机选项时(例如,使您拥有的开发defconfig可以很好地与systemd文件系统配合使用),这绝对是一个救命稻草.
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).
在这种情况下,它应该在内核黑客"下作为对/dev/mem的过滤器访问"提供.
In this specific case, it should be available under "kernel hacking" as "filter access to /dev/mem".
这篇关于如何通过make menuconfig或make nconfig禁用CONFIG_STRICT_DEVMEM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!