Skip to content
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

All A64 boards have the same MAC address #3

Open
jech opened this issue May 29, 2021 · 4 comments
Open

All A64 boards have the same MAC address #3

jech opened this issue May 29, 2021 · 4 comments

Comments

@jech
Copy link

jech commented May 29, 2021

All A64 boards have the same Ethernet address (02:ba:7b:d5:c6:6f), which prevents them from being connected to a single switch. What's more, uBoot is configured so that the ethaddr variable cannot be overridden. A workaround is to override the MAC address in /etc/network/interfaces.

While this is obviously a hardware bug, it would be neat if it could be fixed in software. That requires modifying the uBoot configuration so the ethaddr can be changed, and doing some magic to use a distinct yet stable MAC address per board. (If the address is not stable, environments in which reboots are common will exhaust DHCP ranges pretty fast).

@stefansaraev
Copy link
Collaborator

thanks for reporting this @jech, we will update u-boot config to allow changing ethaddr in env.

@stefansaraev
Copy link
Collaborator

done. package is already in repo, please do

apt-get update && apt-get dist-upgrade
u-boot-install

@jech
Copy link
Author

jech commented May 30, 2021

I couldn't get it to work from uBoot:

=> saveenv                                                                      
Saving Environment to EXT4... MMC: no card present                              
Failed (1)

On the other hand, editing /boot/uEnv.txt from Linux did the right thing.

@stefansaraev
Copy link
Collaborator

yeah, there are some hacks on where env is stored. I think it may not be easy to fix. need to look at this later :(

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