Hackerboard Wiki HaboBlog
Hackerboard bei Facebook Hackerboard bei Google+ Hackerboard bei Twitter

[HaBo]

 
Linux/UNIX Linuxverfechter finden hier Weggefährten.

Suche modversions.h

Diskussion: Suche modversions.h im Forum Linux/UNIX, in der Kategorie Operating Systems; Anzeige Hallo, Ich such schon den ganzen Tag nach der Header-Datei " modversions.h ", kann sie aber nicht finden. Hat ...

Antwort
Alt 22.12.09, 16:26   #1 (permalink)
 
Registriert seit: 02.01.08
EXIT Leistung: Facit NTK
Likes: 0
Standard Suche modversions.h

Anzeige

Hallo,

Ich such schon den ganzen Tag nach der Header-Datei "modversions.h", kann sie aber nicht finden.

Hat die jemand auf der Festplatte? oder kann mir jemand sagen welches Paket ich installieren muss damit ich die Datei bekomm?



Danke
exit

EXIT ist offline   Mit Zitat antworten
Alt 22.12.09, 16:32   #2 (permalink)
Moderator
 
Benutzerbild von bitmuncher
 
Registriert seit: 30.09.06
bitmuncher Quadcorebitmuncher Quadcorebitmuncher Quadcorebitmuncher Quadcorebitmuncher Quadcorebitmuncher Quadcore
Likes: 441
Standard

Du brauchst die Kernel-Header oder den Kernel-Source.
__________________
Mein Blog - Mein Job - Diaspora

Der Ring uns zu knechten besteht aus 12 Sternen auf blauem Grund.

Neue Beiträge im Habo via Twitter - Das HaBo auf FB - Das HaBo bei G+
bitmuncher ist offline   Mit Zitat antworten
   
HaBOT
 
- Anzeige -

Werbung ist gerade online    
Alt 22.12.09, 17:06   #3 (permalink)
Themenstarter
 
Registriert seit: 02.01.08
EXIT Leistung: Facit NTK
Likes: 0
Standard

also die Source hab ich runtergeladen (linux-source-2.6.31),

