MAC Address on C1

Post Reply
Sebas_Ledesma
Posts: 85
Joined: Thu Jun 08, 2017 2:49 am
languages_spoken: english
ODROIDs: c2
Has thanked: 4 times
Been thanked: 2 times
Contact:

MAC Address on C1

Unread post by Sebas_Ledesma » Wed Aug 28, 2019 4:47 am

Hi:

While testing differences betweenn the oficial Odroid 3.10 distro and Armbian 5.x distro I've noticed that the MAC address changes in the same device when changing the SD card.
So, to confirm this:
- It's the MAC address of the Ethernet stored in the SD?
- How can I change the MAC address, so I can duplicate my SD card and assign a different address to each device?

Thanks in advance.

Sebas

User avatar
igorpec
Posts: 390
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 7 times
Been thanked: 26 times
Contact:

Re: MAC Address on C1

Unread post by igorpec » Wed Aug 28, 2019 4:57 am

Many of those boards don't know how to handle MAC. Sometimes its set in u-boot, sometimes is not set all ...

Override is fixing it at first boot. Check this for details:
https://forum.armbian.com/search/?q=cha ... &fromCSE=1
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

User avatar
tobetter
Posts: 3901
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 152 times
Contact:

Re: MAC Address on C1

Unread post by tobetter » Wed Aug 28, 2019 12:29 pm

MAC address of C1 is stored in eFuse and every single board has different MAC address.
Aren't you able to see MAC address is same on the same board with HK official Ubuntu image, while different MAC address between different boards with the same uSD?
These users thanked the author tobetter for the post:
Sebas_Ledesma (Wed Aug 28, 2019 10:41 pm)

Sebas_Ledesma
Posts: 85
Joined: Thu Jun 08, 2017 2:49 am
languages_spoken: english
ODROIDs: c2
Has thanked: 4 times
Been thanked: 2 times
Contact:

Re: MAC Address on C1

Unread post by Sebas_Ledesma » Wed Aug 28, 2019 10:28 pm

tobetter wrote:
Wed Aug 28, 2019 12:29 pm
MAC address of C1 is stored in eFuse and every single board has different MAC address.
Aren't you able to see MAC address is same on the same board with HK official Ubuntu image, while different MAC address between different boards with the same uSD?
Thanks for your reply.
I'm using the same SBC to do the test.
When I place the microSD with Ubuntu minimal I get one MAC, when I switch to the Armbian microSD I get another MAC address.
Thats both in my discovery app and also in the router (a TPLINK TR-ER5120).

Sebas

User avatar
tobetter
Posts: 3901
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 152 times
Contact:

Re: MAC Address on C1

Unread post by tobetter » Wed Aug 28, 2019 10:37 pm

Sebas_Ledesma wrote:
Wed Aug 28, 2019 10:28 pm
tobetter wrote:
Wed Aug 28, 2019 12:29 pm
MAC address of C1 is stored in eFuse and every single board has different MAC address.
Aren't you able to see MAC address is same on the same board with HK official Ubuntu image, while different MAC address between different boards with the same uSD?
Thanks for your reply.
I'm using the same SBC to do the test.
When I place the microSD with Ubuntu minimal I get one MAC, when I switch to the Armbian microSD I get another MAC address.
Thats both in my discovery app and also in the router (a TPLINK TR-ER5120).

Sebas
I am not sure about Armbian, I have not tried on ODROID-C1 yet.
Can you do run this command on Ubuntu and Armbian to see if it's same as the MAC address?

Code: Select all

$ cat /sys/class/efuse/mac

Sebas_Ledesma
Posts: 85
Joined: Thu Jun 08, 2017 2:49 am
languages_spoken: english
ODROIDs: c2
Has thanked: 4 times
Been thanked: 2 times
Contact:

Re: MAC Address on C1

Unread post by Sebas_Ledesma » Wed Aug 28, 2019 11:39 pm

Code: Select all

sebas@my2200:~$ uname -a
Linux my2200 3.10.107-13 #2 SMP PREEMPT Wed Jun 19 02:31:43 -03 2019 armv7l armv7l armv7l GNU/Linux

sebas@my2200:~$ cat /sys/class/efuse/mac
00:1e:06:10:9d:76

Code: Select all

sebas@arm2200:~$ uname -a
Linux arm2200 5.2.1-odroidc1 #5.91 SMP Tue Jul 16 12:11:40 CEST 2019 armv7l GNU/Linux

sebas@arm2200:~$ cat /sys/class/efuse/mac
cat: /sys/class/efuse/mac: No such file or directory
So that explains why the MAC address it's invented in Armbian.


Sebas

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 0 guests