ath79: add u-boot env config for some boards

Signed-off-by: Jianhui Zhao <jianhui.zhao@gl-inet.com>
This commit is contained in:
Jianhui Zhao 2023-06-05 18:25:05 +08:00
parent 19db3461c6
commit f4de921188
4 changed files with 67 additions and 12 deletions

View File

@ -1,4 +1,4 @@
From d3fd1b434fb89403801c2d201d08cef082962658 Mon Sep 17 00:00:00 2001
From 14635d1e30e6c5d5b65fb41df10168c4a5f438dd Mon Sep 17 00:00:00 2001
From: niyin <yin.ni@gl-inet.com>
Date: Sat, 28 Jan 2023 00:26:02 -0800
Subject: [PATCH] x300b: support x300b target
@ -7,17 +7,31 @@ Add x300b support files
Signed-off-by: Yin Ni <yin.ni@gl-inet.com>
---
package/boot/uboot-envtools/files/ath79 | 2 +
.../dts/qca9531_glinet_gl-x300b-nor-nand.dts | 25 +++
.../ath79/dts/qca9531_glinet_gl-x300b-nor.dts | 18 ++
.../ath79/dts/qca9531_glinet_gl-x300b.dts | 152 -------------
.../ath79/dts/qca9531_glinet_gl-x300b.dtsi | 206 ++++++++++++++++++
.../etc/uci-defaults/04_led_migration | 2 +-
5 files changed, 250 insertions(+), 153 deletions(-)
6 files changed, 252 insertions(+), 153 deletions(-)
create mode 100644 target/linux/ath79/dts/qca9531_glinet_gl-x300b-nor-nand.dts
create mode 100644 target/linux/ath79/dts/qca9531_glinet_gl-x300b-nor.dts
delete mode 100644 target/linux/ath79/dts/qca9531_glinet_gl-x300b.dts
create mode 100644 target/linux/ath79/dts/qca9531_glinet_gl-x300b.dtsi
diff --git a/package/boot/uboot-envtools/files/ath79 b/package/boot/uboot-envtools/files/ath79
index 8aa82ee66f..ce87f7e086 100644
--- a/package/boot/uboot-envtools/files/ath79
+++ b/package/boot/uboot-envtools/files/ath79
@@ -40,6 +40,8 @@ engenius,enstationac-v1|\
etactica,eg200|\
glinet,gl-ar750s-nor|\
glinet,gl-ar750s-nor-nand|\
+glinet,gl-x300b-nor|\
+glinet,gl-x300b-nor-nand|\
librerouter,librerouter-v1|\
netgear,ex6400|\
netgear,ex7300|\
diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-x300b-nor-nand.dts b/target/linux/ath79/dts/qca9531_glinet_gl-x300b-nor-nand.dts
new file mode 100644
index 0000000000..b50ed14f26
@ -457,5 +471,5 @@ index 281d6ac0bc..0d20953919 100644
migrations_apply system
--
2.25.1
2.34.1

View File

@ -1,13 +1,28 @@
From a9e608d23ddc98113ddeaf9f69d903e78f1b455d Mon Sep 17 00:00:00 2001
From 84f4c823a2bac37618797407b96120fe28281836 Mon Sep 17 00:00:00 2001
From: niyin <yin.ni@gl-inet.com>
Date: Sat, 28 Jan 2023 20:00:40 -0800
Subject: [PATCH] support xe300 target
---
package/boot/uboot-envtools/files/ath79 | 3 +-
.../dts/qca9531_glinet_gl-xe300-nor-nand.dts | 193 ++++++++++++++++++
1 file changed, 193 insertions(+)
2 files changed, 195 insertions(+), 1 deletion(-)
create mode 100644 target/linux/ath79/dts/qca9531_glinet_gl-xe300-nor-nand.dts
diff --git a/package/boot/uboot-envtools/files/ath79 b/package/boot/uboot-envtools/files/ath79
index ce87f7e086..f1e0aeb5e4 100644
--- a/package/boot/uboot-envtools/files/ath79
+++ b/package/boot/uboot-envtools/files/ath79
@@ -94,7 +94,8 @@ dongwon,dw02-412h-128m|\
glinet,gl-ar300m-lite|\
glinet,gl-ar300m-nand|\
glinet,gl-ar300m-nor|\
-glinet,gl-ar300m16)
+glinet,gl-ar300m16|\
+glinet,gl-xe300-nor-nand)
idx="$(find_mtd_index u-boot-env)"
[ -n "$idx" ] && \
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-xe300-nor-nand.dts b/target/linux/ath79/dts/qca9531_glinet_gl-xe300-nor-nand.dts
new file mode 100644
index 0000000000..7c703c7c81
@ -208,5 +223,5 @@ index 0000000000..7c703c7c81
+ };
+};
--
2.25.1
2.34.1

