zeam-vm / nerves_system_zybo_z7_10

The base Nerves System configuration for the Zybo Z7-10.
Apache License 2.0
4 stars 1 forks source link

eth0 の MAC address が固定されない #1

Closed pojiro closed 7 months ago

pojiro commented 7 months ago

U-Boot の起動ログに、

U-Boot 2022.01 (Nov 28 2023 - 23:06:22 +0000)

CPU:   Zynq 7z010
Silicon: v3.1
Model: Zynq Zybo Z7 Development Board
DRAM:  ECC disabled 1 GiB
Flash: 0 Bytes
NAND:  0 MiB
MMC:   mmc@e0100000: 0
Loading Environment from FAT... *** Error - No Valid Environment Area found
*** Warning - bad env area, using default environment

In:    serial@e0001000
Out:   serial@e0001000
Err:   serial@e0001000
Net:   FEC: can't find phy-handle

ZYNQ GEM: e000b000, mdio bus e000b000, phyaddr 0, interface rgmii-id

Warning: ethernet@e000b000 (eth0) using random MAC address - ba:fa:e9:09:b3:c1
eth0: ethernet@e000b000
Warning: ethernet@e000b000 (eth0) using random MAC address - ba:fa:e9:09:b3:c1

が表示されている。

pojiro commented 7 months ago

以下の関数を動作させるように U-Boot のコンフィグを行う。

https://github.com/Digilent/u-boot-digilent/blob/8e8809e33a367a52e2e8463f49423acfc7580beb/board/xilinx/common/board.c#L57-L141

参考: https://qiita.com/ikwzm/items/1b79a528634fd2c09e1f