raspberrypi3: serial console
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
@@ -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
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
@@ -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
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=138223Signed-off-by Trevor Woerner <[email protected]>--- conf/machine/raspberrypi3.conf | 1 + 1 file changed, 1 insertion(+)conf/machine/raspberrypi3.conf +0
-0
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
Quoted 13 lines · Trevor Woerner
The serial console on the Raspberry Pi 3 is located at
/dev/ttyS0and not/dev/ttyAMA0.Signed-off-by Trevor Woerner <[email protected]>--- conf/machine/raspberrypi3.conf | 2 ++ 1 file changed, 2 insertions(+)conf/machine/raspberrypi3.conf +0
-0
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
Quoted 16 lines · Andrei Gherzan
Quoted 15 lines · Trevor Woerner
The serial console on the Raspberry Pi 3 is located at
/dev/ttyS0and not/dev/ttyAMA0.Signed-off-by Trevor Woerner <[email protected]>--- conf/machine/raspberrypi3.conf | 2 ++ 1 file changed, 2 insertions(+)conf/machine/raspberrypi3.conf +0
-0@@ -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
-0include 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
Quoted 16 lines · Andrei Gherzan
Quoted 15 lines · Trevor Woerner
The serial console on the Raspberry Pi 3 is located at
/dev/ttyS0and not/dev/ttyAMA0.Signed-off-by Trevor Woerner <[email protected]>--- conf/machine/raspberrypi3.conf | 2 ++ 1 file changed, 2 insertions(+)conf/machine/raspberrypi3.conf +0
-0@@ -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
-0include 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).