Pagina 2 di 3 primaprima 1 2 3 ultimoultimo
Visualizzazione dei risultati da 11 a 20 su 26

Discussione: installazione driver

  1. #11
    Originariamente inviato da AMRITA1979
    digito cp pl2303.c /root/driver
    e lui con questo comando mi fa la copia di pl2303.c e me lo chiama /root/driver
    in sostanza l'errore dovrebbe esserti chiaro. con il secondo termine non hai indicato la cartella di destinazione,per farlo avresti dovuto usare il path completo,ovver /root/driver/ con lo slash finale.

  2. #12
    Grazie, il problema era proprio lo / finale che non aggiungevo.
    Ma ora ho un altro problema, le istruzioni mi dicono :Apri "Makefile" con GEDIT o con KATE nella nuova cartella.
    Ma il makefile si trova nella cartella Linux dive di trovano il file.c, i file.h e il readme.txt.
    Io ho aperto il makefile con kate e poi l'ho salvata nella cartella /root/driver/ dove si trova il file.c,
    ma quando poi faccio make all, come mi dice l'istruzione, mi da tantissimi errori sul file .c e non riesce a compilare

  3. #13
    In generale per compilare un pacchetto si devono dare sti comandi (dalla directory dove si trovano i file sorgenti).

    # ./configure
    # make
    # make install

    Cmq non puoi pretendere aiuto essendo cosi' generico, cosa significa da' tanti errori? Copia questi errori e postali sul forum, poi (forse) qualcuno potra' aiutarti.
    It's just another bombtrack...
    Ogni can mena la coa, ogni coion vö gi' la soa!

  4. #14
    Come faccio a trovare i file.h necessari per compilare il mio file.c, che sono tutti #include<linux/file.h>

  5. #15
    Posta l'output degli errori per favore. E due.

    Ti mancano delle librerie, ma quali? Mi spiace ma non ci capisco niente cosi'... dimmi almeno che come si chiama sto driver e di che conveerter USB-rs232 stai parlando.
    It's just another bombtrack...
    Ogni can mena la coa, ogni coion vö gi' la soa!

  6. #16
    le librerie che mancano nella cartella /usr/include/asm/ e /usr/include/linux/ sono:
    #include <llinux/config.h>
    #include <linunx/kernel.h>
    #include <linux/sched.h>
    #include <linux/signal.h>
    #include <linux/errno.h>
    #include <linux/poll.h>
    #include <linux/init.h>
    #include <linux/slab.h>
    #include <linux/fcntl.h>
    #include <linux/tty.h>
    #include <linux/tty_driver.h>
    #include <linux/tty_flip.h>
    #include <linux/module.h>
    #include <linux/spinlock.h>
    #include <linux/usb.h>

  7. #17
    Sto cercando di installare il driver usb rs232 serial converter e si chiama PL-2303
    gli errori che mi da quando compilo sono:
    gcc -D__KERNEL__ -I/usr/src/linux-2.6.18-8/include -DCPU=586 -march=i586 -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -DMODULE -c pl2303.c
    pl2303.c:12:27: error: llinux/config.h: No such file or directory
    pl2303.c:13:27: error: linunx/kernel.h: No such file or directory
    In file included from /usr/include/asm/siginfo.h:4,
    from /usr/include/linux/signal.h:5,
    from pl2303.c:15:
    /usr/include/asm-generic/siginfo.h:57: error: size of array ‘_pad’ is too large
    pl2303.c:18:24: error: linux/init.h: No such file or directory
    pl2303.c:19:24: error: linux/slab.h: No such file or directory
    pl2303.c:22:30: error: linux/tty_driver.h: No such file or directory
    pl2303.c:23:28: error: linux/tty_flip.h: No such file or directory
    pl2303.c:24:26: error: linux/module.h: No such file or directory
    pl2303.c:25:28: error: linux/spinlock.h: No such file or directory
    pl2303.c:26:23: error: linux/usb.h: No such file or directory
    In file included from pl2303.c:33:
    usb-serial.h:40:26: error: linux/config.h: No such file or directory
    In file included from pl2303.c:33:
    usb-serial.h:72: error: expected specifier-qualifier-list before ‘wait_queue_head_t’
    usb-serial.h:117: error: field ‘driver_list’ has incomplete type
    usb-serial.h:127: warning: ‘struct file’ declared inside parameter list
    usb-serial.h:127: warning: its scope is only this definition or declaration, which is probably not what you want
    usb-serial.h:128: warning: ‘struct file’ declared inside parameter list
    usb-serial.h:131: warning: ‘struct file’ declared inside parameter list
    usb-serial.h:132: warning: ‘struct termios’ declared inside parameter list
    usb-serial.h: In function ‘serial_paranoia_check’:
    usb-serial.h:164: warning: implicit declaration of function ‘dbg’
    pl2303.c:34:20: error: pl2303.h: No such file or directory
    pl2303.c: At top level:
    pl2303.c:42: warning: ‘struct file’ declared inside parameter list
    pl2303.c:43: warning: ‘struct file’ declared inside parameter list
    pl2303.c:45: warning: ‘struct termios’ declared inside parameter list
    pl2303.c:47: warning: ‘struct file’ declared inside parameter list
    pl2303.c:53: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘struct’
    pl2303.c:58: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘struct’
    pl2303.c:63: warning: data definition has no type or storage class
    pl2303.c:63: warning: type defaults to ‘int’ in declaration of ‘MODULE_DEVICE_TABLE’
    pl2303.c:63: warning: parameter names (without types) in function declaration
    pl2303.c:70: error: ‘prolific_sa_table’ undeclared here (not in a function)
    pl2303.c:78: warning: initialization from incompatible pointer type
    pl2303.c:79: warning: initialization from incompatible pointer type
    pl2303.c:83: warning: initialization from incompatible pointer type
    pl2303.c:84: warning: initialization from incompatible pointer type
    pl2303.c: In function ‘prolific_sa_startup’:
    pl2303.c:137: error: ‘struct usb_serial_port’ has no member named ‘private’
    pl2303.c:137: warning: implicit declaration of function ‘kmalloc’
    pl2303.c:137: error: ‘GFP_KERNEL’ undeclared (first use in this function)
    pl2303.c:137: error: (Each undeclared identifier is reported only once
    pl2303.c:137: error: for each function it appears in.)
    pl2303.c:138: error: ‘struct usb_serial_port’ has no member named ‘private’
    pl2303.c:140: error: ‘struct usb_serial_port’ has no member named ‘private’
    pl2303.c:148: error: dereferencing pointer to incomplete type
    pl2303.c:149: warning: implicit declaration of function ‘info’
    pl2303.c:149: error: dereferencing pointer to incomplete type
    pl2303.c:151: warning: implicit declaration of function ‘init_waitqueue_head’
    pl2303.c:151: error: ‘struct usb_serial_port’ has no member named ‘write_wait’
    pl2303.c: In function ‘prolific_sa_shutdown’:
    pl2303.c:164: error: ‘struct usb_serial_port’ has no member named ‘open_count’
    pl2303.c:169: error: ‘struct usb_serial_port’ has no member named ‘private’
    pl2303.c:170: warning: implicit declaration of function ‘kfree’
    pl2303.c:170: error: ‘struct usb_serial_port’ has no member named ‘private’
    pl2303.c: At top level:
    pl2303.c:174: warning: ‘struct file’ declared inside parameter list
    pl2303.c:175: error: conflicting types for ‘prolific_sa_open’
    pl2303.c:42: error: previous declaration of ‘prolific_sa_open’ was here
    pl2303.c: In function ‘prolific_sa_open’:
    pl2303.c:178: error: expected ‘)’ before string constant
    pl2303.c:180: warning: implicit declaration of function ‘spin_lock_irqsave’
    pl2303.c:180: error: ‘struct usb_serial_port’ has no member named ‘port_lock’
    pl2303.c:182: error: ‘struct usb_serial_port’ has no member named ‘open_count’
    pl2303.c:183: error: ‘MOD_INC_USE_COUNT’ undeclared (first use in this function)
    pl2303.c:193: error: dereferencing pointer to incomplete type
    pl2303.c:194: warning: implicit declaration of function ‘usb_submit_urb’
    pl2303.c:195: warning: implicit declaration of function ‘err’
    pl2303.c:197: error: dereferencing pointer to incomplete type
    pl2303.c:202: warning: implicit declaration of function ‘spin_unlock_irqrestore’
    pl2303.c:202: error: ‘struct usb_serial_port’ has no member named ‘port_lock’
    pl2303.c: At top level:
    pl2303.c:207: warning: ‘struct file’ declared inside parameter list
    pl2303.c:208: error: conflicting types for ‘prolific_sa_close’
    pl2303.c:43: error: previous declaration of ‘prolific_sa_close’ was here
    pl2303.c: In function ‘prolific_sa_close’:
    pl2303.c:211: error: expected ‘)’ before string constant
    pl2303.c:213: error: ‘struct usb_serial_port’ has no member named ‘port_lock’
    pl2303.c:215: error: ‘struct usb_serial_port’ has no member named ‘open_count’
    pl2303.c:216: error: ‘MOD_DEC_USE_COUNT’ undeclared (first use in this function)
    pl2303.c:218: error: ‘struct usb_serial_port’ has no member named ‘open_count’
    pl2303.c:220: warning: implicit declaration of function ‘usb_unlink_urb’
    pl2303.c:226: error: ‘struct usb_serial_port’ has no member named ‘port_lock’
    pl2303.c: In function ‘prolific_sa_read_int_callback’:
    pl2303.c:231: error: dereferencing pointer to incomplete type
    pl2303.c:232: error: ‘struct usb_serial_port’ has no member named ‘private’
    pl2303.c:234: error: dereferencing pointer to incomplete type
    pl2303.c:237: error: dereferencing pointer to incomplete type
    pl2303.c:247: error: dereferencing pointer to incomplete type
    pl2303.c:252: error: ‘PROLIFIC_SA_MSR_INDEX’ undeclared (first use in this function)
    pl2303.c:256: error: ‘PROLIFIC_SA_MSR_DSR’ undeclared (first use in this function)
    pl2303.c:257: error: ‘TIOCM_DSR’ undeclared (first use in this function)
    pl2303.c:261: error: ‘PROLIFIC_SA_MSR_CTS’ undeclared (first use in this function)
    pl2303.c:262: error: ‘TIOCM_CTS’ undeclared (first use in this function)
    pl2303.c:266: error: ‘PROLIFIC_SA_MSR_RI’ undeclared (first use in this function)
    pl2303.c:267: error: ‘TIOCM_RI’ undeclared (first use in this function)
    pl2303.c:271: error: ‘PROLIFIC_SA_MSR_CD’ undeclared (first use in this function)
    pl2303.c:272: error: ‘TIOCM_CD’ undeclared (first use in this function)
    pl2303.c:277: error: ‘PROLIFIC_SA_LSR_INDEX’ undeclared (first use in this function)

  8. #18
    pl2303.c: At top level:
    pl2303.c:302: warning: ‘struct termios’ declared inside parameter list
    pl2303.c:303: error: conflicting types for ‘prolific_sa_set_termios’
    pl2303.c:45: error: previous declaration of ‘prolific_sa_set_termios’ was here
    pl2303.c: In function ‘prolific_sa_set_termios’:
    pl2303.c:305: error: ‘struct usb_serial_port’ has no member named ‘private’
    pl2303.c:306: error: dereferencing pointer to incomplete type
    pl2303.c:307: error: dereferencing pointer to incomplete type
    pl2303.c:311: error: expected ‘)’ before string constant
    pl2303.c:314: error: ‘CBAUD’ undeclared (first use in this function)
    pl2303.c:316: error: ‘B0’ undeclared (first use in this function)
    pl2303.c:317: error: ‘TIOCM_DTR’ undeclared (first use in this function)
    pl2303.c:317: error: ‘TIOCM_RTS’ undeclared (first use in this function)
    pl2303.c:318: warning: implicit declaration of function ‘usb_control_msg’
    pl2303.c:318: warning: implicit declaration of function ‘usb_sndctrlpipe’
    pl2303.c:318: error: ‘PROLIFIC_SA_SET_CTRL_LINE_REQUEST’ undeclared (first use in this function)
    pl2303.c:318: error: ‘PROLIFIC_SA_SET_REQUEST_CLASS_TYPE’ undeclared (first use in this function)
    pl2303.c:318: error: ‘HZ’ undeclared (first use in this function)
    pl2303.c:322: error: ‘CRTSCTS’ undeclared (first use in this function)
    pl2303.c:329: error: ‘B150’ undeclared (first use in this function)
    pl2303.c:330: error: ‘B300’ undeclared (first use in this function)
    pl2303.c:331: error: ‘B600’ undeclared (first use in this function)
    pl2303.c:332: error: ‘B1200’ undeclared (first use in this function)
    pl2303.c:333: error: ‘B2400’ undeclared (first use in this function)
    pl2303.c:334: error: ‘B4800’ undeclared (first use in this function)
    pl2303.c:335: error: ‘B9600’ undeclared (first use in this function)
    pl2303.c:336: error: ‘B19200’ undeclared (first use in this function)
    pl2303.c:337: error: ‘B38400’ undeclared (first use in this function)
    pl2303.c:338: error: ‘B115200’ undeclared (first use in this function)
    pl2303.c:339: error: ‘B230400’ undeclared (first use in this function)
    pl2303.c:340: error: ‘B460800’ undeclared (first use in this function)
    pl2303.c:354: error: ‘PARENB’ undeclared (first use in this function)
    pl2303.c:354: error: ‘PARODD’ undeclared (first use in this function)
    pl2303.c:362: error: ‘CSIZE’ undeclared (first use in this function)
    pl2303.c:365: error: ‘CS5’ undeclared (first use in this function)
    pl2303.c:366: error: ‘CS6’ undeclared (first use in this function)
    pl2303.c:367: error: ‘CS7’ undeclared (first use in this function)
    pl2303.c:368: error: ‘CS8’ undeclared (first use in this function)
    pl2303.c:373: error: ‘CSTOPB’ undeclared (first use in this function)
    pl2303.c:389: error: expected ‘)’ before string constant
    pl2303.c:391: error: ‘PROLIFIC_SA_SET_LINECODING_REQUEST’ undeclared (first use in this function)
    pl2303.c: In function ‘prolific_sa_break_ctl’:
    pl2303.c:400: error: ‘PROLIFIC_SA_SET_BREAK_REQUEST’ undeclared (first use in this function)
    pl2303.c:400: error: ‘PROLIFIC_SA_SET_REQUEST_CLASS_TYPE’ undeclared (first use in this function)
    pl2303.c:400: error: ‘HZ’ undeclared (first use in this function)
    pl2303.c: At top level:
    pl2303.c:409: warning: ‘struct file’ declared inside parameter list
    pl2303.c:410: error: conflicting types for ‘prolific_sa_ioctl’
    pl2303.c:47: error: previous declaration of ‘prolific_sa_ioctl’ was here
    pl2303.c: In function ‘prolific_sa_ioctl’:
    pl2303.c:413: error: ‘struct usb_serial_port’ has no member named ‘private’
    pl2303.c:416: error: expected ‘)’ before string constant
    pl2303.c:421: error: ‘TIOCMGET’ undeclared (first use in this function)
    pl2303.c:423: warning: implicit declaration of function ‘put_user’
    pl2303.c:426: error: ‘TIOCMSET’ undeclared (first use in this function)
    pl2303.c:427: error: ‘TIOCMBIS’ undeclared (first use in this function)
    pl2303.c:428: error: ‘TIOCMBIC’ undeclared (first use in this function)
    pl2303.c:429: warning: implicit declaration of function ‘get_user’
    pl2303.c:434: error: ‘TIOCM_RTS’ undeclared (first use in this function)
    pl2303.c:443: error: ‘PROLIFIC_SA_SET_CTRL_LINE_REQUEST’ undeclared (first use in this function)
    pl2303.c:443: error: ‘PROLIFIC_SA_SET_REQUEST_CLASS_TYPE’ undeclared (first use in this function)
    pl2303.c:443: error: ‘HZ’ undeclared (first use in this function)
    pl2303.c:455: error: ‘TIOCM_DTR’ undeclared (first use in this function)
    pl2303.c:479: error: ‘TIOCMIWAIT’ undeclared (first use in this function)
    pl2303.c:485: error: ‘TIOCGICOUNT’ undeclared (first use in this function)
    pl2303.c:493: error: ‘ENOIOCTLCMD’ undeclared (first use in this function)
    pl2303.c: In function ‘prolific_set_dcr_state’:
    pl2303.c:508: error: ‘struct usb_serial_port’ has no member named ‘private’
    pl2303.c:510: error: expected ‘)’ before string constant
    pl2303.c:512: error: ‘PROLIFIC_SA_VENDOR_REQUEST’ undeclared (first use in this function)
    pl2303.c:512: error: ‘PROLIFIC_SA_GET_REQUEST_VENDOR_TYPE’ undeclared (first use in this function)
    pl2303.c:512: error: ‘HZ’ undeclared (first use in this function)
    pl2303.c:520: error: ‘PROLIFIC_SA_SET_REQUEST_VENDOR_TYPE’ undeclared (first use in this function)
    pl2303.c:524: error: ‘PROLIFIC_SA_SET_CTRL_LINE_REQUEST’ undeclared (first use in this function)
    pl2303.c:524: error: ‘PROLIFIC_SA_SET_REQUEST_CLASS_TYPE’ undeclared (first use in this function)
    pl2303.c: In function ‘prolific_sa_write’:
    pl2303.c:537: error: expected ‘)’ before string constant
    pl2303.c:540: error: expected ‘)’ before string constant
    pl2303.c:552: error: dereferencing pointer to incomplete type
    pl2303.c:553: warning: implicit declaration of function ‘schedule’
    pl2303.c:555: error: ‘struct usb_serial_port’ has no member named ‘port_lock’
    pl2303.c:561: warning: implicit declaration of function ‘copy_from_user’
    pl2303.c:561: error: dereferencing pointer to incomplete type
    pl2303.c:564: warning: implicit declaration of function ‘memcpy’
    pl2303.c:564: warning: incompatible implicit declaration of built-in function ‘memcpy’
    pl2303.c:564: error: dereferencing pointer to incomplete type
    pl2303.c:568: warning: implicit declaration of function ‘FILL_BULK_URB’
    pl2303.c:568: warning: implicit declaration of function ‘usb_sndbulkpipe’
    pl2303.c:569: error: dereferencing pointer to incomplete type
    pl2303.c:576: error: expected ‘)’ before string constant
    pl2303.c:577: error: ‘struct usb_serial_port’ has no member named ‘port_lock’
    pl2303.c:581: error: ‘struct usb_serial_port’ has no member named ‘port_lock’
    pl2303.c: In function ‘prolific_sa_write_bulk_callback’:
    pl2303.c:591: error: dereferencing pointer to incomplete type
    pl2303.c:594: error: expected ‘)’ before string constant
    pl2303.c:597: error: expected ‘)’ before string constant
    pl2303.c:601: error: dereferencing pointer to incomplete type
    pl2303.c:602: error: expected ‘)’ before string constant
    pl2303.c:606: warning: implicit declaration of function ‘queue_task’
    pl2303.c:606: error: ‘struct usb_serial_port’ has no member named ‘tqueue’
    pl2303.c:606: error: ‘tq_immediate’ undeclared (first use in this function)
    pl2303.c:607: warning: implicit declaration of function ‘mark_bh’
    pl2303.c:607: error: ‘IMMEDIATE_BH’ undeclared (first use in this function)
    pl2303.c: At top level:
    pl2303.c:612: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘prolific_sa_init’
    pl2303.c:618: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘prolific_sa_exit’
    pl2303.c:623: warning: data definition has no type or storage class
    pl2303.c:623: warning: type defaults to ‘int’ in declaration of ‘module_init’
    pl2303.c:623: warning: parameter names (without types) in function declaration
    pl2303.c:624: warning: data definition has no type or storage class
    pl2303.c:624: warning: type defaults to ‘int’ in declaration of ‘module_exit’
    pl2303.c:624: warning: parameter names (without types) in function declaration
    pl2303.c:626: error: expected declaration specifiers or ‘...’ before string constant
    pl2303.c:626: warning: data definition has no type or storage class
    pl2303.c:626: warning: type defaults to ‘int’ in declaration of ‘MODULE_AUTHOR’
    pl2303.c:626: warning: function declaration isn’t a prototype
    pl2303.c:627: error: expected declaration specifiers or ‘...’ before string constant
    pl2303.c:627: warning: data definition has no type or storage class
    pl2303.c:627: warning: type defaults to ‘int’ in declaration of ‘MODULE_DESCRIPTION’
    pl2303.c:627: warning: function declaration isn’t a prototype
    pl2303.c:629: error: expected ‘)’ before string constant
    pl2303.c:630: error: expected ‘)’ before string constant
    make: *** [pl2303.o] Error 1

  9. #19
    Mi sa che non hai installato le librerie di sviluppo libc6-dev. Fallo usando il tuo tool di installazione della tua distribuzione.
    It's just another bombtrack...
    Ogni can mena la coa, ogni coion vö gi' la soa!

  10. #20
    Sono andato a curiosare un po' sto driver (anche a me un converter di sto tipo potrebbe far comodo), devi installare anche i sorgenti del kernel.
    It's just another bombtrack...
    Ogni can mena la coa, ogni coion vö gi' la soa!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.