Forum Linux.débutant Résolu : carte Réseau sur USB de ID 0b95:1790 ASIX Electronics Corp

Posté par  . Licence CC By‑SA.
Étiquettes :
0
12
oct.
2015

Sommaire

Résolution

J'ai fait une mise à jour de la distribution linux vers debian Jessie et forcé la mise à niveau du noyau en

Linux beaglebone 4.2.3-bone2 #1 Sun Oct 4 23:31:09 UTC 2015 armv7l GNU/Linux

les modules sont chargés et l'édition de /etc/network/interfaces a permis d'activé le port réseau.

Merci pour les tuyaux.

    >root@beaglebone:~# lsmod
    Module                  Size  Used by
    ax88179_178a           12156  0
    usbnet                 29983  1 ax88179_178a
    mii                     4577  2 usbnet,ax88179_178a
    usb_f_acm               7058  1
    u_serial               10002  3 usb_f_acm
    usb_f_ecm               9657  1
    g_multi                 6095  0
    usb_f_mass_storage     42119  2 g_multi
    usb_f_rndis            21962  2 g_multi
    u_ether                10758  3 usb_f_ecm,usb_f_rndis,g_multi
    libcomposite           43279  5 usb_f_acm,usb_f_ecm,usb_f_rndis,g_multi,usb_f_mass_storage
    nfsd                  220458  13
    omap_aes               13263  0
    omap_sham              21076  0
    omap_rng                4423  0
    rng_core                7422  1 omap_rng
    tilcdc                 26489  0
    tda998x                11776  0
    drm_kms_helper        107954  4 tda998x,tilcdc
    uio_pdrv_genirq         3437  0
    leds_gpio               3258  0
    uio                     8474  1 uio_pdrv_genirq

PB

Bonjour à toutes et à tous,

si quelqu'un veut éclairer ma lanterne, je suis un peu dans le brouillard.

Le problème

j'utilise un beaglebone Black et souhaite lui adjoindre une carte réseau sur port USB.(rmq : c'est pas pour les performances du gigabit, c'est pour des essais), le fameux dongle cité en référence.

J'ai suivi la procédure suivante mais ma carte réseau n'apparait pas

à l'aide SVP !?

Version Noyau

root@beaglebone:~# uname -a
Linux beaglebone 3.8.13-bone70 #1 SMP Fri Jan 23 02:15:42 UTC 2015 armv7l GNU/Linux

debian wheezy

mise à jour

root@beaglebone:~# apt-get update
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://security.debian.org wheezy/updates Release
Hit http://repos.rcn-ee.com wheezy Release.gpg
Hit http://repos.rcn-ee.com wheezy Release
Hit http://security.debian.org wheezy/updates/main Sources
Hit http://security.debian.org wheezy/updates/contrib Sources
Hit http://security.debian.org wheezy/updates/non-free Sources
Hit http://repos.rcn-ee.com wheezy/main armhf Packages
Hit http://security.debian.org wheezy/updates/main armhf Packages
Hit http://security.debian.org wheezy/updates/contrib armhf Packages
Hit http://security.debian.org wheezy/updates/non-free armhf Packages
Hit http://ftp.debian.org wheezy-backports Release.gpg
Hit http://ftp.debian.org wheezy-backports Release
Hit http://ftp.us.debian.org wheezy Release.gpg
Hit http://ftp.us.debian.org wheezy-updates Release.gpg
Hit http://ftp.debian.org wheezy-backports/main Sources
Hit http://ftp.debian.org wheezy-backports/contrib Sources
Hit http://ftp.us.debian.org wheezy Release
Hit http://ftp.debian.org wheezy-backports/non-free Sources
Hit http://ftp.us.debian.org wheezy-updates Release
Hit http://ftp.debian.org wheezy-backports/main armhf Packages
Hit http://ftp.debian.org wheezy-backports/contrib armhf Packages
Hit http://ftp.debian.org wheezy-backports/non-free armhf Packages
Hit http://ftp.us.debian.org wheezy/main Sources
Hit http://ftp.us.debian.org wheezy/contrib Sources
Hit http://ftp.us.debian.org wheezy/non-free Sources
Hit http://ftp.us.debian.org wheezy/main armhf Packages
Hit http://ftp.us.debian.org wheezy/contrib armhf Packages
Hit http://ftp.us.debian.org wheezy/non-free armhf Packages
Hit http://ftp.us.debian.org wheezy-updates/main Sources
Hit http://ftp.us.debian.org wheezy-updates/contrib Sources
Hit http://ftp.us.debian.org wheezy-updates/non-free Sources
Hit http://ftp.us.debian.org wheezy-updates/main armhf Packages
Hit http://ftp.us.debian.org wheezy-updates/contrib armhf Packages
Hit http://ftp.us.debian.org wheezy-updates/non-free armhf Packages
Reading package lists... Done
root@beaglebone:~#

