2008-04-08 11:37:11 compiler error with ISP1760 usb host
Michiel Verschueren (BELGIUM)
Message: 53850 Hi,
I've tried to compile uClinux with support for the ISP 1760 enabled, but I run into the following errors when compiling:
In file included from drivers/usb/host/pehcd/host/pehci.c:118:
drivers/usb/host/pehcd/host/qtdptd.c: In function ‘phci_hcd_qh_link_async’:
drivers/usb/host/pehcd/host/qtdptd.c:590: warning: unused variable ‘td_ptd_map’
drivers/usb/host/pehcd/host/qtdptd.c:589: warning: unused variable ‘ptd_map_buff’
drivers/usb/host/pehcd/host/qtdptd.c: In function ‘phci_hcd_qha_from_qtd’:
drivers/usb/host/pehcd/host/qtdptd.c:1212: warning: unused variable ‘cerr’
drivers/usb/host/pehcd/host/pehci.c: In function ‘pehci_hcd_td_ptd_submit_urb’:
drivers/usb/host/pehcd/host/pehci.c:293: warning: passing argument 4 of ‘isp1761_mem_write’ makes pointer from integer without a cast
drivers/usb/host/pehcd/host/pehci.c: In function ‘pehci_hcd_urb_complete’:
drivers/usb/host/pehcd/host/pehci.c:773: error: too few arguments to function ‘usb_hcd_giveback_urb’
drivers/usb/host/pehcd/host/pehci.c: In function ‘pehci_hcd_atl_worker’:
drivers/usb/host/pehcd/host/pehci.c:1998: warning: label ‘schedule’ defined but not used
drivers/usb/host/pehcd/host/pehci.c: At top level:
drivers/usb/host/pehcd/host/pehci.c:3139: warning: initialization from incompatible pointer type
drivers/usb/host/pehcd/host/pehci.c:3140: warning: initialization from incompatible pointer type
make[6]: *** [drivers/usb/host/pehcd/host/pehci.o] Error 1
make[5]: *** [drivers/usb/host/pehcd/host] Error 2
make[4]: *** [drivers/usb/host/pehcd] Error 2
make[3]: *** [drivers/usb/host] Error 2
make[2]: *** [drivers/usb] Error 2
make[1]: *** [drivers] Error 2
I'm using uClinux 2008R1-RC8 (revision 6419), and version 2008R1-RC7 of the Toolchain.
Thanks in advance
QuoteReplyEditDelete
2008-04-08 12:17:33 Re: compiler error with ISP1760 usb host
Michael Hennerich (GERMANY)
Message: 53853 Are you really sure that you use the 2008R1 release?
For me 2008R1 compiles and works.
This failure is a known issue only on svn trunk.
-Michael
QuoteReplyEditDelete
2008-04-09 03:12:11 Re: compiler error with ISP1760 usb host
Michiel Verschueren (BELGIUM)
Message: 53877 Hi,
thanks for your quick reply.
I am sure I'm using 2008R1; I've checked out revision 6419 yesterday. Can you let me know which revision (or which RC) you are using?
Just to make sure: do I need anything else than the Toolchain and the uclinux-dist?
QuoteReplyEditDelete
2008-04-09 03:29:15 Re: compiler error with ISP1760 usb host
Michiel Verschueren (BELGIUM)
Message: 53879 Also, to make sure, what exactly should I use at the command line to check out the 2008R1 release?
I've been using the following:
svn checkout svn://firewall-sources.blackfin.uclinux.org:80/svn/uclinux-dist/trunk -r 6419 2008R1-RC8
Is this correct?
QuoteReplyEditDelete
2008-04-09 03:34:17 Re: compiler error with ISP1760 usb host
Michael Hennerich (GERMANY)
Message: 53880 No - you checkout trunk ...
USE:
svn checkout svn://firewall-sources.blackfin.uclinux.org:80/svn/uclinux-dist/branches/2008R1 2008R1-RC8
-Michael
QuoteReplyEditDelete
2008-04-09 03:38:25 Re: compiler error with ISP1760 usb host
Michael Hennerich (GERMANY)
Message: 53881 See also here:
http://docs.blackfin.uclinux.org/doku.php?id=developing_with_blackfin_live_sources&s[]=branches
-Michael
QuoteReplyEditDelete
2008-04-10 03:31:04 Re: compiler error with ISP1760 usb host
Michiel Verschueren (BELGIUM)
Message: 53984 I've been able to compile without any problems now.
Apparently I've been checking out the wrong versions of U-Boot and the Toolchain too, so thanks for your help.
QuoteReplyEditDelete
2008-04-15 09:06:20 Re: compiler error with ISP1760 usb host
Michiel Verschueren (BELGIUM)
Message: 54274 Hi,
now that I can compile uClinux with isp1760 support, I'm having trouble loading the driver when booting uClinux.
I get the following messages:
drivers/usb/host/pehcd/hal/hal_pxa.c: isp1761_register_driver(drv=0014bd18)
drivers/usb/host/pehcd/host/pehci.c: Host Driver has not been Registered with errors : -19
drivers/usb/host/pehcd/hal/hal_pxa.c: pid 8210, vid 8210
drivers/usb/host/pehcd/hal/hal_pxa.c: controller address 00144774
I have been altering the options in the build configuration, but that didn't help me. My current configuration looks like this (in the config menu):
<*> Support for Host-side USB
[*] USB verbose debug messages
--- Miscellaneous USB options
[ ] USB device filesystem
[ ] USB device class-devices (DEPRECATED)
[ ] Dynamic USB minor allocation (EXPERIMENTAL)
[*] Rely on OTG Targeted Peripherals List
[ ] Disable external hubs
--- USB Host Controller Drivers │ │
< > ISP116X HCD support
< > ISP1362 HCD support
<*> ISP1760 HCD support
< > SL811HS HCD support
(options below this are left blank).
I have enabled 16-bit packing for the asynchronous interface that the isp1760 is connected to. I think this explains the "pid 8210, vid 8210" output, but from the driver I have understood that bit packing should be enabled. Also, without bit packing, I get a "scratch register mismatch" warning from the driver.
I don't think this is a hardware problem, as I can access the chip properly from U-Boot.
Also, if this were a hardware problem, I think the driver would report a "scratch register mismatch" and not the "controller address" (see the isp1761_probe function in hal_pxa.c).
Any help would be welcome.
QuoteReplyEditDelete
2008-04-15 10:00:05 Re: compiler error with ISP1760 usb host
Michael Hennerich (GERMANY)
Message: 54276 The driver only works when build as a module:
Then do:
#modprobe hal_pxa
#modprobe pehci
-Michael
QuoteReplyEditDelete
2008-04-15 11:41:41 Re: compiler error with ISP1760 usb host
Michiel Verschueren (BELGIUM)
Message: 54283 Hi Michael,
thanks for your reply, but I'm afraid I don't know how to build this driver as a module. I've been looking in the documentation, but I have not found anything useful.
I have executed "make modules" and "make modules_install", after which I expected to find a hal_pxa.ko and a pehci.ko file somewhere, but obviously I didn't.
What am I forgetting here?
QuoteReplyEditDelete
2008-04-15 11:53:59 Re: compiler error with ISP1760 usb host
Michael Hennerich (GERMANY)
Message: 54285 <M> Support for Host-side USB
[*] USB verbose debug messages
--- Miscellaneous USB options
[ ] USB device filesystem
[ ] USB device class-devices (DEPRECATED)
[ ] Dynamic USB minor allocation (EXPERIMENTAL)
[*] Rely on OTG Targeted Peripherals List
[ ] Disable external hubs
--- USB Host Controller Drivers │ │
< > ISP116X HCD support
< > ISP1362 HCD support
<M> ISP1760 HCD support
< > SL811HS HCD support
Simply make your that you change <*> to <M>.
(hit space bar twice)
-Michael