Editing Kernel command-line arguments inside Kernel

后端 未结 2 1296
执笔经年
执笔经年 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
    

提交回复
热议问题