Hi Hallu, Here is something you should try to figure out first.
I hope the Montavista kernel that you are mentioning is ported for IXP465 processor. If this is not the case then you need to do the proper porting to get USB working on IXP465.You can verify this by understanding the code for initialization part for EHCI. IXP465 has an EHCI compliant USB host. So you need to insert only EHCI module. The USB in Linux gets detected as a SCSI device and hence you need to enable support for SCSI also using make menuconfig. You will need to load following drivers for making USB to work. (1) modprobe usbcore (2) modprobe scsi_mod (3) modprobe sd_mod (4) modprobe usb-storage (5) modprobe ehci-hcd Please find some of my replies to your queries inline. -----Original Message----- From: Hallu ji [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 4:16 AM To: [EMAIL PROTECTED] Subject: Problem with USB host on ixp465 Hi Maulik, Sorry for writing you an email directly. I got your email address from Linux-USB-devel mailing list. I'm working on ixp465 and would great appreciate if I could get some help from you in understanding few things. Please let me know if you are not interested and I won't bother you then. I've recently started working on ixp465, with 2.4.20 linux from Monta vista. Currently I'm trying to test USB host port on ixp465 board and I'm running into problems. Please excuse me if I sound too dumb, as I don't have lot of working experience with Linux and USB is totally new for me. I want to test USB host port, by attaching some flash/pen drive. My questions are: 1. How do I know that kernel is recognizing USB port? lspci and /proc/pci output does not show any USB entry. All it shows, an entry for intel's processor and another for ethernet. I don't see any USB entry in /proc/interrupts. cat /proc/pci shows: PCI devices found: Bus 0, device 0, function 0: Co-processor: PCI device 8086:8501 (Intel Corp.) (rev 0). Prefetchable 32 bit memory at 0x0 [0xffffff]. Prefetchable 32 bit memory at 0x1000000 [0x1ffffff]. Prefetchable 32 bit memory at 0x2000000 [0x2ffffff]. Prefetchable 32 bit memory at 0x3000000 [0x3ffffff]. Prefetchable 32 bit memory at 0xff000000 [0xffffffff]. I/O at 0xffffff00 [0xffffffff]. Bus 0, device 1, function 0: Ethernet controller: Intel Corp. 82557/8/9 [Ethernet Pro 100] (rev 8). IRQ 28. Master Capable. Latency=128. Min Gnt=8.Max Lat=56. Non-prefetchable 32 bit memory at 0x4bfff000 [0x4bffffff]. I/O at 0xffffffc0 [0xffffffff]. Non-prefetchable 32 bit memory at 0x4be00000 [0x4befffff]. You can check for the USB devices attached to the system using cat /proc/scsi/scsi. This will give you the list of USB devices attached to the system. This will be empty in case USB device does not get detected correctly. You can also use "lsusb" command if your kernel is supporting the same. You will not see any USB stuff through lspci or cat /proc/pci. This is because the USB host in IXP465 is not on PCI bus. It is a memory mapped on chip peripheral. Check the code and the datasheet of IXP465 to make sure that the code is using the correct start address for USB host. The start address for IXP465 USB host is 0xCD000000. You should look at /proc/interrupts. This should show you the USB interrupts if USB host is initialized properly. Also you might need to turn your debug messages on (some option in make menuconfig) to get the dmesg outputs. Also you can use a USB analyzer (a hardware debugger), which shows the USB packets, transmitted by the USB host to the device. This can be very helpful while debugging USB enumeration related issues. 2. I configured kernel, using make menuconfig for : a) USB support b) Different host controllers as modules. I tried with EHCI, UHCI, OHCI and nonPCI-OHCI. However, anytime I try to load these module I don't see any message on console/dmesg. The only time I see some output on console is when i use uhci.o and that too, it just displays the version(Host Controller, v1.1) and then insmod fails saying "no device found". >From your explanation it looks that you have not enabled the SCSI device support. Try this first as this might fix the issue. 3.I configured kernel for USB device filesystem and mounted usbdevfs on /proc/bus/usb. After mounting, I could see 2 sub directories devices and drivers. I don't see any other numbered directory such as 00 or 01(which I guess, indicates number of host controllers). Am I missing something very basic in my understanding on USB working? I'm assuming the host controller driver(EHCI/UHCI) provided in linux 2.4.20 should be sufficient enough to detect USB host port on board. Please correct me if my understanding is wrong. Do I need to do any development to get host functioanlity working for USB on ixp465 or Do I need to have some USB host driver in addition to EHCI/UHCI host controller ? Make sure that the driver you are using is ported for IXP465 USB host. Response appreciated, Hallu I hope this information will get you started. Let me know if things work for you or you have any more queries. Regards, Maulik Mankad eInfochips Business Disclaimer: This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by eInfochips Limited and/or eInfochips Inc("eInfochips") unless sent with that express intent and with due authority of eInfochips. eInfochips has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. eInfochips Business Disclaimer: This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by eInfochips Limited and/or eInfochips Inc("eInfochips") unless sent with that express intent and with due authority of eInfochips. eInfochips has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. ------------------------------------------------------------------------- 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-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel