Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Mac Address Assignment on Orange Zero

Featured Replies

Hi

 

Wondering if anyone knew the algorithm that assigns mac addresses to orange zero.  Is it based on something static/cpu id /...?  or it is purely random.  

 

Will this mac change over time or after it is generated, it will stay the same?

 

I have one zero that mac is pretty static and another changed mac after I did a upgrade.

 

If I want better control of the mac address, what's the best way to make it static?

 

this is on the mainline

 

-jerry

Using latest nightly (5.27.170309) with 4.10.1 kernel on OPi PC. I'm trying to override the mac address since it changed after switching over from legacy kernel.

I followed martinayotte's post at https://forum.armbian.com/index.php?/topic/1738-opi-lite-mac-address/&do=findComment&comment=15574 and added a mac-address option to the corresponding device tree section. Unfortunately it doesn't have any effect and the value at /sys/firmware/devicetree/base/soc/ethernet@1c30000/mac-address does not seem to change.

Is this the expected behavior? If so, what would be the right way to do it?

Yes thanks, I had already noticed the local-mac-address option in the dts and tried both that one and mac-address. Neither is working for me though. Both always get overwritten at some point with 02814cea2d8d.

I've looked into driver/of/of_net.c, and all those 3 keywords are supported : address/mac-address/local-mac-address.

I've tried it myself, and effectively it doesn't work.

This means that some bug has been introduced in last few months.

I will have to dig further by adding traces into a custom kernel build.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.