• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Adapterkabel USB-Seriell für Handy installieren

paco

Newbie
Liebe Forums-Mitglieder,

ich habe ein Notebook mit openSuse 10.2 und möchte die Adressen meines alten Siemens ME 45 Handies auslesen. Das Datenkabel des Handies hat einen seriellen Anschluss, allerdings verfügt mein Notebook nicht über eine serielle Schnittstelle. Daher habe ich mir ein Adapterkabel von dem seriellen Anschluss an einen USB-Stecker besorgt.

Das Kabel kommt sogar mit entsprechenden Linux-Treibern. Allerdings bekomme ich diese nicht installiert. Ich vermute, dass dies weniger an den Treibern oder der Hardware liegt, sondern vielmehr an meinen kaum vorhandenen Kenntnissen bezüglich "von-Hand-Installationen" unter Linux. Ich denke, dass ich in dem bei der Treibersoftware mitgelieferten "makefile" einige Einstellungen ändern muss, aber ich weiß nicht wie und komme auch nach googeln nicht weiter. Ich hoffe, dass mir jemand von Euch weiterhelfen kann.

Das Kabel kommt mit den folgenden Dateien:

-r-------- 1 root root 963 Aug 30 21:44 Makefile
-r-------- 1 root root 1257 Feb 17 2004 linux.txt
-r-------- 1 root root 20602 Feb 14 2002 pl2303.c
-r-------- 1 root root 3606 Feb 14 2002 pl2303.h
-r-------- 1 root root 8283 Feb 14 2002 usb-serial.h
-r-------- 1 root root 46943 Feb 14 2002 usbserial.c

In der Datei linux.txt steht folgendes:

Q: How to install USB 1.1 TO RS232 Cable Linux driver and compile?

A: 1. Under root folder, create a new folder and copy USB 1.1 TO RS232 Cable source code to new folder.

2. Open "Makefile" with GEDIT or KATE under new folder.

3. Modify line 5 "KINCLUDES=/usr/src/linux/include".
Example: "KINCLUDES=/usr/src/linux-2.4.7-10/include".
You could find folder name on Linux.

4. Open terminal mode and login root user.

5. Go to the new folder and then type "make all" to compile the PL-2303 source code. This will create two files: "pl2303.o" and "usbserial.o".

6. Type "make inst" that will install the PL-2303 Linux driver into Linux.

7. Plug the PL-2303 cable into USB port and key-in "dmesg", it will show "Prolific USB Serial Adapter converter now attached to ttyUSB0 (orusb/tts/0 for devfs)". This means the cable is now working under Linux.

Note: You must login into root user in order to successfully compile and install.


Bis einschließlich Punkt 4 habe ich alles hinbekommen. Wenn ich jedoch wie unter Punkt 5 beschrieben den Befehl "make all" eintippe, bekomme ich folgende Fehlermeldung:

linux-jvge:~/07-08-30_Linux/Linux # make all
gcc -D__KERNEL__ -I/usr/src/linux-2.6.18.8-0.5-obj/include -DCPU=586 -march=i586 -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -DMODULE -c pl2303.c
pl2303.c:1: error: CPU you selected does not support x86-64 instruction set
pl2303.c:1: error: CPU you selected does not support x86-64 instruction set
make: *** [pl2303.o] Error 1


Soweit ich diese für mich kryptischen Zeilen entziffern kann, stimmt etwas nicht mit den Systemeinstellungen, die in dem mitgelieferten "makefile" enthalten sind. Ich habe openSuse 10.2 installiert, das meines Wissens ein 64-bit System ist (inwiefern dies relevant ist, weiß ich nicht). Mein Prozessor ist ein Intel Core2 Duo T5500.

Die "makefile"-Datei kommt mit folgendem Inhalt:


# Kernel includes. Please avoid
# using '/usr/include' unless all
# other options exhausted.
#
KINCLUDES=/usr/src/linux-2.6.18.8-0.5-obj/include

# uncomment line below if you have SMP
#SMPFLAGS= -D__SMP__ -DCONFIG_SMP=1

# Unless you have a 386/486, you shouldn't need
# to change anything below here...

CPUFLAGS= -DCPU=586 -march=i586
MODULE= pl2303
CC= gcc

KERNFLAGS= \
-D__KERNEL__ -I$(KINCLUDES) $(CPUFLAGS) $(SMPFLAGS) \
-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \
-fno-strict-aliasing -pipe -DMODULE

EXTRA_CFLAGS= -DEXPORT_SYMTAB

# DBGCFLAGS = -DDEBUG -DUSB_SERIAL_DEBUG

CFLAGS= $(KERNFLAGS) $(DBGCFLAGS)


all:: $(MODULE).o usbserial.o

$(MODULE).o: $(MODULE).c usb-serial.h
$(CC) $(CFLAGS) -c $<

usbserial.o: usbserial.c usb-serial.h
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $<

inst:
insmod ./usbserial.o
insmod ./pl2303.o

uninst:
rmmod pl2303
rmmod usbserial

clean:
rm -f *.o


(Wobei ich in der fünften Zeile schon eine Änderung von "KINCLUDES=/usr/src/linux/include" in "KINCLUDES=/usr/src/linux-2.6.18.8-0.5-obj/include" vorgenommen habe.)


Jetzt ist meine Vermutung die, dass ich in dem "makefile" in der Zeile "CPUFLAGS= -DCPU=586 -march=i586" etwas ändern muss. Ich habe auch schon gegoogelt und unter der Seite http://gcc.gnu.org einige Infos gefunden. Beispielsweise dass ich hinter "-march=" "core2" eintragen könnnte (wobei ich nicht sicher bin, ob dies stimmt). Aber was ich hinter "-dcpu=" eintragen soll, weiß ich nicht.

Muss ich ggf. weitere Änderungen in der "makefile"-Datei vornehmen?

Für die beispielhafte Änderung der o.g. Zeile "CPUFLAGS= -DCPU=586 -march=i586" in "CPUFLAGS= -DCPU=x86_64 -march=core2" erhalte ich nach Ausführung von "makefile" folgende Fehlermeldung:

linux-jvge:~/07-08-30_Linux/Linux # make all
gcc -D__KERNEL__ -I/usr/src/linux-2.6.18.8-0.5-obj/include -DCPU=x86_64 -march=core2 -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -DMODULE -c pl2303.c
pl2303.c:1: error: bad value (core2) for -march= switch
pl2303.c:1: error: bad value (core2) for -mtune= switch
make: *** [pl2303.o] Error 1
linux-jvge:~/07-08-30_Linux/Linux #

Ich weiß, dass dies wahrscheinlich grober Unfug ist, aber ich wollte die Fehlermeldung für Euch reproduzieren.

Könnte mir jemand von Euch freundlicherweise weiterhelfen? Vielen Dank im Voraus!
 
Oben