2009-05-29 02:19:06 Eth0 and Eth1
David Lee (UNITED STATES)
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.
2009-05-29 06:42:08 Re: Eth0 and Eth1
Mike Frysinger (UNITED STATES)
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.
2009-05-29 09:32:49 Re: Eth0 and Eth1
Robin Getz (UNITED STATES)
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.
Both nameif and ifrename are included as part of the uClinux-dist.