All of lore.kernel.org
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: Kevin Hao <kexin.hao@windriver.com>
Cc: Yocto Project <yocto@yoctoproject.org>
Subject: Re: thud, beaglebone-yocto.conf: SERIAL_CONSOLES setting
Date: Fri, 2 Nov 2018 07:27:04 -0700	[thread overview]
Message-ID: <CAMKF1sov=e1z8wH0ckXozz3RK1Uz-7Ja+uzguqTTCxBPHiipyw@mail.gmail.com> (raw)
In-Reply-To: <20181102085916.GA31329@pek-khao-d2>

On Fri, Nov 2, 2018 at 2:02 AM Kevin Hao <kexin.hao@windriver.com> wrote:
>
> On Fri, Nov 02, 2018 at 09:01:34AM +0100, Heiko Schocher wrote:
> > Hello Kevin,
> >
> > Am 01.11.2018 um 03:18 schrieb Kevin Hao:
> > > On Wed, Oct 31, 2018 at 02:23:00PM +0100, Heiko Schocher wrote:
> > > > Hello all,
> > > >
> > > > just builded core-image-minimal with current head of thud branch for
> > > > the beaglebone-yocto machine, with linux 4.14.x LTS "Linux version 4.14.78",
> > > > installed the resulting sd card image and boot it, and get:
> > > >
> > > > INIT: Id "O0" respawning too fast: disabled for
> > > > 5 minutes
> > > >
> > > > Reason seems to be:
> > > >
> > > > meta-yocto-bsp/conf/machine/beaglebone-yocto.conf
> > > >
> > > > SERIAL_CONSOLES = "115200;ttyO0"
> > > >
> > > > shouldn't this be
> > > >
> > > > SERIAL_CONSOLES = "115200;ttyS0"
> > > >
> > > > With this fix, sd card image boot fine ... may I oversee seomthing
> > > > obvious ?
> > >
> > > No, it should be 'ttyO0'. It is set by the omap serial driver. You can
> > > refer the following in platform_data/serial-omap.h:
> > >    #define OMAP_SERIAL_NAME        "ttyO"
> >
> > Yes, you are right, but I see with linux kernel 4.14.78 from
> >
> > https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.14.y&id=e7405910ca5553eae8744af4e5c03e64ee048cb1
> >
> > and I see:
> >
> > [    0.000000] Linux version 4.14.78 (oe-user@oe-host) (gcc version 8.2.0
> > (GCC)) #1 Thu Nov 1 10:51:09 UTC 2018
> > [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
> > [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
> > [    0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black
> > [...]
> > [    0.362878] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
> > [    0.365758] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250
> > [    1.030465] console [ttyS0] enabled
> >
> > So definitely a ttyS0 ...
>
> OK, so you don't use the linux-yocto kernel, you must not use the Yocto kernel
> meta either.

I dont think there is such a rule. meta-yocto-bsps are meant as
references and people might want to enhance them.

 The reason that you got a ttyS0 here is that you use the
> 8250_omap.c driver. But in Yocto we use the omap-serial.c driver. You can
> workaround this issue by enabling SERIAL_8250_OMAP_TTYO_FIXUP.
>

omap serial is obsolete why does linux-yocto keeps using it.
seondly, machine config should enable both consoles ttyO0 and ttyS0 if
you know that at least one kernel is using ttyO0

> Thanks,
> Kevin
>
> >
> > bye,
> > Heiko
> > >
> > > Thanks,
> > > Kevin
> > >
> > > >
> > > > bye,
> > > > Heiko
> > > > --
> > > > DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
> > > > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> > > > Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs@denx.de
> > > > --
> > > > _______________________________________________
> > > > yocto mailing list
> > > > yocto@yoctoproject.org
> > > > https://lists.yoctoproject.org/listinfo/yocto
> >
> > --
> > DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
> > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> > Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs@denx.de
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


  parent reply	other threads:[~2018-11-02 14:27 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-31 13:23 thud, beaglebone-yocto.conf: SERIAL_CONSOLES setting Heiko Schocher
2018-10-31 14:23 ` Bruce Ashfield
2018-11-01  2:18 ` Kevin Hao
2018-11-02  8:01   ` Heiko Schocher
2018-11-02  8:59     ` Kevin Hao
2018-11-02 13:52       ` Bruce Ashfield
2018-11-02 14:27       ` Khem Raj [this message]
2018-11-03  8:37         ` Kevin Hao
2018-11-03 14:38           ` Khem Raj
2018-11-04  1:53             ` Kevin Hao
2018-11-04 10:10         ` Robert Berger
2018-11-05  5:26           ` Kevin Hao
2018-11-06  8:10             ` Heiko Schocher
2018-11-07  7:33               ` Heiko Schocher
2018-11-07 13:32                 ` Kevin Hao

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='CAMKF1sov=e1z8wH0ckXozz3RK1Uz-7Ja+uzguqTTCxBPHiipyw@mail.gmail.com' \
    --to=raj.khem@gmail.com \
    --cc=kexin.hao@windriver.com \
    --cc=yocto@yoctoproject.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.