Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12621 Discussions

Gigabit Ethernet with pci interface

Altera_Forum
Honored Contributor II
1,677 Views

Hi everyone, 

 

i have custom board with an Intel 82540EM gigabit ethernet controller. Now i want to integrate it in uClinux. My question is how to do this in uClinux and nios. Did anyone do something like this before (interfacing a pci device in general). Are there any issues that i need to know? 

 

I know i need a controller: I want to use the pci controller from OpenCores.org. Afterwards i will have to modify or writing drivers. 

 

 

Any hints, tips and information to start would be great 

 

Thanks a lot
0 Kudos
9 Replies
Altera_Forum
Honored Contributor II
414 Views

I wrote the PCI driver for Altera pci bridge based on the pci host brdige sample hardware design, 

http://forum.niosforum.com/forum/index.php?showtopic=3059 (http://forum.niosforum.com/forum/index.php?showtopic=3059

It still need some clean up. And I will post it in the buildroot guide soon. 

http://forum.niosforum.com/forum/index.php?showtopic=3174 (http://forum.niosforum.com/forum/index.php?showtopic=3174)
0 Kudos
Altera_Forum
Honored Contributor II
414 Views

Hello Hippo, 

 

I'm happy to hear that someone is already working on this. If your driver is really available i would use the altera pci bridge. This would save me a lot time. 

 

Maybe you can tell me something about your driver, so i can start working on this driver for the ethernet controller. I won't have a problem if your driver code is dirty. Forgive me, i don't like waiting... and to be honestly i don't have much time to achieve this part of my project.  

 

Thanks a lot...
0 Kudos
Altera_Forum
Honored Contributor II
414 Views

Just one more day.

0 Kudos
Altera_Forum
Honored Contributor II
414 Views

I'm looking forward to it 

 

Thank you very much, Hippo. 

 

Cheers 

 

Helmchen
0 Kudos
Altera_Forum
Honored Contributor II
414 Views

Please check post#52 in the buildroot guide. There is the pci driver in kernel 2.6.15.6 .

0 Kudos
Altera_Forum
Honored Contributor II
414 Views

I will try it...

0 Kudos
Altera_Forum
Honored Contributor II
414 Views

There are still some problems in flushing cache. 

Working fine without dcache in nios2. 

I am working to resolve this issue.
0 Kudos
Altera_Forum
Honored Contributor II
414 Views

The dma cache flush issue is resolved.  

It works with dcache support now. 

Please download kernel3.zip again.
0 Kudos
Altera_Forum
Honored Contributor II
414 Views

First of all, thank you very much. I hope I getting started the next days. 

 

Cheers 

 

Helmchen
0 Kudos
Reply