ethernet usb not recognized with adalm pluto

Hi,

I have an Ethernet usb adapter like this:

https://www.amazon.es/AmazonBasics-Adaptador-red-LAN-Ethernet/dp/B00M77HLII/ref=sr_1_29?ie=UTF8&qid=1525853686&sr=8-29&keywords=usb+ethernet

but for some reason when I plug this device to the pluto usb througth and OTG cable with an usb power connected to the other usb for powering the pluto the ethernet adapter doesn't turn on(green led is OFF) and do nothing.

I don't know what to do because with this device connected to usb I can't go inside pluto to see if device is recognized or not.

the adapter is working correctly with usb 2.0 in a windows machine.

I tried to use a usb hub for powering the adapter with an external power source but nothing.

Any ideas?.

thanks.

  • 0
    •  Analog Employees 
    on May 11, 2018 11:00 AM

    The Pluto doesn't support all USB Ethernet chipsets. Only a few common chipsets are supported.

    Please see here: usb_wired_ethernet_support

    Your kernel dmesg could help identifying a few things.

    Please try following:

    Boot the unit with the Ethernet adaptor attached. Then unplug it, and connect the USB cable to attach your PC.

    Then login into the unit, either via ttyACM or SSH/Slogin and run dmesg.

    Please provide the output.

    -Michael 

  • 0
    •  Analog Employees 
    on May 11, 2018 12:22 PM

    This looks a bit unexpected are you sure your OTG Host adaptor is working?

    It must handle the ID pin correctly, I'm saying this because some don't!

    If you are in USB HOST mode you should see:

    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected

    Jan  1 00:00:02 (none) user.warn kernel: e0002000.usb supply vbus not found, using dummy regulator
    Jan  1 00:00:02 (none) user.info kernel: ULPI transceiver vendor/product ID 0x0424/0x0007
    Jan  1 00:00:02 (none) user.info kernel: Found SMSC USB3320 ULPI transceiver.
    Jan  1 00:00:02 (none) user.info kernel: ULPI integrity check: passed.
    Jan  1 00:00:02 (none) user.info kernel: ci_hdrc ci_hdrc.0: EHCI Host Controller
    Jan  1 00:00:02 (none) user.info kernel: ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
    Jan  1 00:00:02 (none) user.info kernel: ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
    Jan  1 00:00:02 (none) user.info kernel: usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    Jan  1 00:00:02 (none) user.info kernel: usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    Jan  1 00:00:02 (none) user.info kernel: usb usb1: Product: EHCI Host Controller
    Jan  1 00:00:02 (none) user.info kernel: usb usb1: Manufacturer: Linux 4.9.0-10330-gb4b067a ehci_hcd
    Jan  1 00:00:02 (none) user.info kernel: usb usb1: SerialNumber: ci_hdrc.0
    Jan  1 00:00:02 (none) user.info kernel: hub 1-0:1.0: USB hub found
    Jan  1 00:00:02 (none) user.info kernel: hub 1-0:1.0: 1 port detected
    Jan  1 00:00:02 (none) user.info kernel: mousedev: PS/2 mouse device common for all mice
    Jan  1 00:00:02 (none) user.info kernel: i2c /dev entries driver
    Jan  1 00:00:02 (none) user.info kernel: cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer at e083a000 with timeout 10s
    Jan  1 00:00:02 (none) user.info kernel: Xilinx Zynq CpuIdle Driver started
    Jan  1 00:00:02 (none) user.info kernel: ledtrig-cpu: registered to indicate activity on CPUs
    Jan  1 00:00:02 (none) user.info kernel: hidraw: raw HID events driver (C) Jiri Kosina
    Jan  1 00:00:02 (none) user.info kernel: usbcore: registered new interface driver usbhid
    Jan  1 00:00:02 (none) user.info kernel: usbhid: USB HID core driver
    Jan  1 00:00:02 (none) user.info kernel: usbcore: registered new interface driver r8712u
    Jan  1 00:00:02 (none) user.info kernel: usbcore: registered new interface driver r8188eu
    Jan  1 00:00:02 (none) user.info kernel: ad9361 spi32766.0: ad9361_probe : enter (ad9363a)
    Jan  1 00:00:02 (none) user.notice kernel: random: fast init done
    Jan  1 00:00:02 (none) user.info kernel: ad9361 spi32766.0: ad9361_probe : AD936x Rev 2 successfully initialized
    Jan  1 00:00:02 (none) user.info kernel: cf_axi_dds 79024000.cf-ad9361-dds-core-lpc: Analog Devices CF_AXI_DDS_DDS MASTER (9.00.b) at 0x79024000 mapped to 0xe083e000, probed DDS AD9364
    Jan  1 00:00:02 (none) user.info kernel: NET: Registered protocol family 17
    Jan  1 00:00:02 (none) user.notice kernel: Registering SWP/SWPB emulation handler
    Jan  1 00:00:02 (none) user.info kernel: usb 1-1: new high-speed USB device number 2 using ci_hdrc
    Jan  1 00:00:02 (none) user.info kernel: usb 1-1: New USB device found, idVendor=0bda, idProduct=8153
    Jan  1 00:00:02 (none) user.info kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
    Jan  1 00:00:02 (none) user.info kernel: usb 1-1: Product: USB 10/100/1000 LAN
    Jan  1 00:00:02 (none) user.info kernel: usb 1-1: Manufacturer: Realtek
    Jan  1 00:00:02 (none) user.info kernel: usb 1-1: SerialNumber: 000001000000
    Jan  1 00:00:02 (none) user.info kernel: usb 1-1: reset high-speed USB device number 2 using ci_hdrc
    Jan  1 00:00:02 (none) user.info kernel: cf_axi_adc 79020000.cf-ad9361-lpc: ADI AIM (10.00.b) at 0x79020000 mapped to 0xe0938000, probed ADC AD9364 as MASTER
    Jan  1 00:00:02 (none) user.info kernel: input: gpio_keys as /devices/soc0/gpio_keys/input/input0
    Jan  1 00:00:02 (none) user.info kernel: Freeing unused kernel memory: 228K (c05df000 - c0618000)
    Jan  1 00:00:02 (none) user.warn kernel: This architecture does not have kernel memory protection.

    -Michael

  • well, the dmesg output this, but I'm not sure if device is detected or not because I see a lot of devices drivers(bold) but not sure wich one is:

    Booting Linux on physical CPU 0x0
    Linux version 4.9.0-10194-g40c2158 (michael@mhenneri-D06) (gcc version 4.9.2 (Sourcery CodeBench Lite 2015.05-17) ) #207 SMP PREEMPT Mon Dec 18 18:24:33 CET 2017
    CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
    CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    OF: fdt:Machine model: Analog Devices PlutoSDR Rev.B (Z7010/AD9363)
    cma: Reserved 256 MiB at 0x0e400000
    Memory policy: Data cache writealloc
    On node 0 totalpages: 131072
    free_area_init_node: node 0, pgdat c0650100, node_mem_map dfb77000
      Normal zone: 1024 pages used for memmap
      Normal zone: 0 pages reserved
      Normal zone: 131072 pages, LIFO batch:31
    percpu: Embedded 13 pages/cpu @dfb51000 s23744 r8192 d21312 u53248
    pcpu-alloc: s23744 r8192 d21312 u53248 alloc=13*4096
    pcpu-alloc: [0] 0 [0] 1
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
    Kernel command line: console=ttyPS0,115200 maxcpus= rootfstype=ramfs root=/dev/r                                                                                                                                                             am0 rw quiet loglevel=4 uboot=U-Boot PlutoSDR v0.20-PlutoSDR-00041-g4bdff59 (May                                                                                                                                                              26 2017 - 13:07:26 +0200)
    PID hash table entries: 2048 (order: 1, 8192 bytes)
    Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    Memory: 245528K/524288K available (4559K kernel code, 243K rwdata, 1236K rodata,                                                                                                                                                              228K init, 150K bss, 16616K reserved, 262144K cma-reserved, 0K highmem)
    Virtual kernel memory layout:
        vector  : 0xffff0000 - 0xffff1000   (   4 kB)
        fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
        vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
        lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
        pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
        modules : 0xbf000000 - 0xbfe00000   (  14 MB)
          .text : 0xc0008000 - 0xc047c214   (4561 kB)
          .init : 0xc05db000 - 0xc0614000   ( 228 kB)
          .data : 0xc0614000 - 0xc0650d00   ( 244 kB)
           .bss : 0xc0650d00 - 0xc0676690   ( 151 kB)
    Preemptible hierarchical RCU implementation.
            Build-time adjustment of leaf fanout to 32.
            RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
    RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
    NR_IRQS:16 nr_irqs:16 16
    efuse mapped to e0800000
    slcr mapped to e0802000
    L2C: platform modifies aux control register: 0x72360000 -> 0x72760000
    L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000
    L2C-310 erratum 769419 enabled
    L2C-310 enabling early BRESP for Cortex-A9
    L2C-310 full line of zeros enabled for Cortex-A9
    L2C-310 ID prefetch enabled, offset 1 lines
    L2C-310 dynamic clock gating enabled, standby mode enabled
    L2C-310 cache controller enabled, 8 ways, 512 kB
    L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001
    zynq_clock_init: clkc starts at e0802100
    Zynq clock init
    sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103ns
    clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce07af025                                                                                                                                                             , max_idle_ns: 440795209040 ns
    Switching to timer-based delay loop, resolution 3ns
    clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 5375                                                                                                                                                             38477 ns
    timer #0 at e080a000, irq=17
    Console: colour dummy device 80x30
    Calibrating delay loop (skipped), value calculated using timer frequency.. 666.6                                                                                                                                                             6 BogoMIPS (lpj=3333333)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    CPU: Testing write buffer coherency: ok
    CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    Setting up static identity map for 0x82c0 - 0x8318
    CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    Brought up 2 CPUs
    SMP: Total of 2 processors activated (1333.33 BogoMIPS).
    CPU: All CPU(s) started in SVC mode.
    devtmpfs: initialized
    VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
    clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911                                                                                                                                                             2604462750000 ns
    pinctrl core: initialized pinctrl subsystem
    NET: Registered protocol family 16
    DMA: preallocated 256 KiB pool for atomic coherent allocations
    cpuidle: using governor ladder
    hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
    hw-breakpoint: maximum watchpoint size is 4 bytes.
    zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xe0840000
    zynq-pinctrl 700.pinctrl: zynq pinctrl initialized
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    EDAC MC: Ver: 3.0.0
    clocksource: Switched to clocksource arm_global_timer
    NET: Registered protocol family 2
    TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
    TCP: Hash tables configured (established 4096 bind 4096)
    UDP hash table entries: 256 (order: 1, 8192 bytes)
    UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    NET: Registered protocol family 1
    Trying to unpack rootfs image as initramfs...
    Freeing initrd memory: 4792K (de67a000 - deb28000)
    hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
    futex hash table entries: 512 (order: 3, 32768 bytes)
    workingset: timestamp_bits=30 max_order=17 bucket_order=0
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 25, base_baud = 6249999) is a                                                                                                                                                              xuartps
    console [ttyPS0] enabled
    xdevcfg f8007000.devcfg: ioremap 0xf8007000 to e0818000
    brd: module loaded
    loop: module loaded
    m25p80 spi32765.0: SPI-NOR-UniqueID 104473222a8700101f001b009db5d55174
    m25p80 spi32765.0: n25q256a (32768 Kbytes)
    4 ofpart partitions found on MTD device spi32765.0
    Creating 4 MTD partitions on "spi32765.0":
    0x000000000000-0x000000100000 : "qspi-fsbl-uboot"
    0x000000100000-0x000000120000 : "qspi-uboot-env"
    0x000000120000-0x000000200000 : "qspi-nvmfs"
    0x000000200000-0x000002000000 : "qspi-linux"
    libphy: Fixed MDIO Bus: probed
    usbcore: registered new interface driver rt2500usb
    usbcore: registered new interface driver rt73usb
    usbcore: registered new interface driver rt2800usb
    usbcore: registered new interface driver rtl8187
    usbcore: registered new interface driver rtl8192cu
    usbcore: registered new interface driver rtl8xxxu
    usbcore: registered new interface driver r8152
    usbcore: registered new interface driver lan78xx
    usbcore: registered new interface driver asix
    usbcore: registered new interface driver ax88179_178a
    usbcore: registered new interface driver smsc75xx
    usbcore: registered new interface driver smsc95xx
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    usbcore: registered new interface driver usb-storage
    usbcore: registered new interface driver usbserial
    usbcore: registered new interface driver usbserial_generic
    usbserial: USB Serial support registered for generic
    usbcore: registered new interface driver ftdi_sio
    usbserial: USB Serial support registered for FTDI USB Serial Device
    e0002000.usb supply vbus not found, using dummy regulator
    ULPI transceiver vendor/product ID 0x0424/0x0007
    Found SMSC USB3320 ULPI transceiver.
    ULPI integrity check: passed.
    mousedev: PS/2 mouse device common for all mice
    i2c /dev entries driver
    cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer at e083a000 with timeout 10s
    Xilinx Zynq CpuIdle Driver started
    ledtrig-cpu: registered to indicate activity on CPUs
    hidraw: raw HID events driver (C) Jiri Kosina
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    usbcore: registered new interface driver r8712u
    usbcore: registered new interface driver r8188eu
    ad9361 spi32766.0: ad9361_probe : enter (ad9364)
    random: fast init done
    ad9361 spi32766.0: ad9361_probe : AD936x Rev 2 successfully initialized
    cf_axi_dds 79024000.cf-ad9361-dds-core-lpc: Analog Devices CF_AXI_DDS_DDS MASTER                                                                                                                                                              (9.00.b) at 0x79024000 mapped to 0xe083e000, probed DDS AD9364
    NET: Registered protocol family 17
    Registering SWP/SWPB emulation handler
    cf_axi_adc 79020000.cf-ad9361-lpc: ADI AIM (10.00.b) at 0x79020000 mapped to 0xe                                                                                                                                                             0938000, probed ADC AD9364 as MASTER
    input: gpio_keys as /devices/soc0/gpio_keys/input/input0
    Freeing unused kernel memory: 228K (c05db000 - c0614000)
    This architecture does not have kernel memory protection.
    file system registered
    using random self ethernet address
    using random host ethernet address
    Mass Storage Function, version: 2009/09/11
    LUN: removable file: (no medium)
    read descriptors
    read strings
    usb0: HOST MAC 00:e0:22:ad:e8:30
    usb0: MAC 00:05:f7:b4:ce:6a
    random: crng init done
    configfs-gadget gadget: high-speed config #1: c
    configfs-gadget gadget: high-speed config #1: c

  • hi ,

    I've repeat the previous steps with another otg cable and now I'm able to see the ethernet chipset running dmesg:

    usbcore: registered new interface driver ax88179_178a

    and the device is in the compatible list.

    but still don't see the:

    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected

    I've tried the usb otg cable and the usb hub for power supply with an windows tablet and it works so the calbe seems to be ok

    also I tried another wifi dongle (rtl18187) but device is recognized in device list but the wifi led is off and seems is not operating.

    when you say:

    "if you are in USB HOST mode"

    what does it means?.

  • 0
    •  Analog Employees 
    on May 17, 2018 4:54 AM

    usbcore: registered new interface driver ax88179_178a

    Is kind of meaningless, it only says it has registered a driver. The USB OTG controller operates as Dual Role Device (DRD). The is USB OTG spec defines two protocols  HNP, SRP.

    Please take a look here at this very good tutorial: USB On-the-Go Basics 

    The Pluto supports the HNP, it's therefore important to use a micro-AB adaptor with the ID pin grounded, when a USB Device such as WIFI, USB Memory, etc. is connected to the Pluto.

    Once the USB stack has determined that it must act as a USB Host - it will print the HUB found stuff besides a few other messages.

    -Michael