projects
/
openwrt
/
staging
/
xback.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8c2a71
)
brcm2708: detect Raspberry Pi Zero W
author
Stijn Tintel
<
[email protected]
>
Sun, 5 Mar 2017 20:16:07 +0000
(21:16 +0100)
committer
Álvaro Fernández Rojas
<
[email protected]
>
Wed, 8 Mar 2017 08:03:39 +0000
(09:03 +0100)
Signed-off-by: Stijn Tintel <
[email protected]
>
target/linux/brcm2708/base-files/etc/board.d/02_network
patch
|
blob
|
history
target/linux/brcm2708/base-files/etc/diag.sh
patch
|
blob
|
history
target/linux/brcm2708/base-files/lib/brcm2708.sh
patch
|
blob
|
history
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 21e86f4db3697f6b33f41a47b5ea238d60f3e5aa..9486a6ae6844ac947880bd273b8c0ecaec6e4702 100755
(executable)
--- a/
target/linux/brcm2708/base-files/etc/board.d/02_network
+++ b/
target/linux/brcm2708/base-files/etc/board.d/02_network
@@
-18,6
+18,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 010a623d1e4f257d8c795b7569f5bae65f0e28d2..36c5cd71d0bb97c1e3a687a4c2a7175ebed60557 100644
(file)
--- a/
target/linux/brcm2708/base-files/etc/diag.sh
+++ b/
target/linux/brcm2708/base-files/etc/diag.sh
@@
-13,7
+13,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 cebec644c00f562d74bc9d02bf00028fd288a056..81f123f2042979ec1d2e40d2dbc4ae72b0d9e02b 100644
(file)
--- a/
target/linux/brcm2708/base-files/lib/brcm2708.sh
+++ b/
target/linux/brcm2708/base-files/lib/brcm2708.sh
@@
-28,6
+28,9
@@
brcm2708_detect() {
"Raspberry Pi Zero Rev"*)
board_name="rpi-zero"
;;
+ "Raspberry Pi Zero W Rev"*)
+ board_name="rpi-zero-w"
+ ;;
*)
board_name="unknown"
;;