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++
12745 Discussions

Nios II Linux v1.4: Kernel not compileable

Altera_Forum
Honored Contributor II
1,414 Views

Hi, 

 

I tried to compile the kernel delivered with NIOS Linux 1.4 but with no success. The default configuration failed with an error somewhere in an IDE-driver. After IDE-support isn't required for my project, I disabled them completely. Now the compilation hangs up in a networking-device: 

 

 CC      drivers/net/smc91111.o /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/net/smc91111.c:131: error: `na_enet' undeclared here (not in a function) /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/net/smc91111.c:131: error: initializer element is not constant /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/net/smc91111.c:131: error: (near initialization for `smc_portlist') /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/net/smc91111.c:133: error: `na_enet_irq' undeclared here (not in a function) /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/net/smc91111.c:133: error: initializer element is not constant /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/net/smc91111.c:133: error: (near initialization for `smc_irqlist') /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/net/smc91111.c: In function `smc_findirq': /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/net/smc91111.c:1085: warning: `sti' is deprecated (declared at /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/include/linux/interrupt.h:69) /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/net/smc91111.c:1145: warning: `cli' is deprecated (declared at /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/include/linux/interrupt.h:65) /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/net/smc91111.c: In function `smc_rcv': /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/net/smc91111.c:1912: warning: suggest parentheses around + or - inside shift make: *** Error 1 

 

Any Ideas?
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
497 Views

It looks like it's trying to compile in SMC ethernet adapter support. Try disabling: 

 

  Location:     -> Device Drivers       -> Networking support         -> Network device support (NETDEVICES )           -> Ethernet (10 or 100Mbit)             -> SMC 91111 support 

 

and building again...
0 Kudos
Altera_Forum
Honored Contributor II
497 Views

Yes but isn't that interface the one that exists on the NiosII evaluation-board? Without the system will never work with networking support!?

0 Kudos
Altera_Forum
Honored Contributor II
497 Views

Ah, I see the confusion, no, the evaluation board doesn't have a LAN91C111 chip on it. At least not the Altera Evaluation Kit (I think that's the one you're talking about). 

 

If you're using the Linux reference design for the evaluation board, then you need to disable the LAN91C111 as discussed above and enable the MoreThanIP driver instead. It's in the same submenu and it's officially called: 

 

MoreThanIP 10_100_1000 Emac support
0 Kudos
Reply