[Ubuntu-PT 4832] Fwd: Re: convertor usb serie
andre vilaverde
andre.vilaverde gmail.com
Sexta-Feira, 3 de Outubro de 2008 - 15:01:43 BST
mandei uma primeira resposta mas a lista de discussão não aceita emails tão
grandes por isso fica aqui o início do erro e o fim
é o seguinte
andre andre:~/Desktop$ make
gcc -D__KERNEL__ -I/usr/src/linux-2.4/include
-I/usr/src/linux-2.4/drivers/usb/serial -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
-Wno-unused -DMODULE -c pl2303.c
pl2303.c:33:26: error: linux/config.h: No such file or directory
In file included from /usr/include/asm/signal.h:6,
from /usr/include/linux/signal.h:4,
from pl2303.c:36:
/usr/include/linux/time.h:10: error: expected specifier-qualifier-list
before 'time_t'
/usr/include/linux/time.h:16: error: expected specifier-qualifier-list
before 'time_t'
In file included from /usr/include/linux/signal.h:4,
from pl2303.c:36:
/usr/include/asm/signal.h:133: error: expected specifier-qualifier-list
before 'size_t'
In file included from /usr/include/asm/siginfo.h:8,
from /usr/include/linux/signal.h:5,
from pl2303.c:36:
/usr/include/asm-generic/siginfo.h:49: error: expected
specifier-qualifier-list before 'pid_t'
/usr/include/asm-generic/siginfo.h:55: error: expected
specifier-qualifier-list before 'timer_t'
/usr/include/asm-generic/siginfo.h:64: error: expected
specifier-qualifier-list before 'pid_t'
/usr/include/asm-generic/siginfo.h:71: error: expected
specifier-qualifier-list before 'pid_t'
pl2303.c:39:24: error: linux/init.h: No such file or directory
pl2303.c:40:24: error: linux/slab.h: No such file or directory
In file included from /usr/include/asm/fcntl.h:1,
from /usr/include/linux/fcntl.h:4,
from pl2303.c:41:
/usr/include/asm-generic/fcntl.h:120: error: expected
specifier-qualifier-list before 'off_t'
/usr/include/asm-generic/fcntl.h:143: error: expected
specifier-qualifier-list before 'loff_t'
pl2303.c:43:30: error: linux/tty_driver.h: No such file or directory
pl2303.c:44:28: error: linux/tty_flip.h: No such file or directory
pl2303.c:46:26: error: linux/module.h: No such file or directory
pl2303.c:47:28: error: linux/spinlock.h: No such file or directory
pl2303.c:48:23: error: linux/usb.h: No such file or directory
pl2303.c:56:24: error: usb-serial.h: No such file or directory
pl2303.c:57:20: error: pl2303.h: No such file or directory
pl2303.c:67: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'struct'
pl2303.c:75: warning: data definition has no type or storage class
pl2303.c:75: warning: type defaults to 'int' in declaration of
'MODULE_DEVICE_TABLE'
pl2303.c:75: warning: parameter names (without types) in function
declaration
pl2303.c:768: error: expected declaration specifiers or '...' before string
constant
pl2303.c:768: warning: data definition has no type or storage class
pl2303.c:768: warning: type defaults to 'int' in declaration of
'MODULE_DESCRIPTION'
pl2303.c:768: warning: function declaration isn't a prototype
pl2303.c:769: error: expected declaration specifiers or '...' before string
constant
pl2303.c:769: warning: data definition has no type or storage class
pl2303.c:769: warning: type defaults to 'int' in declaration of
'MODULE_LICENSE'
pl2303.c:769: warning: function declaration isn't a prototype
pl2303.c:771: error: expected ')' before string constant
pl2303.c:772: error: expected ')' before string constant
make: *** [pl2303.o] Error 1
andre andre:~/Desktop$
2008/10/3 Hélio Rocha <hjrocha gmail.com>
Qual é o erro do driver do RH9?
>
> 2008/10/3 andre vilaverde <andre.vilaverde gmail.com>
>
>> boas
>> como instalar/colocar a funcionar um convertor usb/serie no Ubuntu?
>> o cabo é o seguinte:
>> andre andre:~$ lsusb
>> Bus 002 Device 007: ID 062a:0102 Creative Labs
>> *Bus 002 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial
>> Port*
>> Bus 002 Device 001: ID 0000:0000
>> Bus 001 Device 001: ID 0000:0000
>> andre andre:~$
>>
>>
>> desligando o cabo a ligar um pouco depois... (foi o que me pediram num
>> forum onde pedi ajuda mas ainda não consegui ajuda)
>>
>> andre andre:~$ tail -f /var/log/messages
>> Oct 3 10:46:15 andre kernel: [ 246.509367] input,hidraw0: USB HID v1.10
>> Keyboard [MOSART Semi. Wireless Keyboard & Mouse] on usb-0000:00:0b.0-2
>> Oct 3 10:46:15 andre kernel: [ 246.521598] input: MOSART Semi. Wireless
>> Keyboard & Mouse as
>> /devices/pci0000:00/0000:00:0b.0/usb2/2-2/2-2:1.1/input/input13
>> Oct 3 10:46:15 andre kernel: [ 246.597269] input,hiddev96,hidraw1: USB
>> HID v1.10 Mouse [MOSART Semi. Wireless Keyboard & Mouse] on
>> usb-0000:00:0b.0-2
>> Oct 3 10:46:25 andre kernel: [ 256.706044] usb 2-2: USB disconnect,
>> address 6
>> Oct 3 10:46:26 andre kernel: [ 256.975780] usb 2-2: new low speed USB
>> device using ohci_hcd and address 7
>> Oct 3 10:46:26 andre kernel: [ 257.207492] usb 2-2: configuration #1
>> chosen from 1 choice
>> Oct 3 10:46:26 andre kernel: [ 257.218595] input: MOSART Semi. Wireless
>> Keyboard & Mouse as
>> /devices/pci0000:00/0000:00:0b.0/usb2/2-2/2-2:1.0/input/input14
>> Oct 3 10:46:26 andre kernel: [ 257.271569] input,hidraw0: USB HID v1.10
>> Keyboard [MOSART Semi. Wireless Keyboard & Mouse] on usb-0000:00:0b.0-2
>> Oct 3 10:46:26 andre kernel: [ 257.281620] input: MOSART Semi. Wireless
>> Keyboard & Mouse as
>> /devices/pci0000:00/0000:00:0b.0/usb2/2-2/2-2:1.1/input/input15
>> Oct 3 10:46:26 andre kernel: [ 257.375351] input,hiddev96,hidraw1: USB
>> HID v1.10 Mouse [MOSART Semi. Wireless Keyboard & Mouse] on
>> usb-0000:00:0b.0-2
>> Oct 3 10:50:47 andre kernel: [ 517.579898] usb 2-1: USB disconnect,
>> address 2
>> *Oct 3 10:50:47 andre kernel: [ 517.580286] pl2303 ttyUSB0: pl2303
>> converter now disconnected from ttyUSB0
>> Oct 3 10:50:47 andre kernel: [ 517.580303] pl2303 2-1:1.0: device
>> disconnected*
>> Oct 3 10:50:53 andre kernel: [ 524.252797] usb 2-1: new full speed USB
>> device using ohci_hcd and address 8
>> Oct 3 10:50:54 andre kernel: [ 524.465775] usb 2-1: configuration #1
>> chosen from 1 choice
>> *Oct 3 10:50:54 andre kernel: [ 524.470003] pl2303 2-1:1.0: pl2303
>> converter detected
>> Oct 3 10:50:54 andre kernel: [ 524.470129] usb 2-1: pl2303 converter now
>> attached to ttyUSB0*
>> Oct 3 10:51:03 andre kernel: [ 534.074828] usb 2-2: USB disconnect,
>> address 7
>> Oct 3 10:51:04 andre kernel: [ 534.356716] usb 2-2: new low speed USB
>> device using ohci_hcd and address 9
>> Oct 3 10:51:04 andre kernel: [ 534.588253] usb 2-2: configuration #1
>> chosen from 1 choice
>> Oct 3 10:51:04 andre kernel: [ 534.598344] input: MOSART Semi. Wireless
>> Keyboard & Mouse as
>> /devices/pci0000:00/0000:00:0b.0/usb2/2-2/2-2:1.0/input/input16
>> Oct 3 10:51:04 andre kernel: [ 534.644394] input,hidraw0: USB HID v1.10
>> Keyboard [MOSART Semi. Wireless Keyboard & Mouse] on usb-0000:00:0b.0-2
>> Oct 3 10:51:04 andre kernel: [ 534.653407] input: MOSART Semi. Wireless
>> Keyboard & Mouse as
>> /devices/pci0000:00/0000:00:0b.0/usb2/2-2/2-2:1.1/input/input17
>> Oct 3 10:51:04 andre kernel: [ 534.740302] input,hiddev96,hidraw1: USB
>> HID v1.10 Mouse [MOSART Semi. Wireless Keyboard & Mouse] on
>> usb-0000:00:0b.0-2
>>
>> já vi muita coisa na net mas não consegui entender como colocar a
>> funcionar, até encontrei na página do fabricante a drive para Red Hat 9, mas
>> para ubuntu não. Já tentei usar esse drive mas dá erro
>> obrigado a todos
>>
>> --
>> ubuntu-pt mailing list
>> ubuntu-pt lists.ubuntu.com
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-pt
>>
>>
>
> --
> ubuntu-pt mailing list
> ubuntu-pt lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-pt
>
>
-------------- próxima parte ----------
Um anexo em HTML foi limpo...
URL: https://lists.ubuntu.com/archives/ubuntu-pt/attachments/20081003/26cf50d9/attachment.htm
Mais informações acerca da lista ubuntu-pt