Repository navigation
boards/boardctl: Add BOARDCTL_MACADDR command - #18031
Merged
Merged
Conversation
13627105546
requested review from
gustavonihei,
jerpelea and
xiaoxiang781216
as code owners
January 20, 2026 08:14
jerpelea
previously approved these changes
Jan 20, 2026
13627105546
force-pushed
the
topic/netinit-wifimac
branch
from
January 20, 2026 09:07
e979139 to
e97eee7
Compare
jerpelea
previously approved these changes
Jan 20, 2026
13627105546
force-pushed
the
topic/netinit-wifimac
branch
from
January 20, 2026 10:08
e97eee7 to
2078d72
Compare
13627105546
force-pushed
the
topic/netinit-wifimac
branch
2 times, most recently
from
January 20, 2026 10:17
8d1a92a to
f4cfe96
Compare
xiaoxiang781216
previously approved these changes
Jan 20, 2026
13627105546
force-pushed
the
topic/netinit-wifimac
branch
from
January 21, 2026 02:13
f4cfe96 to
0cd5410
Compare
xiaoxiang781216
requested changes
Jan 21, 2026
13627105546
force-pushed
the
topic/netinit-wifimac
branch
2 times, most recently
from
January 21, 2026 03:00
46010d1 to
7bdef73
Compare
13627105546
force-pushed
the
topic/netinit-wifimac
branch
from
January 21, 2026 03:53
7bdef73 to
b140211
Compare
13627105546
force-pushed
the
topic/netinit-wifimac
branch
2 times, most recently
from
January 21, 2026 09:17
18e8e70 to
4b1f1fe
Compare
xiaoxiang781216
approved these changes
Jan 21, 2026
Add a new boardctl command BOARDIOC_MACADDR to retrieve the MAC address of the network interface. The board_macaddr function needs to be implemented by the board logic. Signed-off-by: daichuan <[email protected]>
13627105546
force-pushed
the
topic/netinit-wifimac
branch
from
January 21, 2026 12:38
4b1f1fe to
98062ea
Compare
GUIDINGLI
approved these changes
Jan 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit adds a new boardctl command BOARDCTL_MACADDR to retrieve the MAC address of the network interface. The board_macaddr function needs to be implemented by the board logic.
Note: Please adhere to Contributing Guidelines.
Summary
This PR introduces a new boardctl command BOARDCTL_MACADDR to allow applications (like netinit ) to retrieve the network interface MAC address from the board-specific logic.
Why In some embedded scenarios, the MAC address (especially for Wi-Fi) is stored in board-specific storage (e.g., OTP, NVM, or a config file) and needs to be retrieved by the network initialization logic at runtime. Currently, there is no standard boardctl command for this purpose.
Impact
Testing