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.

Opencores (IGOR) problem

Altera_Forum
Honored Contributor II
1,136 Views

Hello, 

 

I am trying to make a linux kernel (2.6.x) on Altera NIOSII, everything works correctly (I can create an image with default options) but... but when I check field Opencores (IGOR) Emac Support in Kernel Configuration (I tried it with Ethernet 10 or 100Mbit enabled and later disabled) and "make" I see the following error: 

 

make -C tools/ucfront 

make[1]: Entering directory `/home/mk/mgr/uClinux-dist/tools/ucfront' 

make[1]: Nothing to be done for `all'. 

make[1]: Leaving directory `/home/mk/mgr/uClinux-dist/tools/ucfront' 

ln -sf /home/mk/mgr/uClinux-dist/tools/ucfront/ucfront tools/ucfront-gcc 

ln -sf /home/mk/mgr/uClinux-dist/tools/ucfront/ucfront tools/ucfront-g++ 

ln -sf /home/mk/mgr/uClinux-dist/tools/ucfront/ucfront-ld tools/ucfront-ld 

make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- -j1 -C linux-2.6.x zImage || exit 1 

no emulation specific options. 

make[1]: Entering directory `/home/mk/mgr/uClinux-dist/linux-2.6.x' 

no emulation specific options. 

scripts/kconfig/conf -s arch/nios2nommu/Kconfig 

block/Kconfig:36:warning: 'select' used by config symbol 'BLK_DEV_IO_TRACE' refer to undefined symbol 'DEBUG_FS' 

make[1]: Leaving directory `/home/mk/mgr/uClinux-dist/linux-2.6.x' 

no emulation specific options. 

make[1]: Entering directory `/home/mk/mgr/uClinux-dist/linux-2.6.x' 

CHK include/nios2_system.h 

perl -I/home/mk/mgr/uClinux-dist/linux-2.6.x/arch/nios2nommu/scripts /home/mk/mgr/uClinux-dist/linux-2.6.x/arch/nios2nommu/scripts/gen_nios2_system.h.pl nios2 sdram flash < /home/mk/mgr/quart/eth_vip_cyc.ptf > include/nios2_system.h.tmp; if [ -r include/nios2_system.h ] && cmp -s include/nios2_system.h include/nios2_system.h.tmp; then rm -f include/nios2_system.h.tmp; else echo &#39; UPD include/nios2_system.h&#39;; mv -f include/nios2_system.h.tmp include/nios2_system.h; fi 

CHK include/linux/version.h 

CHK include/linux/utsrelease.h 

CHK include/linux/compile.h 

GEN usr/initramfs_data.cpio.gz 

AS usr/initramfs_data.o 

LD usr/built-in.o 

CC arch/nios2nommu/kernel/setup.o 

arch/nios2nommu/kernel/setup.c: In function `setup_arch&#39;: 

arch/nios2nommu/kernel/setup.c:325: warning: implicit declaration of function `paging_init&#39; 

LD arch/nios2nommu/kernel/built-in.o 

CC drivers/net/Space.o 

drivers/net/Space.c:204: error: `oeth_init&#39; undeclared here (not in a function) 

drivers/net/Space.c:204: error: initializer element is not constant 

drivers/net/Space.c:204: error: (near initialization for `isa_probes[0].probe&#39;) 

drivers/net/Space.c:204: error: initializer element is not constant 

drivers/net/Space.c:204: error: (near initialization for `isa_probes[0]&#39;) 

drivers/net/Space.c:260: error: initializer element is not constant 

drivers/net/Space.c:260: error: (near initialization for `isa_probes[1]&#39;) 

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

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

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

make[1]: Leaving directory `/home/mk/mgr/uClinux-dist/linux-2.6.x&#39; 

make: *** [linux] Error 1 

 

 

At line 204 in file Space.c I can see:# if defined(CONFIG_OPEN_ETH) 

{oeth_init, 0},# endif 

 

What do I do wrong ? I am a beginner so everything is new for me... 

 

Thank you for your response in advance, 

With Regards, 

Koza
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
425 Views

Please update Space.c, 

Index: Space.c =================================================================== --- Space.c    (revision 31) +++ Space.c    (revision 32) @@ -73,6 +73,8 @@ extern struct net_device *SK_init(int unit); extern struct net_device *seeq8005_probe(int unit); extern struct net_device *smc_init(int unit); +extern struct net_device *oeth_init(int unit); +extern struct net_device *mtip1000_init(int unit); extern struct net_device *dm9ks_probe(int unit); extern struct net_device *atarilance_probe(int unit); extern struct net_device *sun3lance_probe(int unit); 

 

Please attach your ptf in the wiki, so that I can test the build with open eth in the future. 

http://nioswiki.jot.com/wikihome/operatingsystems/ethernet (http://nioswiki.jot.com/wikihome/operatingsystems/ethernet)
0 Kudos
Altera_Forum
Honored Contributor II
425 Views

TO_BE_DONE

0 Kudos
Reply