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

uClinux-dist-20060803 ISP1362 can not work

Altera_Forum
Honored Contributor II
1,291 Views

hi, hippo 

I'm porting uClinux-dist-20060803 on Nios2 DE2 board. 

boa and cgi can work, but usb isp1362 cann't work. 

please help!!!
0 Kudos
16 Replies
Altera_Forum
Honored Contributor II
545 Views

 

--- Quote Start ---  

originally posted by faye@Oct 30 2006, 06:30 PM 

hi, hippo 

i'm porting uclinux-dist-20060803 on nios2 de2 board. 

boa and cgi can work, but usb isp1362 cann't work. 

please help!!! 

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

--- quote end ---  

 

--- Quote End ---  

 

What&#39;s the problem? 

I don&#39;t have DE2 board to test. 

 

Did you use the new driver? 

<* > DM9000 support
0 Kudos
Altera_Forum
Honored Contributor II
545 Views

 

--- Quote Start ---  

originally posted by faye@Oct 30 2006, 06:30 AM 

hi, hippo 

i&#39;m porting uclinux-dist-20060803 on nios2 de2 board. 

boa and cgi can work, but usb isp1362 cann&#39;t work. 

please help!!! 

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

--- quote end ---  

 

--- Quote End ---  

 

 

 

I have enale DM9000,but display following message 

 

 

CC drivers/usb/host/isp1362-hcd.o 

drivers/usb/host/isp1362-hcd.c:1293: error: syntax error before "gfp_t" 

drivers/usb/host/isp1362-hcd.c:1294: warning: function declaration isn&#39;t a prototype 

drivers/usb/host/isp1362-hcd.c: In function `isp1362_urb_enqueue&#39;: 

drivers/usb/host/isp1362-hcd.c:1295: error: `hcd&#39; undeclared (first use in this function) 

drivers/usb/host/isp1362-hcd.c:1295: error: (Each undeclared identifier is reported only once 

drivers/usb/host/isp1362-hcd.c:1295: error: for each function it appears in.) 

drivers/usb/host/isp1362-hcd.c:1296: error: `urb&#39; undeclared (first use in this function) 

drivers/usb/host/isp1362-hcd.c:1333: error: `hep&#39; undeclared (first use in this function) 

drivers/usb/host/isp1362-hcd.c:1334: error: `mem_flags&#39; undeclared (first use in this function) 

drivers/usb/host/isp1362-hcd.c:1341: warning: implicit declaration of function `HC_IS_RUNNING&#39; 

drivers/usb/host/isp1362-hcd.c: In function `isp1362_mem_config&#39;: 

drivers/usb/host/isp1362-hcd.c:2415: warning: int format, long unsigned int arg (arg 5) 

drivers/usb/host/isp1362-hcd.c:2418: warning: int format, long unsigned int arg (arg 5) 

drivers/usb/host/isp1362-hcd.c: In function `isp1362_hc_start&#39;: 

drivers/usb/host/isp1362-hcd.c:2776: error: `HC_STATE_RUNNING&#39; undeclared (first use in this function) 

drivers/usb/host/isp1362-hcd.c: At top level: 

drivers/usb/host/isp1362-hcd.c:2818: error: unknown field `bus_suspend&#39; specified in initializer 

drivers/usb/host/isp1362-hcd.c:2819: error: unknown field `bus_resume&#39; specified in initializer 

drivers/usb/host/isp1362-hcd.c: In function `isp1362_remove&#39;: 

drivers/usb/host/isp1362-hcd.c:2828: warning: implicit declaration of function `platform_get_drvdata&#39; 

drivers/usb/host/isp1362-hcd.c:2828: warning: initialization makes pointer from integer without a cast 

drivers/usb/host/isp1362-hcd.c:2834: warning: implicit declaration of function `usb_remove_hcd&#39; 

