Editing Kernel command-line arguments inside Kernel

后端 未结 2 1282
执笔经年
执笔经年 2021-01-07 08:33

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

相关标签:
2条回答
  • 2021-01-07 08:44

    You can change if from kernel config:-

    +CONFIG_CMDLINE="foo=1"
    +CONFIG_CMDLINE_EXTEND=y
    
    Check runtime:-
    $cat /proc/cmdline
    
    0 讨论(0)
  • 2021-01-07 08:58

    Follow this procedure:

    • 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
    0 讨论(0)
提交回复
热议问题