MAC Address for BPI-M5

How is the MAC address determined? I am using the official debian image 2021-06-21-debian-10-buster-bpi-m5-m2pro-aarch64-sd-emmc.img.zip, and the MAC address on mine seems locally generated with the U/L bit set:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.2.24  netmask 255.255.255.0  broadcast 192.168.2.255
        ether 02:00:00:1c:0d:01  txqueuelen 1000  (Ethernet)
        RX packets 789  bytes 128666 (125.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 72  bytes 12225 (11.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 21

When I tried to override it in boot.ini like:

setenv bootargs "root=${rootfsdev} rootwait ro fastboot noswap ${condev} ${splash} ${amlogic} no_console_suspend fsck.mode=force fsck.repair=yes board=${board} mac=**22:33:44:55:66:77** serial=${serial} net.ifnames=0 elevator=noop hdmimode=${hdmimode} cvbsmode=576cvbs max_freq_a55=${max_freq_a55} maxcpus=${maxcpus} voutmode=${voutmode} ${cmode} disablehpd=${disablehpd} cvbscable=${cvbscable} overscan=${overscan} ${hid_quirks} monitor_onoff=${monitor_onoff} logo=osd0,loaded ${cec_enable} sdrmode=${sdrmode}"

The MAC address is unchanged and still 02:00:00:1c:0d:01.

What is the proper way to set MAC address?

Thank you!

1 Like