drivers/usb/host/isp1362-hcd.c: In function `isp1362_probe&#39;: 

drivers/usb/host/isp1362-hcd.c:2927: error: too many arguments to function `usb_create_hcd&#39; 

drivers/usb/host/isp1362-hcd.c:2932: error: structure has no member named `rsrc_start&#39; 

drivers/usb/host/isp1362-hcd.c:2958: warning: implicit declaration of function `usb_add_hcd&#39; 

drivers/usb/host/isp1362-hcd.c: At top level: 

drivers/usb/host/isp1362-hcd.c:3043: error: variable `isp1362_driver&#39; has initializer but incomplete type 

drivers/usb/host/isp1362-hcd.c:3044: error: unknown field `probe&#39; specified in initializer 

drivers/usb/host/isp1362-hcd.c:3044: warning: excess elements in struct initializer 

drivers/usb/host/isp1362-hcd.c:3044: warning: (near initialization for `isp1362_driver&#39;) 

drivers/usb/host/isp1362-hcd.c:3045: error: unknown field `remove&#39; specified in initializer 

drivers/usb/host/isp1362-hcd.c:3045: warning: excess elements in struct initializer 

drivers/usb/host/isp1362-hcd.c:3045: warning: (near initialization for `isp1362_driver&#39;) 

drivers/usb/host/isp1362-hcd.c:3047: error: unknown field `suspend&#39; specified in initializer 

drivers/usb/host/isp1362-hcd.c:3047: warning: excess elements in struct initializer 

drivers/usb/host/isp1362-hcd.c:3047: warning: (near initialization for `isp1362_driver&#39;) 

drivers/usb/host/isp1362-hcd.c:3048: error: unknown field `resume&#39; specified in initializer 

drivers/usb/host/isp1362-hcd.c:3048: warning: excess elements in struct initializer 

drivers/usb/host/isp1362-hcd.c:3048: warning: (near initialization for `isp1362_driver&#39;) 

drivers/usb/host/isp1362-hcd.c:3049: error: unknown field `driver&#39; specified in initializer 

drivers/usb/host/isp1362-hcd.c:3049: error: extra brace group at end of initializer 

drivers/usb/host/isp1362-hcd.c:3049: error: (near initialization for `isp1362_driver&#39;) 

drivers/usb/host/isp1362-hcd.c:3052: warning: excess elements in struct initializer 

drivers/usb/host/isp1362-hcd.c:3052: warning: (near initialization for `isp1362_driver&#39;) 

drivers/usb/host/isp1362-hcd.c: In function `isp1362_init&#39;: 

drivers/usb/host/isp1362-hcd.c:3063: warning: implicit declaration of function `platform_driver_register&#39; 

drivers/usb/host/isp1362-hcd.c: In function `isp1362_cleanup&#39;: 

drivers/usb/host/isp1362-hcd.c:3070: warning: implicit declaration of function `platform_driver_unregister&#39; 

drivers/usb/host/isp1362-hcd.c: At top level: 

drivers/usb/host/isp1362-hcd.c:3043: error: storage size of `isp1362_driver&#39; isn&#39;t known 

drivers/usb/host/isp1362-hcd.c:1581: warning: &#39;isp1362_bus_suspend&#39; declared `static&#39; but never defined 

make[3]: *** [drivers/usb/host/isp1362-hcd.o] Error 1 

make[2]: *** [drivers/usb/host] Error2 

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

make: *** [drivers] Error 2
0 Kudos
Altera_Forum
Honored Contributor II
545 Views

How can slove it! 

please help me!  

~"~
0 Kudos
Altera_Forum
Honored Contributor II
545 Views

I&#39;m enable Davicom DM9000 10_100 Ethernet chip support 

 

no enable DM9000 support
0 Kudos
Altera_Forum
Honored Contributor II
545 Views

I&#39;m enable DM9000 chip support try again but it was error.

0 Kudos
Altera_Forum
Honored Contributor II
545 Views

 

--- Quote Start ---  

originally posted by faye@Oct 30 2006, 09:06 PM 

i&#39;m enable dm9000 chip support try again but it was error. 

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

--- quote end ---  

 

--- Quote End ---  

 

There is problem of USB struct or API changes. 

I will check them tommorow. 

Or you can check out the latest driver from blackfin.
0 Kudos
Altera_Forum
Honored Contributor II
545 Views

ok! thank you very much!

0 Kudos
Altera_Forum
Honored Contributor II
545 Views

I&#39;m enable davicom DM9000 10_1000 chip support, the ethernet can work,but usb isp1362 can not work.

0 Kudos
Altera_Forum
Honored Contributor II
545 Views

 

--- Quote Start ---  

originally posted by faye@Oct 30 2006, 09:31 PM 

i&#39;m enable davicom dm9000 10_1000 chip support, the ethernet can work,but usb isp1362 can not work. 

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

--- quote end ---  

 

--- Quote End ---  

 

How about the newer driver, DM9000, (not the davicom one) ? 

Can you disable the Davicom one, and try out new DM9000 driver?
0 Kudos
Altera_Forum
Honored Contributor II
545 Views

I&#39;m disable davicom DM9000 and enable DM9000 than try it, but it always can not work.

0 Kudos
Altera_Forum
Honored Contributor II
545 Views

 

--- Quote Start ---  

originally posted by faye@Oct 30 2006, 10:29 PM 

i&#39;m disable davicom dm9000 and enable dm9000 than try it, but it always can not work. 

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

--- quote end ---  

 

--- Quote End ---  

 

ver 7, 

updated isp1362, remove hcd->can_wakeup .. 

updated DM9000. 

 

Please check again the new DM9000 drive. 

Then check the isp1362. 

 

you must remove or rename old uClinux-dist dir,  

you must apply the patches ONLY ONCE.
0 Kudos
Altera_Forum
Honored Contributor II
545 Views

I enable newer DM9000 driver and modify DM9000.c(na_dm9000=>na_DM9000A),ethernet can work. 

 

But USB isp1362 can not work. 

 

please help.
0 Kudos
Altera_Forum
Honored Contributor II
545 Views

Sorry! I don&#39;t known your meant. 

please to ponit the more detail setps. 

thank you.
0 Kudos
Altera_Forum
Honored Contributor II
545 Views

hcd->can_wakeup .. <- in the which dir or file ???

0 Kudos
Altera_Forum
Honored Contributor II
545 Views

 

--- Quote Start ---  

originally posted by faye@Oct 31 2006, 04:02 PM 

hcd->can_wakeup .. <- in the which dir or file ??? 

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

--- quote end ---  

 

--- Quote End ---  

 

I had update the patches uClinux-dist-20060803-nios2-02.diff.gz , it is ver 7 now. 

http://nioswiki.jot.com/wikihome/operating...e=1162280788154 (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/uclinuxdist/uclinux-dist-20060803-nios2-02.diff.gz?cachetime=1162280788154

Please download this one again. 

 

And create a new uClinux-dist tree. 

 

cd ~ 

rm -rf uClinux-dist # you must remove or rename old dir, you must apply the patches ONLY ONCE. 

tar jxf uClinux-dist-20060803.tar.bz2 

cd uClinux-dist 

zcat uClinux-dist-20060803-nios2-02.diff.gz | patch -p0 

 

Then without modify the kernel sources, (ie, no need to modify na_DM9000A) 

try hwselect for DE2, 

and enable new DM9000 driver. 

Check if network can work. 

 

Then enable USB and isp1362-hcd . And check if it can be initialized at boot up.
0 Kudos
Altera_Forum
Honored Contributor II
545 Views

I had update the newer patches uClinux-dist-20060803-nios2-02.diff.gz, and following your steps , it can work. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif  

thank you very much!!! 

THx http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/laugh.gif
0 Kudos
Reply