Adattatore Usb-seriale.

1 risposta [Ultimo messaggio]
Ritratto di U-brewery
U-brewery
(Geek)
Offline
Geek
Iscritto: 23/11/2005
Messaggi: 198

Ciao,

ho la necessità di installare quanto in oggetto su un portatile sprovvisto di porte com.

L'adattatore è dato per compatibile per Linux, salvo poi trovare sul cd la cartella contenente il driver nominata "It's only support REDHAD 7.3_8.0_9.0".

C'è qualche speranza con Mandriva 2007.1?

Ho provato a seguire le istruzioni per compilare il driver ma digitando "make all" ottengo righe e righe di errore, ecco le prime:

[root@Note1 seriale]# make all
gcc -D__KERNEL__ -I/usr/src/linux-2.6.17-13mdv/include -I/usr/src/linux-2.6.17-1
3mdv/drivers/usb/serial -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-fr
ame-pointer -fno-strict-aliasing -fno-common -Wno-unused -DMODULE -c pl2303.c
In file included from /usr/include/asm/thread_info.h:17,
from /usr/src/linux-2.6.17-13mdv/include/linux/thread_info.h:21
,
from /usr/src/linux-2.6.17-13mdv/include/linux/preempt.h:10,
from /usr/src/linux-2.6.17-13mdv/include/linux/spinlock.h:50,
from /usr/src/linux-2.6.17-13mdv/include/linux/mmzone.h:8,
from /usr/src/linux-2.6.17-13mdv/include/linux/gfp.h:4,
from /usr/src/linux-2.6.17-13mdv/include/linux/slab.h:15,
from pl2303.c:37:
/usr/include/asm/processor.h:79: error: ‘CONFIG_X86_L1_CACHE_SHIFT’ undeclared h
ere (not in a function)
/usr/include/asm/processor.h:79: error: requested alignment is not a constant
In file included from /usr/src/linux-2.6.17-13mdv/include/linux/gfp.h:4,
from /usr/src/linux-2.6.17-13mdv/include/linux/slab.h:15,
from pl2303.c:37:
/usr/src/linux-2.6.17-13mdv/include/linux/mmzone.h:44: error: requested alignmen
t is not a constant
/usr/src/linux-2.6.17-13mdv/include/linux/mmzone.h:67: error: requested alignmen
t is not a constant
/usr/src/linux-2.6.17-13mdv/include/linux/mmzone.h:251: error: requested alignme
nt is not a constant
In file included from /usr/src/linux-2.6.17-13mdv/include/linux/rwsem.h:27,
from /usr/src/linux-2.6.17-13mdv/include/linux/notifier.h:14,
from /usr/src/linux-2.6.17-13mdv/include/linux/memory_hotplug.h
:7,
from /usr/src/linux-2.6.17-13mdv/include/linux/mmzone.h:326,
from /usr/src/linux-2.6.17-13mdv/include/linux/gfp.h:4,
from /usr/src/linux-2.6.17-13mdv/include/linux/slab.h:15,
from pl2303.c:37:
/usr/include/asm/rwsem.h: In function ‘__down_read’:
/usr/include/asm/rwsem.h:105: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME

/usr/include/asm/rwsem.h: In function ‘__down_write’:
/usr/include/asm/rwsem.h:157: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME

/usr/include/asm/rwsem.h: In function ‘__up_read’:
/usr/include/asm/rwsem.h:194: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME

/usr/include/asm/rwsem.h: In function ‘__up_write’:
/usr/include/asm/rwsem.h:220: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME

/usr/include/asm/rwsem.h: In function ‘__downgrade_write’:
/usr/include/asm/rwsem.h:245: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME

