你好,
我现在的情况是,对于板子从网口接受标准以太网帧,我想把C6678芯片厂家烧写的MAC地址读取出来并填写到以太网帧的源MAC地址字段。请问我可以通过什么途径获取C6678的MAC地址?我需要看哪些模块的文档?有没有设计到这块的例程?谢谢。
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.
如果是用于SGMII通信中的MAC地址,可以用户直接填MAC头。 如果想知道6678自带的MAC地址,可以解析bootp包中的MAC地址获得。 参考EMAC手册和BOOTLOADER手册
Ethernet-Ready Announcement Format
The Ethernet-ready announcement frame is made in the form of a BOOTP request so
it can use a standard format. No response is processed for this message and it is
constructed so that most—if not all—BOOTP and DHCP servers will discard it. The
announcement frame is sent every three seconds (the time interval between the packets
varies with the clock input); no retransmission is done.
The frame uses the DIX MAC Header format. The MAC header contains:
• Destination MAC address = H-MAC addr (from boot parameters, normally
FF:FF:FF:FF:FF:FF)
• Source MAC address = this device’s MAC addr (from boot parameters)
• Type = IPV4 (0x800)