[Buildroot] [PATCH] Enable UART on raspberry pi zero

luke skywal_l at hotmail.com
Mon Mar 20 12:41:47 UTC 2017


Sorry, made a mistake in the original patch.


>From 9c77dfd825bebbf02e3b2837dacb9ae4873c9ec8 Mon Sep 17 00:00:00 2001
From: Luke <skywal_l at 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 at 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 >> ${TARGET_DIR}/../images/rpi-firmware/config.txt
-- 
2.7.4


De : Yann E. MORIN <yann.morin.1998 at gmail.com> de la part de Yann E. MORIN <yann.morin.1998 at free.fr>
Envoyé : dimanche 19 mars 2017 13:27
À : luke
Cc : buildroot at busybox.net
Objet : Re: [Buildroot] [PATCH] Enable UART on raspberry pi zero
    
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 at 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 at 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.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |


start [BZH_lan]
ymorin.is-a-geek.org
The guys from SimpleMachines have been kind enough to give me a Sim.One SBC. I'll be able to use that board to test Maverick Crunch, suport for which I will add to ...

'------------------------------^-------^------------------^--------------------'
    


More information about the buildroot mailing list