ramips: fix mac address of miwifi-mini
For the miwifi-mini, the offset of ethernet mac should be 0x28 which you can easyily dump from 'Factory' partition. Signed-off-by: BangLang Huang <banglang.huang@foxmail.com>
This commit is contained in:
		 BangLang Huang
					BangLang Huang
				
			
				
					committed by
					
						 Jo-Philipp Wich
						Jo-Philipp Wich
					
				
			
			
				
	
			
			
			 Jo-Philipp Wich
						Jo-Philipp Wich
					
				
			
						parent
						
							7ee09377e7
						
					
				
				
					commit
					846457fdbf
				
			| @@ -358,6 +358,10 @@ ramips_setup_macs() | |||||||
| 		lan_mac=$(mtd_get_mac_binary factory_info 13) | 		lan_mac=$(mtd_get_mac_binary factory_info 13) | ||||||
| 		wan_mac=$(macaddr_add "$lan_mac" 1) | 		wan_mac=$(macaddr_add "$lan_mac" 1) | ||||||
| 		;; | 		;; | ||||||
|  | 	miwifi-mini) | ||||||
|  | 		wan_mac=$(cat /sys/class/net/eth0/address) | ||||||
|  | 		lan_mac=$(macaddr_setbit_la "$wan_mac") | ||||||
|  | 		;; | ||||||
| 	m3|\ | 	m3|\ | ||||||
| 	m4|\ | 	m4|\ | ||||||
| 	x5|\ | 	x5|\ | ||||||
|   | |||||||
| @@ -119,7 +119,7 @@ | |||||||
| ðernet { | ðernet { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&ephy_pins>; | 	pinctrl-0 = <&ephy_pins>; | ||||||
| 	mtd-mac-address = <&factory 0x4>; | 	mtd-mac-address = <&factory 0x28>; | ||||||
| 	mediatek,portmap = "llllw"; | 	mediatek,portmap = "llllw"; | ||||||
| }; | }; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user