hab gerade gelesen das man sich die erstellen lassen muss
( http://ssl.schlittermann.de/pipermai...er/058155.html )
EXIT ist offline   Mit Zitat antworten
Alt 22.12.09, 17:09   #4 (permalink)
Moderator
 
Benutzerbild von bitmuncher
 
Registriert seit: 30.09.06
bitmuncher Quadcorebitmuncher Quadcorebitmuncher Quadcorebitmuncher Quadcorebitmuncher Quadcorebitmuncher Quadcore
Likes: 441
Standard

Die meisten Distros haben die Datei in ihren kernel-headers-Paketen drin:

Code:
# apt-file search modversions.h
linux-headers-2.6.26-2-amd64: /usr/src/linux-headers-2.6.26-2-amd64/include/config/modversions.h
linux-headers-2.6.26-2-openvz-amd64: /usr/src/linux-headers-2.6.26-2-openvz-amd64/include/config/modversions.h
linux-headers-2.6.26-2-vserver-amd64: /usr/src/linux-headers-2.6.26-2-vserver-amd64/include/config/modversions.h
linux-headers-2.6.26-2-xen-amd64: /usr/src/linux-headers-2.6.26-2-xen-amd64/include/config/modversions.h
Ich würde also an deiner Stelle erstmal im Paketmanager schauen, bevor du ggf. inkompatible Kernel-Sources nutzt.
__________________
Mein Blog - Mein Job - Diaspora

Der Ring uns zu knechten besteht aus 12 Sternen auf blauem Grund.

Neue Beiträge im Habo via Twitter - Das HaBo auf FB - Das HaBo bei G+
bitmuncher ist offline   Mit Zitat antworten
Alt 22.12.09, 17:35   #5 (permalink)
Themenstarter
 
Registriert seit: 02.01.08
EXIT Leistung: Facit NTK
Likes: 0
Standard

ok danke,

der Tipp is ganz gut, nur leider sind bei mir alle modversions.h leer

Ich kompiliere jetzt erstmal einen neuen kernel und schau mal ob dann eine modversions.h entsteht in der dann auch was drin ist

danke erstmal
ich poste dann nochmal obs geklappt hat

exit
EXIT ist offline   Mit Zitat antworten
Alt 22.12.09, 17:39   #6 (permalink)
Moderator
 
Benutzerbild von bitmuncher
 
Registriert seit: 30.09.06
bitmuncher Quadcorebitmuncher Quadcorebitmuncher Quadcorebitmuncher Quadcorebitmuncher Quadcorebitmuncher Quadcore
Likes: 441
Standard

Komplett kompilieren wird vermutlich nicht notwendig sein. Es sollte reichen ein 'make oldconfig' durchlaufen zu lassen, nachdem du die /boot/config-<deinekernelversion> nach /kernelsource/.config kopiert hast.
__________________
Mein Blog - Mein Job - Diaspora

Der Ring uns zu knechten besteht aus 12 Sternen auf blauem Grund.

Neue Beiträge im Habo via Twitter - Das HaBo auf FB - Das HaBo bei G+
bitmuncher ist offline   Mit Zitat antworten
Alt 23.12.09, 00:05   #7 (permalink)
Themenstarter
 
Registriert seit: 02.01.08
EXIT Leistung: Facit NTK
Likes: 0
Standard

so ok, also das mit dem modversions.h hat er erkannt als ich die modversions.h datei an die richtige stelle kopiert hatte,




Mein eigentliches Problem ist folgendes:

Ich will meinen DLP-RFID1 reader/writer anschließen aber Ubuntu erkennt ihn nicht.

Damit er erkannt wird brauch ich den treiber ftdi_sio. Ich hab die ftdi_sio.c und ftdi_sio.h auf der festplatte sowie die make dateien - die aber nicht durchlaufen

die ftdi_sio.o hab ich mir mittlerweile auch aus dem netz geladen
genau wie ftdi_sio.ko und usbserial.ko


Code:
sudo modeprobe -v ftdi_sio:
insmod /lib/modules/2.6.31-16-generic/kernel/drivers/usb/serial/usbserial.ko 
insmod /lib/modules/2.6.31-16-generic/kernel/drivers/usb/serial/ftdi_sio.ko
Code:
lsusb:

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 05a9:2640 OmniVision Technologies, Inc. OV2640 Webcam
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 0403:fbfc Future Technology Devices International, Ltd 
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Code:
dmesg:
[  202.975603] USB Serial support registered for generic
[  202.975672] usbcore: registered new interface driver usbserial_generic
[  202.975678] usbserial: USB Serial Driver core
[  203.015874] USB Serial support registered for FTDI USB Serial Device
[  203.016045] usbcore: registered new interface driver ftdi_sio
[  203.016051] ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver
kann mir bitte jemand sagen was ich falsch mach oder wie ich vorgehen muss damit der treiber eingebunden wird?
EXIT ist offline   Mit Zitat antworten
Alt 23.12.09, 00:14   #8 (permalink)
Moderator
 
Benutzerbild von bitmuncher
 
Registriert seit: 30.09.06
bitmuncher Quadcorebitmuncher Quadcorebitmuncher Quadcorebitmuncher Quadcorebitmuncher Quadcorebitmuncher Quadcore
Likes: 441
Standard

Code:
[  203.016045] usbcore: registered new interface driver ftdi_sio
[  203.016051] ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver
Der Treiber wird doch offensichtlich korrekt geladen. Warum du allerdings einzelne Kernel-Module aus dem Netz lädst, ist mir ein Rätsel. Der Treiber dürfte beim Default-Kernel von Ubuntu vorhanden sein, denn er ist bereits in allen 2.6.x-Kerneln verfügbar, wie man auf der ursprünglichen Website des Projekts nachlesen kann.

Zitat:
Use the most up to date linux kernel. This means 2.6.x or at least 2.4.30. The driver is included.
__________________
Mein Blog - Mein Job - Diaspora

Der Ring uns zu knechten besteht aus 12 Sternen auf blauem Grund.

Neue Beiträge im Habo via Twitter - Das HaBo auf FB - Das HaBo bei G+
bitmuncher ist offline   Mit Zitat antworten
Alt 23.12.09, 00:23   #9 (permalink)
Themenstarter
 
Registriert seit: 02.01.08
EXIT Leistung: Facit NTK
Likes: 0
Standard

ok, mir fällt gerade ein das die ftdi_sio.o mir gar nichts nützt, da ich ja die ftdi_sio.h umschreiben muss in der zeile “#define FTDI_8U232AM_ALT_PID 0x6006" in “#define FTDI_8U232AM_ALT_PID 0xfbfc"
(so ein mist, da war das bisschen hirn wohl gerade baden...) also muss ich doch diesen ftdi_sio mit make kompilieren
mein problem:

Code:
gcc -Wall -D__KERNEL__ -DMODULE -I/lib/modules/2.6.31-16-generic/build/include -D__SMP__ -DSMP -DMODVERSIONS -include /lib/modules/2.6.31-16-generic/build/include/linux/modversions.h -I/usr/src/linux-2.6.31-16-generic/drivers/usb/serial/ -O    ftdi_sio.c   -o ftdi_sio
In file included from /lib/modules/2.6.31-16-generic/build/include/asm/byteorder.h:31,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/kernel.h:15,
                 from ftdi_sio.c:251:
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/little_endian.h:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__cpu_to_le64p’
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/little_endian.h:47: warning: type defaults to ‘int’ in declaration of ‘__le64’
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/little_endian.h:47: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/little_endian.h:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__cpu_to_le32p’
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/little_endian.h:55: warning: type defaults to ‘int’ in declaration of ‘__le32’
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/little_endian.h:55: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/little_endian.h:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__cpu_to_le16p’
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/little_endian.h:63: warning: type defaults to ‘int’ in declaration of ‘__le16’
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/little_endian.h:63: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/little_endian.h:67: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__cpu_to_be64p’
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/little_endian.h:71: warning: type defaults to ‘int’ in declaration of ‘__be64’
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/little_endian.h:71: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/little_endian.h:75: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__cpu_to_be32p’
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/little_endian.h:79: warning: type defaults to ‘int’ in declaration of ‘__be32’
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/little_endian.h:79: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/little_endian.h:83: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__cpu_to_be16p’
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/little_endian.h:87: warning: type defaults to ‘int’ in declaration of ‘__be16’
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/little_endian.h:87: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
In file included from /lib/modules/2.6.31-16-generic/build/include/linux/byteorder/little_endian.h:105,
                 from /lib/modules/2.6.31-16-generic/build/include/asm/byteorder.h:31,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/kernel.h:15,
                 from ftdi_sio.c:251:
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/generic.h:143: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/generic.h:148: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/generic.h:153: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/generic.h:158: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/generic.h:163: error: expected ‘)’ before ‘*’ token
/lib/modules/2.6.31-16-generic/build/include/linux/byteorder/generic.h:168: error: expected ‘)’ before ‘*’ token
In file included from /lib/modules/2.6.31-16-generic/build/include/linux/spinlock.h:16,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/mmzone.h:8,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/gfp.h:4,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/slab.h:15,
                 from ftdi_sio.c:254:
