Terry
August 11, 2017, 4:57pm
#26
The ethernet address is invalid.
You can try to use the mac '98:aa:fc:60:44:ca’
Thanks.
1 Like
Gytis
August 11, 2017, 5:44pm
#27
Yes, that worked!
How do you know when ethernet MAC address is valid?
Terry
August 14, 2017, 12:56pm
#28
The second bit must be even. You can try to set ethaddr following below list
98:EA:4F:10:DF:FD
96:EA:4F:10:DF:FD
94:EA:4F:10:DF:FD
92:EA:4F:10:DF:FD
90:EA:4F:10:DF:FD
1 Like
Gytis
July 23, 2018, 6:37pm
#29
Just confirming that this method works as expected on built Ubuntu image as well
Any idea how to burn WLAN and Bluetooth MACs?
Gytis
August 6, 2018, 12:32pm
#30
@Terry Any advice how to burn WLAN and Bluetooth MAC addresses?
Terry
August 6, 2018, 1:15pm
#31
You can refer to following post. But the mac wasn’t parsed and you need to add source code to support it on Wi-Fi module and Bluetooth library.
Hi @terry ,
I was looking into how to program MAC addresses and serial numbers so that they can survive complete firmware upgrades.
I’ve found this thread:
http://forum.khadas.com/t/duplicate-mac-addresses-and-serial-numbers
What was the rationale for this commit?
MAC addresses usually use 6 bytes, and UIDs 128 bits, so why did you change that to assign 12 bytes to all the keys?
Do you know why mac, mac_bt, mac_wifi, and usid are in both efuse and unifykey? In unifykey, they are in the n…
About Wi-Fi mac address , You can see following line.
#if WIRELESS_EXT < 19
net->get_wireless_stats = dhd_get_wireless_stats;
#endif /* WIRELESS_EXT < 19 */
#if WIRELESS_EXT > 12
net->wireless_handlers = (struct iw_handler_def *)&wl_iw_handler_def;
#endif /* WIRELESS_EXT > 12 */
#endif /* defined(WL_WIRELESS_EXT) */
dhd->pub.rxsz = DBUS_RX_BUFFER_SIZE_DHD(net);
memcpy(net->dev_addr, temp_addr, ETHER_ADDR_LEN);
if (ifidx == 0)
printf("%s\n", dhd_version);
#ifdef WL_EXT_IAPSTA
else if (!strncmp(net->name, "wl0.", strlen("wl0."))) {
wl_android_ext_attach_netdev(net, ifidx);
}
#endif
if (need_rtnl_lock)
Gytis
August 6, 2018, 1:36pm
#32
I’m not sure if I’ve understood… What about burning WiFi and Bluetooth MAC addresses on Ubuntu (not Android) - some sources needs to be added?
Terry
August 8, 2018, 1:57am
#33
If you only burn WIFI and Bluetooth MAC addresses with OTP or other, It’s invalid for now.
You need to modify source code to support it.
Thanks
birty
August 13, 2018, 5:19pm
#34
Is it possible to set the MAC address in the source code so that it is different for every board and doesnt have to be changed via the uboot serial console? i.e. change something in the u-boot or kernel source code to set it. This works but it a long and difficult job for me to get to the header to put the serial connections on. Doing it in /etc/network/interfaces/eth0 is also tricky as the dhcp server gets very confused with all the mac addresses and have to do one at a time and wait between time (i have a rubbish router!). Im using ubuntu,
Can it be set to something based off part of the CPU serial number for instance?
Really want it to just be a case of burning a new image to the board via usb-c cable and not needing to get into u-boot.
thank you!
Gouwa
August 14, 2018, 12:23am
#35
Hi Birty:
Another way is that the MCU on VIM2 support customizing serial number, you might intersting in:
The KBI is an abbreviation for Khadas Bootloader Instructions, which is developed based on the following purposes:
Manage the programable MCU
Do the low level hardware management
Let developers rock all the features of Khadas VIM2
The document describes how to setup, configure and use the KBI. As the KBI is one of the U-Boot commands, so to get start you have to setup the Serial Debugging Tool first.
To continue the reading, make sure you have boot into the U-Boot:
normal power off
boot wol…
Regarding the CPU serial number, @Terry will repsonse you.
Good day!
birty
August 14, 2018, 9:12am
#36
Thanks @Gouwa - that info will be useful as well! Need to get them all on a network without going board by board first ! Thanks
Gytis
August 17, 2018, 10:21am
#37
How exactly do I do that?
Emill
September 19, 2018, 8:50am
#39
setenv ethaddr “00:15:18:01:81:32”
comand setenv not found…
can you develop this idea how should I do it? because you have not described anything because the pussy has to edit something somewhere.
Gouwa
September 19, 2018, 11:19am
#41
Can you paste full printing log for us? Just worried you ran the command on Linux, it should be on U-Boot.
Have fun!
Emill
September 19, 2018, 12:01pm
#42
What ja u bot… i have a debian.
Gouwa
September 19, 2018, 12:42pm
#43
I meant U-Boot, the booloader of any Linux Distro(Ubuntu, Debain…)
So you ran the command on Linux, right? Should be on U-Boot
numbqq
September 19, 2018, 1:23pm
#44
Hello Emill,
What image you use? If you use linux image provided by us or Armbian by balbes150, you can try the following commad on linux command line:
$ sudo fw_setenv ethaddr “00:15:18:01:81:32”
Thanks.
Emill
September 19, 2018, 3:34pm
#45
VIM1_Ubuntu-xenial_Linux-3.14_mate_arm64_EMMC_2018-05-31.7z 2018-07-12 02:34 686M
i have fresh ubuntu, errors:
not working