--- Quote Start ---
originally posted by goral@Apr 23 2006, 01:08 PM
when clean all work before i do, i compile my kernel, i got so many errors, i using isp1362.diff to patch the usb driver.
<div class='quotetop'>quote
--- quote end ---
--- quote start ---
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't a prototype
drivers/usb/host/isp1362-hcd.c: in function `isp1362_urb_enqueue':
drivers/usb/host/isp1362-hcd.c:1295: error: `hcd' 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' undeclared (first use in this function)
drivers/usb/host/isp1362-hcd.c:1333: error: `hep' undeclared (first use in this function)
drivers/usb/host/isp1362-hcd.c:1334: error: `mem_flags' undeclared (first use in this function)
drivers/usb/host/isp1362-hcd.c:1341: warning: implicit declaration of function `hc_is_running'
drivers/usb/host/isp1362-hcd.c: in function `isp1362_mem_config':
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':
drivers/usb/host/isp1362-hcd.c:2776: error: `hc_state_running' 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' specified in initializer
drivers/usb/host/isp1362-hcd.c:2819: error: unknown field `bus_resume' specified in initializer
drivers/usb/host/isp1362-hcd.c: in function `isp1362_remove':
drivers/usb/host/isp1362-hcd.c:2828: warning: implicit declaration of function `platform_get_drvdata'
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'
drivers/usb/host/isp1362-hcd.c: in function `isp1362_probe':
drivers/usb/host/isp1362-hcd.c:2927: error: too many arguments to function `usb_create_hcd'
drivers/usb/host/isp1362-hcd.c:2932: error: structure has no member named `rsrc_start'
drivers/usb/host/isp1362-hcd.c:2958: warning: implicit declaration of function `usb_add_hcd'
drivers/usb/host/isp1362-hcd.c: at top level:
drivers/usb/host/isp1362-hcd.c:3043: error: variable `isp1362_driver' has initializer but incomplete type
drivers/usb/host/isp1362-hcd.c:3044: error: unknown field `probe' 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')
drivers/usb/host/isp1362-hcd.c:3045: error: unknown field `remove' 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')
drivers/usb/host/isp1362-hcd.c:3047: error: unknown field `suspend' 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')
drivers/usb/host/isp1362-hcd.c:3048: error: unknown field `resume' 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')
drivers/usb/host/isp1362-hcd.c:3049: error: unknown field `driver' 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')
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')
drivers/usb/host/isp1362-hcd.c: in function `isp1362_init':
drivers/usb/host/isp1362-hcd.c:3063: warning: implicit declaration of function `platform_driver_register'
drivers/usb/host/isp1362-hcd.c: in function `isp1362_cleanup':
drivers/usb/host/isp1362-hcd.c:3070: warning: implicit declaration of function `platform_driver_unregister'
drivers/usb/host/isp1362-hcd.c: at top level:
drivers/usb/host/isp1362-hcd.c:3043: error: storage size of `isp1362_driver' isn't known
drivers/usb/host/isp1362-hcd.c:1581: warning: 'isp1362_bus_suspend' declared `static' 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 --- Quote End ---
I clean my work like as hippo mentioned in this topic:
http://forum.niosforum.com/forum/index.php?showtopic=3706 (
http://forum.niosforum.com/forum/index.php?showtopic=3706)
<div class='quotetop'>QUOTE </div>
--- Quote Start ---
# remove old linux source
rm -rf ~/linux-2.6.x ~/mysvn/2.6.11-uc0# kernel 2.6.11-uc0 source ported by microtronix
cp -a ~/download/mx140/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x ~
cd ~/linux-2.6.x
patch -p0 <~/download/kernel.diff
cp ~/download/kernel.config ~/linux-2.6.x/.config
patch -p0 <~/download/isp1362.diff[/b]
--- Quote End ---
Need I update my kernel or how to solve ?
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14572)</div>
[/b]
--- Quote End ---
These error come from the difference of data structures and APIs between 2.6.11-uc0 and 2.6.16.1 .
Please switch back to your previous thread, and switch back to 2.6.16.1 kernel.
http://forum.niosforum.com/forum/index.php?showtopic=3706 (
http://forum.niosforum.com/forum/index.php?showtopic=3706)
jay_1025 is also working on this driver, maybe you can help each other.