Andika Triwidada wrote:

On 1/17/06, A. Andria <[EMAIL PROTECTED]> wrote:
Saya penasaran ingin melihat detail Bus USB saya itu kemudian saya
lakukan sintaks lsusb -v -s 003
dan hasilnya seperti berikut :
===================
Bus 003 Device 003: ID 6547:0232
Device Descriptor:
bLength                18
bDescriptorType         1
bcdUSB               1.10
bDeviceClass            0 (Defined at Interface level)
bDeviceSubClass         0
bDeviceProtocol         0
bMaxPacketSize0        64
idVendor           0x6547
idProduct          0x0232
bcdDevice            0.01
iManufacturer           1 ArkMicroChips
iProduct                3 USB-UART Controller
<snip>

Apakah dengan keluaran lsusb itu berarti device saya bisa dikenali di
linux?

Ya, dikenal oleh lower level USB driver.

Kenapa tidak ada file /dev/ttyUSB0 yang ter-create ya ???

Karena driver USB serial tidak ada yang "merasa" kompatibel
dengan device tersebut. Driver USB serial ini memanfaatkan
layanan dari driver USB lowlevel. Contoh driver USB serial
yang paling sering saya jumpai adalah pl2302.


--
.''`.     Andika Triwidada <[EMAIL PROTECTED]>
: :'  :    just another Debian admin
`. `'`     http://andika-lives-here.blogspot.com/
`-  Debian - when you have better things to do than fixing a system

Saya coba untuk rebuilding kernel seperti yang dianjurkan oleh Mas Dave. Agar kabel DKU-5 saya bisa dikenali oleh driver USB serial.

Step yang saya lakukan adalah :

# Download kernel source dengan apt-get

# Karena file pl2303.c, pl2303.h, usb-serial.c, usb-serial.h sudah terdapat di direktori /usr/src/linux-source-2.6.12/drivers/usb/serial/ maka saya tidak meng-copy file punya Mas Dave. Saya hanya merubah file pl2303.h dan file pl2303.c dengan menambahkan idProduct dan idVendor device usb saya.

$ vi pl2303.h
$ vi pl2303.c

$ cd /usr/src/linux-source-2.6.12
$ cp /boot/config-`uname -r` ./.config
$ make menuconfig

# choose " General Setup " and select built in for
[*] kernel support for out binaries
[*] kernel support ELE binaries
[*] kernel support MISC binaries

# [exit] go to USB Support [sub menu]
i. USE serial converter support ->
ii. Exclude all the driver module except
1. "USB Generic Serial Driver" and
2. "USB Prolific 2303 Single …."

# Simpan perubahan

$make dep

$ cd /usr/src/linux-source-2.6.12
$ vi Makefile dan merubah EXTRAVERSION

VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 3
EXTRAVERSION = -usb

# simpan perubahan Makefile

$ make clean
$ make dep
$ make bzImage
$ make modules
$ make modules_install
$ make install
$ update-grub

# reboot

Dan .....

# Pada saat startup pilih option Kernel yang sudah kita compile
# Muncul error :

Booting 'Ubuntu, kernel bzImage-2.6.12-usb'
root (hd0,1)
Filesystem type is ext2fs, partition type 0x83
kernel /vmlinuz-2.6.12-usb root=/dev/hda1 ro quiet splash
[Linux-bzImage, setup 0x1c00, size=0x122898]
boot
Uncompressing Linux... Ok, booting the kernel.
[4294669.268000] Kernel panic - not syncing : VFS : Unable to mount root fs on unknown-block (0,0)
[4294669.268000] _


--
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [EMAIL PROTECTED]
Arsip dan info milis selengkapnya di http://linux.or.id/milis

Reply via email to