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

DM9000 could supported by uClinux?

Altera_Forum
Honored Contributor II
1,408 Views

When make menuconfig, I choose the networking supporting, because my altera board is DE II, it's ethernet is DM9000, so I choose the DM9000 in devrice choose. 

after that. when I using command to generate the zImage, it couldn't pass. I get some fault like as:  

make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- menuconfig 

... 

drivers/net/dm9000x.c:305: error: `na_dm9000_irq' undeclared here (not in a function) 

drivers/net/dm9000x.c: In function `dmfe_probe': 

drivers/net/dm9000x.c:362: error: `na_dm9000' undeclared (first use in this function) 

drivers/net/dm9000x.c:362: error: (Each undeclared identifier is reported only once 

drivers/net/dm9000x.c:362: error: for each function it appears in.) 

drivers/net/dm9000x.c: At top level: 

drivers/net/dm9000x.c:291: warning: 'dmfe_debug' defined but not used 

drivers/net/dm9000x.c:295: warning: 'debug' defined but not used 

drivers/net/dm9000x.c:296: warning: 'mode' defined but not used 

drivers/net/dm9000x.c:785: warning: 'dmfe_reset_dm9000' defined but not used 

make[2]: *** [drivers/net/dm9000x.o]Eroor1 

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

make: *** [drivers] Error 2 

 

How can I solve these problems! 

 

THX!
0 Kudos
8 Replies
Altera_Forum
Honored Contributor II
504 Views

it may be caused by the dm9000 component class name in your DEII. 

please check your kernel include/nios2_system.h , find the port name of dm9000, 

and update the na_dm9000 and na_dm9000_irq in drivers/net/dm9000x.c .
0 Kudos
Altera_Forum
Honored Contributor II
504 Views

Thanks for your help, I could pass the compile now. And then, In Nios II 5.1 SDK shell , my uClinux system find ethernet now, in the start process, give me some relative message like this: 

... 

dmfe_probe:eth0, 50 Khz, Nios  

<DM9000> eth0 I/O 80900090,VID: 90000a46 

ADDR: 00:07:ed:00:00:00 

dmfe_probe:eth1, 50 Khz, Nios  

... 

 

But now, in uClinux on my board, I typing: ifconfig eth0 192.168.0.100, it&#39;s give me some message like this:  

 

ifconfig : socket: Address family not supported by protocal. 

 

when i run ifconfig only, it&#39;s give me this message: 

 

No usable adderss families found. 

ifconfig : socket: Address family not supported by protocal. 

 

could you help me? 

THX
0 Kudos
Altera_Forum
Honored Contributor II
504 Views

 

--- Quote Start ---  

originally posted by goral@Apr 13 2006, 10:38 AM 

thanks for your help, i could pass the compile now. and then, in nios ii 5.1 sdk shell , my uclinux system find ethernet now, in the start process, give me some relative message like this: 

... 

dmfe_probe:eth0, 50 khz, nios  

<dm9000> eth0 i/o 80900090,vid: 90000a46 

      addr:  00:07:ed:00:00:00 

dmfe_probe:eth1, 50 khz, nios  

... 

 

but now, in uclinux on my board, i typing: ifconfig eth0 192.168.0.100, it&#39;s give [/b]me some message like this:   

 

ifconfig : socket: Address family not supported by protocal. 

 

when i run ifconfig only, it&#39;s give me this message: 

 

No usable adderss families found. 

ifconfig : socket: Address family not supported by protocal. 

 

could you help me? 

THX 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14296) 

--- Quote End ---  

[/b] 

--- Quote End ---  

 

I am not good at network, may be other expert help out. or you should read the kernel source. 

Did you enable those networking options in kernel config as step9 of the guide ?
0 Kudos
Altera_Forum
Honored Contributor II
504 Views

Ofcourse I choose that support in step9, thanks the same to you, I will check it.

0 Kudos
Altera_Forum
Honored Contributor II
504 Views

I have some advice,but not sure. 

you can check your nios2_system.h and dm9000x.c, 

 

na_dm9000 and na_dm9000_irq is defined in nios2_system.h,so which should be declared in dm9000x.c . 

Best Regards! 

FeiWu
0 Kudos
Altera_Forum
Honored Contributor II
504 Views

Thanks for reply, My ethernet is working well now.  

feiwu&#39;s and hippo&#39;s suggestion is very importmant for my trying. 

THX
0 Kudos
Altera_Forum
Honored Contributor II
504 Views

hi hippo 

I wnat to add "ftpd" apps on my uClinuc OS. 

When i make menuconfig then occur error info........ 

[jay@localhost uClinux-dist-test]$ make menuconfig 

config/mkconfig > config.in 

make -C /home/jay/uClinux-dist-test/config/scripts/lxdialog all 

make[1]: Entering directory `/home/jay/uClinux-dist-test/config/scripts/lxdialog&#39; 

/bin/sh: cc: command not found 

 

>> Unable to find the Ncurses libraries. 

>> 

>> You must have Ncurses installed in order 

>> to use &#39;make menuconfig&#39; 

 

make[1]: *** [ncurses] Error 1 

make[1]: Leaving directory `/home/jay/uClinux-dist-test/config/scripts/lxdialog&#39; 

make: *** [menuconfig] Error 2  

 

But i excute "yum install ncurses" and don&#39;t install completing....  

 

how to solve installing ncurses? 

 

help me !!! 

 

thx
0 Kudos
Altera_Forum
Honored Contributor II
504 Views

 

--- Quote Start ---  

originally posted by jay_1025@Apr 14 2006, 03:40 AM 

hi hippo 

i wnat to add "ftpd" apps on my uclinuc os. 

when i make menuconfig then occur error info........ 

[jay@localhost uclinux-dist-test]$ make menuconfig 

config/mkconfig > config.in 

make -c /home/jay/uclinux-dist-test/config/scripts/lxdialog all 

make[1]: entering directory `/home/jay/uclinux-dist-test/config/scripts/lxdialog&#39; 

/bin/sh: cc: command not found 

 

>> unable to find the ncurses libraries. 

>> 

>> you must have ncurses installed in order 

>> to use &#39;make menuconfig&#39; 

 

make[1]: *** [ncurses] error 1 

make[1]: leaving directory `/home/jay/uclinux-dist-test/config/scripts/lxdialog&#39; 

make: *** [menuconfig] error 2   

 

but  i excute "yum install ncurses" and don&#39;t install completing....  

 

how to solve installing  ncurses? 

 

help me !!! 

 

thx 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14343) 

--- quote end ---  

 

--- Quote End ---  

 

Jay, you have to post this as another NEWTOPIC. it is in the upper right corner of the page.
0 Kudos
Reply