Hello @birty
You don’t need to generate the MAC address.
For VIM2, the MAC address is exist in OPT, and it’s unique.
For VIM1, there is no default MAC address.But when bootup the u-boot will generate a random MAC address, so we can use it, we can pass it to kernel and save it to a file /boot/env.txt
. You can also edit the file to change the MAC address. The /boot/env.txt
is like this:
khadas@Khadas:~$ cat /boot/env.txt
fan_mode=auto
rootdev=UUID=a6e4a7fd-7ccb-42f8-96dd-2aa82556df44
custom_ethmac=e2:8c:04:98:e8:f9
You can modify custom_ethmac
to change the MAC address.
Please refer to Fenix for details.
Thanks.