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++
Annonces
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

Driver for Opencores 10/100 Ethernet MAC

Altera_Forum
Contributeur émérite II
1 913 Visites

Where can I find the driver for Opencores 10/100 Ethernet MAC?

0 Compliments
5 Réponses
Altera_Forum
Contributeur émérite II
1 124 Visites

What network stack/OS are you planning to use? 

 

A couple of years ago I ported this MAC to work with Nios I and the plugs library. I can post this code but it won't be compatible with LWIP or linux -- some work would be needed to port it.... however it wouldn't surprise me if others here have done such a port or written a new driver from scratch already. Let me know if you're interested.
0 Compliments
Altera_Forum
Contributeur émérite II
1 124 Visites

Hello yaoli 

 

I have written a driver for the Opencores MAC 10/100 and used it to generate a lwip webserver project. Unfirtunately, I don't see how I can add an attachement to this post, so I'll try to send it to you somehow. 

 

Regards 

 

Nir Drabkin 

Altera DFAE 

Braemac Pty Ltd.
0 Compliments
Altera_Forum
Contributeur émérite II
1 124 Visites
0 Compliments
Altera_Forum
Contributeur émérite II
1 124 Visites

The Opencores 10/100 Ethernet MAC seemes to be supported by Linux. You will find it in the kernel configuration, among with some other network device drivers.

0 Compliments
Altera_Forum
Contributeur émérite II
1 124 Visites

Hello, 

 

I had successfully generated the system in Verilog, but in software compilation I found this errors. For now, I'm compiling a "Hello World" example, which don't require any network resource. 

 

Thank you! 

 

-- 

make -s all  

Compiling alt_sys_init.c... 

In file included from system_description/alt_sys_init.c:72: 

/cygdrive/c/altera/kits/nios2/components/OpenCores_Avalon_10_100_Ethernet_MAC/HAL/inc/OpenCores_Ethernet_MAC.h:48:30: alt_ethernet_dev.h: No such file or directory 

In file included from system_description/alt_sys_init.c:72: 

/cygdrive/c/altera/kits/nios2/components/OpenCores_Avalon_10_100_Ethernet_MAC/HAL/inc/OpenCores_Ethernet_MAC.h:65: error: parse error before "alt_ethernet_dev_list" 

/cygdrive/c/altera/kits/nios2/components/OpenCores_Avalon_10_100_Ethernet_MAC/HAL/inc/OpenCores_Ethernet_MAC.h:65: warning: no semicolon at end of struct or union 

/cygdrive/c/altera/kits/nios2/components/OpenCores_Avalon_10_100_Ethernet_MAC/HAL/inc/OpenCores_Ethernet_MAC.h:77: error: parse error before '}' token 

/cygdrive/c/altera/kits/nios2/components/OpenCores_Avalon_10_100_Ethernet_MAC/HAL/inc/OpenCores_Ethernet_MAC.h:77: warning: type defaults to `int' in declaration of `opencores_ethernet_mac_if' 

/cygdrive/c/altera/kits/nios2/components/OpenCores_Avalon_10_100_Ethernet_MAC/HAL/inc/OpenCores_Ethernet_MAC.h:77: warning: data definition has no type or storage class 

/cygdrive/c/altera/kits/nios2/components/OpenCores_Avalon_10_100_Ethernet_MAC/HAL/inc/OpenCores_Ethernet_MAC.h:80: error: parse error before '*' token 

/cygdrive/c/altera/kits/nios2/components/OpenCores_Avalon_10_100_Ethernet_MAC/HAL/inc/OpenCores_Ethernet_MAC.h:81: error: parse error before '*' token 

/cygdrive/c/altera/kits/nios2/components/OpenCores_Avalon_10_100_Ethernet_MAC/HAL/inc/OpenCores_Ethernet_MAC.h:82: error: parse error before '*' token 

/cygdrive/c/altera/kits/nios2/components/OpenCores_Avalon_10_100_Ethernet_MAC/HAL/inc/OpenCores_Ethernet_MAC.h:83: error: parse error before '*' token 

