Older U-Boots assign RockPI-S and RockS0 their Ethernet MAC based on disk image. #7517
+41
−15
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.
Uses the same mechanism we've been using to deal with the RockPI-S random WiFi MAC addresses to derive unique, fixed Ethernet MACs as well.
Description
Radxa appears to have omitted any hardware to store a unique MAC address on each of their RK3308 based devices. Users have trouble when putting two or more devices running copies of the same image on the same LAN. See:
(https://forum.armbian.com/topic/42663-how-to-change-ethernet-mac-address-on-image/)
@Kwiboo pointed out that U-Boot should handle this.
U-Boot v2024.10 added logic to correctly derive the Ethernet MAC from the SOC's unique CPUid, but older versions lacked this.
So, this PR was altered to disable the userspace fix to the end0 interface by default.
(https://armbian.atlassian.net/jira/software/c/projects/AR/issues/AR-2541
The end result is that this PR makes NO code changes. It merely reorganizes these udev scripts for fixing MAC addresses so they can be applied to all Radxa rk3308 based boards (RockS0 and RockPI-S)
How Has This Been Tested?
Checklist: