[LEDE-DEV] [PATCH 2/2] brcm2708: detect Raspberry Pi Zero W
Stijn Tintel
stijn at linux-ipv6.be
Sun Mar 5 12:16:07 PST 2017
Signed-off-by: Stijn Tintel <stijn at linux-ipv6.be>
---
target/linux/brcm2708/base-files/etc/board.d/02_network | 3 +++
target/linux/brcm2708/base-files/etc/diag.sh | 3 ++-
target/linux/brcm2708/base-files/lib/brcm2708.sh | 3 +++
3 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/target/linux/brcm2708/base-files/etc/board.d/02_network b/target/linux/brcm2708/base-files/etc/board.d/02_network
index e554b73..1093c9d 100755
--- a/target/linux/brcm2708/base-files/etc/board.d/02_network
+++ b/target/linux/brcm2708/base-files/etc/board.d/02_network
@@ -17,6 +17,9 @@ rpi-b |\
rpi-b-plus)
ucidef_set_interface_lan "eth0"
;;
+rpi-zero-w)
+ ucidef_set_interface_lan "wlan0"
+ ;;
esac
board_config_flush
diff --git a/target/linux/brcm2708/base-files/etc/diag.sh b/target/linux/brcm2708/base-files/etc/diag.sh
index 0f34a53..9ebdd16 100644
--- a/target/linux/brcm2708/base-files/etc/diag.sh
+++ b/target/linux/brcm2708/base-files/etc/diag.sh
@@ -12,7 +12,8 @@ set_state() {
;;
rpi-b |\
rpi-cm |\
- rpi-zero)
+ rpi-zero |\
+ rpi-zero-w)
status_led="led0"
;;
esac
diff --git a/target/linux/brcm2708/base-files/lib/brcm2708.sh b/target/linux/brcm2708/base-files/lib/brcm2708.sh
index 3e7c30f..54d30f8 100644
--- a/target/linux/brcm2708/base-files/lib/brcm2708.sh
+++ b/target/linux/brcm2708/base-files/lib/brcm2708.sh
@@ -27,6 +27,9 @@ brcm2708_detect() {
"Raspberry Pi Zero Rev"*)
board_name="rpi-zero"
;;
+ "Raspberry Pi Zero W Rev"*)
+ board_name="rpi-zero-w"
+ ;;
*)
board_name="unknown"
;;
--
2.10.2
More information about the Lede-dev
mailing list