/lib/modules/2.6.31-16-generic/build/include/asm/processor.h:79: error: array type has incomplete element type
In file included from /lib/modules/2.6.31-16-generic/build/include/asm/smp.h:18,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/smp.h:17,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/topology.h:33,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/mmzone.h:381,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/gfp.h:4,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/slab.h:15,
                 from ftdi_sio.c:254:
/lib/modules/2.6.31-16-generic/build/include/asm/mpspec.h:79: warning: ‘packed’ attribute ignored for field of type ‘unsigned char[6]’
In file included from /lib/modules/2.6.31-16-generic/build/include/asm/smp.h:22,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/smp.h:17,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/topology.h:33,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/mmzone.h:381,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/gfp.h:4,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/slab.h:15,
                 from ftdi_sio.c:254:
/lib/modules/2.6.31-16-generic/build/include/asm/apic.h: In function ‘apic_write_atomic’:
/lib/modules/2.6.31-16-generic/build/include/asm/apic.h:33: warning: value computed is not used
In file included from /lib/modules/2.6.31-16-generic/build/include/linux/mmzone.h:381,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/gfp.h:4,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/slab.h:15,
                 from ftdi_sio.c:254:
/lib/modules/2.6.31-16-generic/build/include/linux/topology.h: In function ‘__next_node_with_cpus’:
/lib/modules/2.6.31-16-generic/build/include/linux/topology.h:50: warning: implicit declaration of function ‘node_to_cpumask’
/lib/modules/2.6.31-16-generic/build/include/linux/topology.h:50: error: incompatible types when assigning to type ‘cpumask_t’ from type ‘int’
In file included from /lib/modules/2.6.31-16-generic/build/include/linux/nfs.h:10,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/nfs_fs_i.h:6,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/fs.h:630,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/tty.h:20,
                 from ftdi_sio.c:255:
