Dear List,

I have read through more Linux kernel docs,
HOWTOs, and online pages than I can shake
a memory stick at (including this list archive)
and have _not_ been able to solve this one,
so I am asking you for your kind assistance.

I have a Linux 2.4.18 kernel on a PPC platform.
Everything I have done so far has been very
straightforward.  I have now been attempting
to add USB support.  I can get the root hub
on this MPC5200 PPC chip to recognize that
there is something out there, but cannot
convince it to connect to it and so show it
to the world as a disk through the SCSI
interface.  It always comes back as error 110,
which is ETIMEDOUT.  If I get this connection
made will the device show up?  Will the SCSI
driver be properly loaded?  All comments are
appreciated.

Thanks,

Dan


I configured the kernel with all
static USB and SCSI code so there
are no modules, just static linkages.

For USB:
CONFIG_USB=y
CONFIG_USB_DEBUG=y
CONFIG_USB_DEVICSFS=y
CONFIG_USB_OHCI=y
CONFIG_USB_PPC_5xxx=y
CONFIG_USB_STORAGE=y
CONFIG_USB_STORAGE_DEBUG=y

For SCSI:
CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=y
CONFIG_SD_EXTRADEVS=40
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_LOGGING=y

Here is the console output:
--------------------------------------
bash-2.05# more /etc/fstab
/dev/nfs                /               nfs     defaults        0 0
none                    /proc           proc    defaults        0 0
none                    /proc/bus/usb  usbfs    defaults        0 0
bash-2.05# more /proc/interrupts
           CPU0
23:       3958  MPC5xxx Ready Enabled  Edge  Unmasked := eth_xmit
24:       6441  MPC5xxx Ready Enabled  Edge  Unmasked := eth_recv
39:        687  MPC5xxx Ready Enabled  Edge  Unmasked := serial
43:         22  MPC5xxx Ready Enabled  Edge  Unmasked := eth_err
44:        192  MPC5xxx Ready Enabled  Edge  Unmasked := <NULL>
BAD:        171
bash-2.05# more /proc/modules
/proc/modules: No such file or directory
bash-2.05# more /proc/partitions
bash-2.05# more /proc/filesystems
nodev   rootfs
nodev   bdev
nodev   proc
nodev   sockfs
nodev   tmpfs
nodev   shm
nodev   pipefs
        ext3
        ext2
        cramfs
nodev   ramfs
        msdos
        vfat
        iso9660
nodev   devfs
nodev   nfs
        romfs
nodev   devpts
nodev   usbdevfs
nodev   usbfs
bash-2.05# ls -l /proc/bus/usb
total 0
dr-xr-xr-x    1 root     root            0 Dec 31 19:00 001
-r--r--r--    1 root     root            0 Dec 31 19:00 devices
-r--r--r--    1 root     root            0 Dec 31 19:00 drivers
bash-2.05 # ls -l /proc/scsi
-r--r--r--    1 root     root            0 Dec 31 19:00 scsi
bash-2.05# more /proc/bus/usb/drivers
         usbdevfs
         hub
         usb-storage
bash-2.05# more /proc/bus/usb/devices
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 1
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB OHCI Root Hub
S:  SerialNumber=f0001000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms
bash-2.05# more /proc/scsi/scsi
Attached devices: none
bash-2.05#



Here is the dmesg log:
-------------------------------
Memory BAT mapping: BAT2=64Mb, BAT3=0Mb, residual: 0Mb
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Calibrating delay loop... 263.78 BogoMIPS
Memory: 62508k available (1464k kernel code, 720k data, 72k init, 0k 
highmem)
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
devfs: v1.12c (20020818) Richard Gooch ([EMAIL PROTECTED])
devfs: boot_options: 0x1
pty: 256 Unix98 ptys configured
ttyS0 on PSC1
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
SCSI subsystem driver Revision: 1.00
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
host/usb-ohci.c: USB OHCI at membase 0xf0001000, IRQ 44
host/usb-ohci.c: usb-0, Built-In ohci
usb.c: new USB bus registered, assigned bus number 1
usb.c: kmalloc IF c03ee560, numif 1
usb.c: new device strings: Mfr=0, Product=2, SerialNumber=1
usb.c: USB device number 1 default language ID 0x0
Product: USB OHCI Root Hub
SerialNumber: f0001000
hub_probe: USB hub found
usb_hub_configure: 1 port detected
usb_hub_configure: standalone hub
usb_hub_configure: ganged power switching
usb_hub_configure: no over-current protection
usb_hub_configure: Port indicators are not supported
usb_hub_configure: power on to power good time: 4ms
usb_hub_configure: hub controller current requirement: 0mA
usb_hub_configure: port removable status: R
usb_hub_configure: local power source is good
usb_hub_configure: no over-current condition exists
usb_hub_power_on: enabling power on all ports
usb.c: hub driver claimed interface c03ee560
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 4096)
eth0: Phy @ 0x0, type LXT971 (0x001378e2)
IP-Config: Complete:
      device=eth0, addr=xxx.xxx.xxx.xxx, mask=255.255.255.0, 
gw=xxx.xxx.xxx.xxx,
     host=ppctest6, domain=, nis-domain=(none),
     bootserver=xxx.xxx.xxx.xxx, rootserver=xxx.xxx.xxx.xxx, rootpath=
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
usb_hub_events: port 1 connection change
Looking up port of RPC 100003/2 on xxx.xxx.xxx.xxx
Looking up port of RPC 100005/1 on xxx.xxx.xxx.xxx
VFS: Mounted root (nfs filesystem).
Mounted devfs on /dev
Freeing unused kernel memory: 72k init
usb_hub_port_connect_change: new USB device 0-1, assigned address 2
usb_control/bulk_msg: timeout
host/usb-ohci.c: unlink URB timeout
usb.c: USB device not accepting new address=2 (error=-110)
usb_hub_port_connect_change: new USB device 0-1, assigned address 3

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to