Forum Discussion
Altera_Forum
Honored Contributor
20 years agoGigabit Ethernet with pci interface
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 lot9 Replies
- Altera_Forum
Honored Contributor
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) - Altera_Forum
Honored Contributor
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... - Altera_Forum
Honored Contributor
Just one more day.
- Altera_Forum
Honored Contributor
I'm looking forward to it
Thank you very much, Hippo. Cheers Helmchen - Altera_Forum
Honored Contributor
Please check post#52 in the buildroot guide. There is the pci driver in kernel 2.6.15.6 .
- Altera_Forum
Honored Contributor
I will try it...
- Altera_Forum
Honored Contributor
There are still some problems in flushing cache.
Working fine without dcache in nios2. I am working to resolve this issue. - Altera_Forum
Honored Contributor
The dma cache flush issue is resolved.
It works with dcache support now. Please download kernel3.zip again. - Altera_Forum
Honored Contributor
First of all, thank you very much. I hope I getting started the next days.
Cheers Helmchen