/lib/modules/2.6.31-16-generic/build/include/linux/sunrpc/msg_prot.h: At top level:
/lib/modules/2.6.31-16-generic/build/include/linux/sunrpc/msg_prot.h:102: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rpc_fraghdr’
In file included from /lib/modules/2.6.31-16-generic/build/include/asm/siginfo.h:8,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/signal.h:7,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/sched.h:25,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/module.h:10,
                 from ftdi_sio.c:258:
/lib/modules/2.6.31-16-generic/build/include/asm-generic/siginfo.h:250:1: warning: "SIGEV_PAD_SIZE" redefined
In file included from /lib/modules/2.6.31-16-generic/build/include/linux/signal.h:7,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/sched.h:25,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/module.h:10,
                 from ftdi_sio.c:258:
/lib/modules/2.6.31-16-generic/build/include/asm/siginfo.h:6:1: warning: this is the location of the previous definition
In file included from ftdi_sio.c:260:
/lib/modules/2.6.31-16-generic/build/include/asm/uaccess.h: In function ‘verify_area’:
/lib/modules/2.6.31-16-generic/build/include/asm/uaccess.h:54: warning: ‘current_thread_info’ is static but used in inline function ‘verify_area’ which is not static
In file included from ftdi_sio.c:261:
/lib/modules/2.6.31-16-generic/build/include/linux/usb.h:5:27: error: linux/usb_ch9.h: No such file or directory
In file included from ftdi_sio.c:261:
/lib/modules/2.6.31-16-generic/build/include/linux/usb.h: At top level:
/lib/modules/2.6.31-16-generic/build/include/linux/usb.h:45: error: field ‘desc’ has incomplete type
/lib/modules/2.6.31-16-generic/build/include/linux/usb.h:53: error: field ‘desc’ has incomplete type
/lib/modules/2.6.31-16-generic/build/include/linux/usb.h:203: error: field ‘desc’ has incomplete type
/lib/modules/2.6.31-16-generic/build/include/linux/usb.h:288: error: field ‘state’ has incomplete type
/lib/modules/2.6.31-16-generic/build/include/linux/usb.h:289: error: field ‘speed’ has incomplete type
/lib/modules/2.6.31-16-generic/build/include/linux/usb.h:307: error: field ‘descriptor’ has incomplete type
In file included from ftdi_sio.c:261:
/lib/modules/2.6.31-16-generic/build/include/linux/usb.h: In function ‘usb_fill_int_urb’:
/lib/modules/2.6.31-16-generic/build/include/linux/usb.h:893: error: ‘USB_SPEED_HIGH’ undeclared (first use in this function)
/lib/modules/2.6.31-16-generic/build/include/linux/usb.h:893: error: (Each undeclared identifier is reported only once
/lib/modules/2.6.31-16-generic/build/include/linux/usb.h:893: error: for each function it appears in.)
In file included from /lib/modules/2.6.31-16-generic/build/include/linux/mutex.h:14,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/usb/serial.h:17,
                 from ftdi_sio.c:263:
/lib/modules/2.6.31-16-generic/build/include/linux/spinlock_types.h:13:33: error: asm/spinlock_types.h: No such file or directory
In file included from /lib/modules/2.6.31-16-generic/build/include/linux/mutex.h:14,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/usb/serial.h:17,
                 from ftdi_sio.c:263:
/lib/modules/2.6.31-16-generic/build/include/linux/spinlock_types.h: At top level:
/lib/modules/2.6.31-16-generic/build/include/linux/spinlock_types.h:21: error: expected specifier-qualifier-list before ‘raw_spinlock_t’
/lib/modules/2.6.31-16-generic/build/include/linux/spinlock_types.h:32: error: conflicting types for ‘spinlock_t’
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:21: note: previous declaration of ‘spinlock_t’ was here
/lib/modules/2.6.31-16-generic/build/include/linux/spinlock_types.h:37: error: expected specifier-qualifier-list before ‘raw_rwlock_t’
/lib/modules/2.6.31-16-generic/build/include/linux/spinlock_types.h:48: error: conflicting types for ‘rwlock_t’
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:144: note: previous declaration of ‘rwlock_t’ was here
/lib/modules/2.6.31-16-generic/build/include/linux/spinlock_types.h:94:1: warning: "SPIN_LOCK_UNLOCKED" redefined
In file included from /lib/modules/2.6.31-16-generic/build/include/linux/spinlock.h:39,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/mmzone.h:8,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/gfp.h:4,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/slab.h:15,
                 from ftdi_sio.c:254:
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:31:1: warning: this is the location of the previous definition
In file included from /lib/modules/2.6.31-16-generic/build/include/linux/mutex.h:14,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/usb/serial.h:17,
                 from ftdi_sio.c:263:
