Skip to content

Commit

Permalink
U-Boot v2024.10 correctly derives builtin Ethernet's MAC from rk3308 …
Browse files Browse the repository at this point in the history
…unique CPUid

So, disable the userspace derivation of MAC from the CPUid for end0 by default
  • Loading branch information
brentr committed Nov 25, 2024
1 parent e6ab9f0 commit 341b9d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
#All the two digit hex code prefixes passed to fixEtherAddr should be unique
#and chosen such that (n-2)%4 == 0

#Otherwise, the RockPI-S built-in ethernet MAC is derived from rootfs image
KERNEL=="end0", ACTION=="add" RUN+="fixEtherAddr %k 06"

#Otherwise, the RockPI-S wifi chip MACs will be different on each boot
KERNEL=="wlan0", ACTION=="add" RUN+="fixEtherAddr %k 0a"
KERNEL=="p2p0", ACTION=="add" RUN+="fixEtherAddr %k 0e"

#v2024.10 u-boot derives built-in ethernet MAC for RockPI-S from the CPUid
#so, the fix for interface end0 should no longer be needed
#KERNEL=="end0", ACTION=="add" RUN+="fixEtherAddr %k 06"
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
#All the two digit hex code prefixes passed to fixEtherAddr should be unique
#and chosen such that (n-2)%4 == 0

#Otherwise, the RockS0's built-in ethernet MAC is derived from rootfs image
KERNEL=="end0", ACTION=="add" RUN+="fixEtherAddr %k 06"
#In v2024.10 u-boot, RockS0's built-in ethernet MAC is derived from the CPUid
#so, the fix for interface end0 should no longer be needed
#KERNEL=="end0", ACTION=="add" RUN+="fixEtherAddr %k 06"

0 comments on commit 341b9d3

Please sign in to comment.