OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: Lurker on May 30, 2005, 05:52:52 pm

Title: Usb Host On Oz 3.5.3 For C3000
Post by: Lurker on May 30, 2005, 05:52:52 pm
The CXK specific ReleaseNotes (http://openzaurus.org/official/unstable/3.5.3/ReleaseNotes.CXK) say that "USB not completely working yet". What exactly does this mean? Is it just buggy, or incomplete? Is hotplug functioning, or will I have to manually initialize USB devices?
There are many USB-related packages in the Spitz and Akita feeds, all of which I have installed. Yet neither the mouse, keyboard, USB card readers or Bluetooth dongle will work. The lights on the mouse and card readers do not even come on.
What modules need to be loaded for USB support? The only USB-related modules active on my C3000 are usbcore and usbdcore, and these seem to be for Zaurus-as-device functionality.
Title: Usb Host On Oz 3.5.3 For C3000
Post by: lardman on May 31, 2005, 04:53:56 am
What does dmesg show?

I'd guess you need a driver for the usb chip-set (you already have usbcore which is the other requirement). Take a look in /lib/modules/`uname -r`/kernel/drivers/usb/host/ (iirc), unless it's compiled in of course...


Si
Title: Usb Host On Oz 3.5.3 For C3000
Post by: Lurker on May 31, 2005, 12:19:09 pm
dmesg does not contain all the info that I see scrolling by quickly at boot. Setting the syslog buffer to a higher value in /etc/syslog.conf does not work. And there is no messages log in /dev/log. I am not a technical user, though, so that is all I knew to try. The best I could do was remove the SD and WiFi card to keep those device configuration messages from filling the log.
The following is everything USB-related in dmesg:

Code: [Select]
usbdcore: usbdcore 0.1 035 2002-06-12 20:00 (dbg="")
net_fd 0.1 035 2002-06-12 20:00 (dbg="",alwaysup=0,OUT=64,IN=64)
vendorID: 4dd productID: 9031
pxa27x_bi 0.1-alpha 035 2002-06-12 20:00 (dbg="")
bi_modinit: call udc_startup_events
bi_device_event: call udc_enable
bi_device_event: call udc_all_interrupts
udc_connect: usb-device is not active
.....
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub


/lib/modules/`uname -r`/kernel/drivers/usb/host/ does not exist. Here is an ls of .../usb:

Code: [Select]
acm.o
device
hid.o
storage
usb-monitor.o
usb_ohci_pxa27x.o
usbcore.o
usbkbd.o
usbmouse.o
Title: Usb Host On Oz 3.5.3 For C3000
Post by: lardman on June 01, 2005, 05:11:57 am
Quote
Setting the syslog buffer to a higher value in /etc/syslog.conf does not work. And there is no messages log in /dev/log

Try running 'logread' in the terminal to see the output of syslogd/klogd.

Quote
Code: [Select]
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub

I seem to remember that this is what usbcore prints out, so it doesn't indicate that the Z has found the host driver (iirc).

Post the output of logread.


Si
Title: Usb Host On Oz 3.5.3 For C3000
Post by: Lurker on June 01, 2005, 03:27:00 pm
This is just after boot:

Quote
Apr 29 14:36:23 spitz syslog.info syslogd started: BusyBox v1.00 (2005.04.28-10:06+0000)
Apr 29 14:36:23 spitz user.notice kernel: klogd started: BusyBox v1.00 (2005.04.28-10:06+0000)
Apr 29 14:36:23 spitz user.warn kernel: Linux version 2.4.20-3.5.3-snapshot-20050505 (mickey@allanon.vanille.de) (gcc version 2.95.3 20010315 (release)) #1 Thu, 05 May 2005 20:01:38 +0200
Apr 29 14:36:23 spitz user.warn kernel: CPU: XScale-PXA270 revision 4
Apr 29 14:36:23 spitz user.warn kernel: Machine: SHARP Spitz
Apr 29 14:36:23 spitz user.warn kernel: Ignoring unrecognised tag 0x00000000
Apr 29 14:36:23 spitz user.info kernel: Turbo Mode clock : 416.00MHz (*2.0, active)
Apr 29 14:36:23 spitz user.info kernel: Run Mode clock   : 208.00MHz
Apr 29 14:36:23 spitz user.info kernel: System bus clock : 208.00MHz (1/1)
Apr 29 14:36:23 spitz user.info kernel: Memory clock     : 208.00MHz (1/1)
Apr 29 14:36:23 spitz user.info kernel: LCD clock        : 104.00MHz (1/2)
Apr 29 14:36:23 spitz user.warn kernel: Security risk: creating user accessible mapping for 0x08000000 at 0xf1000000
Apr 29 14:36:23 spitz user.warn kernel: On node 0 totalpages: 16384
Apr 29 14:36:23 spitz user.warn kernel: zone(0): 16384 pages.
Apr 29 14:36:23 spitz user.warn kernel: zone(1): 0 pages.
Apr 29 14:36:23 spitz user.warn kernel: zone(2): 0 pages.
Apr 29 14:36:23 spitz user.warn kernel: Kernel command line: console=tty1 root=/dev/mtdblock2 mtdparts=sharpsl-nand:7168k@0k(smf),5120k@7168k(root),-(home) jffs2_orphaned_inodes=delete RTC_RESET=1 EQUIPMENT=4 LOGOLANG=1 DEFYEAR=2005 LOGO=1 LAUNCH=q
Apr 29 14:36:23 spitz user.warn kernel: Console: colour dummy device 80x30
Apr 29 14:36:23 spitz user.warn kernel: Calibrating delay loop... 415.33 BogoMIPS
Apr 29 14:36:23 spitz user.info kernel: Memory: 64MB = 64MB total
Apr 29 14:36:23 spitz user.notice kernel: Memory: 57892KB available (2139K code, 562K data, 88K init)
Apr 29 14:36:23 spitz user.info kernel: Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
Apr 29 14:36:23 spitz user.info kernel: Inode cache hash table entries: 4096 (order: 3, 32768 bytes)
Apr 29 14:36:23 spitz user.warn kernel: Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
Apr 29 14:36:23 spitz user.warn kernel: Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Apr 29 14:36:23 spitz user.warn kernel: Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
Apr 29 14:36:23 spitz user.warn kernel: POSIX conformance testing by UNIFIX
Apr 29 14:36:23 spitz user.info kernel: Linux NET4.0 for Linux 2.4
Apr 29 14:36:23 spitz user.info kernel: Based upon Swansea University Computer Society NET3.039
Apr 29 14:36:23 spitz user.warn kernel: Initializing RT netlink socket
Apr 29 14:36:23 spitz user.warn kernel: RCSR = 8
Apr 29 14:36:23 spitz user.info kernel: apm: BIOS version 1.2 Flags 0x02 (Driver version 1.14)
Apr 29 14:36:23 spitz user.warn kernel: FCS : CCCR = 2000210
Apr 29 14:36:23 spitz user.warn kernel: enable_irq(120) unbalanced from c000c6f4
Apr 29 14:36:23 spitz user.warn kernel: batok installed
Apr 29 14:36:23 spitz user.info kernel: Using PXA250 frequency points.
Apr 29 14:36:23 spitz user.info kernel: Registering CPU frequency change support.
Apr 29 14:36:23 spitz user.info kernel: CPU clock: 416.000 MHz (99.000-400.000 MHz)
Apr 29 14:36:23 spitz user.warn kernel: Starting kswapd
Apr 29 14:36:23 spitz user.info kernel: Journalled Block Device driver loaded
Apr 29 14:36:23 spitz user.notice kernel: JFFS2 version 2.1. © 2001, 2002 Red Hat, Inc., designed by Axis Communications AB.
Apr 29 14:36:23 spitz user.warn kernel: Sharp SL-Series PXA fb driver initialized.
Apr 29 14:36:23 spitz user.warn kernel: reset resolution unkown => 480x640
Apr 29 14:36:23 spitz user.warn kernel: Console: switching to colour frame buffer device 80x30
Apr 29 14:36:23 spitz user.warn kernel: fb0: SHARPSL_PXAFB frame buffer device
Apr 29 14:36:23 spitz user.warn kernel: keyboard initilaized.
Apr 29 14:36:23 spitz user.warn kernel: pty: 256 Unix98 ptys configured
Apr 29 14:36:23 spitz user.info kernel: Serial driver version 5.05c (2001-07-08) with no serial options enabled
Apr 29 14:36:23 spitz user.info kernel: SharpSL serial driver version 5.05c (2001-07-08) with no serial options enabled
Apr 29 14:36:23 spitz user.info kernel: ttyS00 at 0xf8100000x (irq = 22) is a 16550A
Apr 29 14:36:23 spitz user.info kernel: ttyS01 at 0xf8700000x (irq = 20) is a 16550A, using IRDA
Apr 29 14:36:23 spitz user.info kernel: ttyS02 at 0xf8200000x (irq = 21) is a 16550A
Apr 29 14:36:23 spitz user.warn kernel: rs_init: IRDA H/W initializaion
Apr 29 14:36:23 spitz user.warn kernel: sharpled_init: done.
Apr 29 14:36:23 spitz user.warn kernel: spitz remote controller
Apr 29 14:36:23 spitz user.info kernel: Cotulla Real Time Clock driver v1.00
Apr 29 14:36:23 spitz user.warn kernel: Cotulla Touch Screen driver initialized
Apr 29 14:36:23 spitz user.info kernel: Uniform Multi-Platform E-IDE driver Revision: 6.31
Apr 29 14:36:23 spitz user.warn kernel: ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
Apr 29 14:36:23 spitz user.warn kernel: RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
Apr 29 14:36:23 spitz user.info kernel: loop: loaded (max 8 devices)
Apr 29 14:36:23 spitz user.info kernel: PPP generic driver version 2.4.2
Apr 29 14:36:23 spitz user.info kernel: PPP BSD Compression module registered
Apr 29 14:36:23 spitz user.info kernel: SCSI subsystem driver Revision: 1.00
Apr 29 14:36:23 spitz user.err kernel: kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
Apr 29 14:36:23 spitz user.err kernel: kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
Apr 29 14:36:23 spitz user.err kernel: kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
Apr 29 14:36:23 spitz user.warn kernel: Spitz audio driver initialize
Apr 29 14:36:23 spitz user.notice kernel: Sharp SL series flash device: 1000000 at 0
Apr 29 14:36:23 spitz user.notice kernel: Using static partision definition
Apr 29 14:36:23 spitz user.notice kernel: Creating 1 MTD partitions on "sharpsl-flash":
Apr 29 14:36:23 spitz user.notice kernel: 0x00140000-0x007f0000 : "Filesystem"
Apr 29 14:36:23 spitz user.info kernel: NAND device: Manufacture ID: 0xec, Chip ID: 0x73 (Samsung NAND 16MB 3,3V)
Apr 29 14:36:23 spitz user.notice kernel: Creating 3 MTD partitions on "NAND 16MB 3,3V":
Apr 29 14:36:23 spitz user.notice kernel: 0x00000000-0x00700000 : "smf"
Apr 29 14:36:23 spitz user.notice kernel: 0x00700000-0x00c00000 : "root"
Apr 29 14:36:23 spitz user.notice kernel: 0x00c00000-0x01000000 : "home"
Apr 29 14:36:23 spitz user.info kernel: Linux Kernel Card Services 3.1.31
Apr 29 14:36:23 spitz user.info kernel:   options:  [pm]
Apr 29 14:36:23 spitz user.info kernel: Intel PXA250/210 PCMCIA (CS release 3.1.31)
Apr 29 14:36:23 spitz user.warn kernel: pxa_pcmcia_init(0)
Apr 29 14:36:23 spitz user.warn kernel: pxa_pcmcia_init(1)
Apr 29 14:36:23 spitz user.debug kernel: orinoco.c 0.11b (David Gibson <hermes@gibson.dropbear.id.au> and others)
Apr 29 14:36:23 spitz user.debug kernel: hermes.c: 5 Apr 2002 David Gibson <hermes@gibson.dropbear.id.au>
Apr 29 14:36:23 spitz user.debug kernel: orinoco_cs.c 0.11b (David Gibson <hermes@gibson.dropbear.id.au> and others)
Apr 29 14:36:23 spitz user.debug kernel: spectrum_cs.c 0.3.4
Apr 29 14:36:23 spitz user.warn kernel: Backlight Driver Initialized.
Apr 29 14:36:23 spitz user.info kernel: ouse device common for all mice
Apr 29 14:36:23 spitz user.info kernel: NET4: Linux TCP/IP 1.0 for NET4.0
Apr 29 14:36:23 spitz user.info kernel: IP Protocols: ICMP, UDP, TCP
Apr 29 14:36:23 spitz user.info kernel: IP: routing cache hash table of 512 buckets, 4Kbytes
Apr 29 14:36:23 spitz user.info kernel: TCP: Hash tables configured (established 4096 bind 4096)
Apr 29 14:36:23 spitz user.info kernel: NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Apr 29 14:36:23 spitz user.warn kernel: NetWinder Floating Point Emulator V0.95 © 1998-1999 Rebel.com
Apr 29 14:36:23 spitz user.info kernel: IrCOMM protocol (Dag Brattli)
Apr 29 14:36:23 spitz user.notice kernel: RAMDISK: Couldn't find valid RAM disk image starting at 0.
Apr 29 14:36:23 spitz user.info kernel: Freeing initrd memory: 4096K
Apr 29 14:36:23 spitz user.err kernel: cramfs: wrong magic
Apr 29 14:36:23 spitz user.warn kernel: FAT: bogus logical sector size 381
Apr 29 14:36:23 spitz user.warn kernel: VFS: Mounted root (jffs2 filesystem) readonly.
Apr 29 14:36:23 spitz user.info kernel: Freeing init memory: 88K
Apr 29 14:36:23 spitz user.warn kernel: Trying to free nonexistent resource <f7000000-f700000f>
Apr 29 14:36:23 spitz user.warn kernel: hda: HMS360404D5CF00, ATA DISK drive
Apr 29 14:36:23 spitz user.warn kernel: ide0 at 0xf7000000-0xf7000007,0xf700000e on irq 136
Apr 29 14:36:23 spitz user.info kernel: hda: 7999488 sectors (4096 MB) w/128KiB Cache, CHS=7936/16/63
Apr 29 14:36:23 spitz user.info kernel: Partition check:
Apr 29 14:36:23 spitz user.info kernel:  hda: hda1 hda2 hda3
Apr 29 14:36:23 spitz user.info kernel: ide-cs: hda: Vcc = 3.3, Vpp = 0.0
Apr 29 14:36:23 spitz user.info kernel: kjournald starting.  Commit interval 5 seconds
Apr 29 14:36:23 spitz user.warn kernel: EXT3-fs warning: mounting fs with errors, running e2fsck is recommended
Apr 29 14:36:23 spitz user.info kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,1), internal journal
Apr 29 14:36:23 spitz user.info kernel: EXT3-fs: recovery complete.
Apr 29 14:36:23 spitz user.info kernel: EXT3-fs: mounted filesystem with ordered data mode.
Apr 29 14:36:23 spitz user.info kernel: usbdcore: usbdcore 0.1 035 2002-06-12 20:00 (dbg="")
Apr 29 14:36:23 spitz user.info kernel: net_fd 0.1 035 2002-06-12 20:00 (dbg="",alwaysup=0,OUT=64,IN=64)
Apr 29 14:36:23 spitz user.info kernel: vendorID: 4dd productID: 9031
Apr 29 14:36:23 spitz user.info kernel: pxa27x_bi 0.1-alpha 035 2002-06-12 20:00 (dbg="")
Apr 29 14:36:23 spitz user.info kernel: bi_modinit: call udc_startup_events
Apr 29 14:36:23 spitz user.info kernel: bi_device_event: call udc_enable
Apr 29 14:36:23 spitz user.info kernel: bi_device_event: call udc_all_interrupts
Apr 29 14:36:23 spitz user.warn kernel: udc_connect: usb-device is not active.
Apr 29 14:36:23 spitz user.warn kernel: pxa_sd_wait_response: card removed (cmd=00)
Apr 29 14:36:23 spitz user.warn kernel: pxa_sd_wait_response: card removed (cmd=00)
Apr 29 14:36:23 spitz user.warn kernel: pxa_sd_wait_response: card removed (cmd=00)
Apr 29 14:36:23 spitz user.warn kernel: pxa_sd_wait_id_response: card removed (cmd=00)
Apr 29 14:36:23 spitz user.warn kernel: SD Driver Initialized.
Apr 29 14:36:23 spitz user.warn kernel: sharp_mmcsd 0.30 13 Oct 2004
Apr 29 14:36:23 spitz user.warn kernel: pxa_sd_wait_response: card removed (cmd=00)
Apr 29 14:36:23 spitz user.warn kernel: pxa_sd_wait_response: card removed (cmd=00)
Apr 29 14:36:23 spitz user.warn kernel: pxa_sd_wait_response: card removed (cmd=00)
Apr 29 14:36:23 spitz user.warn kernel: pxa_sd_wait_id_response: card removed (cmd=00)
Apr 29 14:36:23 spitz user.info kernel: usb.c: registered new driver usbdevfs
Apr 29 14:36:23 spitz user.info kernel: usb.c: registered new driver hub
Apr 29 14:36:23 spitz user.info kernel: IrDA: Registered device irda0
Apr 29 14:36:23 spitz daemon.info cardmgr[636]: executing: 'modprobe hermes 2>&1'
Apr 29 14:36:23 spitz daemon.info cardmgr[636]: + Using /lib/modules/2.4.20/net/hermes.o
Apr 29 14:36:23 spitz user.debug kernel: orinoco.c 0.13e (David Gibson <hermes@gibson.dropbear.id.au> and others)
Apr 29 14:36:23 spitz daemon.info cardmgr[636]: executing: 'modprobe orinoco 2>&1'
Apr 29 14:36:23 spitz daemon.info cardmgr[636]: + Using /lib/modules/2.4.20/net/orinoco.o
Apr 29 14:36:24 spitz user.debug kernel: eth0: Station identity 0021:0002:0002:0001
Apr 29 14:36:24 spitz user.debug kernel: eth0: Looks like a Symbol firmware version [F3.10-06] (parsing to 31006)
Apr 29 14:36:24 spitz user.debug kernel: eth0: Ad-hoc demo mode supported
Apr 29 14:36:24 spitz user.debug kernel: eth0: IEEE standard IBSS ad-hoc mode supported
Apr 29 14:36:24 spitz user.debug kernel: eth0: WEP supported, 104-bit key
Apr 29 14:36:24 spitz user.debug kernel: eth0: MAC address 00:A0:F8:A0:1B:89
Apr 29 14:36:24 spitz user.debug kernel: eth0: Station name "Prism  I"
Apr 29 14:36:24 spitz user.debug kernel: eth0: ready
Apr 29 14:36:24 spitz user.debug kernel: eth0: index 0x01: Vcc 3.3, irq 135, io 0xf6000000-0xf6000047
Apr 29 14:36:24 spitz daemon.info hcid[683]: Bluetooth HCI daemon
Apr 29 14:36:24 spitz user.info kernel: BlueZ Core ver 2.4 Copyright © 2000,2001 Qualcomm Inc
Apr 29 14:36:24 spitz user.info kernel: Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
Apr 29 14:36:25 spitz user.info kernel: BlueZ L2CAP ver 2.3 Copyright © 2000,2001 Qualcomm Inc
Apr 29 14:36:25 spitz user.info kernel: Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
Apr 29 14:36:25 spitz daemon.info sdpd[695]: Bluetooth SDP daemon
Apr 29 14:36:25 spitz user.info kernel: BlueZ RFCOMM ver 1.1
Apr 29 14:36:25 spitz user.info kernel: Copyright © 2002 Maxim Krasnyansky <maxk@qualcomm.com>
Apr 29 14:36:25 spitz user.info kernel: Copyright © 2002 Marcel Holtmann <marcel@holtmann.org>
Apr 29 14:36:26 spitz daemon.info cardmgr[636]: executing: './network start eth0 2>&1'
Apr 29 14:36:26 spitz daemon.info cardmgr[636]: + Error for wireless request "Set Mode" (8B06) :
Apr 29 14:36:26 spitz daemon.info cardmgr[636]: +     invalid argument "Infrastructure".
Apr 29 14:36:27 spitz daemon.info cardmgr[636]: + udhcpc (v0.9.9-pre) started
Apr 29 14:36:27 spitz local0.info udhcpc[852]: udhcpc (v0.9.9-pre) started
Apr 29 14:36:27 spitz user.err udhcpc: pidfile_check: process 852 exists (/var/run/udhcpc.eth0.pid)
Apr 29 14:36:27 spitz local0.debug udhcpc[852]: Sending discover...
Apr 29 14:36:27 spitz daemon.info cardmgr[636]: + Sending discover...
Apr 29 14:36:29 spitz local0.debug udhcpc[852]: Sending discover...
Apr 29 14:36:29 spitz daemon.info cardmgr[636]: + Sending discover...
Apr 29 14:36:30 spitz local0.debug udhcpc[852]: Sending select for 192.168.1.100...
Apr 29 14:36:30 spitz daemon.info cardmgr[636]: + Sending select for 192.168.1.100...
Apr 29 14:36:30 spitz local0.info udhcpc[852]: Lease of 192.168.1.100 obtained, lease time 86400
Apr 29 14:36:30 spitz daemon.info cardmgr[636]: + Lease of 192.168.1.100 obtained, lease time 86400
Apr 29 14:36:31 spitz daemon.info cardmgr[636]: + adding dns 63.240.76.4
Apr 29 14:36:31 spitz daemon.info cardmgr[636]: + adding dns 204.127.198.4
Apr 29 14:36:31 spitz daemon.info cardmgr[636]: socket 1: ATA/IDE Fixed Disk
Apr 29 14:36:31 spitz daemon.notice cardmgr[636]: 'ide-cs' already bound to socket 1
Apr 29 14:36:32 spitz user.notice root: SHARED [] [/dev/hda1]
Apr 29 10:36:39 spitz user.warn qpe: qt_init() [912] - successfully entered daemon mode
Title: Usb Host On Oz 3.5.3 For C3000
Post by: lardman on June 02, 2005, 05:53:11 am
Well, to tell the truth I don't know.