In file included from /usr/src/linux-2.6.17-13mdv/include/linux/dcache.h:10,
from /usr/src/linux-2.6.17-13mdv/include/linux/fs.h:228,
from /usr/src/linux-2.6.17-13mdv/include/linux/tty.h:20,
from pl2303.c:38:
/usr/src/linux-2.6.17-13mdv/include/linux/rcupdate.h: At top level:
/usr/src/linux-2.6.17-13mdv/include/linux/rcupdate.h:69: error: requested alignm
ent is not a constant
/usr/src/linux-2.6.17-13mdv/include/linux/rcupdate.h:72: error: requested alignm
ent is not a constant
In file included from /usr/src/linux-2.6.17-13mdv/include/linux/sched.h:20,
from /usr/src/linux-2.6.17-13mdv/include/linux/radix-tree.h:22,
from /usr/src/linux-2.6.17-13mdv/include/linux/fs.h:233,
from /usr/src/linux-2.6.17-13mdv/include/linux/tty.h:20,
from pl2303.c:38:
/usr/include/asm/semaphore.h: In function ‘down’:
/usr/include/asm/semaphore.h:105: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASE
NAME’
/usr/include/asm/semaphore.h: In function ‘down_interruptible’:
/usr/include/asm/semaphore.h:130: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASE
NAME’
/usr/include/asm/semaphore.h: In function ‘down_trylock’:
/usr/include/asm/semaphore.h:155: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASE
NAME’
/usr/include/asm/semaphore.h: In function ‘up’:
/usr/include/asm/semaphore.h:179: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASE
NAME’
In file included from /usr/src/linux-2.6.17-13mdv/include/linux/tty.h:20,
from pl2303.c:38:
/usr/src/linux-2.6.17-13mdv/include/linux/fs.h: At top level:
/usr/src/linux-2.6.17-13mdv/include/linux/fs.h:761: warning: ‘struct flock64’ de
clared inside parameter list
/usr/src/linux-2.6.17-13mdv/include/linux/fs.h:761: warning: its scope is only t
his definition or declaration, which is probably not what you want
/usr/src/linux-2.6.17-13mdv/include/linux/fs.h:763: warning: ‘struct flock64’ de
clared inside parameter list
In file included from /usr/src/linux-2.6.17-13mdv/include/linux/module.h:23,
from /usr/include/asm/termios.h:61,
from /usr/src/linux-2.6.17-13mdv/include/linux/termios.h:5,
from /usr/src/linux-2.6.17-13mdv/include/linux/tty.h:22,
from pl2303.c:38:
/usr/include/asm/module.h:62:2: error: #error unknown processor family
In file included from /usr/include/asm/termios.h:61,
from /usr/src/linux-2.6.17-13mdv/include/linux/termios.h:5,
from /usr/src/linux-2.6.17-13mdv/include/linux/tty.h:22,
from pl2303.c:38:
/usr/src/linux-2.6.17-13mdv/include/linux/module.h:210: error: requested alignme
nt is not a constant

...

Ciao, Paolo.

2008.0 kernel 2.6.24.7 on DELL PowerEdge T105
2009.0 kernel 2.6.26.1 on my HTPC Atlhon 5200 - Mythtv 0.21
2010.0 kernel 2.6.31.12 on DELL Optiplex 380

Ritratto di Moreno
Moreno
(Guru)
Offline
Guru
Iscritto: 24/09/2004
Messaggi: 16862

Ciao

Che io sappia non è necessario alcun driver per le porte USB seriali, avevo fatto qualche esperimento tempo fa e tutto era partito al volo.

I driver a cui fai riferimento sembra cose per Vecchissime versioni di RedHat (REDHAD 7.3_8.0_9.0) probabilmente con kernel ancora 2.4.

Inserisci la chiave, dai un bell'lsusb per vedere se il device viene visto.

In teoria quando a questo punto dovresti trovare artella /dev un file del tipo tty qualche cosa che sparisce quando rimuovi la chiave.

Quello è il device da usare per accedere alla porta seriale.

[postedit]
Ho fatto una prova veloce il device è /dev/ttyUSB0 (molto fantasioso)
[/postedit]

Ciao Ciao Moreno

Addio, e grazie per tutto il pesce.
Avatar by moonlight-dream.