View File

@ -1,13 +1,26 @@
From 01ff4f79b4109678264d8a0328f3956b4857ef0b Mon Sep 17 00:00:00 2001
From b39039df9d8565892dd3010a9d99dee2e60e5895 Mon Sep 17 00:00:00 2001
From: niyin <yin.ni@gl-inet.com>
Date: Sat, 28 Jan 2023 22:09:24 -0800
Subject: [PATCH] support x750 target
---
package/boot/uboot-envtools/files/ath79 | 1 +
.../ath79/dts/qca9531_glinet_gl-x750-nor.dts | 182 ++++++++++++++++++
1 file changed, 182 insertions(+)
2 files changed, 183 insertions(+)
create mode 100644 target/linux/ath79/dts/qca9531_glinet_gl-x750-nor.dts
diff --git a/package/boot/uboot-envtools/files/ath79 b/package/boot/uboot-envtools/files/ath79
index 8e2e968bb3..fde99f8b28 100644
--- a/package/boot/uboot-envtools/files/ath79
+++ b/package/boot/uboot-envtools/files/ath79
@@ -42,6 +42,7 @@ glinet,gl-ar750s-nor|\
glinet,gl-ar750s-nor-nand|\
glinet,gl-x300b-nor|\
glinet,gl-x300b-nor-nand|\
+glinet,gl-x750-nor|\
librerouter,librerouter-v1|\
netgear,ex6400|\
netgear,ex7300|\
diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-x750-nor.dts b/target/linux/ath79/dts/qca9531_glinet_gl-x750-nor.dts
new file mode 100644
index 0000000000..2bb4547c5c
@ -197,5 +210,5 @@ index 0000000000..2bb4547c5c
+ };
+};
--
2.25.1
2.34.1

View File

@ -1,13 +1,26 @@
From fe8082c097f9b2a707b5eb332779f2ab942b5718 Mon Sep 17 00:00:00 2001
From 7f46d3684d29aaa9bb475d767b400d8254b64838 Mon Sep 17 00:00:00 2001
From: Yin Ni <yin.ni@gl-inet.com>
Date: Wed, 15 Mar 2023 07:55:22 -0700
Subject: [PATCH] e750: support E750 target
Signed-off-by: Yin Ni <yin.ni@gl-inet.com>
---
package/boot/uboot-envtools/files/ath79 | 1 +
.../ath79/dts/qca9531_glinet_gl-e750.dts | 53 ++++++++++++++++++-
1 file changed, 51 insertions(+), 2 deletions(-)
2 files changed, 52 insertions(+), 2 deletions(-)
diff --git a/package/boot/uboot-envtools/files/ath79 b/package/boot/uboot-envtools/files/ath79
index fde99f8b28..c147c6cbee 100644
--- a/package/boot/uboot-envtools/files/ath79
+++ b/package/boot/uboot-envtools/files/ath79
@@ -96,6 +96,7 @@ glinet,gl-ar300m-lite|\
glinet,gl-ar300m-nand|\
glinet,gl-ar300m-nor|\
glinet,gl-ar300m16|\
+glinet,gl-e750|\
glinet,gl-xe300-nor-nand)
idx="$(find_mtd_index u-boot-env)"
[ -n "$idx" ] && \
diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-e750.dts b/target/linux/ath79/dts/qca9531_glinet_gl-e750.dts
index ca0784e6bf..ff42797843 100644
--- a/target/linux/ath79/dts/qca9531_glinet_gl-e750.dts
@ -94,5 +107,5 @@ index ca0784e6bf..ff42797843 100644
};
};
--
2.17.1
2.34.1