Forum Linux.mandriva Problème connexion adsl avec Asus ADSL USB AAM6000UG

Posté par  .
Étiquettes : aucune
0
23
juil.
2004
Bonjour à tous, j'ai un modem Asus ADSL USB AAM6000UG , j'ai téléchargé le driver la dessus:

http://sourceforge.net/projects/aam6000ug(...)

J'ai essayé de l'installé en tapant ce code:


cd /usr/Amedyn/
make


et voilà ce que me réponds la console


cd init && make clean
make[1]: Entering directory `/usr/Amedyn/init'
rm -f amload amioctl amloaddbg amloaddbgt
make[1]: Leaving directory `/usr/Amedyn/init'
cd module && make clean
make[1]: Entering directory `/usr/Amedyn/module'
rm -f *.o .*.flags *.ko *.mod.* .*.o.cmd .*.ko.cmd
make[1]: Leaving directory `/usr/Amedyn/module'
cd bridged && make clean
make[1]: Entering directory `/usr/Amedyn/bridged'
rm -f br2684ctl
make[1]: Leaving directory `/usr/Amedyn/bridged'
cd init && make && make install
make[1]: Entering directory `/usr/Amedyn/init'
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i686 -Wall -DLINUX -Wsign-compare -I../include -lusb amload.c -o amload
amload.c:53:17: usb.h: No such file or directory
In file included from amload.c:54:
../include/usbi.h:4:17: usb.h: No such file or directory
In file included from amload.c:54:
../include/usbi.h:49: error: parse error before '*' token
../include/usbi.h:49: warning: function declaration isn't a prototype
../include/usbi.h:54: error: parse error before '*' token
../include/usbi.h:54: warning: function declaration isn't a prototype
../include/usbi.h:55: error: parse error before '*' token
../include/usbi.h:55: warning: function declaration isn't a prototype
amload.c:211: error: parse error before '*' token
amload.c:212: warning: function declaration isn't a prototype
amload.c: In function `transfer_ctrl_msg':
amload.c:222: warning: implicit declaration of function `usb_control_msg'
amload.c:222: error: `adsl_handle' undeclared (first use in this function)
amload.c:222: error: (Each undeclared identifier is reported only once
amload.c:222: error: for each function it appears in.)
amload.c:222: error: `requesttype' undeclared (first use in this function)
amload.c:222: error: `request' undeclared (first use in this function)
amload.c:222: error: `value' undeclared (first use in this function)
amload.c:222: error: `buf' undeclared (first use in this function)
amload.c:222: error: `size' undeclared (first use in this function)
amload.c:232: warning: implicit declaration of function `usb_strerror'
amload.c:232: warning: format argument is not a pointer (arg 2)
amload.c:234: warning: implicit declaration of function `usb_clear_halt'
amload.c: At top level:
amload.c:250: error: parse error before '*' token
amload.c:251: warning: function declaration isn't a prototype
amload.c: In function `read_bulk':
amload.c:256: error: `buf' undeclared (first use in this function)
amload.c:262: warning: implicit declaration of function `usb_bulk_read'
amload.c:262: error: `adsl_handle' undeclared (first use in this function)
amload.c:262: error: `ep' undeclared (first use in this function)
amload.c:262: error: `size' undeclared (first use in this function)
amload.c:272: warning: format argument is not a pointer (arg 2)
amload.c: At top level:
amload.c:289: error: parse error before '*' token
amload.c:290: warning: function declaration isn't a prototype
amload.c: In function `send_bulk':
amload.c:296: error: `nfil' undeclared (first use in this function)
amload.c:302: warning: implicit declaration of function `usb_bulk_write'
amload.c:302: error: `adsl_handle' undeclared (first use in this function)
amload.c:302: error: `ep' undeclared (first use in this function)
amload.c:302: error: `buf' undeclared (first use in this function)
amload.c:302: error: `ncol' undeclared (first use in this function)
amload.c:312: warning: format argument is not a pointer (arg 2)
amload.c: At top level:
amload.c:349: error: parse error before '*' token
amload.c:349: warning: function declaration isn't a prototype
amload.c: In function `clear_endpoints':
amload.c:350: error: `op' undeclared (first use in this function)
amload.c:351: warning: implicit declaration of function `usb_resetep'
amload.c:351: error: `adsl_handle' undeclared (first use in this function)
amload.c: At top level:
amload.c:361: error: parse error before '*' token
amload.c:362: warning: function declaration isn't a prototype
amload.c: In function `send_block':
amload.c:365: error: `bufin' undeclared (first use in this function)
amload.c:365: error: `len' undeclared (first use in this function)
amload.c:368: error: `place' undeclared (first use in this function)
amload.c:371: error: `adsl_handle' undeclared (first use in this function)
amload.c: At top level:
amload.c:377: error: parse error before '*' token
amload.c:378: warning: function declaration isn't a prototype
amload.c: In function `jump_to_address':
amload.c:384: error: `place' undeclared (first use in this function)
amload.c:388: error: `adsl_handle' undeclared (first use in this function)
amload.c: At top level:
amload.c:399: error: parse error before '*' token
amload.c:400: warning: function declaration isn't a prototype
amload.c: In function `load_firmware':
amload.c:412: error: `adsl_handle' undeclared (first use in this function)
amload.c: In function `init_modem':
amload.c:675: error: dereferencing pointer to incomplete type
amload.c:676: error: dereferencing pointer to incomplete type
amload.c: In function `main':
amload.c:719: error: `usb_dev_handle' undeclared (first use in this function)
amload.c:719: error: `adsl_handle' undeclared (first use in this function)
amload.c:770: warning: implicit declaration of function `usb_init'
amload.c:771: warning: implicit declaration of function `usb_find_busses'
amload.c:776: warning: implicit declaration of function `usb_find_devices'
amload.c:783: error: `usb_busses' undeclared (first use in this function)
amload.c:787: error: dereferencing pointer to incomplete type
amload.c:790: error: dereferencing pointer to incomplete type
amload.c:790: error: dereferencing pointer to incomplete type
amload.c:797: error: dereferencing pointer to incomplete type
amload.c:800: error: dereferencing pointer to incomplete type
amload.c:807: error: dereferencing pointer to incomplete type
amload.c:807: error: dereferencing pointer to incomplete type
amload.c:821: warning: implicit declaration of function `usb_open'
amload.c:828: warning: implicit declaration of function `usb_set_configuration'
amload.c:830: warning: format argument is not a pointer (arg 2)
amload.c:834: warning: implicit declaration of function `usb_claim_interface'
amload.c:836: warning: format argument is not a pointer (arg 2)
amload.c:841: warning: format argument is not a pointer (arg 2)
amload.c:846: warning: format argument is not a pointer (arg 2)
amload.c:855: warning: implicit declaration of function `usb_release_interface'
amload.c:857: warning: implicit declaration of function `usb_close'
make[1]: *** [amload] Erreur 1
make[1]: Leaving directory `/usr/Amedyn/init'
make: *** [AME_INIT] Erreur 2


