Skip to content

How to obtain Ethernet MAC address? #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
swarren opened this issue Jun 17, 2012 · 4 comments
Closed

How to obtain Ethernet MAC address? #46

swarren opened this issue Jun 17, 2012 · 4 comments

Comments

@swarren
Copy link

swarren commented Jun 17, 2012

If you are the kernel, then retrieving the Ethernet MAC address is pretty easy; the binary bootloader passes it to the kernel via ATAGS or command-line (I forget which of those two) or device-tree.

However, if you are U-Boot, then you don't typically receive any of those information sources (well, they're there, but since U-Boot is typically the first code to run on a CPU, or perhaps after just the boot ROM, it would be unprecedented for U-Boot to parse such information). So, if U-Boot wants to use the USB Ethernet controller, how does it determine the MAC address?

I'd rather U-Boot could pull this out of the HW directly, rather than relying on the binary bootloader to pass the information to U-Boot (which in turn would probably depend on the user not breaking config.txt, or even actively configuring it to enable some as-yet-unwritten feature). I assume the MAC must be stored in fuses or similar somewhere, since there doesn't appear to be any non-volatile memory on the RPi board. Either way, can the HW that stores this information please be at least minimally documented? I would hesitate to reverse engineer the binary bootloader; that doesn't seem productive and I'm sure there are all kinds of other issues with that approach.

@popcornmix
Copy link
Contributor

Can you check #47

@popcornmix
Copy link
Contributor

This should be implemented now in property channel descibed in #47. Please test.

@swarren
Copy link
Author

swarren commented Jul 10, 2012

Sounds great. I'm away on vacation right now, but will try to check soon after I get back.

@swarren
Copy link
Author

swarren commented Jul 24, 2012

I checked the firmware from #47 and it works great for get MAC. Thanks.

@swarren swarren closed this as completed Jul 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants