Fedora 35 on rock64
#5
> ... If you have more than one SBC as I do, all of them will be with the same mac address.

I think there are two main points to this issue.

Item-1)  Can "u-boot" generate board-specific "Mac Addrss" ?
Item-2)  Can "u-boot" pass "Mac Addrss" to "Linux-kernel" ?

Unfortunately, both of the above do not seem to be well implemented in the image you presented.

As for Item-2.
It is relatively easy to deal with this problem by either changing the configuration parameters of "grub" or changing to a startup method other than "grub".

However, Item-1 requires rebuilding the "u-boot" correctly.
The "Image" you provided does not correctly read the value of "eFuse", which is the source of the board-specific "Mac Addrss" generation.


> ... the dtb of the Fedora's kernel has a mac address defined, ...
I have checked and the "dtb (rk3328-rock64.dtb)" in the image you provided does not have the properties, that you claim.


Code:
// at u-boot of your original image
your original image
=> printenv cpuid# serial# ethaddr eth1addr
cpuid#=f0fefcfe000000000000000000000000
serial#=5a04dec3dea047fc
ethaddr=36:a2:19:1e:57:36
## Error: "eth1addr" not defined

---

// your original image
# ip addr (on Fedora-Linux)
    ...
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
        link/ether 4a:61:29:f2:46:e2 brd ff:ff:ff:ff:ff:ff      // at "rock64_fc35_aarch64_ext4_20220130.img.xz"
        link/ether aa:99:b7:f3:fb:b4 brd ff:ff:ff:ff:ff:ff      // at "rock64_fc35_aarch64_f2fs_20220311.img.xz"

// "grub" configuration parameters changed
# ip addr (on Fedora-Linux)
    ...
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
        link/ether 36:a2:19:1e:57:36 brd ff:ff:ff:ff:ff:ff      // at both-images

The "Mac Address" generated by "u-boot" is correctly passed to "linux-Kernel".
* However, as mentioned earlier, the "Mac Address" generated by "u-boot" itself is incorrect.


My custom u-boot
Code:
// The correct "eFuse" value of my this board and the generated "Mac Address"
=> printenv cpuid# serial# ethaddr eth1addr
cpuid#=55524b503039303038000000000xxxx
serial#=20b06b8f26ddxxxx
ethaddr=1e:81:62:6b:xx:xx
eth1addr=1e:81:62:6b:xx:XX

---

# ip addr (on Fedora-Linux)
    ...
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
        link/ether 1e:81:62:6b:xx:xx brd ff:ff:ff:ff:ff:ff      // at both-images


I have several "Rock64-boads" (4 of them) and the "eFuse" values are all different.
I would like to clarify this fact here.
  Reply


Messages In This Thread
Fedora 35 on rock64 - by dafsjr - 01-30-2022, 10:33 AM
RE: Fedora 35 on rock64 - by Rocklobster - 01-31-2022, 08:38 PM
RE: Fedora 35 on rock64 - by dafsjr - 03-11-2022, 09:16 AM
RE: Fedora 35 on rock64 - by dafsjr - 03-16-2022, 05:42 PM
RE: Fedora 35 on rock64 - by t4_4t - 03-19-2022, 10:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  irradium (based on crux linux) Rock64 riscv64, aarch64 mara 7 1,009 11-19-2024, 02:54 PM
Last Post: mara
  Upgrading ancient Rock64 timxjr1300 0 59 11-15-2024, 09:50 AM
Last Post: timxjr1300
  arch rock64 does not boot nemnob 1 960 09-20-2024, 11:18 AM
Last Post: AwU2HBg
  DietPi OS for ROCK64 MichaIng 42 43,664 09-01-2024, 06:43 AM
Last Post: RaymondDay
Smile First Lakka image for Rock64! Luke 47 81,124 09-01-2024, 06:05 AM
Last Post: RaymondDay
  Rock64 v2 - did not work song / audio sqw200zu 2 1,864 03-14-2024, 03:09 AM
Last Post: dmitrymyadzelets
  Rock64 won't boot dstallmo 0 636 12-27-2023, 10:34 AM
Last Post: dstallmo
  HDMI doesn't work on rock64 Noung1991 1 1,078 11-21-2023, 08:33 AM
Last Post: as365n4
  Rock64 + Klipper + KlipperScreen Instructions godzilla62 0 1,083 10-22-2023, 01:52 AM
Last Post: godzilla62
  Rock64 Debian 11 (Bullseye) install problem jbize 15 11,241 10-12-2023, 05:14 PM
Last Post: tpaul

Forum Jump:


Users browsing this thread: 1 Guest(s)