Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/utils/embedded/conf Create a config.txt for RPI and ...



details:   https://anonhg.NetBSD.org/src/rev/5ab1a4d9ff4f
branches:  trunk
changeset: 825808:5ab1a4d9ff4f
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Jul 31 16:34:22 2017 +0000

description:
Create a config.txt for RPI and set 'enable_uart=1' and 'force_turbo=0'.
This config gives us a stable core_freq clock that is used to drive the
SD HOST and AUX UART devices.

More information on config.txt settings for the UART can be found here:

https://www.raspberrypi.org/documentation/configuration/uart.md

diffstat:

 distrib/utils/embedded/conf/armv7.conf    |  8 +++++++-
 distrib/utils/embedded/conf/rpi.conf      |  9 ++++++++-
 distrib/utils/embedded/conf/rpi_inst.conf |  9 ++++++++-
 3 files changed, 23 insertions(+), 3 deletions(-)

diffs (68 lines):

diff -r 5f1ebc4b67d6 -r 5ab1a4d9ff4f distrib/utils/embedded/conf/armv7.conf
--- a/distrib/utils/embedded/conf/armv7.conf    Mon Jul 31 15:51:27 2017 +0000
+++ b/distrib/utils/embedded/conf/armv7.conf    Mon Jul 31 16:34:22 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: armv7.conf,v 1.15 2017/07/09 10:41:40 jmcneill Exp $
+# $NetBSD: armv7.conf,v 1.16 2017/07/31 16:34:22 jmcneill Exp $
 # ARMv7 customization script used by mkimage
 #
 board=armv7
@@ -65,6 +65,12 @@
 #fb=disable            # to disable fb completely
 EOF
 
+               cat > ${mnt}/boot/config.txt << EOF
+# UART settings, see https://www.raspberrypi.org/documentation/configuration/uart.md
+enable_uart=1            
+force_turbo=0
+EOF
+
                echo "${bar} installing firmware files ${bar}"
                (cd "${mnt}/boot" &&
                        for f in ${firmwarefiles}; do
diff -r 5f1ebc4b67d6 -r 5ab1a4d9ff4f distrib/utils/embedded/conf/rpi.conf
--- a/distrib/utils/embedded/conf/rpi.conf      Mon Jul 31 15:51:27 2017 +0000
+++ b/distrib/utils/embedded/conf/rpi.conf      Mon Jul 31 16:34:22 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: rpi.conf,v 1.29 2015/04/19 18:28:31 hubertf Exp $
+# $NetBSD: rpi.conf,v 1.30 2017/07/31 16:34:22 jmcneill Exp $
 # Raspberry Pi customization script used by mkimage
 #
 
@@ -52,6 +52,13 @@
 #fb=1280x1024          # to select a mode, otherwise try EDID 
 #fb=disable            # to disable fb completely
 EOF
+
+       cat > ${mnt}/boot/config.txt << EOF
+# UART settings, see https://www.raspberrypi.org/documentation/configuration/uart.md
+enable_uart=1
+force_turbo=0
+EOF
+
        if [ ! -f ${kernel} ]; then
                echo ${PROG}: Missing ${kernel} 1>&2
                exit 1
diff -r 5f1ebc4b67d6 -r 5ab1a4d9ff4f distrib/utils/embedded/conf/rpi_inst.conf
--- a/distrib/utils/embedded/conf/rpi_inst.conf Mon Jul 31 15:51:27 2017 +0000
+++ b/distrib/utils/embedded/conf/rpi_inst.conf Mon Jul 31 16:34:22 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: rpi_inst.conf,v 1.8 2015/04/19 18:53:33 hubertf Exp $
+# $NetBSD: rpi_inst.conf,v 1.9 2017/07/31 16:34:22 jmcneill Exp $
 # Raspberry Pi customization script used by mkimage
 #
 
@@ -82,6 +82,13 @@
 #fb=1280x1024          # to select a mode, otherwise try EDID 
 #fb=disable            # to disable fb completely
 EOF
+
+       cat > ${mnt}/boot/config.txt << EOF
+# UART settings, see https://www.raspberrypi.org/documentation/configuration/uart.md
+enable_uart=1            
+force_turbo=0
+EOF
+
        if [ ! -f ${kernel} ]; then
                echo ${PROG}: Missing ${kernel} 1>&2
                exit 1



Home | Main Index | Thread Index | Old Index