/lib/modules/2.6.31-16-generic/build/include/linux/spinlock_types.h:95:1: warning: "RW_LOCK_UNLOCKED" redefined
In file included from /lib/modules/2.6.31-16-generic/build/include/linux/spinlock.h:39,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/mmzone.h:8,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/gfp.h:4,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/slab.h:15,
                 from ftdi_sio.c:254:
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:154:1: warning: this is the location of the previous definition
In file included from /lib/modules/2.6.31-16-generic/build/include/linux/usb/serial.h:17,
                 from ftdi_sio.c:263:
/lib/modules/2.6.31-16-generic/build/include/linux/mutex.h:97:1: warning: "__MUTEX_INITIALIZER" redefined
In file included from /lib/modules/2.6.31-16-generic/build/include/linux/fs.h:223,
                 from /lib/modules/2.6.31-16-generic/build/include/linux/tty.h:20,
                 from ftdi_sio.c:255:
/lib/modules/2.6.31-16-generic/build/include/asm/semaphore.h:66:1: warning: this is the location of the previous definition
In file included from ftdi_sio.c:263:
/lib/modules/2.6.31-16-generic/build/include/linux/usb/serial.h:77: error: field ‘port’ has incomplete type
/lib/modules/2.6.31-16-generic/build/include/linux/usb/serial.h:224: error: field ‘dynids’ has incomplete type
/lib/modules/2.6.31-16-generic/build/include/linux/usb/serial.h:237: error: expected declaration specifiers or ‘...’ before ‘pm_message_t’
/lib/modules/2.6.31-16-generic/build/include/linux/usb/serial.h:252: warning: ‘struct ktermios’ declared inside parameter list
/lib/modules/2.6.31-16-generic/build/include/linux/usb/serial.h:252: warning: its scope is only this definition or declaration, which is probably not what you want
/lib/modules/2.6.31-16-generic/build/include/linux/usb/serial.h:284: error: expected declaration specifiers or ‘...’ before ‘pm_message_t’
/lib/modules/2.6.31-16-generic/build/include/linux/usb/serial.h:322: error: expected declaration specifiers or ‘...’ before ‘gfp_t’
ftdi_sio.c:293: error: field ‘rx_work’ has incomplete type
ftdi_sio.c:590: error: unknown field ‘no_dynamic_id’ specified in initializer
ftdi_sio.c:590: warning: missing braces around initializer
ftdi_sio.c:590: warning: (near initialization for ‘ftdi_driver.driver’)
ftdi_sio.c:590: warning: initialization makes pointer from integer without a cast
ftdi_sio.c:632: warning: ‘struct ktermios’ declared inside parameter list
ftdi_sio.c:649: error: unknown field ‘owner’ specified in initializer
ftdi_sio.c:649: warning: initialization from incompatible pointer type
ftdi_sio.c:655: error: unknown field ‘num_interrupt_in’ specified in initializer
ftdi_sio.c:656: error: unknown field ‘num_bulk_in’ specified in initializer
ftdi_sio.c:656: warning: missing braces around initializer
ftdi_sio.c:656: warning: (near initialization for ‘ftdi_sio_device.driver_list’)
ftdi_sio.c:656: warning: initialization makes pointer from integer without a cast
ftdi_sio.c:657: error: unknown field ‘num_bulk_out’ specified in initializer
ftdi_sio.c:657: warning: initialization makes pointer from integer without a cast
ftdi_sio.c:662: warning: initialization from incompatible pointer type
ftdi_sio.c:663: warning: initialization from incompatible pointer type
ftdi_sio.c:664: warning: initialization from incompatible pointer type
ftdi_sio.c:665: warning: initialization from incompatible pointer type
ftdi_sio.c:666: warning: initialization from incompatible pointer type
ftdi_sio.c:667: warning: initialization from incompatible pointer type
ftdi_sio.c:668: warning: initialization from incompatible pointer type
ftdi_sio.c:671: warning: initialization from incompatible pointer type
ftdi_sio.c:672: warning: initialization from incompatible pointer type
ftdi_sio.c:673: warning: initialization from incompatible pointer type
ftdi_sio.c:674: warning: initialization from incompatible pointer type
ftdi_sio.c:675: warning: initialization from incompatible pointer type
ftdi_sio.c:676: error: unknown field ‘shutdown’ specified in initializer
ftdi_sio.c:676: warning: initialization from incompatible pointer type
ftdi_sio.c: In function ‘get_ftdi_divisor’:
ftdi_sio.c:878: error: ‘struct usb_serial_port’ has no member named ‘tty’
ftdi_sio.c:957: warning: implicit declaration of function ‘tty_encode_baud_rate’
ftdi_sio.c:957: error: ‘struct usb_serial_port’ has no member named ‘tty’
ftdi_sio.c: In function ‘set_serial_info’:
ftdi_sio.c:1011: error: ‘struct usb_serial_port’ has no member named ‘tty’
ftdi_sio.c:1017: error: ‘struct usb_serial_port’ has no member named ‘tty’
ftdi_sio.c:1019: error: ‘struct usb_serial_port’ has no member named ‘tty’
ftdi_sio.c:1021: error: ‘struct usb_serial_port’ has no member named ‘tty’
ftdi_sio.c:1023: error: ‘struct usb_serial_port’ has no member named ‘tty’
ftdi_sio.c:1025: error: ‘struct usb_serial_port’ has no member named ‘tty’
ftdi_sio.c: In function ‘ftdi_determine_type’:
ftdi_sio.c:1052: error: ‘__le16’ undeclared (first use in this function)
ftdi_sio.c: In function ‘ftdi_set_max_packet_size’:
ftdi_sio.c:1135: error: dereferencing pointer to incomplete type
ftdi_sio.c:1136: error: dereferencing pointer to incomplete type
ftdi_sio.c:1136: error: ‘__le16’ undeclared (first use in this function)
ftdi_sio.c:1136: error: expected expression before ‘__u16’
ftdi_sio.c:1142: error: dereferencing pointer to incomplete type
ftdi_sio.c: In function ‘show_latency_timer’:
ftdi_sio.c:1166: error: ‘USB_DIR_IN’ undeclared (first use in this function)
ftdi_sio.c: At top level:
ftdi_sio.c:1236: warning: initialization from incompatible pointer type
ftdi_sio.c:1236: warning: initialization from incompatible pointer type
ftdi_sio.c:1237: warning: initialization from incompatible pointer type
ftdi_sio.c: In function ‘ftdi_sio_port_probe’:
ftdi_sio.c:1314: warning: implicit declaration of function ‘kzalloc’
ftdi_sio.c:1314: warning: assignment makes pointer from integer without a cast
ftdi_sio.c:1320: error: unknown field ‘raw_lock’ specified in initializer
ftdi_sio.c:1320: error: ‘__RAW_SPIN_LOCK_UNLOCKED’ undeclared (first use in this function)
ftdi_sio.c:1320: warning: excess elements in struct initializer
ftdi_sio.c:1320: warning: (near initialization for ‘(anonymous)’)
ftdi_sio.c:1321: error: unknown field ‘raw_lock’ specified in initializer
ftdi_sio.c:1321: warning: excess elements in struct initializer
ftdi_sio.c:1321: warning: (near initialization for ‘(anonymous)’)
ftdi_sio.c:1342: warning: implicit declaration of function ‘INIT_DELAYED_WORK’
ftdi_sio.c: In function ‘ftdi_open’:
ftdi_sio.c:1447: warning: passing argument 1 of ‘_raw_spin_lock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:113: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c:1449: warning: passing argument 1 of ‘_raw_spin_unlock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:71: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c:1450: warning: passing argument 1 of ‘_raw_spin_lock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:113: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c:1452: warning: passing argument 1 of ‘_raw_spin_unlock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:71: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c:1454: error: ‘struct usb_serial_port’ has no member named ‘tty’
ftdi_sio.c:1455: error: ‘struct usb_serial_port’ has no member named ‘tty’
ftdi_sio.c:1469: error: ‘struct usb_serial_port’ has no member named ‘tty’
ftdi_sio.c:1470: error: ‘struct usb_serial_port’ has no member named ‘tty’
ftdi_sio.c:1478: warning: passing argument 1 of ‘_raw_spin_lock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:113: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c:1480: warning: passing argument 1 of ‘_raw_spin_unlock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:71: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c:1485: error: ‘USB_DIR_IN’ undeclared (first use in this function)
ftdi_sio.c:1487: warning: passing argument 6 of ‘usb_fill_bulk_urb’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/linux/usb.h:842: note: expected ‘usb_complete_t’ but argument is of type ‘void (*)(struct urb *)’
ftdi_sio.c: In function ‘ftdi_close’:
ftdi_sio.c:1508: error: ‘struct usb_serial_port’ has no member named ‘tty’
ftdi_sio.c: In function ‘ftdi_write’:
ftdi_sio.c:1563: warning: passing argument 1 of ‘_raw_spin_lock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:113: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c:1565: warning: passing argument 1 of ‘_raw_spin_unlock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:71: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c:1570: warning: passing argument 1 of ‘_raw_spin_unlock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:71: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c:1631: warning: passing argument 6 of ‘usb_fill_bulk_urb’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/linux/usb.h:842: note: expected ‘usb_complete_t’ but argument is of type ‘void (*)(struct urb *)’
ftdi_sio.c:1639: warning: passing argument 1 of ‘_raw_spin_lock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:113: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c:1642: warning: passing argument 1 of ‘_raw_spin_unlock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:71: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c:1656: warning: passing argument 1 of ‘_raw_spin_lock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:113: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c:1658: warning: passing argument 1 of ‘_raw_spin_unlock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:71: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c: In function ‘ftdi_write_bulk_callback’:
ftdi_sio.c:1696: warning: passing argument 1 of ‘_raw_spin_lock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:113: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c:1699: warning: passing argument 1 of ‘_raw_spin_unlock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:71: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c: In function ‘ftdi_write_room’:
ftdi_sio.c:1713: warning: passing argument 1 of ‘_raw_spin_lock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:113: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c:1724: warning: passing argument 1 of ‘_raw_spin_unlock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:71: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c: In function ‘ftdi_chars_in_buffer’:
ftdi_sio.c:1737: warning: passing argument 1 of ‘_raw_spin_lock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:113: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c:1739: warning: passing argument 1 of ‘_raw_spin_unlock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:71: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c: In function ‘ftdi_read_bulk_callback’:
ftdi_sio.c:1766: error: ‘struct usb_serial_port’ has no member named ‘open_count’
ftdi_sio.c:1769: error: ‘struct usb_serial_port’ has no member named ‘tty’
ftdi_sio.c:1795: warning: passing argument 1 of ‘_raw_spin_lock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:113: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c:1797: warning: passing argument 1 of ‘_raw_spin_unlock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:71: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c: In function ‘ftdi_process_read’:
ftdi_sio.c:1807: warning: type defaults to ‘int’ in declaration of ‘__mptr’
ftdi_sio.c:1807: warning: initialization from incompatible pointer type
ftdi_sio.c:1822: error: ‘struct usb_serial_port’ has no member named ‘open_count’
ftdi_sio.c:1825: error: ‘struct usb_serial_port’ has no member named ‘tty’
ftdi_sio.c:1890: warning: implicit declaration of function ‘tty_buffer_request_room’
ftdi_sio.c:1963: warning: passing argument 1 of ‘_raw_spin_lock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:113: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c:1966: warning: passing argument 1 of ‘_raw_spin_unlock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:71: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c:1971: warning: passing argument 1 of ‘_raw_spin_unlock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:71: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c:1973: error: ‘struct usb_serial_port’ has no member named ‘open_count’
ftdi_sio.c:1986: error: ‘struct usb_serial_port’ has no member named ‘open_count’
ftdi_sio.c:1989: error: ‘USB_DIR_IN’ undeclared (first use in this function)
ftdi_sio.c:1991: warning: passing argument 6 of ‘usb_fill_bulk_urb’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/linux/usb.h:842: note: expected ‘usb_complete_t’ but argument is of type ‘void (*)(struct urb *)’
ftdi_sio.c: At top level:
ftdi_sio.c:2037: warning: ‘struct ktermios’ declared inside parameter list
ftdi_sio.c:2037: error: conflicting types for ‘ftdi_set_termios’
ftdi_sio.c:632: note: previous declaration of ‘ftdi_set_termios’ was here
ftdi_sio.c: In function ‘ftdi_set_termios’:
ftdi_sio.c:2041: error: ‘struct usb_serial_port’ has no member named ‘tty’
ftdi_sio.c:2042: error: dereferencing pointer to incomplete type
ftdi_sio.c:2047: error: dereferencing pointer to incomplete type
ftdi_sio.c:2054: error: dereferencing pointer to incomplete type
ftdi_sio.c:2056: error: ‘struct usb_serial_port’ has no member named ‘tty’
ftdi_sio.c:2063: error: dereferencing pointer to incomplete type
ftdi_sio.c:2066: error: dereferencing pointer to incomplete type
ftdi_sio.c:2077: error: dereferencing pointer to incomplete type
ftdi_sio.c:2127: error: dereferencing pointer to incomplete type
ftdi_sio.c:2158: error: dereferencing pointer to incomplete type
ftdi_sio.c:2159: error: dereferencing pointer to incomplete type
ftdi_sio.c: In function ‘ftdi_tiocmget’:
ftdi_sio.c:2201: error: ‘USB_DIR_IN’ undeclared (first use in this function)
ftdi_sio.c: In function ‘ftdi_throttle’:
ftdi_sio.c:2325: warning: passing argument 1 of ‘_raw_spin_lock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:113: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c:2327: warning: passing argument 1 of ‘_raw_spin_unlock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:71: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c: In function ‘ftdi_unthrottle’:
ftdi_sio.c:2339: warning: passing argument 1 of ‘_raw_spin_lock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:113: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
ftdi_sio.c:2342: warning: passing argument 1 of ‘_raw_spin_unlock’ from incompatible pointer type
/lib/modules/2.6.31-16-generic/build/include/asm/spinlock.h:71: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct spinlock_t *’
make: *** [ftdi_sio] Fehler 1
EXIT ist offline   Mit Zitat antworten
Alt 23.12.09, 00:38   #10 (permalink)
Moderator
 
