ramips: Add userspace support for the Edimax BR-6475nD
The rt2x00 wifi driver may still need updating to function with this device. Signed-off-by: Christopher Lais <chris+openwrt@zenthought.org> SVN-Revision: 39298
This commit is contained in:
		@@ -21,7 +21,7 @@ get_status_led() {
 | 
				
			|||||||
	br6524n)
 | 
						br6524n)
 | 
				
			||||||
		status_led="edimax:blue:power"
 | 
							status_led="edimax:blue:power"
 | 
				
			||||||
		;;
 | 
							;;
 | 
				
			||||||
	br6425)
 | 
						br6425 | br-6475nd)
 | 
				
			||||||
		status_led="edimax:green:power"
 | 
							status_led="edimax:green:power"
 | 
				
			||||||
		;;
 | 
							;;
 | 
				
			||||||
	d105)
 | 
						d105)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -66,6 +66,7 @@ case "$FIRMWARE" in
 | 
				
			|||||||
	awm002-evb | \
 | 
						awm002-evb | \
 | 
				
			||||||
	bc2 | \
 | 
						bc2 | \
 | 
				
			||||||
	br6425 | \
 | 
						br6425 | \
 | 
				
			||||||
 | 
						br-6475nd | \
 | 
				
			||||||
	broadway | \
 | 
						broadway | \
 | 
				
			||||||
	br6524n | \
 | 
						br6524n | \
 | 
				
			||||||
	carambola | \
 | 
						carambola | \
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -47,6 +47,9 @@ case $board in
 | 
				
			|||||||
	br6425)
 | 
						br6425)
 | 
				
			||||||
		set_wifi_led "edimax:orange:wlan"
 | 
							set_wifi_led "edimax:orange:wlan"
 | 
				
			||||||
		;;
 | 
							;;
 | 
				
			||||||
 | 
						br-6475nd)
 | 
				
			||||||
 | 
							set_wifi_led "edimax:amber:wlan"
 | 
				
			||||||
 | 
							;;
 | 
				
			||||||
	broadway)
 | 
						broadway)
 | 
				
			||||||
		set_usb_led "red:diskmounted"
 | 
							set_usb_led "red:diskmounted"
 | 
				
			||||||
		set_wifi_led "red:wps_active"
 | 
							set_wifi_led "red:wps_active"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -65,6 +65,13 @@ ramips_setup_interfaces()
 | 
				
			|||||||
		ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
 | 
							ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
 | 
				
			||||||
		;;
 | 
							;;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						br-6475nd)
 | 
				
			||||||
 | 
							ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
 | 
				
			||||||
 | 
							ucidef_add_switch "switch0" "1" "1"
 | 
				
			||||||
 | 
							ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 9t"
 | 
				
			||||||
 | 
							ucidef_add_switch_vlan "switch0" "2" "0 9t"
 | 
				
			||||||
 | 
							;;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	asl26555)
 | 
						asl26555)
 | 
				
			||||||
		ucidef_set_interface_lan "eth0.1"
 | 
							ucidef_set_interface_lan "eth0.1"
 | 
				
			||||||
		ucidef_add_switch "switch0" "1" "1"
 | 
							ucidef_add_switch "switch0" "1" "1"
 | 
				
			||||||
@@ -166,6 +173,11 @@ ramips_setup_macs()
 | 
				
			|||||||
		wan_mac=$(macaddr_add "$lan_mac" 1)
 | 
							wan_mac=$(macaddr_add "$lan_mac" 1)
 | 
				
			||||||
		;;
 | 
							;;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						br-6475nd)
 | 
				
			||||||
 | 
							lan_mac=$(mtd_get_mac_binary devdata 13)
 | 
				
			||||||
 | 
							wan_mac=$(mtd_get_mac_binary devdata 7)
 | 
				
			||||||
 | 
							;;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	w306r-v20)
 | 
						w306r-v20)
 | 
				
			||||||
		wan_mac=$(macaddr_add "$lan_mac" 5)
 | 
							wan_mac=$(macaddr_add "$lan_mac" 5)
 | 
				
			||||||
		;;
 | 
							;;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -39,6 +39,10 @@ preinit_set_mac_address() {
 | 
				
			|||||||
		mac=$(macaddr_setbit_la "$mac")
 | 
							mac=$(macaddr_setbit_la "$mac")
 | 
				
			||||||
		ifconfig eth0 hw ether $mac 2>/dev/null
 | 
							ifconfig eth0 hw ether $mac 2>/dev/null
 | 
				
			||||||
		;;
 | 
							;;
 | 
				
			||||||
 | 
						br-6475nd)
 | 
				
			||||||
 | 
							mac=$(mtd_get_mac_binary devdata 13)
 | 
				
			||||||
 | 
							ifconfig eth0 hw ether $mac 2>/dev/null
 | 
				
			||||||
 | 
							;;
 | 
				
			||||||
	asl26555 |\
 | 
						asl26555 |\
 | 
				
			||||||
	dir-300-b1 |\
 | 
						dir-300-b1 |\
 | 
				
			||||||
	dir-300-b2 |\
 | 
						dir-300-b2 |\
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -109,6 +109,9 @@ ramips_board_detect() {
 | 
				
			|||||||
	*"ESR-9753")
 | 
						*"ESR-9753")
 | 
				
			||||||
		name="esr-9753"
 | 
							name="esr-9753"
 | 
				
			||||||
		;;
 | 
							;;
 | 
				
			||||||
 | 
						*"Edimax BR-6475nD")
 | 
				
			||||||
 | 
							name="br-6475nd"
 | 
				
			||||||
 | 
							;;
 | 
				
			||||||
	*"F7C027")
 | 
						*"F7C027")
 | 
				
			||||||
		name="f7c027"
 | 
							name="f7c027"
 | 
				
			||||||
		;;
 | 
							;;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -100,6 +100,13 @@ platform_check_image() {
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
		return 0
 | 
							return 0
 | 
				
			||||||
		;;
 | 
							;;
 | 
				
			||||||
 | 
						br-6475nd)
 | 
				
			||||||
 | 
							[ "$magic" != "43535953" ] && {
 | 
				
			||||||
 | 
								echo "Invalid image type."
 | 
				
			||||||
 | 
								return 1
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							return 0
 | 
				
			||||||
 | 
							;;
 | 
				
			||||||
	esac
 | 
						esac
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	echo "Sysupgrade is not yet supported on $board."
 | 
						echo "Sysupgrade is not yet supported on $board."
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user