system_description/alt_sys_init.c:87: error: parse error before "opencores_ethernet_mac" 

system_description/alt_sys_init.c:87: warning: type defaults to `int' in declaration of `opencores_ethernet_mac' 

system_description/alt_sys_init.c:87: warning: braces around scalar initializer 

system_description/alt_sys_init.c:87: warning: (near initialization for `opencores_ethernet_mac') 

system_description/alt_sys_init.c:87: warning: braces around scalar initializer 

system_description/alt_sys_init.c:87: warning: (near initialization for `opencores_ethernet_mac') 

system_description/alt_sys_init.c:87: warning: excess elements in scalar initializer 

system_description/alt_sys_init.c:87: warning: (near initialization for `opencores_ethernet_mac') 

system_description/alt_sys_init.c:87: warning: braces around scalar initializer 

system_description/alt_sys_init.c:87: warning: (near initialization for `opencores_ethernet_mac') 

system_description/alt_sys_init.c:87: warning: excess elements in scalar initializer 

system_description/alt_sys_init.c:87: warning: (near initialization for `opencores_ethernet_mac') 

system_description/alt_sys_init.c:87: warning: excess elements in scalar initializer 

system_description/alt_sys_init.c:87: warning: (near initialization for `opencores_ethernet_mac') 

system_description/alt_sys_init.c:87: error: `opencores_ethernet_mac_rx' undeclared here (not in a function) 

system_description/alt_sys_init.c:87: warning: excess elements in scalar initializer 

system_description/alt_sys_init.c:87: warning: (near initialization for `opencores_ethernet_mac') 

system_description/alt_sys_init.c:87: error: `opencores_ethernet_mac_input' undeclared here (not in a function) 

system_description/alt_sys_init.c:87: warning: excess elements in scalar initializer 

system_description/alt_sys_init.c:87: warning: (near initialization for `opencores_ethernet_mac') 

system_description/alt_sys_init.c:87: warning: excess elements in scalar initializer 

system_description/alt_sys_init.c:87: warning: (near initialization for `opencores_ethernet_mac') 

system_description/alt_sys_init.c:87: warning: excess elements in scalar initializer 

system_description/alt_sys_init.c:87: warning: (near initialization for `opencores_ethernet_mac') 

system_description/alt_sys_init.c:87: warning: excess elements in scalar initializer 

system_description/alt_sys_init.c:87: warning: (near initialization for `opencores_ethernet_mac') 

system_description/alt_sys_init.c:87: warning: excess elements in scalar initializer 

system_description/alt_sys_init.c:87: warning: (near initialization for `opencores_ethernet_mac') 

system_description/alt_sys_init.c:87: warning: excess elements in scalar initializer 

system_description/alt_sys_init.c:87: warning: (near initialization for `opencores_ethernet_mac') 

system_description/alt_sys_init.c:87: warning: excess elements in scalar initializer 

system_description/alt_sys_init.c:87: warning: (near initialization for `opencores_ethernet_mac') 

system_description/alt_sys_init.c:87: warning: excess elements in scalar initializer 

system_description/alt_sys_init.c:87: warning: (near initialization for `opencores_ethernet_mac') 

system_description/alt_sys_init.c:87: warning: excess elements in scalar initializer 

system_description/alt_sys_init.c:87: warning: (near initialization for `opencores_ethernet_mac') 

system_description/alt_sys_init.c:87: warning: excess elements in scalar initializer 

system_description/alt_sys_init.c:87: warning: (near initialization for `opencores_ethernet_mac') 

system_description/alt_sys_init.c:87: warning: data definition has no type or storage class 

system_description/alt_sys_init.c: In function `alt_sys_init': 

system_description/alt_sys_init.c:104: warning: implicit declaration of function `alt_ethernet_dev_reg' 

make[1]: *** [obj/alt_sys_init.o] Error 1 

make: *** [system_project] Error 2 

Build completed
0 Compliments
Répondre