Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jun 2018 19:47:34 +0100
From:      Edward Napierala <trasz@freebsd.org>
To:        Warner Losh <imp@bsdimp.com>
Cc:        Emmanuel Vadot <manu@bidouilliste.com>, src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org, svn-src-head@freebsd.org, owner-src-committers@freebsd.org
Subject:   Re: svn commit: r335004 - head/release/tools
Message-ID:  <20180613184734.GA71415@brick>
In-Reply-To: <CANCZdfpoNf9kScSLRX%2Bv7=t6QsiDNtY_yqknQLVr_vSHTFnSqw@mail.gmail.com>
References:  <201806121645.w5CGjrMM099365@repo.freebsd.org> <941a15be461602ae3d723c3f30804248@megadrive.org> <CAFLM3-oKsP70WmDfDn82-Z9wZ6%2BkJM7WC1aLJGKVm-rsf0Yd_A@mail.gmail.com> <CANCZdfpoNf9kScSLRX%2Bv7=t6QsiDNtY_yqknQLVr_vSHTFnSqw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 0613T0730, Warner Losh wrote:
> On Wed, Jun 13, 2018 at 6:39 AM, Edward Napierala <trasz@freebsd.org> wrote:
> 
> > 2018-06-13 12:43 GMT+01:00 Emmanuel Vadot <manu@bidouilliste.com>:
> >
> >> On 2018-06-12 18:45, Edward Tomasz Napierala wrote:

[..]

> >> +       echo '# USB OTG virtual serial port' \
> >>> +               >> ${CHROOTDIR}/${DESTDIR}/etc/ttys
> >>> +       echo 'ttyU0     "/usr/libexec/getty 3wire"      vt100
> >>>  onifconsole  secure' \
> >>> +               >> ${CHROOTDIR}/${DESTDIR}/etc/ttys
> >>> +       echo 'ttyU1     "/usr/libexec/getty 3wire"      vt100
> >>>  onifconsole  secure' \
> >>> +               >> ${CHROOTDIR}/${DESTDIR}/etc/ttys
> >>>
> >>
> >>  If I have no OTG port and a usb<->uart plugged into my board that will
> >> give weird result no ?
> >>
> >
> > No, because that port won't be marked as console.  This only applies
> > to the "virtual" OTG serial ports.
> >
> 
> Right, and console is an overloaded term.  Here it just means 'tty marked
> by the kernel that gets a getty started on it automatically after it shows
> up' not 'the device that gets all the kernel I/O.'

Yup.  But again - this reuses the functionality that's already there
in init(8), while avoiding the renaming of device nodes.  And eventually,
those ports might become actual consoles, making things nicely aligned.

[..]




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180613184734.GA71415>