-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 (Pre-note: I cannot seem to send mail to David privately. If this message gets through, please fix your mail server :)
I can no longer get pxa2xx-udc to work. Failure mode seems to be that the handheld can do IN, but OUT seems not to get through to the gadget driver. Verified both with g_char and g_serial. Note how callbacks stop happening in this dmesg from the PC side. usb.c: USB device 30 (vend/prod 0x5f9/0xffff) is not claimed by any active driver. usbserial.c: USB Serial deregistering driver Linux As Bootloader device usbserial.c: USB Serial support registered for Linux As Bootloader device usbserial.c: descriptor matches usbserial.c: found bulk in usbserial.c: found bulk out usbserial.c: Linux As Bootloader device converter detected usbserial.c: get_free_serial 1 usbserial.c: get_free_serial - minor base = 0 ipaqboot.c: ipaq_startup usb.c: selecting invalid configuration 1 usbserial.c: usb_serial_probe - setting up 1 port structures for this device usbserial.c: Linux As Bootloader device converter now attached to ttyUSB0 (or usb/tts/0 for devfs) ipaqboot.c: USB iPAQ (PocketPC/hh.org bootldr) driver v0.3 usbserial.c: serial_open ipaqboot.c: ipaq_open - port 0 usbserial.c: serial_ioctl - port 0, cmd 0x5401 usbserial.c: serial_ioctl - port 0, cmd 0x540b usbserial.c: serial_ioctl - port 0, cmd 0x5402 usbserial.c: serial_set_termios - port 0 usbserial.c: serial_ioctl - port 0, cmd 0x5402 usbserial.c: serial_set_termios - port 0 usbserial.c: serial_ioctl - port 0, cmd 0x5403 ipaqboot.c: ipaq_chars_in_buffer - queuelen 0 usbserial.c: serial_set_termios - port 0 usbserial.c: serial_write - port 0, 1 byte(s) ipaqboot.c: ipaq_write - port 0 ipaqboot.c: ipaq_write - length = 1, data = 0d ipaqboot.c: ipaq_write_bulk - length = 1, data = 0d ipaqboot.c: ipaq_write_bulk_callback - port 0 usbserial.c: port_softint - port 0 usbserial.c: serial_write - port 0, 1 byte(s) ipaqboot.c: ipaq_write - port 0 ipaqboot.c: ipaq_write - length = 1, data = 0d ipaqboot.c: ipaq_write_bulk - length = 1, data = 0d usbserial.c: serial_ioctl - port 0, cmd 0x5403 ipaqboot.c: ipaq_chars_in_buffer - queuelen 0 usbserial.c: serial_set_termios - port 0 usbserial.c: serial_close - port 0 ipaqboot.c: ipaq_close - port 0 ipaqboot.c: ipaq_write_bulk_callback - port 0 ipaqboot.c: ipaq_write_bulk_callback - nonzero write bulk status received: -2 usbserial.c: port_softint - port 0 ipaqboot.c: ipaq_read_bulk_callback - port 0 ipaqboot.c: ipaq_read_bulk_callback - nonzero read bulk status received: -2 usbserial.c: serial_open ipaqboot.c: ipaq_open - port 0 usbserial.c: serial_ioctl - port 0, cmd 0x5401 usbserial.c: serial_ioctl - port 0, cmd 0x540b usbserial.c: serial_ioctl - port 0, cmd 0x5402 usbserial.c: serial_set_termios - port 0 usbserial.c: serial_ioctl - port 0, cmd 0x5402 usbserial.c: serial_set_termios - port 0 usbserial.c: serial_ioctl - port 0, cmd 0x5403 ipaqboot.c: ipaq_chars_in_buffer - queuelen 0 usbserial.c: serial_set_termios - port 0 usbserial.c: serial_write - port 0, 1 byte(s) ipaqboot.c: ipaq_write - port 0 ipaqboot.c: ipaq_write - length = 1, data = 61 ipaqboot.c: ipaq_write_bulk - length = 1, data = 61 ipaqboot.c: ipaq_write_bulk_callback - port 0 usbserial.c: port_softint - port 0 usbserial.c: serial_write - port 0, 1 byte(s) ipaqboot.c: ipaq_write - port 0 ipaqboot.c: ipaq_write - length = 1, data = 27 ipaqboot.c: ipaq_write_bulk - length = 1, data = 27 usbserial.c: serial_write - port 0, 1 byte(s) ipaqboot.c: ipaq_write - port 0 ipaqboot.c: ipaq_write - length = 1, data = 73 ipaqboot.c: ipaq_write_bulk - length = 1, data = 73 usbserial.c: serial_write - port 0, 1 byte(s) ipaqboot.c: ipaq_write - port 0 ipaqboot.c: ipaq_write - length = 1, data = 64 ipaqboot.c: ipaq_write_bulk - length = 1, data = 64 usbserial.c: serial_write - port 0, 1 byte(s) ipaqboot.c: ipaq_write - port 0 ipaqboot.c: ipaq_write - length = 1, data = 66 ipaqboot.c: ipaq_write_bulk - length = 1, data = 66 usbserial.c: serial_write - port 0, 1 byte(s) ipaqboot.c: ipaq_write - port 0 ipaqboot.c: ipaq_write - length = 1, data = 3b ipaqboot.c: ipaq_write_bulk - length = 1, data = 3b usbserial.c: serial_write - port 0, 1 byte(s) ipaqboot.c: ipaq_write - port 0 ipaqboot.c: ipaq_write - length = 1, data = 6a ipaqboot.c: ipaq_write_bulk - length = 1, data = 6a usbserial.c: serial_write - port 0, 1 byte(s) For completeness, here are the iPAQ's boot messages. boot> armboot fs:/zImage ARMBoot: [EMAIL PROTECTED](00080000)(H3XXX boot firmware) ARMBoot: [EMAIL PROTECTED](03F40000)(H3XXX root jffs2) ARMBoot: [EMAIL PROTECTED](00040000)(asset) ARMBooting NOW: Cmdline mtdparts=ipaq:[EMAIL PROTECTED](H3XXX boot firmware),[EMAIL PROTECTED](H3XXX root jffs2),[EMAIL PROTECTED](asset) rootfstype=jffsc armboot: Relocating A3DC0000 -> A0008000 (10000 bytes) armboot: Relocating A3DB0000 -> A0018000 (10000 bytes) armboot: Relocating A3DA0000 -> A0028000 (10000 bytes) armboot: Relocating A3D90000 -> A0038000 (10000 bytes) armboot: Relocating A3D80000 -> A0048000 (10000 bytes) armboot: Relocating A3D70000 -> A0058000 (10000 bytes) armboot: Relocating A3D60000 -> A0068000 (10000 bytes) armboot: Relocating A3D50000 -> A0078000 (0ae94 bytes) armboot: Relocations complete. armboot: Cleaning cache <0>armboot: About to jump into assembler loader routine. Heads up!!! BUFF {00040010 00004854 0000432D }00040010 A0008414 D STKP A0002000 NRLC Uncompressing Linux................................... done, booting the kernel. Linux version 2.6.0-test7-rmk1-hh0 ([EMAIL PROTECTED]) (gcc version 3.3.2 20030820 (prerelease)) #288 Thu Oct 16 19:22:04 EDT 2003 CPU: XScale-PXA250 [69052903] revision 3 (ARMv5TE) CPU: D undefined 5 cache CPU: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets CPU: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets Machine: HP iPAQ H3900 Memory policy: ECC disabled, Data cache write back <6>Memory clock: 99.53MHz (*27) <6>Run Mode clock: 199.07MHz (*2) <6>Turbo Mode clock: 398.13MHz (*2.0, active) On node 0 totalpages: 16384 DMA zone: 16384 pages, LIFO batch:4 Normal zone: 0 pages, LIFO batch:1 HighMem zone: 0 pages, LIFO batch:1 Building zonelist for node : 0 Kernel command line: video=pxafb:bpp:16 console=tty0 <7>Relocating machine vectors to 0xffff0000 <3>Trying to install chip for IRQ104 <3>Trying to install chip for IRQ105 <3>Trying to install chip for IRQ106 <3>Trying to install chip for IRQ107 <3>Trying to install chip for IRQ108 <3>Trying to install chip for IRQ109 <3>Trying to install chip for IRQ110 <3>Trying to install chip for IRQ111 <3>Trying to install chip for IRQ112 <3>Trying to install chip for IRQ113 <3>Trying to install chip for IRQ114 <3>Trying to install chip for IRQ115 <3>Trying to install chip for IRQ116 <3>Trying to install chip for IRQ117 <3>Setting type of unclaimed IRQ10 from PID hash table entries: 512 (order 9: 4096 bytes) Console: colour dummy device 80x30 <6>Memory: 64MB = 64MB total <5>Memory: 63664KB available (851K code, 164K data, 64K init) Calibrating delay loop... 397.31 BogoMIPS <6>Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) <6>CPU: Testing write buffer coherency: ok POSIX conformance testing by UNIFIX <6>Linux NoNET1.0 for Linux 2.6 <6>pxa2xx_udc: version alpha (15-Oct-2003) <7>udc: disabled OUT dma <6>pxa2xx_udc: IRQ 4 (!cfr) (broken dma-out) (full dma) <7>udc: host EP0_IDLE, uicr FF.FF, usir 00.00, ufnr 40.00 <7>udc: udccr A0 = rem srm <7>udc: no gadget driver bound About to attempt to initialize pxafb Initialized pxafb <6>devfs: v1.22 (20021013) Richard Gooch ([EMAIL PROTECTED]) <6>devfs: boot_options: 0x0 <6>JFFS2 version 2.1. (C) 2001, 2002 Red Hat, Inc. Console: switching to colour frame buffer device 40x30 ttyS0 at MMIO 0x40100000 (irq = 15) is a FFUART Console: switching to colour frame buffer device 40x30 Using noop io scheduler <5>iPAQ flash: probing 32-bit flash bus, window=c4851000 with CFI. <7>IPAQ flash bank 1: Found an alias at 0x2000000 for the chip at 0x0 <5>cfi_cmdset_0001: Erase suspend on write enabled <7>0: offset=0x0,size=0x40000,blocks=128 <6>Using buffer write method <5>iPAQ flash: found 33554432 bytes <5>iPAQ flash: probing 32-bit flash bus, window=c8852000 with CFI. <4>CFI: Found no IPAQ flash bank 2 device at location zero <5>iPAQ flash: probing 32-bit flash bus, window=c8852000 with JEDEC. <6>Search for id:(90 90) interleave(2) type(2) <6>Search for id:(90 90) interleave(2) type(2) <6>Search for id:(90 90) interleave(2) type(2) <6>Search for id:(a3 cf) interleave(2) type(1) <6>Search for id:(00 00) interleave(2) type(1) <6>Search for id:(90 90) interleave(2) type(1) <6>Search for id:(9090 9090) interleave(4) type(2) <6>Search for id:(9090 9090) interleave(4) type(2) <6>Search for id:(9090 9090) interleave(4) type(2) <6>Search for id:(90 90) interleave(4) type(1) <6>Search for id:(90 90) interleave(4) type(1) <6>Search for id:(90 90) interleave(4) type(1) <4>JEDEC: Found no IPAQ flash bank 2 device at location zero <5>iPAQ flash: failed to find flash. <5>Concatenating MTD devices: <5>(0): "IPAQ flash bank 1" <5>into device "ipaq" <5>cmdlinepart partition parsing not available <5>RedBoot partition parsing not available <5>Using static partition definition <5>Creating 3 MTD partitions on "ipaq": <5>0x00000000-0x00080000 : "H3XXX boot firmware" <5>0x00080000-0x01fc0000 : "H3XXX root jffs2" <5>0x01fc0000-0x02000000 : "asset" <6>gs_bind: Gadget Serial v0.1 bound <7>udc: registered gadget driver 'g_serial' Enabling LCD <7>udc: USB reset done, gadget driver 'g_serial' <7>udc: host EP0_IDLE, uicr FF.FE, usir 00.00, ufnr 40.00 <7>udc: USB suspend <7>udc: udccr 03 = uda ude <7>udc: ep0 driver 'g_serial' <7>udc: udccs0 EP0_IDLE 00 = <7>udc: ep0 IN 0/0, OUT 0/0 <6>gs_module_init: Gadget Serial v0.1 loaded <5>lab: loaded command dummy <5>lab: loaded command dummymf <5>lab: loaded command [dummymf]foo <5>lab: loaded command [dummyso]bar <5>lab: loaded command [dummyso]baz <7>udc: USB resume <7>udc: USB reset start <6>gs_disconnect: Gadget Serial disconnected <7>udc: USB reset done, gadget driver 'g_serial' <5>lab: loaded command dmesg <5>lab: loaded command devmem2 <5>lab: loaded command insmod <5>lab: loaded command rmmod <5>lab: loaded command copy <7>udc: SETUP 80.06 v0100 i0000 l0008 <7>udc: SETUP 80.06 v0100 i0000 l0012 <5>lab: loaded command unlink <7>udc: SETUP 80.06 v0200 i0000 l0008 <7>udc: SETUP 80.06 v0200 i0000 l0020 <5>lab: loaded command rm <7>udc: SETUP 00.09 v0002 i0000 l0000 <7>udc: ep11in-bulk using dma8 <7>udc: enabled ep11in-bulk <7>udc: enabled ep12out-bulk <6>gs_set_config: Gadget Serial configured for full speed <7>udc: ep0 config ack raced <7>udc: SETUP 00.00 v0000 i0000 l0000 <3>gs_setup: unknown request, type=00, request=00, value=0000, index=0000, length=0 <7>udc: protocol STALL, 81 err -95 <5>lab: loaded copy source [ymodem] <5>lab: loaded copy source [flash] <5>lab: loaded copy destination [flash] <5>lab: loaded copy destination [dummy] <5>lab: loaded copy source [fs] <5>lab: loaded copy destination [fs] <5>lab: loaded unlink device [fs] <5>lab: loaded command mount <5>lab: loaded command umount <5>lab: loaded command mkdir <5>lab: loaded command armboot <6>Freeing init memory: 64K <6>lab: Starting LAB [Linux As Bootloader] <6>lab: Attempting to connect using USB... <6>lab: LAB is running. CTRL-A Z for help |115200 8N1 | NOR | Minicom 2.00.0 | VT102 | Offline After disconnecting and reconnecting the USB cable: ipaqboot.c: ipaq_shutdown usbserial.c: Linux As Bootloader device converter now disconnected 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 akilled [EMAIL PROTECTED] by mistake -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/jy3NPn9tWOqA4LMRAkBqAJsHLCCgxc4HITDHogzJVLow3wLrKQCgneFs UpqIxZi1Paz7SvYKFjHm0IM= =45xX -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel