Forum Discussion
Altera_Forum
Honored Contributor
20 years agoMoreThanIP Ethernet driver
I'm running into problems trying to compile the MoreThanIP ethernet driver into the uCLinux kernel. Has anyone else seen this? Is there a solution?
CC arch/nios2nommu/kernel/setup.o /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/arch/nios2nommu/kernel/setup.c: In function `setup_arch': /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/arch/nios2nommu/kernel/setup.c:204: error: `na_mtip_mac_control_port' undeclared (first use in this function) /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/arch/nios2nommu/kernel/setup.c:204: error: (Each undeclared identifier is reported only once /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/arch/nios2nommu/kernel/setup.c:204: error: for each function it appears in.) make[2]: *** [arch/nios2nommu/kernel/setup.o] Error 1 make[1]: *** [arch/nios2nommu/kernel] Error 2 make: *** [_all] Error 2 make: Leaving directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x'2 Replies
- Altera_Forum
Honored Contributor
Looks like you haven't selected the correct PTF file for your Kernel Project OR you haven't included the MoreThanIP component in Sopc Builder.
The messages you get are missing declarations in the system.h file which is generated from the ptf file. - Altera_Forum
Honored Contributor
I ran into exactly the same problem; turns out I was mistakingly using the system description file 'standard_1c12.ptf'. Should be 'linux_1c12_eval.ptf' instead.
Also remember to uncheck 'SMC 91111 support' under Network Support within the Linux Kernel Configuration tool. In all other senses follow the instructions on the 'Microtronix Nios II Linux Distribution Quick Start Guide'. That's all you should have to do in order to build your kernel for the cyclone evaluation kit.