Skip to contentSkip to conversation

raspberrypi3: serial console

PATCH Superseded Trevor Woerner 2 participants 6 messages Apr 4, 2016 Broadcom BCM2711/BCM2835 Arm architecture

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 raspberrypi3: serial console

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

---
 conf/machine/raspberrypi3.conf | 2 ++
 1 file changed, 2 insertions(+)
conf/machine/raspberrypi3.conf +2 -0
index 1b73f2f..2c3df41 100644
@@ -7,3 +7,5 @@ MACHINEOVERRIDES = "raspberrypi2:${MACHINE}"
 MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-brcm43430"
 
 include conf/machine/raspberrypi2.conf
+
+SERIAL_CONSOLE_raspberrypi3 = "115200 ttyS0"
Signature · 1 line
2.7.0.rc3
#1 lore raw

PATCH 2/2 raspberrypi3: set core frequency

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
---
 conf/machine/raspberrypi3.conf | 1 +
 1 file changed, 1 insertion(+)
conf/machine/raspberrypi3.conf +1 -0
index 2c3df41..9dbb192 100644
@@ -9,3 +9,4 @@ MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-brcm43430"
 include conf/machine/raspberrypi2.conf
 
 SERIAL_CONSOLE_raspberrypi3 = "115200 ttyS0"
+CORE_FREQ = "250"
Signature · 1 line
2.7.0.rc3
#2 lore raw
In reply to Trevor Woerner
Quoted 14 lines · Trevor Woerner

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

---
  conf/machine/raspberrypi3.conf | 2 ++
  1 file changed, 2 insertions(+)
conf/machine/raspberrypi3.conf +0 -0
index 1b73f2f..2c3df41 100644

conf/machine/raspberrypi3.conf MACHINEOVERRIDES = "raspberrypi2:${MACHINE}" · line 11

Quoted 5 lines
conf/machine/raspberrypi3.conf +2 -0
@@ -7,3 +7,5 @@ MACHINEOVERRIDES = "raspberrypi2:${MACHINE}"
  MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-brcm43430"
 
  include conf/machine/raspberrypi2.conf
+
+SERIAL_CONSOLE_raspberrypi3 = "115200 ttyS0"

Why the _raspberrypi3 modifier? Wouldn't SERIAL_CONSOLE = "115200 ttyS0" do?

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#3 lore raw
Quoted 16 lines · Gary Thomas
Quoted 15 lines · Trevor Woerner

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

---
 conf/machine/raspberrypi3.conf | 2 ++
 1 file changed, 2 insertions(+)
conf/machine/raspberrypi3.conf +0 -0
index 1b73f2f..2c3df41 100644
@@ -7,3 +7,5 @@ MACHINEOVERRIDES = "raspberrypi2:${MACHINE}"
 MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-brcm43430"
 
Quoted 6 lines

conf/machine/raspberrypi3.conf MACHINEOVERRIDES = "raspberrypi2:${MACHINE}" · line 11

Quoted 4 lines
conf/machine/raspberrypi3.conf +2 -0
 include conf/machine/raspberrypi2.conf
+
+SERIAL_CONSOLE_raspberrypi3 = "115200 ttyS0"

Why the _raspberrypi3 modifier? Wouldn't SERIAL_CONSOLE = "115200 ttyS0" do?

...because the raspi3 MACHINE just basically includes/requires the raspi2 MACHINE, and the raspi2 MACHINE includes/requires include/rpi-base.inc, and it's in rpi-base.inc that we find the SERIAL_CONSOLE definition.

Originally I had pulled out the SERIAL_CONSOLE from rpi-base and added it to each of the raspi MACHINES, 3 of which were the same (AMA0) and one was ttyS0. Then, looking over the patch set, I thought it would be cleaner to just keep everything as it was and only add the ttyS0 to the raspi3 MACHINE (which requires the override).

Quoted 11 lines
Signature · 10 lines
-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
#4 lore raw
In reply to Gary Thomas
Quoted 16 lines · Gary Thomas
Quoted 15 lines · Trevor Woerner

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

---
 conf/machine/raspberrypi3.conf | 2 ++
 1 file changed, 2 insertions(+)
conf/machine/raspberrypi3.conf +0 -0
index 1b73f2f..2c3df41 100644
@@ -7,3 +7,5 @@ MACHINEOVERRIDES = "raspberrypi2:${MACHINE}"
 MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-brcm43430"
 
Quoted 6 lines

conf/machine/raspberrypi3.conf MACHINEOVERRIDES = "raspberrypi2:${MACHINE}" · line 11

Quoted 4 lines
conf/machine/raspberrypi3.conf +2 -0
 include conf/machine/raspberrypi2.conf
+
+SERIAL_CONSOLE_raspberrypi3 = "115200 ttyS0"

Why the _raspberrypi3 modifier? Wouldn't SERIAL_CONSOLE = "115200 ttyS0" do?

oh, I see what you mean. maybe, let me check

Quoted 11 lines
Signature · 10 lines
-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
#5 lore raw
Quoted 17 lines · Trevor Woerner
Quoted 16 lines · Gary Thomas
Quoted 15 lines · Trevor Woerner

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

---
 conf/machine/raspberrypi3.conf | 2 ++
 1 file changed, 2 insertions(+)
conf/machine/raspberrypi3.conf +0 -0
index 1b73f2f..2c3df41 100644
@@ -7,3 +7,5 @@ MACHINEOVERRIDES = "raspberrypi2:${MACHINE}"
 MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-brcm43430"
 
Quoted 8 lines
Quoted 6 lines

conf/machine/raspberrypi3.conf MACHINEOVERRIDES = "raspberrypi2:${MACHINE}" · line 11

Quoted 4 lines
conf/machine/raspberrypi3.conf +2 -0
 include conf/machine/raspberrypi2.conf
+
+SERIAL_CONSOLE_raspberrypi3 = "115200 ttyS0"

Why the _raspberrypi3 modifier? Wouldn't SERIAL_CONSOLE = "115200 ttyS0" do?

oh, I see what you mean. maybe, let me check

yep, that works too ;-)

v2 to follow

Quoted 12 lines
Quoted 12 lines
Signature · 10 lines
-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto