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++
Announcements
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.

uclinux kernel build error

Altera_Forum
Honored Contributor II
1,171 Views

Hi, 

 

I am trying to build the uC linux kernel for the microtronix cyclone board. The kernel build fails when I include the ethernet. 

The reference design is build with the opencores_ethernet_mac.  

 

Can someone help me ?  

 

Here is a list of the errors(not all errors listed):  

 

CC drivers/net/open_eth.o 

/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/net/open_eth.c:80: error: parse error before '...' token 

In file included from /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/net/open_eth.c:91: 

/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/net/open_eth.h:48: error: parse error before '}' token 

/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/net/open_eth.h:48: warning: type defaults to `int' in declaration of `oeth_regs' 

/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/net/open_eth.h:48: warning: data definition has no type or storage class 

/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/net/open_eth.c:176: error: parse error before "oeth_regs" 

... 

... 

... 

/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/net/open_eth.c: In function `oeth_init': 

/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/net/open_eth.c:2151: error: invalid application of `sizeof' to an incomplete type 

make[3]: *** [drivers/net/open_eth.o] Error 1 

make[2]: *** [drivers/net] Error 2 

make[1]: *** [drivers] Error 2 

make: *** [all] Error 2
0 Kudos
0 Replies
Reply