I'd ask on #openzaurus as you will be able to talk to someone who actually has the device there.

If you look at the output of logread after you plug in a device of some kind (mass-storage pendrive for example) you should see some more messages if the driver is working (assuming it's there that is).

Sorry I can't be of more help,


Si
Title: Usb Host On Oz 3.5.3 For C3000
Post by: jbbrs on June 02, 2005, 07:05:19 am
For the usb host to work, you need to insert a module by hand, after removing pxa27x_bi. "modprobe usb_ohci_pxa27x" should work, but is giving me a error on my c1000 right now "Operation not permitted".
Title: Usb Host On Oz 3.5.3 For C3000
Post by: Lurker on June 02, 2005, 09:06:44 am
Thanks for the help, Lardman and Jbbrs!

I actually did pop in #OpenZaurus a few evenings ago, but no one responded to my inquiries. I recognized a few who were there from the OESF forums, but most were marked as away. Is there a best time to try to get the attention of the regulars?

I am slowly building up my knowledge and piecing things together (reading "Running Linux" right now). Please let me know if you have any more ideas, and I will of course do the same.
Title: Usb Host On Oz 3.5.3 For C3000
Post by: lardman on June 02, 2005, 10:02:03 am
Try searching the whole forum for 'ohci_pxa27x'.

There are a few threads there and they might give you some background info on what it should show (dmesg & logread) and how to get it working - note that if you're told to download and use a module, check for one in the feed first as ones compiled for other kernels (even though they are the same version) may have missing symbols which will stop them working (then again they may work).


Si
Title: Usb Host On Oz 3.5.3 For C3000
Post by: Lurker on June 06, 2005, 11:38:35 pm
I had already installed kernel-module-usb-ohci-pxa27x (USB OHCI Host Controller Driver) from the OZ Spitz feed. ipkg reported no errors. However, this module does cannot be loaded:
Code: [Select]
root@spitz:~# depmod -a
root@spitz:~# lsmod
Module                  Size  Used by    Tainted: P  
rfcomm                 33544   0 (autoclean)
l2cap                  16372   2 (autoclean) [rfcomm]
bluez                  33168   1 (autoclean) [rfcomm l2cap]
orinoco                37052   0 (unused)
hermes                  5368   0 [orinoco]
usbcore                63192   1
sharp_mmcsd_m          40944   2
pxa27x_bi              24812   0 (unused)
net_fd                 25188   0 (unused)
usbdcore               35448   0 [pxa27x_bi net_fd]
root@spitz:~# modprobe /lib/modules/2.4.20/kernel/drivers/usb/usb_ohci_pxa27x.o modprobe: module /lib/modules/2.4.20/kernel/drivers/usb/usb_ohci_pxa27x.o not found.
modprobe: failed to load module /lib/modules/2.4.20/kernel/drivers/usb/usb_ohci_pxa27x.o
root@spitz:~#insmod /lib/modules/2.4.20/kernel/drivers/usb/usb_ohci_pxa27x.o
Using /lib/modules/2.4.20/kernel/drivers/usb/usb_ohci_pxa27x.o
insmod: init_module: usb_ohci_pxa27x: Operation not permitted


Here is a snippet from logread after usb-monitor is loaded:
Code: [Select]
.....
Jun  7 02:27:46 spitz user.debug kernel: usbh: udc_connected: ACTIVE_LOW: 0<7>usbh: monitor_connected: 0
Jun  7 02:27:46 spitz user.debug kernel: usbh: monitor_unload: 0
Jun  7 02:27:46 spitz user.debug kernel: usbh: monitor_hotplug: agent: usbh interface: monitor action: unload
Jun  7 02:27:46 spitz user.debug kernel: usbh: monitor_request_irq: 41 71
Jun  7 02:27:46 spitz user.info kernel: usbh: monitor_modinit: finished
Jun  7 02:27:56 spitz user.err kernel: usbhmonitor: warning - hotplug script timed out
Jun  7 02:27:56 spitz user.debug kernel: usbh: udc_connected: ACTIVE_LOW: 0<7>usbh: monitor_connected: 0
Jun  7 02:27:56 spitz user.debug kernel: usbh: monitor_unload: 4
Jun  7 02:28:41 spitz syslog.info -- MARK --

"hotplug script timed out" does not sound good...(?)


I have tested all of this with a "clean" system (reflash + ipkg install kernel-module-usb-ohci-pxa27x). I have also tested after rmmod'ing pxa27x_bi, usbdcore and netfd. No dice...    :-(
Title: Usb Host On Oz 3.5.3 For C3000
Post by: lardman on June 07, 2005, 04:52:33 am
Quote
Code: [Select]
root@spitz:~# modprobe /lib/modules/2.4.20/kernel/drivers/usb/usb_ohci_pxa27x.o modprobe: module /lib/modules/2.4.20/kernel/drivers/usb/usb_ohci_pxa27x.o not found.

I find that message a bit strange. What does it mean? The file isn't actually there, or it has the wrong permissions, or it hasn't been compiled correctly and isn't recognised as a kernel module?

I'd think about lurking on #openzaurus (or even #oe, though this will be OT) and see if you can talk to some of the people who ported OZ to the C3k.

Quote
"hotplug script timed out" does not sound good...(?)

It's only a warning, I wouldn't worry too much about it.


Si
Title: Usb Host On Oz 3.5.3 For C3000
Post by: Lurker on June 07, 2005, 06:49:45 am
Well, the file is definitely there (used tab completion)...

Is there a good time of day to get the attention of the regulars in #openzaurus and #oe? I was under the impression that most of the devs reside in Europe (?)

Thanks again!
Title: Usb Host On Oz 3.5.3 For C3000
Post by: lardman on June 07, 2005, 07:13:55 am
Quote
Is there a good time of day to get the attention of the regulars in #openzaurus and #oe? I was under the impression that most of the devs reside in Europe (?)

I don't know really. I'm sometimes on during office hours (UK) (and that seems to be the busiest time), I think you just have to ask and then wait until someone who knows about it comes back and happens to look.

Quote
Well, the file is definitely there (used tab completion)...

Does modprobe only accept the name, not the path? Try 'modprobe usb_ohci_pxa27x'.


Si
Title: Usb Host On Oz 3.5.3 For C3000
Post by: Lurker on June 07, 2005, 07:44:14 am
Code: [Select]
root@spitz:~# modprobe usb_ohci_pxa27x
Using /lib/modules/2.4.20/kernel/drivers/usb/usb_ohci_pxa27x.o
insmod: init_module: usb_ohci_pxa27x: Operation not permitted
modprobe: failed to load module usb_ohci_pxa27x
Title: Usb Host On Oz 3.5.3 For C3000
Post by: lardman on June 07, 2005, 09:28:35 am
rmmod all of the usb related modules first - for example the usbdnet and net_fd ones, which must conflict with this host driver.


Si
Title: Usb Host On Oz 3.5.3 For C3000
Post by: jamesm on June 07, 2005, 09:42:32 am
Quote
Code: [Select]
root@spitz:~# modprobe usb_ohci_pxa27x
Using /lib/modules/2.4.20/kernel/drivers/usb/usb_ohci_pxa27x.o
insmod: init_module: usb_ohci_pxa27x: Operation not permitted
modprobe: failed to load module usb_ohci_pxa27x
[div align=\"right\"][a href=\"index.php?act=findpost&pid=83169\"][{POST_SNAPBACK}][/a][/div]

dmesg /should/ give you a better error message in this case. As per the insmod man page:

Quote
Only  the  most  general of error messages are reported: as the work of trying to link the module is now done inside the kernel, the dmesg usually gives more information about errors.
Title: Usb Host On Oz 3.5.3 For C3000
Post by: Lurker on June 07, 2005, 11:55:37 am
Quote
rmmod all of the usb related modules first - for example the usbdnet and net_fd ones, which must conflict with this host driver.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=83185\"][{POST_SNAPBACK}][/a][/div]
Already tried that  


Quote
dmesg /should/ give you a better error message in this case. As per the insmod man page:
[div align=\"right\"][a href=\"index.php?act=findpost&pid=83190\"][{POST_SNAPBACK}][/a][/div]
dmesg shows nothing in regards to usb_ohci  


:sigh:
Title: Usb Host On Oz 3.5.3 For C3000
Post by: Lurker on June 08, 2005, 01:38:05 pm
Soooo...funny story I gots for ya!

I flashed to the Cacko 1.23 beta1 yesterday evening with hopes that I could get USB host working with that ROM. It didn't (exact same issues as before). At this point I say to myself "No one else seems to be having these issues; perhaps the hardware is defective". So I went out and bought one of those Gold-X cables with the various interchangeable connectors to test with.

And it works!! I don't know wether to be ecstatic, or extremely pissed that I wasted so much time and effort before    

I was using a Mini-A to Female-A adapter peice from a GE USB cable set I picked at Target a few weeks ago. I remember thinking at the time that it was the perfect adapter, as there was no cable to fuss with. I cannot see any reason why it does not work, though, unless the wiring is defective. Unfortunately there was no way for me to test it otherwise, and I never thought to make sure it worked with the original Sharp ROM before I dumped it for OZ    
Title: Usb Host On Oz 3.5.3 For C3000
Post by: Lurker on June 08, 2005, 02:49:46 pm
For future reference:
usb_ohci_pxa27x is only loaded when a USB device or hub is connected, and is unloaded when the device or hub is disconnected. This makes absolute sense to me now, but I wish I had known it before. It would have led me to the defective hardware conclusion much earlier    
EDIT:Ok, so it only works this way in the Cacko ROM. However, in any case usb_ohci_pxa27x cannot be loaded unless a USB device or hub is connected.


I will be flashing back to OZ later to test the USB host functionality, and will report the results in this thread.

Thanks to all of those who tried to help earlier (especially lardman)!
Title: Usb Host On Oz 3.5.3 For C3000
Post by: lardman on June 09, 2005, 05:14:03 am
No worries,

Glad you got it working ,


Si