linux - USB host and device functionality on SBC 6845 board using kernel modules -
i working on sbc 6845(atmel processor) in linux embedded development. kernel version 2.6.30.
this board comes 2 usb ports(both type a), 1 can configured host , other usb device.
i have configured these usb modules in kernel. have burned kernel , file system necessary modules including usb modules. have loaded these usb modules through /init.d/rcs file.
when board turns on , type lsmod on console shows me these modules loaded. when connect board computer, usb not detected (device functionality).
when connect pendrive board, not detected (host functionality).
/init.d/rcs script
#install usb gadgate mass_storage modprobe g_file_storage file=/home/mass_storage/backed_storage_file stall=n losetup -o 4096 /dev/loop0 /home/mass_storage/backed_storage_file #install usb ehci-hcd modprobe ehci-hcd
rcs running log
g_file_storage gadget: file-backed storage gadget, version: 20 november 2008 g_file_storage gadget: number of luns=1 g_file_storage gadget-lun0: ro=0, file: /home/mass_storage/backed_storage_file ehci_hcd: usb 2.0 'enhanced' host controller (ehci) driver atmel-ehci atmel-ehci: atmel ehci uhp hs atmel-ehci atmel-ehci: new usb bus registered, assigned bus number 1 atmel-ehci atmel-ehci: irq 22, io mem 0x00800000 atmel-ehci atmel-ehci: usb 2.0 started, ehci 1.00 usb usb1: new usb device found, idvendor=1d6b, idproduct=0002 usb usb1: new usb device strings: mfr=3, product=2, serialnumber=1 usb usb1: product: atmel ehci uhp hs usb usb1: manufacturer: linux 2.6.30 ehci_hcd usb usb1: serialnumber: atmel-ehci usb usb1: configuration #1 chosen 1 choice hub 1-0:1.0: usb hub found hub 1-0:1.0: 2 ports detected
lsmod output
module size used not tainted ehci_hcd 30132 0 g_file_storage 24260 0
any welcome!
your drivers seem installed. don't have straight answer work software-hardware integration often. here more clues. kind of processor have pins multipurposes. sometimes, on evaluation board, not configured way want default. can @ documentation also, can use oscilloscope , probe d+ , d- of usb. ok when in idle? happen when connect device on host port? first few things done usb controller , involves little no interaction software after controller configured. if see beginning of negociation (a bunch of 0s , 1s) then, know hardware configured , basic driver installed , work properly. result of narrow scope of problem.
Comments
Post a Comment