ramips: add Poray M3 support

Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>

SVN-Revision: 37636
This commit is contained in:
John Crispin
2013-08-01 14:30:53 +00:00
parent aaedf6c8c6
commit 23d3b705df
8 changed files with 136 additions and 0 deletions

View File

@@ -52,6 +52,9 @@ get_status_led() {
hw550-3g)
status_led="hw550-3g:green:status"
;;
m3)
status_led="m3:blue:status"
;;
mofi3500-3gn)
status_led="mofi3500-3gn:green:status"
;;

View File

@@ -226,6 +226,11 @@ ramips_setup_macs()
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
m3)
lan_mac=$(mtd_get_mac_binary factory 4)
lan_mac=$(macaddr_add "$lan_mac" -1)
;;
nbg-419n | \
wcr-150gn)
lan_mac=$(mtd_get_mac_binary factory 4)

View File

@@ -75,6 +75,11 @@ preinit_set_mac_address() {
mac=$(mtd_get_mac_binary factory 40)
ifconfig eth0 hw ether $mac 2>/dev/null
;;
m3)
mac=$(mtd_get_mac_binary factory 4)
mac=$(macaddr_add "$mac" -1)
ifconfig eth0 hw ether $mac 2>/dev/null
;;
wl341v3)
mac=$(mtd_get_mac_binary board-nvram 65440)
ifconfig eth0 hw ether $mac 2>/dev/null

View File

@@ -148,6 +148,9 @@ ramips_board_detect() {
*"Planex MZK-W300NH2"*)
name="mzk-w300nh2"
;;
*"Poray M3")
name="m3"
;;
*"PWH2004")
name="pwh2004"
;;

View File

@@ -44,6 +44,7 @@ platform_check_image() {
freestation5 | \
hw550-3g | \
hg255d | \
m3 | \
mofi3500-3gn | \
mpr-a1 | \
mpr-a2 | \