Je suis tout nouveau sur linux (c'est la première fois que je travaille sur cette OS) donc je ne sais pas du tout ce que veut dire tout ca, est-ce que vous pouvez m'aider svp?
  • # Comment avancer dans ce genre de situation

    Posté par  (site web personnel) . Évalué à 2.

    Repérer la première erreur, il s'agit de
    amload.c:53:17: usb.h: No such file or directory
    Chercher d'ou vient ce fichier
    $ urpmf /usb.h$
    glibc-devel:/usr/include/linux/usb.h
    libusb0.1_4-devel:/usr/include/usb.h
    kernel-source:/usr/src/linux-2.4.27-0.pre2.1mdk/drivers/usb/storage/usb.h
    kernel-source:/usr/src/linux-2.4.27-0.pre2.1mdk/include/linux/usb.h
    kernel-source:/usr/src/linux-2.6.8-0.rc2.1mdk/drivers/usb/core/usb.h
    kernel-source:/usr/src/linux-2.6.8-0.rc2.1mdk/drivers/usb/storage/usb.h
    kernel-source:/usr/src/linux-2.6.8-0.rc2.1mdk/include/linux/usb.h
    kernel-source-stripped:/usr/src/linux-2.6.8-0.rc2.1mdk/include/linux/usb.h
    
    Il faut donc installer libusb0.1_4-devel
    • [^] # Re: Comment avancer dans ce genre de situation

      Posté par  . Évalué à 1.

      Salut,

      Ca à l'air si simple quand tu le dit, merci beaucoup je teste ca demain et je te dis si j'ai tout reussi, merci :)
      • [^] # Re: Comment avancer dans ce genre de situation

        Posté par  . Évalué à 1.

        Salut,

        Bon, voilà j'ai reussi à régler 2erreur grâce à toi et à ta technique, mais je bloque sur celle la:


        cd init && make clean
        make[1]: Entering directory `/usr/Amedyn/init'
        rm -f amload amioctl amloaddbg amloaddbgt
        make[1]: Leaving directory `/usr/Amedyn/init'
        cd module && make clean
        make[1]: Entering directory `/usr/Amedyn/module'
        rm -f *.o .*.flags *.ko *.mod.* .*.o.cmd .*.ko.cmd
        make[1]: Leaving directory `/usr/Amedyn/module'
        cd bridged && make clean
        make[1]: Entering directory `/usr/Amedyn/bridged'
        rm -f br2684ctl
        make[1]: Leaving directory `/usr/Amedyn/bridged'
        cd init && make && make install
        make[1]: Entering directory `/usr/Amedyn/init'
        gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i686 -Wall -DLINUX -Wsign-compare -I../include -lusb amload.c -o amload
        gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i686 -Wall -DLINUX -Wsign-compare -I../include -lusb amioctl.c -o amioctl
        make[1]: Leaving directory `/usr/Amedyn/init'
        make[1]: Entering directory `/usr/Amedyn/init'
        install -c -m 755 -p amload amioctl /usr/sbin
        make[1]: Leaving directory `/usr/Amedyn/init'
        cd firmware && make
        make[1]: Entering directory `/usr/Amedyn/firmware'
        install -c -m 644 -p fw-usb.bin Fw-usb_A.bin /usr/sbin
        make[1]: Leaving directory `/usr/Amedyn/firmware'
        cd module && make && make install
        make[1]: Entering directory `/usr/Amedyn/module'
        rm -f xdslusb.o
        make -C /lib/modules/2.6.3-4mdk/build SUBDIRS=/usr/Amedyn/module XDSLUSB-MODULE=amedyn modules
        make: *** /lib/modules/2.6.3-4mdk/build: No such file or directory. Arrêt.
        make: Entering an unknown directorymake: Leaving an unknown directorymake[1]: *** [normal] Erreur 2
        make[1]: Leaving directory `/usr/Amedyn/module'
        make: *** [AME_MODULE] Erreur 2


        C'est ici je supose :

        make: *** /lib/modules/2.6.3-4mdk/build: No such file or directory. Arrêt.
  • # Re: Comment avancer dans ce genre de situation

    Posté par  . Évalué à 1.

    Salut, merci bcp ca avance de plus en plus,

    Comment fais-tu pour trouver la réponse? c'est du par coeur ou tu as un truc pour t'aider?

    Et sinon voilà ce que j'ai mtn:


    cd init && make clean
    make[1]: Entering directory `/usr/Amedyn/init'
    rm -f amload amioctl amloaddbg amloaddbgt
    make[1]: Leaving directory `/usr/Amedyn/init'
    cd module && make clean
    make[1]: Entering directory `/usr/Amedyn/module'
    rm -f *.o .*.flags *.ko *.mod.* .*.o.cmd .*.ko.cmd
    make[1]: Leaving directory `/usr/Amedyn/module'
    cd bridged && make clean
    make[1]: Entering directory `/usr/Amedyn/bridged'
    rm -f br2684ctl
    make[1]: Leaving directory `/usr/Amedyn/bridged'
    cd init && make && make install
    make[1]: Entering directory `/usr/Amedyn/init'
    gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i686 -Wall -DLINUX -Wsign-compare -I../include -lusb amload.c -o amload
    gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i686 -Wall -DLINUX -Wsign-compare -I../include -lusb amioctl.c -o amioctl
    make[1]: Leaving directory `/usr/Amedyn/init'
    make[1]: Entering directory `/usr/Amedyn/init'
    install -c -m 755 -p amload amioctl /usr/sbin
    make[1]: Leaving directory `/usr/Amedyn/init'
    cd firmware && make
    make[1]: Entering directory `/usr/Amedyn/firmware'
    install -c -m 644 -p fw-usb.bin Fw-usb_A.bin /usr/sbin
    make[1]: Leaving directory `/usr/Amedyn/firmware'
    cd module && make && make install
    make[1]: Entering directory `/usr/Amedyn/module'
    rm -f xdslusb.o
    make -C /lib/modules/2.6.3-4mdk/build SUBDIRS=/usr/Amedyn/module XDSLUSB-MODULE=amedyn modules
    make[2]: Entering directory `/usr/src/linux-2.6.3-4mdk'
    CC scripts/empty.o
    MKELF scripts/elfconfig.h
    HOSTCC scripts/file2alias.o
    HOSTCC scripts/modpost.o
    HOSTLD scripts/modpost
    *** Warning: Overriding SUBDIRS on the command line can cause
    *** inconsistencies
    CC arch/i386/kernel/asm-offsets.s
    CHK include/asm-i386/asm_offsets.h
    CC [M] /usr/Amedyn/module/xdslusb.o
    /usr/Amedyn/module/xdslusb.c:371: warning: initialization from incompatible pointer type
    LD [M] /usr/Amedyn/module/amedyn.o
    Building modules, stage 2.
    /usr/src/linux-2.6.3-4mdk/scripts/Makefile.modpost:17: *** Uh-oh, you have stale module entries. You messed with SUBDIRS,
    /usr/src/linux-2.6.3-4mdk/scripts/Makefile.modpost:18: do not complain if something goes wrong.
    MODPOST
    CC /usr/Amedyn/module/amedyn.mod.o
    LD [M] /usr/Amedyn/module/amedyn.ko
    make[2]: Leaving directory `/usr/src/linux-2.6.3-4mdk'
    rm -f xdslusb.o
    make -C /lib/modules/2.6.3-4mdk/build SUBDIRS=/usr/Amedyn/module XDSLUSB-MODULE=amedyndbg EXTRA_CFLAGS="-DDEBUG -DVERBOSE_DEBUG" modules
    make[2]: Entering directory `/usr/src/linux-2.6.3-4mdk'
    CC scripts/empty.o
    MKELF scripts/elfconfig.h
    HOSTCC scripts/file2alias.o
    HOSTCC scripts/modpost.o
    HOSTLD scripts/modpost
    *** Warning: Overriding SUBDIRS on the command line can cause
    *** inconsistencies
    CC arch/i386/kernel/asm-offsets.s
    CHK include/asm-i386/asm_offsets.h
    CC [M] /usr/Amedyn/module/xdslusb.o
    /usr/Amedyn/module/xdslusb.c:93:1: warning: "DEBUG" redefined
    <command line>:6:1: warning: this is the location of the previous definition
    /usr/Amedyn/module/xdslusb.c:371: warning: initialization from incompatible pointer type
    LD [M] /usr/Amedyn/module/amedyndbg.o
    Building modules, stage 2.
    MODPOST
    CC /usr/Amedyn/module/amedyndbg.mod.o
    LD [M] /usr/Amedyn/module/amedyndbg.ko
    CC /usr/Amedyn/module/amedyn.mod.o
    LD [M] /usr/Amedyn/module/amedyn.ko
    make[2]: Leaving directory `/usr/src/linux-2.6.3-4mdk'
    make[1]: Leaving directory `/usr/Amedyn/module'
    make[1]: Entering directory `/usr/Amedyn/module'
    install -d /lib/modules/2.6.3-4mdk/kernel/drivers/usb
    install -c amedyn.ko /lib/modules/2.6.3-4mdk/kernel/drivers/usb
    install -c amedyndbg.ko /lib/modules/2.6.3-4mdk/kernel/drivers/usb
    depmod -a
    make[1]: Leaving directory `/usr/Amedyn/module'
    cd scripts && make
    make[1]: Entering directory `/usr/Amedyn/scripts'
    make[1]: *** Pas de cibles. Arrêt.
    make[1]: Leaving directory `/usr/Amedyn/scripts'
    make: *** [AME_SCRIPTS] Erreur 2
  • # Version 2004-08-04 en ligne

    Posté par  . Évalué à 1.

    Je suis bien incapable de répondre à la question, j'ai le même problème et je rame depuis des mois.

    La bonne nouvelle c'est que le site

    http://sourceforge.net/projects/aam6000ug(...)

    vient juste de mettre une nouvelle version en ligne ...

Suivre le flux des commentaires

Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.