在内核中编辑内核命令行参数 [英] Editing Kernel command-line arguments inside Kernel
本文介绍了在内核中编辑内核命令行参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
U-boot传递内核命令行参数。根据我的要求,我想在内核源代码树中编辑这些参数,并且不想更改U-boot代码。我正在使用2.6.35内核。
U-boot passes kernel command-line parameters. In my requirement I want to edit these parameters in the kernel source tree and don't want to change U-boot code. I am using 2.6.35 kernel.
因此,请指导我必须检查内核源代码的哪一部分。
So please guide me which part of the kernel source I have to check for this.
推荐答案
请遵循以下过程:
- 通过输入
make menuconfig
- 进入菜单处理器类型和功能 进入内核配置>
- 启用内置内核命令行
- 通过单击内置内核命令字符串<
- 如果希望
bootargs
选择内置命令行会覆盖引导加载程序参数已忽略
- Enter the kernel config by typing
make menuconfig
- Enter the menu Processor type and features
- Enable Built-in kernel command line
- Specify your command line by clicking on Built-in kernel command string
- Select Built-in command line overrides boot loader arguments if you want
bootargs
to be ignored
这篇关于在内核中编辑内核命令行参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文