2009-05-29 02:19:06 Eth0 and Eth1
David Lee (UNITED STATES)
Message: 74744
hi,
I am new to embedded development. My new board has 2 ethernet chips. I wonder how uClinux decides which chip is for Eth0 and the other is for Eth1.
Thanks for help.
David
QuoteReplyEditDelete
2009-05-29 06:42:08 Re: Eth0 and Eth1
Mike Frysinger (UNITED STATES)
Message: 74752
it is arbitrary -- whichever one registers first. if you need exact naming, then handle it in your startup code so that it renames the interfaces if they dont match what you want.
QuoteReplyEditDelete
2009-05-29 09:32:49 Re: Eth0 and Eth1
Robin Getz (UNITED STATES)
Message: 74766
David:
As Mike said - it is arbitrary - but this is a common linux issue - hardware is initialized asynchronously so you never know which card will become eth0 and which eth1 on your desktop either.
www.science.uva.nl/research/air/wiki/LogicalInterfaceNames
Both nameif and ifrename are included as part of the uClinux-dist.
-Robin