I have two Amlogic X96 (Tomatto ??) boxes with 2GB+16GB, purchased from different vendors. Both currently running LibreELEC (community) Version: 7.0.3.012d - (not sure how to check for any subtle hardware differences..?)
The first box works great no problems but the second one works but annoyingly keeps producing random wifi MAC address every power up or reboot, thus requiring re-entry of wlan PSK every time. I was wondering if there was any other udev parameters I could try to get a stable wlan0 MAC address...? There must be some special udev triggers to set a static wlan0 MAC address.
I see that others have had similar problems and I have tried the following possible remedies, but nothing seems to fix the random wlan0 MAC problem - anyone have similar similar problem or a better udev fix?...
- tried update to 7.0.3.012g - no change to the second box, still get random wlan0 MAC addrs.
- copied the BOOT partition from the first working box to the second box, but still keep getting random wlan0 MAC address
- made up the udev rules, but only the eth0 seemed to get the assigned MAC but the wlan0 does not, keeps getting random MAC addr
- I can see that dmesg shows invalid MAC address error, and assigns random MAC
- tried using an autostart.sh file from here: thread-2139.html but wifi networking seemed to throw errors and will not connect every time I tried to enter wifi PSK credentials, so I removed the autostart.sh
-
Code
Display Morecat .config/udev.rules.d/99-zmac-address.rules SUBSYSTEM=="net", KERNEL=="wlan0", RUN+="/sbin/ip link set dev %k address D8:FC:93:6F:19:01" SUBSYSTEM=="net", KERNEL=="eth0", RUN+="/sbin/ip link set dev %k address D8:FC:93:6F:19:02" # dmesg | grep RTL871 [ 14.172582@3] RTL871X: module init start [ 14.172599@3] RTL871X: rtl8189es v4.3.18.2_17395.20160422 [ 15.243338@3] RTL871X: ERROR invalid mac addr:00:00:00:00:00:00, assign random MAC # dmesg | grep wlan [ 15.244539@3] RTL871X: rtw_ndev_init(wlan0) if1 mac_addr=00:e0:4c:4a:5a:1f [ 15.784539@3] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 44.936504@1] RTL871X: rtw_set_802_11_connect(wlan0) fw_state=0x00000008 [ 45.371805@2] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready # ip link show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 4096 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP8000> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether d8:fc:93:6f:19:02 brd ff:ff:ff:ff:ff:ff 3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP8000> mtu 1500 qdisc mq qlen 1000 link/ether 00:e0:4c:4a:5a:1f brd ff:ff:ff:ff:ff:ff