[Buildroot] Need help with "CONFIG_CMDLINE" or setting up serial console.

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Aug 24 17:24:06 UTC 2017


Hello,

On Thu, 24 Aug 2017 07:13:55 +0530, Aseem Sharma wrote:

> I have created rootfs and zImage for "arm926t" using the long term support
> release of buildroot. However I am having trouble knowing if it is working
> as I do not see any messages on the screen.
> 
> How do I setup serial console on my device? I am not able to find the usual
> "CONFIG_CMDLINE" option in menuconfig to be able to set kernel command line.

CONFIG_CMDLINE is a Linux kernel option, not a Buildroot option.

In Buildroot, "make menuconfig" shows you the Buildroot options (which
architecture to use, which packages to build, which filesystem image to
generate, which kernel version and configuration to use, etc.)

If you want to access the Linux kernel configuration in the context of
Buildroot, you need to do "make linux-menuconfig". This is all
explained in the Buildroot manual, so please have a look at it.

However, using CONFIG_CMDLINE is by far not the easiest way of changing
the kernel command line. Instead, if you're using a decent bootloader,
it for sure provides a way to specify the kernel command line. Under
U-Boot for example, the bootargs variable is used for the kernel
command line value.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com


More information about the buildroot mailing list