ramips: add Poray M4 4M/8M support

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

SVN-Revision: 37637
This commit is contained in:
John Crispin
2013-08-01 14:30:58 +00:00
parent 23d3b705df
commit 0dc3b44b0d
9 changed files with 222 additions and 2 deletions

View File

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

View File

@@ -226,7 +226,8 @@ ramips_setup_macs()
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
m3)
m3 |\
m4)
lan_mac=$(mtd_get_mac_binary factory 4)
lan_mac=$(macaddr_add "$lan_mac" -1)
;;

View File

@@ -75,7 +75,8 @@ preinit_set_mac_address() {
mac=$(mtd_get_mac_binary factory 40)
ifconfig eth0 hw ether $mac 2>/dev/null
;;
m3)
m3 |\
m4)
mac=$(mtd_get_mac_binary factory 4)
mac=$(macaddr_add "$mac" -1)
ifconfig eth0 hw ether $mac 2>/dev/null

View File

@@ -151,6 +151,9 @@ ramips_board_detect() {
*"Poray M3")
name="m3"
;;
*"Poray M4")
name="m4"
;;
*"PWH2004")
name="pwh2004"
;;

View File

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