Hi all, I am trying to enable usb support on PXA27x board using linux-2.6.20. Inserted the following modules successfully usbcore.ko ohci_hcd.ko usb-storage.ko and inserted the flash drive(1GB) on USB port. but "/sys/bus/usb/devices/" directory is empty. I found no information even enabling DEBUG mode. Initially module ohci-hcd.ko was not registering properly bcos of empty platform_data. So fixed the bug with the help of patch found on link "http://lkml.org/lkml/2006/6/8/221". here is the dmesg output while inserting the modules.
root:/tmp# insmod usbcore.ko usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb root:/tmp# lsmod Module Size Used by Not tainted usbcore 145956 0 root:/tmp# dmesg -c kobject usbcore: registering. parent: <NULL>, set: module kobject drivers: registering. parent: usbcore, set: <NULL> kobject_uevent_env fill_kobj_path: path = '/module/usbcore/drivers' kobject_uevent_env fill_kobj_path: path = '/module/usbcore' subsystem usb: registering kobject usb: registering. parent: <NULL>, set: bus kobject devices: registering. parent: usb, set: <NULL> kobject drivers: registering. parent: usb, set: <NULL> bus type 'usb' registered device class 'usb_host': registering subsystem usb_host: registering kobject usb_host: registering. parent: <NULL>, set: class bus usb: add driver usbfs kobject usbfs: registering. parent: <NULL>, set: drivers kobject_uevent_env fill_kobj_path: path = '/bus/usb/drivers/usbfs' usbcore: registered new interface driver usbfs device class 'usb_device': registering subsystem usb_device: registering kobject usb_device: registering. parent: <NULL>, set: class bus usb: add driver hub kobject hub: registering. parent: <NULL>, set: drivers kobject_uevent_env fill_kobj_path: path = '/bus/usb/drivers/hub' usbcore: registered new interface driver hub bus usb: add driver usb kobject usb: registering. parent: <NULL>, set: drivers kobject_uevent_env fill_kobj_path: path = '/bus/usb/drivers/usb' usbcore: registered new device driver usb root:/tmp# insmod ohci-hcd.ko root:/tmp# dmesg kobject ohci_hcd: registering. parent: <NULL>, set: module kobject drivers: registering. parent: ohci_hcd, set: <NULL> kobject_uevent_env fill_kobj_path: path = '/module/ohci_hcd/drivers' kobject_uevent_env fill_kobj_path: path = '/module/ohci_hcd' 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver (pxa27x)<7>block sizes: ed 64 td 64 bus platform: add driver pxa27x-ohci kobject pxa27x-ohci: registering. parent: <NULL>, set: drivers kobject_uevent_env fill_kobj_path: path = '/bus/platform/drivers/pxa27x-ohci' root:/tmp# lsmod Module Size Used by Not tainted ohci_hcd 36964 0 usbcore 145956 1 ohci_hcd root:/tmp# insmod usb-storage.ko Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. root:/tmp# dmesg kobject usb_storage: registering. parent: <NULL>, set: module kobject drivers: registering. parent: usb_storage, set: <NULL> kobject_uevent_env fill_kobj_path: path = '/module/usb_storage/drivers' kobject_uevent_env fill_kobj_path: path = '/module/usb_storage' Initializing USB Mass Storage driver... bus usb: add driver usb-storage kobject usb-storage: registering. parent: <NULL>, set: drivers kobject_uevent_env fill_kobj_path: path = '/bus/usb/drivers/usb-storage' usbcore: registered new interface driver usb-storage USB Mass Storage support registered. root:/tmp# lsmod Module Size Used by Not tainted usb_storage 87339 0 ohci_hcd 36964 0 usbcore 145956 2 usb_storage,ohci_hcd root:/tmp# ps PID Uid VmSize Stat Command 1 0 476 S init 2 0 SWN [ksoftirqd/0] 3 0 SW< [events/0] 4 0 SW< [khelper] 5 0 SW< [kthread] 36 0 SW< [kblockd/0] 37 0 SW< [kseriod] 50 0 SW [pdflush] 51 0 SW [pdflush] 52 0 SW< [kswapd0] 53 0 SW< [aio/0] 665 0 SW [mtdblockd] 812 0 676 R -sh 927 0 SW< [ksuspend_usbd] 930 0 SW< [khubd] 953 0 532 R ps Thanks in advance Girish A J ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel