Duplicate MAC Addresses and Serial Numbers


Can you have a try with another MAC address? like “10:14:18:01:81:33”

Good luck!


i know, i have 10 working mac on another devices, not work on khadas, 98:84:96:26:86:A1


Hey, seems that found out a mistake you ran:

You forgot the ethaddr as below:


Good luck!


my bad, work! Thx for all.


That method works (I used USB-TTL for that) for Ethernet (wired cable). What about setting MAC addresses for Wifi and Bluetooth?

Hardcoding Bluetooth MAC address I assume is critically important because otherwise after every reboot need to pair devices once again… :frowning:


Using the bionic 4.9 images when i try to use

sudo fw_setenv ethaddr “00:00:00:00:01:01”

it sets the ethaddr variable, which i can check with fw_printenv. But it doesnt change the MAC address for the VIM even after reboot. The MAC appears to be set from the kernel command line, as can be seen from the dmseg output where it includes mac=98:aa:fc:60:45:94. This is the mac address that always appears from ifconfig. Any ideas?

Ive get everything else working to set the MAC based on CPU serial number so can get unique MAC addresses for all my VIMs on first boot - script is as follows in case anyone else wants it:


if [ ! -f $FLAG ]; then
#First boot so sort out MAC Address
echo “First boot, so fixing MAC Address”

cpuid=$(grep Serial /proc/cpuinfo | cut -d: -f2 | sed ‘s/^[ \t]//;s/[ \t]$//’)
macAdd=$(echo $cpuid | sed -e ‘s/(.)/\L\1/’ | sed 's/^(…)(…)(…)(…)(…).$/02:\1:\2:\3:\4:\5/’)
echo "Setting MAC to: " $macAdd
fw_setenv ethaddr $macAdd

#create flag file so it won’t run the next boot
touch $FLAG

exit 0