Benutzerbild von bitmuncher
 
Registriert seit: 30.09.06
bitmuncher Quadcorebitmuncher Quadcorebitmuncher Quadcorebitmuncher Quadcorebitmuncher Quadcorebitmuncher Quadcore
Likes: 441
Standard

Du musst mit ziemlicher Sicherheit nicht das uralte Modul von der Homepage kompilieren. Installiere dir die Kernel-Sources über den Paketmanager, entpacke sie nach /usr/src/linux, ändere die drivers/usb/serial/ftdi_sio.h im Kernel-Source und baue dir ein neues Kernel-Paket oder installiere ihn auf die hässliche Art:

Code:
cd /usr/src/linux
cp /boot/config-`uname -r` ./.config
make oldconfig
make all
make modules_install
make install
Wie bereits gesagt, ist dieser Treiber mittlerweile Bestandteil des Standard-Kernels. Denke daran den Kernel in deinem Paketmanager auf 'hold' zu setzen, damit dein selbstgebauter Kernel beim nächsten Update nicht überschrieben wird. Und denke auch dran in Zukunft regelmäßig auf die oben beschriebene Weise deinen Kernel auf den neuesten Stand zu bringen um Sicherheitslücken zu vermeiden.
__________________
Mein Blog - Mein Job - Diaspora

