From a4267604e366fab829a1a105cb2068bacbb6ec3b Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Tue, 25 Jul 2023 23:41:30 +0800
Subject: [PATCH] Update images build.sh for config.txt
---
images/build.sh | 1 +
images/files/config-lcd.txt | 30 ++++++++++++++++++++++++++++++
images/files/config-nolcd.txt | 29 +++++++++++++++++++++++++++++
3 files changed, 60 insertions(+), 0 deletions(-)
diff --git a/images/build.sh b/images/build.sh
index 54d8173..7f8cbd6 100755
--- a/images/build.sh
+++ b/images/build.sh
@@ -189,6 +189,7 @@
cp -rf $KERNEL_BINPATH/zImage ${MNT_POINT}/
cp -rf $KERNEL_BINPATH/${BOARD}.dtb ${MNT_POINT}/
cp -rf $KERNEL_BINPATH/overlays/ ${MNT_POINT}/
+ cp -rf files/config*.txt ${MNT_POINT}/
sync && umount ${MNT_POINT}
pr_info "update drivers in root filesystem"
diff --git a/images/files/config-lcd.txt b/images/files/config-lcd.txt
new file mode 100644
index 0000000..2237484
--- /dev/null
+++ b/images/files/config-lcd.txt
@@ -0,0 +1,30 @@
+# Enable LCD overlay
+dtoverlay_lcd=yes
+
+# Enable Camera overlay
+dtoverlay_cam=yes
+
+# Eanble 1-Wire overlay
+#dtoverlay_w1=yes
+
+# Enable ADC overlay
+#dtoverlay_adc=yes
+
+# Enable I2C overlay
+dtoverlay_i2c=1
+
+# Enable SPI overlay, SPI1 conflict with UART8(NB-IoT/4G module)
+dtoverlay_spi=1
+
+# Enable UART overlays
+dtoverlay_uart=2 3 4 7
+
+# Enable CAN overlays
+dtoverlay_can=1 2
+
+# Enable PWM overlays, PWM8 conflict with UART8(NB-IoT/4G module)
+dtoverlay_pwm=7
+
+# Enable extra overlays
+#dtoverlay_extra=nbiot-4g
+
diff --git a/images/files/config-nolcd.txt b/images/files/config-nolcd.txt
new file mode 100644
index 0000000..a17de28
--- /dev/null
+++ b/images/files/config-nolcd.txt
@@ -0,0 +1,29 @@
+# Enable LCD overlay
+#dtoverlay_lcd=no
+
+# Enable Camera overlay
+#dtoverlay_cam=no
+
+# Eanble 1-Wire overlay
+#dtoverlay_w1=yes
+
+# Enable ADC overlay
+#dtoverlay_adc=yes
+
+# Enable I2C overlay
+dtoverlay_i2c=1
+
+# Enable SPI overlay, SPI1 conflict with UART8(NB-IoT/4G module)
+dtoverlay_spi=1
+
+# Enable UART overlays
+dtoverlay_uart=2 3 4 7
+
+# Enable CAN overlays
+dtoverlay_can=1 2
+
+# Enable PWM overlays, PWM8 conflict with UART8(NB-IoT/4G module)
+dtoverlay_pwm=7
+
+# Enable extra overlays
+#dtoverlay_extra=nbiot-4g
--
Gitblit v1.9.1