Hi all,
I was playing around with some USB gadgets that I'm working on today when my
host exploded with this BUG:
[ 863.013018] usb 1-4: PocketPC PDA converter now attached to ttyUSB0
[ 872.706790] drivers/usb/serial/ipaq.c: ipaq_open - failed doing control urb,
error -32
[ 875.115297]
Hi all,
Over the past few years, handhelds.org has been maintaining a small gadget
inside of its own tree called g_char. g_char was spawned in the days
before g_serial, as a response to the new USB gadget API's replacement of
the old way of doing things (usb_char talking to gadget controller
Here are a few comments, mixed in with your code.
Thanks!
#define DBUFMAX 65536
This is pretty big for a kernel buffer. You ought to be able to
use something smaller.
I agree. I dropped it to 8k, which is a nicer size -- It gives me about
seven YMODEM-1k packets.
It's not clear that these
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Pekka Sarnila wrote:
|
|
| Joshua Wise wrote:
|
|
| Windows feeds us what looks like eight axes: X, Y, Z, Rx, Ry, Rz,
| rglSlider[0], and rglSlider[1]. We map those all right onto X-Plane
| axes. In terms of buttons, windows feeds us four possible POV
, not
limit to 256bytes) when we detect that we're talking to Linux As Bootloader.
thanks
joshua
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQFAiZaFPn9tWOqA4LMRAv0fAJ9ai8OR2TwHykxg32PL9PD8puosbQCgjAV0
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Care to make up a patch?
Ah, -ENOPATCH. If I get a chance later tonight I'll do it.
jw
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux
an official DID in their VID range, but
until then, our VID will be 0x (experimental).
joshua
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I akilled [EMAIL PROTECTED] by mistake
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux
]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I akilled [EMAIL PROTECTED] by mistake
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE
, capitals. It must be important; I'll get right on it.
/joshua
Didn't like my answer? Ask a better question next time.
http://www.catb.org/~esr/faqs/smart-questions.html
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I akilled [EMAIL PROTECTED] by mistake
., All Rights Reserved
Oh? News for you. Anything you send by email? Anyone's gonna copy it.
/joshua
(Don't like my response? Send a better question next time, namely, not one
flaming me.)
--- Joshua Wise [EMAIL PROTECTED] wrote:
PS: Please don't top-post. It makes it really difficult
of the archive for usblcd returned nothing, but there were
some hits on linux-usb-devel.
Ah, research in advance is greatly appreciated. :) No trouble at all.
Thanks in advance
-Henry Culver
-Culver Consulting
[EMAIL PROTECTED]
/j
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I akilled [EMAIL PROTECTED] by mistake
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/lX4EPn9tWOqA4LMRAkmpAKCgNcpFQRTqiXdzhw4UiTZqVaF1oACglmtu
c7e2SVIzpv29kj1A9afd6MU=
=NM4Q
-END PGP SIGNATURE
(even with DMA!), at least on a PXA255.
Aiee, heh...
Anyway, handhelds.org CVS seems to work. Well, except for that, uh, issue
where, uh, OUT packets in bulk just stopped working. But I'll debug that
Soon. :)
- Dave
/joshua
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote
with
IPRness.
- Dave
/j
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I akilled [EMAIL PROTECTED] by mistake
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/lDKFPn9tWOqA4LMRAs5EAJ9xg1+1rTE4ITojBFfDP8whxhQaAACaA7W7
dnp9JivIuESysb6xEuivT/0
about USB in it. :)
Anton
/j
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I akilled [EMAIL PROTECTED] by mistake
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/lHr+Pn9tWOqA4LMRAnJcAJwKKkapsW14MRfjxmcxqV+fejiODgCcCSFp
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Monday 20 October 2003 12:14 am, Joshua Wise wrote:
Anyway, handhelds.org CVS seems to work. Well, except for that, uh, issue
where, uh, OUT packets in bulk just stopped working. But I'll debug that
Soon. :)
Correction. They work every other
!
7udc: SETUP 80.06 v0100 i l0012
Enterring IN phase.
GChar_setup: 6
7udc: ep0 queue req c3ffe4e0, len 18 buf c3ed9980
7udc: ep0in 16 bytes 2 left c3ffe4e0
7udc: ep0start IN, 00/00
7udc: irq 00.01
7gchar: setup complete -- 0, 16/18
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
(Others on list: Please ignore.)
On Friday 17 October 2003 10:59 am, you wrote:
Joshua Wise wrote:
(Pre-note: I cannot seem to send mail to David privately. If this message
gets through, please fix your mail server :)
Errm, what's the failure
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I akilled [EMAIL PROTECTED] by mistake
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/kGQIPn9tWOqA4LMRAhILAJ9Zp8UX1JRy/MN309AuMXkksszfDgCgrijj
9SSqcHrSrilv9ePiiM4GfaQ=
=9/IS
-END PGP SIGNATURE
and the UDC hasn't gotten the full packet yet.)
However: I _have_ been getting half-packets (16 out of 18 bytes), so I will
have to look into that.
/j
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I akilled [EMAIL PROTECTED] by mistake
-BEGIN PGP
that fixed the prematureness. That's of course a bad hack,
which I would like to avoid. I'll try adding better support for SETUP packets
that come when we're not expecting them. However, now, for whatever reason,
I'm not seeing the set-config. Thoughts?
- Dave
/j
- --
Joshua Wise
it (or at least not
testing it on all possible hardware configurations, even the most obscure :P)
but I couldn't do it any better :P
- Dave
/j
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I akilled [EMAIL PROTECTED] by mistake
-BEGIN PGP SIGNATURE-
Version
from
ttyUSB0
usbserial.c: return_serial
hub.c: USB new device connect on bus1/1/2, assigned device number 31
usb_control/bulk_msg: timeout
usb_control/bulk_msg: timeout
Y no mas (and no more) from the iPAQ.
/j
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I
a few minutes now, but I don't think that's a
gadget issue. (probably me forgetting to disable some device before jumping
into the kernel.)
- Dave
/j
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I akilled [EMAIL PROTECTED] by mistake
-BEGIN PGP SIGNATURE
notified.)
Thoughts?
/j
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I akilled [EMAIL PROTECTED] by mistake
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/iIWyPn9tWOqA4LMRAjPfAJ49WtqNcHelUbNeLJQAg0l65js/tgCgqNip
Xq93zOMZHnIVb6RbSctyykQ
to see get connect/disconnect indications.
Yeah, I hacked that in the hh.org tree to support multiple platforms. (ie
machine_is_)
- Dave
/j
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I akilled [EMAIL PROTECTED] by mistake
-BEGIN PGP SIGNATURE
not the problem I'm seeing - the problem I'm seeing
is that even when the USB cable is manually disconnected and reconnected, my
gadget driver does STILL not detect that it's been connected. Again,
thoughts?
- Dave
/j
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote
~joshua
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I akilled [EMAIL PROTECTED] by mistake
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/U/NTPn9tWOqA4LMRAjmqAJwN5PW7WWr9+n88VED6F30GugpJ1gCeJOhB
dNpjOU4LuuXeuut5GnKinhM=
=aHlR
-END PGP
big.
-- Al
Thanks,
~jwise
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I akilled [EMAIL PROTECTED] by mistake
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/VOnCPn9tWOqA4LMRApe8AJ43hOYUx1Yl0Kr3IZp+5OkMVYtT3gCeN1tg
compatibility also.
- Dave
~jwise
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I akilled [EMAIL PROTECTED] by mistake
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/VRdePn9tWOqA4LMRAipNAJ4+0oejgLzMQPzRFvZdXPhGDtM+KwCeJ8Xk
kDB1wDMlY
++~jwise;
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I akilled [EMAIL PROTECTED] by mistake
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/VR0RPn9tWOqA4LMRAmi2AJ9euNdVEHeSrMDdsZvlhMC0vDHPTQCffQUx
QCsI3d1xuTtgxBWCMPc79ZA=
=yTPX
-END PGP
... :(
We certainly should have a serial gadget.
In progress. Progress is in the handhelds.org CVS repository, as 'char.c'.
- Dave
~joshua
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I akilled [EMAIL PROTECTED] by mistake
-BEGIN PGP SIGNATURE-
Version
to provide (basically, something that can be accessed like a serial port on
both sides.)
Thanks!
~joshua
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I akilled [EMAIL PROTECTED] by mistake
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE
processor_id
c00c4dd4 cr_alignment
c00086cc do_initcalls
c00d6a34 num_physpages
... the rest is likely irrelevant. there is no backtrace - no frame pointer in
this kernel. code: e3a0220f e3c33b02 e5813004 e580c0dc (e5923040)
And then the old kernel panic: attempted to kill init.
HTH,
Joshua Wise
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
after all that gadget debugging... user error. I copied and pasted the lubbock
block of #ifdefs from pxa2xx.h and failed to nuke the LED code. sigh. I can
be an idiot at times.
~joshua
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
, is an incredibly stupid thing. Don't do
that.)
But this is getting a little offtopic. **shrugs and begins poking kernel 2.6
with sharp objects**
greg k-h
~joshua
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I akilled [EMAIL PROTECTED] by mistake
-BEGIN
camera? What does it behave as in Windows? (Have you tested it in Windows?)
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I akilled [EMAIL PROTECTED] by mistake
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE
machine overnight.
`joshua
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I akilled [EMAIL PROTECTED] by mistake
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE/AbMWPn9tWOqA4LMRAt77AJ9e90Bd3bDvx8075yI2uh6dFPBecgCeLhi9
mcUp1qMDNZvV5m2SkBNrpAw
adequate protection to prevent something
from crashing the system like that...
- --
Joshua Wise | www.joshuawise.com
GPG Key | 0xEA80E0B3
Quote | lilo I akilled [EMAIL PROTECTED] by mistake
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi all,
I'm not certain if this is the right place to report this, but I am developing
a USB client driver for the iPAQ's opensource bootldr using the ipaq.c host
driver, and have found that if the device is removed while an URB is being
sent, the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
It's not very useful unless you include ksymoops output... can
you get that, and resend along with kernel information (like the
version etc). It'd also be good to have objdump -dr output
for the relevant module, to help track down the problem.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
I am writing the USB client code for the handhelds.org iPAQ opensource
bootloader. I have been having problems with getting more than one byte per
packet to the device.
This messages appear in dmesg when the problem happens:
usb-uhci.c:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
*baff!!* Just sent this to myself, not checking the To: field. Good job me. :)
Anyway, here's another little piece:
What does this mean? I am unfamiliar with UHCI internals. Sometimes it's
also status 2.
Er, status 2 only occurs when the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
IOC is Interrupt On Complete. That means something completed.
Ok, but why would the ERROR bit be set? (Is there some way to get it to be
more specific?) I find it interesting that it's completing... On the iPAQ
side, it can only seem to echo the
44 matches
Mail list logo