Skip to contentSkip to conversation

raspberrypi3: serial console

PATCH In review Trevor Woerner 2 participants 6 messages Apr 11, 2016 – Apr 13, 2016 Broadcom BCM2711/BCM2835 Arm architecture

lore
Share & tools
lore
#0 lore raw

PATCH v2 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..cb6056e 100644
@@ -7,3 +7,5 @@ MACHINEOVERRIDES = "raspberrypi2:${MACHINE}"
 MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-brcm43430"
 
 include conf/machine/raspberrypi2.conf
+
+SERIAL_CONSOLE = "115200 ttyS0"
Signature · 1 line
2.7.0.rc3
#1 lore raw

PATCH v2 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 cb6056e..81301c3 100644
@@ -9,3 +9,4 @@ MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-brcm43430"
 include conf/machine/raspberrypi2.conf
 
 SERIAL_CONSOLE = "115200 ttyS0"
+CORE_FREQ = "250"
Signature · 1 line
2.7.0.rc3
#2 lore raw

Re: [meta-raspberrypi][PATCH v2 2/2] raspberrypi3: set core frequency

Quoted 16 lines · Trevor Woerner

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 +0 -0
index cb6056e..81301c3 100644

conf/machine/raspberrypi3.conf MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-brcm43430" · line 12

Quoted 4 lines
conf/machine/raspberrypi3.conf +1 -0
@@ -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

#3 lore raw
In reply to Trevor Woerner
Quoted 13 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..cb6056e 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 = "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

#4 lore raw
Quoted 16 lines · Andrei Gherzan
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..cb6056e 100644
@@ -7,3 +7,5 @@ MACHINEOVERRIDES = "raspberrypi2:${MACHINE}"
 MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-brcm43430"
 
Quoted 7 lines

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

Quoted 3 lines
conf/machine/raspberrypi3.conf +2 -0
 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

Quoted 2 lines

--
Andrei Gherzan

--
Andrei Gherzan

#5 lore raw
In reply to Andrei Gherzan
Quoted 16 lines · Andrei Gherzan
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..cb6056e 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 3 lines
conf/machine/raspberrypi3.conf +2 -0
 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).