Sources du driver

J'ai pris les sources du driver qui sont à l'adresse

Sources du noyau

J'ai récupéré les sources du noyau que j'utilise

debian$ git clone https://github.com/RobertCNelson/bb-kernel.git
debian$ cd bb-kernel
debian$ git tag  (This shows what versions can be checked out.)
debian$ git checkout 3.8.13-bone70 -b 3.8.13-bone70

Dépendances

J'ai mis à jour les dépendances qu'il m'indiquait pour compiler AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE depuis les sources fournies.

Compilation

J'ai compilé et mis à jour

root@beaglebone:~/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE# make
make -C /lib/modules/3.8.13-bone70/build SUBDIRS=/root/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE modules
make[1]: Entering directory `/usr/src/linux-headers-3.8.13-bone70'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory `/usr/src/linux-headers-3.8.13-bone70'
root@beaglebone:~/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE# make install
su -c "cp -v ax88179_178a.ko /lib/modules/3.8.13-bone70/kernel/drivers/net/usb && /sbin/depmod -a"
`ax88179_178a.ko' -> `/lib/modules/3.8.13-bone70/kernel/drivers/net/usb/ax88179_178a.ko'
root@beaglebone:~/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE#

pb au reboot

toujours pas d'interface réseau supplémentaire

eth0      Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:xx
          inet addr:192.168.200.201  Bcast:192.168.201.255  Mask:255.255.254.0
          inet6 addr: xxxx::xxxx:xxxx:xxxx:xxxx/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:21850 errors:0 dropped:3 overruns:0 frame:0
          TX packets:1077 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2204896 (2.1 MiB)  TX bytes:167216 (163.2 KiB)
          Interrupt:40

>lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:61 errors:0 dropped:0 overruns:0 frame:0
          TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4428 (4.3 KiB)  TX bytes:4428 (4.3 KiB)

>usb0      Link encap:Ethernet  HWaddr yy:yy:yy:yy:yy:yy
          inet addr:192.168.7.2  Bcast:192.168.7.3  Mask:255.255.255.252
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

qu'est que j'ai raté ?

Merci de votre aide.

