ramips: add initial support for SamKnows SK-WB8

Signed-off-by: Andrew Yong <me@ndoo.sg>
This commit is contained in:
Andrew Yong
2016-05-11 00:17:54 +08:00
committed by John Crispin
parent 9195d8da35
commit 374cae9e6f
10 changed files with 171 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ all0239-3g|\
hw550-3g|\
mofi3500-3gn|\
sap-g3200u3|\
sk-wb8|\
wf-2881)
set_usb_led "$board:green:usb"
;;

View File

@@ -79,6 +79,7 @@ ramips_setup_interfaces()
pbr-m1|\
psg1208|\
sap-g3200u3|\
sk-wb8|\
wf-2881|\
whr-300hp2|\
whr-600d|\
@@ -307,6 +308,9 @@ ramips_setup_macs()
lan_mac=$(macaddr_setbit_la "$lan_mac")
wan_mac=$(mtd_get_mac_binary factory 32772)
;;
sk-wb8)
wan_mac=$(mtd_get_mac_binary factory 57350)
;;
tew-691gr)
lan_mac=$(cat /sys/class/net/eth0/address)
wan_mac=$(macaddr_add "$lan_mac" 3)

View File

@@ -79,6 +79,7 @@ get_status_led() {
;;
awapn2403|\
dir-645|\
sk-wb8|\
wrh-300cr)
status_led="$board:green:wps"
;;

View File

@@ -0,0 +1,11 @@
#!/bin/sh /etc/rc.common
. /lib/ramips.sh
START=99
start() {
local board=$(ramips_board_name)
if [ $board = "sk-wb8" ]; then
fw_setenv bootcount 0
fi
}

View File

@@ -376,6 +376,9 @@ ramips_board_detect() {
*"RUT5XX")
name="rut5xx"
;;
*"SamKnows Whitebox 8")
name="sk-wb8"
;;
*"SAP-G3200U3")
name="sap-g3200u3"
;;

View File

@@ -112,6 +112,7 @@ platform_check_image() {
rt-n56u|\
rut5xx|\
sap-g3200u3|\
sk-wb8|\
sl-r7205|\
tew-691gr|\
tew-692gr|\