- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes but isn't that interface the one that exists on the NiosII evaluation-board? Without the system will never work with networking support!?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page