Je poste sur la Tribune.

  • # un truc

    Posté par  . Évalué à 2. Dernière modification le 12 octobre 2015 à 10:53.

    lorsque tu branche ta carte usb, dans dmesg tu devrait avoir un truc genre : device XXX name renamed eth8

    de mémoire certaine carte usb on le nom de carte suivant : 'unamed' a la place d'un usb0 eth0 etc …

    une fois le BON nom trouvé grace a la commande dmesg, il faut aller déclarer la carte dans /etc/network/interface

    et en général les drivers usb->eth sont inclu dans ta distrib si elle ne date pas du siecle dernier

  • # dmesg

    Posté par  . Évalué à 2.

    que dit le dmesg quand tu branche le périphérique ?

    Sinon il semble supporté nativement à partir de linux 3.9

    • [^] # Re: dmesg

      Posté par  . Évalué à 1.

      quand je débranche et rebranche le périphérique dmesg me dit rien de bien intéressant.

      [ 265.349845] hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0008
      [ 265.350486] hub 1-1:1.0: port 3, status 0100, change 0001, 12 Mb/s
      [ 265.351169] usb 1-1.3: USB disconnect, device number 5
      [ 265.351211] usb 1-1.3: unregistering device
      [ 265.351246] usb 1-1.3: unregistering interface 1-1.3:1.0
      [ 265.369785] usb 1-1.3: usb_disable_device nuking all URBs
      [ 265.482788] hub 1-1:1.0: debounce: port 3: total 100ms stable 100ms status 0x100
      [ 285.131782] libphy: 4a101000.mdio:00 - Link is Down
      [ 287.939866] net eth0: initializing cpsw version 1.12 (0)
      [ 287.942879] net eth0: phy found : id is : 0x7c0f1
      [ 287.943043] libphy: PHY 4a101000.mdio:01 not found
      [ 287.948158] net eth0: phy 4a101000.mdio:01 not found on slave 1
      [ 287.958958] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
      [ 288.881394] net eth0: initializing cpsw version 1.12 (0)
      [ 288.884535] net eth0: phy found : id is : 0x7c0f1
      [ 288.884691] libphy: PHY 4a101000.mdio:01 not found
      [ 288.889793] net eth0: phy 4a101000.mdio:01 not found on slave 1
      [ 288.900570] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
      [ 293.030729] libphy: 4a101000.mdio:00 - Link is Up - 100/Half
      [ 293.030846] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
      [ 295.126683] net eth0: initializing cpsw version 1.12 (0)
      [ 295.129671] net eth0: phy found : id is : 0x7c0f1
      [ 295.130240] libphy: PHY 4a101000.mdio:01 not found
      [ 295.135334] net eth0: phy 4a101000.mdio:01 not found on slave 1
      [ 295.146012] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
      [ 296.625521] net eth0: initializing cpsw version 1.12 (0)
      [ 296.628704] net eth0: phy found : id is : 0x7c0f1
      [ 296.628732] libphy: PHY 4a101000.mdio:01 not found
      [ 296.633838] net eth0: phy 4a101000.mdio:01 not found on slave 1
      [ 296.644665] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
      [ 298.636720] libphy: 4a101000.mdio:00 - Link is Up - 100/Half
      [ 298.636836] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
      [10489.073163] musb_stage0_irq 790: unhandled DISCONNECT transition (a_idle)

  • # et le module, il monte au demarrage ?

    Posté par  . Évalué à 2.

    tu as compilé/installé un module : ax88179_178a.ko

    apparait-il quand tu fais un lsmod

    • [^] # Re: et le module, il monte au demarrage ?

      Posté par  . Évalué à 1.

      Le modul est chargé mais pas utilisé ?!

      root@beaglebone:~# lsmod
      Module Size Used by
      ax88179_178a 14580 0
      g_multi 50407 2
      libcomposite 15028 1 g_multi
      omap_rng 4062 0
      nfsd 187513 13
      mt7601Usta 639170 0
      root@beaglebone:~#

      • [^] # Re: et le module, il monte au demarrage ?

        Posté par  . Évalué à 2.

        et quand tu demarres SANS le plug usb le module est-il chargé ?

        • [^] # Re: et le module, il monte au demarrage ?

          Posté par  . Évalué à 1.

          Non !!
          tiens c bizarre.

          root@beaglebone:~# lsmod
          Module Size Used by
          g_multi 50407 2
          libcomposite 15028 1 g_multi
          nfsd 187513 13
          omap_rng 4062 0
          mt7601Usta 639170 0
          root@beaglebone:~#

          et si je le branche il n'apparait pas !!

          root@beaglebone:~# lsmod
          Module Size Used by
          g_multi 50407 2
          libcomposite 15028 1 g_multi
          nfsd 187513 13
          omap_rng 4062 0
          mt7601Usta 639170 0
          root@beaglebone:~#

          dmesg donne:

          [ 11.337060] usb0: MAC xx:xx:xx:xx:xx:xx
          [ 11.337082] usb0: HOST MAC yy:yy:yy:yy:yy:yy
          [ 11.348760] gadget: Mass Storage Function, version: 2009/09/11
          [ 11.348782] gadget: Number of LUNs=1
          [ 11.348804] lun0: LUN: removable file: /dev/mmcblk0p1
          [ 11.351629] gadget: Multifunction Composite Gadget
          [ 11.351666] gadget: g_multi ready
          [ 11.351708] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
          [ 11.360622] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 2
          [ 11.360663] musb-hdrc musb-hdrc.0.auto: supports USB remote wakeup
          [ 11.360734] usb usb2: default language 0x0409
          [ 11.364993] usb usb2: udev 1, busnum 2, minor = 128
          [ 11.365016] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
          [ 11.365028] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
          [ 11.365038] usb usb2: Product: MUSB HDRC host driver
          [ 11.365047] usb usb2: Manufacturer: Linux 3.8.13-bone70 musb-hcd
          [ 11.365056] usb usb2: SerialNumber: musb-hdrc.0.auto
          [ 11.371162] usb usb2: usb_probe_device
          [ 11.371188] usb usb2: configuration #1 chosen from 1 choice
          [ 11.371246] usb usb2: adding 2-0:1.0 (config #1, interface 0)
          [ 11.371367] hub 2-0:1.0: usb_probe_interface
          [ 11.371379] hub 2-0:1.0: usb_probe_interface - got id
          [ 11.371400] hub 2-0:1.0: USB hub found
          [ 11.371423] hub 2-0:1.0: 1 port detected
          [ 11.371433] hub 2-0:1.0: standalone hub
          [ 11.371442] hub 2-0:1.0: individual port power switching
          [ 11.371451] hub 2-0:1.0: no over-current protection
          [ 11.371459] hub 2-0:1.0: Single TT
          [ 11.371470] hub 2-0:1.0: TT requires at most 8 FS bit times (666 ns)
          [ 11.371479] hub 2-0:1.0: power on to power good time: 10ms
          [ 11.371500] hub 2-0:1.0: local power source is good
          [ 11.371557] hub 2-0:1.0: enabling power on all ports
          [ 11.471879] hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0000
          [ 11.471938] hub 2-0:1.0: hub_suspend
          [ 11.471966] usb usb2: bus auto-suspend, wakeup 1
          [ 12.177437] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
          [ 12.179741] NFSD: starting 90-second grace period (net c08b8e80)
          [ 14.054812] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
          [ 31.255569] net eth0: initializing cpsw version 1.12 (0)
          [ 31.260209] net eth0: phy found : id is : 0x7c0f1
          [ 31.260242] libphy: PHY 4a101000.mdio:01 not found
          [ 31.265316] net eth0: phy 4a101000.mdio:01 not found on slave 1
          [ 31.293471] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
          [ 34.338679] libphy: 4a101000.mdio:00 - Link is Up - 100/Half
          [ 34.338738] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
          [ 40.695242] net eth0: initializing cpsw version 1.12 (0)
          [ 40.700027] net eth0: phy found : id is : 0x7c0f1
          [ 40.700059] libphy: PHY 4a101000.mdio:01 not found
          [ 40.705142] net eth0: phy 4a101000.mdio:01 not found on slave 1
          [ 40.722366] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
          [ 42.189799] net eth0: initializing cpsw version 1.12 (0)
          [ 42.193008] net eth0: phy found : id is : 0x7c0f1
          [ 42.193037] libphy: PHY 4a101000.mdio:01 not found
          [ 42.198118] net eth0: phy 4a101000.mdio:01 not found on slave 1
          [ 42.215179] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
          [ 44.198536] libphy: 4a101000.mdio:00 - Link is Up - 100/Half
          [ 44.198612] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
          root@beaglebone:~#

Suivre le flux des commentaires

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