From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Sat, 16 Mar 2013 19:51:12 +0100 Subject: [Buildroot] target /etc/inittab In-Reply-To: References: Message-ID: <20130316195112.67246764@skate> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.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