Der Ring uns zu knechten besteht aus 12 Sternen auf blauem Grund.

Neue Beiträge im Habo via Twitter - Das HaBo auf FB - Das HaBo bei G+
bitmuncher ist offline   Mit Zitat antworten
Alt 26.12.09, 19:59   #11 (permalink)
Themenstarter
 
Registriert seit: 02.01.08
EXIT Leistung: Facit NTK
Likes: 0
Standard

super, danke hat geklappt.

  1. Hab erst die Kernel-Source runtergeladen ( also noch mal neu)
  2. entpackt
  3. Hab dann die ftdi_iso.h gesucht (drivers/usb/serial/ftdi_sio.h)
  4. hab dann die Zeile: “#define FTDI_8U232AM_ALT_PID 0x6006" mit “#define FTDI_8U232AM_ALT_PID 0xfbfc" ersetzt
  5. danach "make menuconfig" durchgeführt
  6. und den kernel als .deb packet erstellen lassen mit "fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers"
  7. das .deb packet hab ich dann einfach mal installiert mit "dpkg -i linux-headers-2.6.24.3-custom_2.6.24.3-custom-10.00.Custom_i386.deb" und dann "
    dpkg -i linux-image-2.6.24.3-custom_2.6.24.3-custom-10.00.Custom_i386.deb" (es kann sein das die bezeichnung falsch ist, aber es hat funktioniert)
  8. fertig, jetzt wird mein DLP RFID1 writer/reader erkannt

danke an bitmuncher, war echt super von dir


schöne Weihnachten noch
exit
EXIT ist offline   Mit Zitat antworten
Antwort
   
- Anzeige -

Werbung ist gerade online    

[HaBo] » Operating Systems » Linux/UNIX » Suche modversions.h
Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind aus
Pingbacks sind aus
Refbacks sind aus



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61