All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-raspberrypi][PATCH v2 1/2] raspberrypi3: serial console
@ 2016-04-11 21:54 Trevor Woerner
  2016-04-11 21:54 ` [meta-raspberrypi][PATCH v2 2/2] raspberrypi3: set core frequency Trevor Woerner
  2016-04-13  2:20 ` [meta-raspberrypi][PATCH v2 1/2] raspberrypi3: serial console Andrei Gherzan
  0 siblings, 2 replies; 6+ messages in thread
From: Trevor Woerner @ 2016-04-11 21:54 UTC (permalink / raw)
  To: yocto

The serial console on the Raspberry Pi 3 is located at /dev/ttyS0 and not
/dev/ttyAMA0.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 conf/machine/raspberrypi3.conf | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/conf/machine/raspberrypi3.conf b/conf/machine/raspberrypi3.conf
index 1b73f2f..cb6056e 100644
--- a/conf/machine/raspberrypi3.conf
+++ b/conf/machine/raspberrypi3.conf
@@ -7,3 +7,5 @@ MACHINEOVERRIDES = "raspberrypi2:${MACHINE}"
 MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-brcm43430"
 
 include conf/machine/raspberrypi2.conf
+
+SERIAL_CONSOLE = "115200 ttyS0"
-- 
2.7.0.rc3



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [meta-raspberrypi][PATCH v2 2/2] raspberrypi3: set core frequency
  2016-04-11 21:54 [meta-raspberrypi][PATCH v2 1/2] raspberrypi3: serial console Trevor Woerner
@ 2016-04-11 21:54 ` Trevor Woerner
  2016-04-13  2:51   ` Andrei Gherzan
  2016-04-13  2:20 ` [meta-raspberrypi][PATCH v2 1/2] raspberrypi3: serial console Andrei Gherzan
  1 sibling, 1 reply; 6+ messages in thread
From: Trevor Woerner @ 2016-04-11 21:54 UTC (permalink / raw)
  To: yocto

Pegging the core frequency at 250 avoids any fluctuations of the baud rate on
the console.

See:
	https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=138223

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 conf/machine/raspberrypi3.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/conf/machine/raspberrypi3.conf b/conf/machine/raspberrypi3.conf
index cb6056e..81301c3 100644
--- a/conf/machine/raspberrypi3.conf
+++ b/conf/machine/raspberrypi3.conf
@@ -9,3 +9,4 @@ MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-brcm43430"
 include conf/machine/raspberrypi2.conf
 
 SERIAL_CONSOLE = "115200 ttyS0"
+CORE_FREQ = "250"
-- 
2.7.0.rc3



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [meta-raspberrypi][PATCH v2 1/2] raspberrypi3: serial console
  2016-04-11 21:54 [meta-raspberrypi][PATCH v2 1/2] raspberrypi3: serial console Trevor Woerner
  2016-04-11 21:54 ` [meta-raspberrypi][PATCH v2 2/2] raspberrypi3: set core frequency Trevor Woerner
@ 2016-04-13  2:20 ` Andrei Gherzan
  2016-04-13  2:28   ` Andrei Gherzan
  2016-04-13 16:41   ` Trevor Woerner
  1 sibling, 2 replies; 6+ messages in thread
From: Andrei Gherzan @ 2016-04-13  2:20 UTC (permalink / raw)
  To: Trevor Woerner; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 863 bytes --]

On Mon, Apr 11, 2016 at 05:54:44PM -0400, Trevor Woerner wrote:
> The serial console on the Raspberry Pi 3 is located at /dev/ttyS0 and not
> /dev/ttyAMA0.
>
> Signed-off-by: Trevor Woerner <twoerner@gmail.com>
> ---
>  conf/machine/raspberrypi3.conf | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/conf/machine/raspberrypi3.conf b/conf/machine/raspberrypi3.conf
> index 1b73f2f..cb6056e 100644
> --- a/conf/machine/raspberrypi3.conf
> +++ b/conf/machine/raspberrypi3.conf
> @@ -7,3 +7,5 @@ MACHINEOVERRIDES = "raspberrypi2:${MACHINE}"
>  MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-brcm43430"
>
>  include conf/machine/raspberrypi2.conf
> +
> +SERIAL_CONSOLE = "115200 ttyS0"

As this seems not to be unified anymore, would it make sense to remove
it from rpi-base.inc and define it in every machine conf?

--
Andrei Gherzan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [meta-raspberrypi][PATCH v2 1/2] raspberrypi3: serial console
  2016-04-13  2:20 ` [meta-raspberrypi][PATCH v2 1/2] raspberrypi3: serial console Andrei Gherzan
@ 2016-04-13  2:28   ` Andrei Gherzan
  2016-04-13 16:41   ` Trevor Woerner
  1 sibling, 0 replies; 6+ messages in thread
From: Andrei Gherzan @ 2016-04-13  2:28 UTC (permalink / raw)
  To: Trevor Woerner; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1121 bytes --]

