Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Honored Contributor I
752 Views

eth1 on Nios II/ecos

Does anyone have any experience with putting a second ethernet port on a Nios II or does anyone know what would be involved? I need to add a second ethernet port to use on a separate diagnostic network and the cdl file indicated that only one ethernet port is implemented.

0 Kudos
1 Reply
Highlighted
Honored Contributor I
6 Views

I assume you're using the Altera_avalon_lan91c111 driver. 

 

I might be wrong, but I think if you look at the .inl file that's in the ecos-current/packages/devs/sopc/*lan91c111*/current (wildcarded because I forgot the exact name) directory, you'll see that it declares an instance of the driver and hardcodes the name "eth0". If you duplicated this declaration and changed the duplicate's name to "eth1" (and figure out a way to get two different MAC addresses in there), it might work. I can't say for sure, because I haven't done it myself.
0 Kudos