[Buildroot] [PATCH] system: add "askfirst shell" as an option for busybox init

Alexey Brodkin Alexey.Brodkin at synopsys.com
Wed Dec 17 15:50:16 UTC 2014


Hi Thomas,

On Wed, 2014-12-17 at 16:36 +0100, Thomas Petazzoni wrote:
> Dear Alexey Brodkin,
> 
> On Wed, 17 Dec 2014 15:24:44 +0000, Alexey Brodkin wrote:
> 
> > Probably not. At least in case of Busybox I saw this on attempt to
> > execute getty without baudrate at all.
> 
> Well, you didn't read it all...
> 
> > 
> > --->---
> > BAUD_RATE of 0 leaves it unchanged
> 
> ... see this :-)
> 
> So if you set the baud rate to 0, it will keep the one configured by
> console= in the kernel command line.

Right it was too obvious.

So looks like this is a replacement for my patch:
--->---
BR2_TARGET_GENERIC_GETTY_PORT=console
BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP=y
--->---

Then the question is why this is not a default in Buildroot?
IMHO most of the time kernel's bootcmd has console set so explicit setup
of tty in Buildroot might be required in some corner cases only.

-Alexey



More information about the buildroot mailing list