提交 8e64d6ef 编写于 作者: H Heiko Schocher 提交者: Wolfgang Denk

net, doc: How to setup MAC address correctly

As this seems unclear, document how the flow of setting up
the MAC address is correct.
Signed-off-by: NHeiko Schocher <hs@denx.de>

Text changed slightly, adding input from Mike Frysinger.
Signed-off-by: NWolfgang Denk <wd@denx.de>
上级 b78b48c6
...@@ -28,6 +28,17 @@ Here are the places where MAC addresses might be stored: ...@@ -28,6 +28,17 @@ Here are the places where MAC addresses might be stored:
purpose of passing this information to an OS kernel we are about purpose of passing this information to an OS kernel we are about
to boot to boot
Correct flow of setting up the MAC address (summarized):
1. Read from hardware in initialize() function
2. Read from environment in net/eth.c after initialize()
3. Give priority to the value in the environment if a conflict
4. Program hardware in the device's init() function.
If somebody wants to subvert the design philosophy, this can be done
in the board-specific board_eth_init() function by calling eth_init()
after all the NICs have been registered.
------- -------
Usage Usage
------- -------
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册