user3693586
user3693586

Reputation: 1287

Editing Kernel command-line arguments inside Kernel

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.

Upvotes: 2

Views: 7798

Answers (2)

Zakir
Zakir

Reputation: 2382

You can change if from kernel config:-

+CONFIG_CMDLINE="foo=1"
+CONFIG_CMDLINE_EXTEND=y

Check runtime:-
$cat /proc/cmdline

Upvotes: 0

Claudio
Claudio

Reputation: 10947

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

Upvotes: 5

Related Questions