world leader in high performance signal processing
Trace: » command_line

Linux Command Line

A list of parameters can be passed to a kernel to change it's behavior at run time. To find out what your current command line is/was:

root:/> cat /proc/cmdline
root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600

This is an ascii string, which is normally managed from the bootloader's bootargs. It is the bootloader's responsibility to copy it to a specified place, right before the kernel boots (see the Blackfin ABI page for more information).

file: arch/blackfin/lib/boot.c

scm failed with exit code 1:
file does not exist in git

file: arch/blackfin/include/asm/config.h

scm failed with exit code 1:
file does not exist in git

This is copied in the linux kernel:

file: arch/blackfin/kernel/setup.c

scm failed with exit code 1:
file does not exist in git

Everything that can be set from the command line is specified in the kernel-parameters.txt file, which can be found as part of the kernel's Documentation.

file: Documentation/kernel-parameters.txt

scm failed with exit code 1:
file does not exist in git

The default bootargs are set by the Bootloader's board config file.

file: include/configs/bfin_adi_common.h

scm failed with exit code 1:
file does not exist in git

Common kernel parameters

root
Root filesystem
clkin_hz
The crystal speed (in Hz).
console
Output console device and options.
earlyprintk
allows printk before the kernel is completely alive.