Message ID | DB5PR03MB13342317D9FB07E001D16231E7380@DB5PR03MB1334.eurprd03.prod.outlook.com |
---|---|
State | Rejected |
Headers | show |
Luke, All, On 2017-03-18 18:22 +0000, luke spake thusly: > From 9c77dfd825bebbf02e3b2837dacb9ae4873c9ec8 Mon Sep 17 00:00:00 2001 > From: Luke <skywal_l@hotmail.com> > Date: Sat, 18 Mar 2017 18:17:24 +0000 > Subject: [PATCH 1/1] Modify post-build.sh for raspberry pi zero so that it > activates the UART serial console in config.txt > > Signed-off-by: Luke <skywal_l@hotmail.com> > --- > board/raspberrypi/post-build.sh | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/board/raspberrypi/post-build.sh b/board/raspberrypi/post-build.sh > index 5e5eb71..6d2f0d1 100755 > --- a/board/raspberrypi/post-build.sh > +++ b/board/raspberrypi/post-build.sh > @@ -9,3 +9,6 @@ if [ -e ${TARGET_DIR}/etc/inittab ]; then > sed -i '/GENERIC_SERIAL/a\ > tty1::respawn:/sbin/getty -L tty1 0 vt100 # HDMI console' ${TARGET_DIR}/etc/inittab > fi > + > +# Activate the console > +echo "enable_uart=1" | cat >> config.txt I have a rpi-0 here, and I do not need that config option to get the UART working. Regards, Yann E. MORIN.
Maybe my message wasn't clear. This is for the raspberry PI Zero W. The UART is taken over by the wifi chip, so the software UART is now used for the TX/RX GPIO pin. But to be reliable, the CPU freq is supposed to be limited in some way. It's all here: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=141195 Pi3 UART stopped working? Read this. - Raspberry Pi<https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=141195> www.raspberrypi.org I have followed this post and others related to the issue and am still stumped by the serial corruption issue. I have a pi 3 flashed with 2016-03-18-raspbian-jessie. JD
Luke, All, On 2017-03-20 12:36 +0000, luke spake thusly: > Maybe my message wasn't clear. > This is for the raspberry PI Zero W. > > The UART is taken over by the wifi chip, so the software UART is now > used for the TX/RX GPIO pin. Then please look at how we're already doing it for the rpi3: https://git.buildroot.org/buildroot/tree/configs/raspberrypi3_defconfig See the following option: BR2_ROOTFS_POST_SCRIPT_ARGS="--add-pi3-miniuart-bt-overlay" Since the thread you pointed to is about rpi3, not rpi0-w, I gues the workiaround we have will also work for rip0-w. Can you please check that? Regards, Yann E. MORIN.
diff --git a/board/raspberrypi/post-build.sh b/board/raspberrypi/post-build.sh index 5e5eb71..6d2f0d1 100755 --- a/board/raspberrypi/post-build.sh +++ b/board/raspberrypi/post-build.sh @@ -9,3 +9,6 @@ if [ -e ${TARGET_DIR}/etc/inittab ]; then sed -i '/GENERIC_SERIAL/a\ tty1::respawn:/sbin/getty -L tty1 0 vt100 # HDMI console' ${TARGET_DIR}/etc/inittab fi + +# Activate the console +echo "enable_uart=1" | cat >> config.txt