On Wed, Apr 13, 2016 at 04:20:36AM +0200, Andrei Gherzan wrote:
> On Mon, Apr 11, 2016 at 05:54:44PM -0400, Trevor Woerner wrote:
> > The serial console on the Raspberry Pi 3 is located at /dev/ttyS0 and not
> > /dev/ttyAMA0.
> >
> > Signed-off-by: Trevor Woerner <twoerner@gmail.com>
> > ---
> >  conf/machine/raspberrypi3.conf | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/conf/machine/raspberrypi3.conf b/conf/machine/raspberrypi3.conf
> > index 1b73f2f..cb6056e 100644
> > --- a/conf/machine/raspberrypi3.conf
> > +++ b/conf/machine/raspberrypi3.conf
> > @@ -7,3 +7,5 @@ MACHINEOVERRIDES = "raspberrypi2:${MACHINE}"
> >  MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-brcm43430"
> >
> >  include conf/machine/raspberrypi2.conf
> > +
> > +SERIAL_CONSOLE = "115200 ttyS0"
>
> As this seems not to be unified anymore, would it make sense to remove
> it from rpi-base.inc and define it in every machine conf?
>

Or we can use the replace method in firmware setting it to serial0.
https://github.com/RPi-Distro/repo/issues/22

> --
> Andrei Gherzan



--
Andrei Gherzan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [meta-raspberrypi][PATCH v2 2/2] raspberrypi3: set core frequency
  2016-04-11 21:54 ` [meta-raspberrypi][PATCH v2 2/2] raspberrypi3: set core frequency Trevor Woerner
@ 2016-04-13  2:51   ` Andrei Gherzan
  0 siblings, 0 replies; 6+ messages in thread
From: Andrei Gherzan @ 2016-04-13  2:51 UTC (permalink / raw)
  To: Trevor Woerner; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 952 bytes --]

On Mon, Apr 11, 2016 at 05:54:45PM -0400, Trevor Woerner wrote:
> Pegging the core frequency at 250 avoids any fluctuations of the baud rate on
> the console.
>
> See:
> 	https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=138223
>
> Signed-off-by: Trevor Woerner <twoerner@gmail.com>
> ---
>  conf/machine/raspberrypi3.conf | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/conf/machine/raspberrypi3.conf b/conf/machine/raspberrypi3.conf
> index cb6056e..81301c3 100644
> --- a/conf/machine/raspberrypi3.conf
> +++ b/conf/machine/raspberrypi3.conf
> @@ -9,3 +9,4 @@ MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-brcm43430"
>  include conf/machine/raspberrypi2.conf
>
>  SERIAL_CONSOLE = "115200 ttyS0"
> +CORE_FREQ = "250"

I think it would be better to use enable_uart in config.txt for this
situation. Setting it to 1 would work on all the rpi versions with
current firmware (to be tested).

--
Andrei Gherzan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [meta-raspberrypi][PATCH v2 1/2] raspberrypi3: serial console
  2016-04-13  2:20 ` [meta-raspberrypi][PATCH v2 1/2] raspberrypi3: serial console Andrei Gherzan
  2016-04-13  2:28   ` Andrei Gherzan
@ 2016-04-13 16:41   ` Trevor Woerner
  1 sibling, 0 replies; 6+ messages in thread
From: Trevor Woerner @ 2016-04-13 16:41 UTC (permalink / raw)
  To: Andrei Gherzan; +Cc: yocto

On Wed 2016-04-13 @ 04:20:36 AM, Andrei Gherzan wrote:
> On Mon, Apr 11, 2016 at 05:54:44PM -0400, Trevor Woerner wrote:
> > The serial console on the Raspberry Pi 3 is located at /dev/ttyS0 and not
> > /dev/ttyAMA0.
> >
> > Signed-off-by: Trevor Woerner <twoerner@gmail.com>
> > ---
> >  conf/machine/raspberrypi3.conf | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/conf/machine/raspberrypi3.conf b/conf/machine/raspberrypi3.conf
> > index 1b73f2f..cb6056e 100644
> > --- a/conf/machine/raspberrypi3.conf
> > +++ b/conf/machine/raspberrypi3.conf
> > @@ -7,3 +7,5 @@ MACHINEOVERRIDES = "raspberrypi2:${MACHINE}"
> >  MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-brcm43430"
> >
> >  include conf/machine/raspberrypi2.conf
> > +
> > +SERIAL_CONSOLE = "115200 ttyS0"
> 
> As this seems not to be unified anymore, would it make sense to remove
> it from rpi-base.inc and define it in every machine conf?

Sure, I can do that too, no problem. I'll start a new patch series for just
this one change since it is a different solution (therefore it won't be a v3
on this one).


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-04-13 16:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-11 21:54 [meta-raspberrypi][PATCH v2 1/2] raspberrypi3: serial console Trevor Woerner
2016-04-11 21:54 ` [meta-raspberrypi][PATCH v2 2/2] raspberrypi3: set core frequency Trevor Woerner
2016-04-13  2:51   ` Andrei Gherzan
2016-04-13  2:20 ` [meta-raspberrypi][PATCH v2 1/2] raspberrypi3: serial console Andrei Gherzan
2016-04-13  2:28   ` Andrei Gherzan
2016-04-13 16:41   ` Trevor Woerner

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.