raspberrypi3: serial console
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
@@ -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
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
@@ -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
Quoted 14 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_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 ------------------------------------------------------------
Quoted 16 lines · Gary Thomas
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 4 lines
conf/machine/raspberrypi3.conf +2
-0include conf/machine/raspberrypi2.conf + +SERIAL_CONSOLE_raspberrypi3 = "115200 ttyS0"Why the
_raspberrypi3modifier? Wouldn'tSERIAL_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
Quoted 16 lines · Gary Thomas
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 4 lines
conf/machine/raspberrypi3.conf +2
-0include conf/machine/raspberrypi2.conf + +SERIAL_CONSOLE_raspberrypi3 = "115200 ttyS0"Why the
_raspberrypi3modifier? Wouldn'tSERIAL_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
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/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 8 lines
Quoted 6 lines
conf/machine/raspberrypi3.conf MACHINEOVERRIDES = "raspberrypi2:${MACHINE}" · line 11
Quoted 4 lines
conf/machine/raspberrypi3.conf +2
-0include conf/machine/raspberrypi2.conf + +SERIAL_CONSOLE_raspberrypi3 = "115200 ttyS0"Why the
_raspberrypi3modifier? Wouldn'tSERIAL_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