Tuesday, December 25, 2007

Gentoo SonyEricsson USB Cable DCU-11 driver

Maybe in some distro, the module are automatically loaded, but not in gentoo, I found it when i try to connect my old sony ericcson k500i using DCU11, its been a long time im not using it (and never use it with gentoo), so when i plug the cable n nothing happens :). So, if u found a problem with the DCU 11 Usb cable, so u may need this some short and not l33t instruction :)

After You plug-in the usb cable, and you find out that your driver was unknown, by seeing it from dmesg output
localhost tty# dmesg | grep usb

--- truncated ---

usb 4-1: USB disconnect, address 2

usb 4-1: new full speed USB device using uhci_hcd and address 3

usb 4-1: configuration #1 chosen from 1 choice


Then, check whether the module is loaded by the kernel. If not, then weve found the cure :)

localhost tty # cat /usr/src/linux/.config | grep CONFIG_USB_SERIAL
---truncated --
CONFIG_USB_SERIAL_NAVMAN=m

# CONFIG_USB_SERIAL_PL2303 is not set
# CONFIG_USB_SERIAL_HP4X is not set

--- truncated ---
Now, you need to re-compile your kernel, u can do it manually or using genkernel
to compile it for you, what u need to do is activate the module, so it can be loaded
by the kernel. Use make menuconfig commands, or genkernel --menuconfig all

Device Drivers --->
USB Support --->
---- USB Serial Converter support ----->
[M] USB prolific 2303 Single Port Serial Driver
Then re-compile it, after that u can check the dmesg output again, make sure to use the new kernel :)

localhost ~ # dmesg | grep usb

---truncated--
usbcore: registered new interface driver pl2303

drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver

usbcore: registered new interface driver hci_usb

usb 4-1: USB disconnect, address 2

usb 4-1: new full speed USB device using uhci_hcd and address 3

usb 4-1: configuration #1 chosen from 1 choice

usb 4-1: pl2303 converter now attached to ttyUSB0
--truncated---
there u go, now just use /dev/ttyUSB0.
thats all folk, hope it helps

No comments:

Post a Comment