[Buildroot] [PATCH] system: add "askfirst shell" as an option for busybox init
Alexey Brodkin
Alexey.Brodkin at synopsys.com
Wed Dec 17 15:03:12 UTC 2014
Hi Thomas,
On Tue, 2014-12-16 at 08:14 +0100, Thomas Petazzoni wrote:
> Dear Alexey Brodkin,
>
> On Mon, 15 Dec 2014 11:56:24 +0300, Alexey Brodkin wrote:
> > Consider following cases:
> > * Buildroot only builds rootfs that could be used on systems with
> > different default serial ports (ttyS0, ttyS1, ttyAMA3 etc)
>
> To achieve this, there is no need for a new option, just specify
> "console" as the terminal on which to run getty. The only change needed
> is to add "console" to /etc/securetty.
Well, actually putting "console" in BR2_TARGET_GENERIC_GETTY_PORT
resolves only part of issues - need to specify particular tty.
But still we have serial port settings like baudrate.
BR2_TARGET_GENERIC_GETTY_BAUDRATE_x must match your serial port
settings.
So we're loosing flexibility of my approach here, but what is even more
important imagine if there're 2 serial ports in the system and they have
different baudrates but both properly described in kernel bootargs. With
BR2_TARGET_GENERIC_GETTY only 1 console could be used then but not
either of them.
-Alexey
More information about the buildroot
mailing list