Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] target /etc/inittab
Date: Sat, 16 Mar 2013 19:51:12 +0100	[thread overview]
Message-ID: <20130316195112.67246764@skate> (raw)
In-Reply-To: <ADE657CA350FB648AAC2C43247A983F0020980106B97@AUSP01VMBX24.collaborationhost.net>

Dear H Hartley Sweeten,

On Fri, 15 Mar 2013 12:34:02 -0500, H Hartley Sweeten wrote:

> I'm using buildroot to create a rootfs for an ep93xx board. This
> board has 3 serial ports ttyAM0-3. When the rootfs is created I
> get this in the /etc/inittab:
> 
> # Set up a couple of getty's
> tty1::respawn:/sbin/getty 38400 tty1
> tty2::respawn:/sbin/getty 38400 tty2

This is strange, we have removed these since
7d9d09db673abbedc1cc865c213b742e0450268d, which appeared in 2011.05 it
seems. Those lines are no longer part of the default skeleton.

> # Put a getty on the serial port
> ttyAM0::respawn:/sbin/getty -L ttyAM0 57600 vt100 # GENERIC_SERIAL
> #ttyAM1::respawn:/sbin/getty -L ttyAM1 57600 vt100 # GENERIC_SERIAL
> #ttyAM2::respawn:/sbin/getty -L ttyAM2 57600 vt100 # GENERIC_SERIAL

These are not coming from Buildroot default skeleton. Maybe you're
using a modified Buildroot version and not the upstream version?

> The problem is tty1 and tty2. They don't exist on my board and
> give me issues when the board boots. I can't figure out why they
> are being added to /etc/inittab and how to prevent theses getty's
> from showing up.

Just use a recent upstream Buildroot version, those lines are no longer
present in the default inittab.

> Also how do I get a getty on ttyAM1 and ttyAM2?

In a recent upstream Buildroot version, I would do that with a
post-build script.

Make sure to do add a # GENERIC_SERIAL comment at the end of those
additional lines: this # GENERIC_SERIAL is a marker that tells
Buildroot to modify this line to start a getty on the default tty
(which is defined in the Buildroot configuration).

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2013-03-16 18:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-15 17:34 [Buildroot] target /etc/inittab H Hartley Sweeten
2013-03-16 18:51 ` Thomas Petazzoni [this message]
2013-03-18 17:10   ` H Hartley Sweeten
2013-03-19 20:29     ` Alexey Brodkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130316195112.67246764@skate \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox