This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] PROCESSOR-SDK-AM69A:如何读取和写入 MAC 值?

Guru**** 2576195 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1571803/processor-sdk-am69a-how-to-read-and-write-mac-values

器件型号:PROCESSOR-SDK-AM69A


工具/软件:

我想写入 MAC 值、并能够在上电后读取它。 
在 u-boot 阶段、我执行了以下指令:

i2c mw 0x51 0 0xab 1 i2c mw 0x51
1 0x55 1
i2c mw 0x51 2 0x33 1
i2c
mw 0x51 3
0xee 1 i2c
mw 0x51 4 0x01 1…i2c
mw 0x51 0xAA


1 i2c mw 0x51 52 0xbb 1 mw 0x51 53 i2c 1 0x51 mw 0x51 1 i2c 0x51 mw 0x51 1 i2c 1 0x51 mw 0x51 
输入 rootfs 后、获得了以下结果 
 
我发现 MAC 值没有变化、如下所示: 
 
如何修改 MAC 值? 
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、

    分配给这个帖子的 TI 资源当前已不在办公室、因此响应会延迟。

    此致、

    KB

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、

    让我在我的设置中尝试一下、然后在下一个星期三返回给您。

    此致、
    Tanmay

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Glendon:

    [报价 userid=“668646" url="“ url="~“~/support/interface-group/interface/f/interface-forum/1571803/processor-sdk-am69a-how-to-read-and-write-mac-values
     
    如何修改 MAC 值? 
    [/报价]

    我相信您使用的是 CPSW2G、而不是 CPSW9G。
    CPSW2G 的 MAC 地址是在 SoC eFuse 存储器中预编程的、无法更改。  

    U-boot 将从 eFuse 寄存器中读取并与 Linux 共享。 若要使用更新后的 MAC 地址、则需要更新 u-boot 以从 EPPROM 而非 eFuse 读取。

    您可以使用文件系统中的 systemd 实用程序并分配所需的 MAC 地址。

    此致、
    Sudheer