Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 37

Thread: XG-C100C 10G NIC card - any hints to install driver?

  1. #11
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    24,000
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: XG-C100C 10G NIC card - any hints to install driver?

    What's going wrong is not you; it is the author of the driver, who, in the Makefile, gives no way to permanently install the driver. And me; because I don't have the hardware and don't need to install it, I never, as I should, tested 'sudo make install'.

    Try this instead:
    Code:
    cd ~/Atlantic
    sudo insmod atlantic.ko
    Does your ethernet device spring to life? If so, we'll automate the 'insmod' and if not, we'll troubleshoot:
    Code:
    dmesg | grep -i atl
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  2. #12
    Join Date
    Sep 2017
    Beans
    31

    Re: XG-C100C 10G NIC card - any hints to install driver?

    Thanks again chili555

    There's a bit of progress, not quite sure how much though. output of dmesg | grep -i atl

    Code:
    [41620.461798] atlantic: module verification failed: signature and/or required key missing - tainting kernel
    and output of lshw -class network seems to show the card with more info now available (logical name, serial, etc), but it also shows the wrong capacity info (it's a 10G card).

    Code:
    *-network DISABLED
           description: Ethernet interface
           physical id: 0
           bus info: pci@0000:01:00.0
           logical name: enp1s0
           version: 02
           serial: 10:7b:44:e8:d9:85
           capacity: 1Gbit/s
           width: 64 bits
           clock: 33MHz
           capabilities: pciexpress pm msix msi vpd bus_master cap_list rom ethernet physical 100bt-fd 1000bt-fd autonegotiation
           configuration: autonegotiation=on broadcast=yes driver=aquantia driverversion=1.5.348.0 duplex=full firmware=1.5.44 latency=0 link=no multicast=yes port=twisted pair
           resources: irq:16 memory:df440000-df44ffff memory:df450000-df450fff memory:df000000-df3fffff memory:df400000-df43ffff
      *-network
           description: Ethernet interface
           product: Ethernet Connection (2) I219-LM
           vendor: Intel Corporation
           physical id: 1f.6
           bus info: pci@0000:00:1f.6
           logical name: enp0s31f6
           version: 31
           serial: 50:9a:4c:59:ed:1f
           size: 10Mbit/s
           capacity: 1Gbit/s
           width: 32 bits
           clock: 33MHz
           capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
           configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.8-4 ip=192.168.11.131 latency=0 link=yes multicast=yes port=twisted pair speed=10Mbit/s
           resources: irq:126 memory:df700000-df71ffff
    Is there anything else worth trying?

  3. #13
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    24,000
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: XG-C100C 10G NIC card - any hints to install driver?

    I am interested in the notation DISABLED. Disabled by what, we wonder. I am also interested that the driver now calls itself aquantia. Let's check the log for more clues:
    Code:
    grep -e aquantia -e enp1s0 /var/log/syslog
    Was the ethernet cable attached to the XG-C100C at the time? Let's be sure to conduct all future tests with it connected to your 10 Gbps capable router or switch.

    By the way, the release notes for the driver reports that the aq_cfg.h file is a configuration file. Currently, all the parameters, I assume, are commented out. Here it is:

    Code:
    /*
     * aQuantia Corporation Network Driver
     * Copyright (C) 2014-2017 aQuantia Corporation. All rights reserved
     *
     * This program is free software; you can redistribute it and/or modify it
     * under the terms and conditions of the GNU General Public License,
     * version 2, as published by the Free Software Foundation.
     */
    
    /* File aq_cfg.h: Definition of configuration parameters and constants. */
    
    #ifndef AQ_CFG_H
    #define AQ_CFG_H
    
    #define AQ_CFG_VECS_DEF   4U
    #define AQ_CFG_TCS_DEF    1U
    
    #define AQ_CFG_TXDS_DEF    4096U
    #define AQ_CFG_RXDS_DEF    1024U
    
    #define AQ_CFG_IS_POLLING_DEF 0U
    
    #define AQ_CFG_FORCE_LEGACY_INT 0U
    
    #define AQ_CFG_IS_INTERRUPT_MODERATION_DEF   1U
    #define AQ_CFG_INTERRUPT_MODERATION_RATE_DEF 0xFFFFU
    #define AQ_CFG_IRQ_MASK                      0x1FFU
    
    #define AQ_CFG_VECS_MAX   8U
    #define AQ_CFG_TCS_MAX    8U
    
    #define AQ_CFG_TX_FRAME_MAX  (16U * 1024U)
    #define AQ_CFG_RX_FRAME_MAX  (5U * 1024U)
    
    /* LRO */
    #define AQ_CFG_IS_LRO_DEF           1U
    
    /* RSS */
    #define AQ_CFG_RSS_INDIRECTION_TABLE_MAX  128U
    #define AQ_CFG_RSS_HASHKEY_SIZE           320U
    
    #define AQ_CFG_IS_RSS_DEF           1U
    #define AQ_CFG_NUM_RSS_QUEUES_DEF   AQ_CFG_VECS_DEF
    #define AQ_CFG_RSS_BASE_CPU_NUM_DEF 0U
    
    #define AQ_CFG_PCI_FUNC_MSIX_IRQS   9U
    #define AQ_CFG_PCI_FUNC_PORTS       2U
    
    #define AQ_CFG_SERVICE_TIMER_INTERVAL    (2 * HZ)
    #define AQ_CFG_POLLING_TIMER_INTERVAL   ((unsigned int)(2 * HZ))
    
    #define AQ_CFG_SKB_FRAGS_MAX   32U
    
    #define AQ_CFG_NAPI_WEIGHT     64U
    
    #define AQ_CFG_MULTICAST_ADDRESS_MAX     32U
    
    /*#define AQ_CFG_MAC_ADDR_PERMANENT {0x30, 0x0E, 0xE3, 0x12, 0x34, 0x56}*/
    
    #define AQ_CFG_FC_MODE 3U
    
    #define AQ_CFG_SPEED_MSK  0xFFFFU	/* 0xFFFFU==auto_neg */
    
    #define AQ_CFG_IS_AUTONEG_DEF       1U
    #define AQ_CFG_MTU_DEF              1514U
    
    #define AQ_CFG_LOCK_TRYS   100U
    
    #define AQ_CFG_DRV_AUTHOR      "aQuantia"
    #define AQ_CFG_DRV_DESC        "aQuantia Corporation(R) Network Driver"
    #define AQ_CFG_DRV_NAME        "aquantia"
    #define AQ_CFG_DRV_VERSION	__stringify(NIC_MAJOR_DRIVER_VERSION)"."\
    				__stringify(NIC_MINOR_DRIVER_VERSION)"."\
    				__stringify(NIC_BUILD_DRIVER_VERSION)"."\
    				__stringify(NIC_REVISION_DRIVER_VERSION)
    
    #endif /* AQ_CFG_H */
    I am not at all familiar with the driver and its use, but if you see anything useful here, we can try to un-comment the parameter and re-compile.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  4. #14
    Join Date
    Sep 2017
    Beans
    31

    Re: XG-C100C 10G NIC card - any hints to install driver?

    Thanks again...

    Hmm, yes, I can't exactly plug the card in normally as I don't have a 10G switch/router. I'm planning to connect it directly with my other XG-C100C in my win10 computer. The closest I could try was to plug the XG-C100C card into my current home network, but it did not seem to want to auto negotiate IP addresses (I logged into the router interface & deleted the DHCP lease, then also executed sudo dhclient -r enp1s0 ). I figured that was a sign enough that the card wasn't working...

    output for grep -e aquantia -e enp1s0 /var/log/syslog
    Code:
    Sep 12 09:49:07 nas kernel: [41620.480386] aquantia 0000:01:00.0 enp1s0: renamed from eth0
    I looked over the config file & couldn't see anything that stood out as out of place...

    The odd thing is that when I plug the 10G card into my home network, the lights on the NIC won't turn on, but when I plug it directly into my other 10G card (no static IP set on this other card yet), the lights turn green. lshw -class network still shows it as DISABLED, but if I check win10-->ipconfig, my win10 machine seems to have auto assigned 169.254.246.10 to itself.

    I couldn't figure out a way to ping this address from the ubuntu server as I think the win10 firewall rules might drop pings.

    output however of ifconfig only shows entries from enp0s31f6 and lo (not enp1s0).

    Any clues?

  5. #15
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    24,000
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: XG-C100C 10G NIC card - any hints to install driver?

    my win10 machine seems to have auto assigned 169.254.246.10 to itself.
    Ahhh! The old 169.254.x.y address! https://www.techrepublic.com/forums/...183-come-from/
    The 169.254.x.x range of IP addresses is reserved by Microsoft for private network addressing. If you have a pc set to automatically obtain an IP and you recieve one of these addresses, windows has assigned this because it cannot find a DHCP server within the network subnet.
    The odd thing is that when I plug the 10G card into my home network, the lights on the NIC won't turn on,
    Is there any change if you plug in to your home router and then do:
    Code:
    sudo ifconfig enp1s0 up
    Are there any clues at the terminal when you do? In the log?
    Code:
    dmesg | grep enp1s0
    I'm running low on talent. I figured out the driver but I know anything about your device or 10 Gbps service.
    Last edited by chili555; September 13th, 2017 at 03:29 AM.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  6. #16
    Join Date
    Sep 2017
    Beans
    31

    Re: XG-C100C 10G NIC card - any hints to install driver?

    yup, I'm feeling at an end of ideas... but then I was there before I posted the question

    Code:
    sudo ifconfig enp1s0 up
    brings the interface up with an inet6 address. This disappears if the cable is unplugged. I don't know if that's just a reflection of the mac address. But there's no ipv4 address. Here's how it reads:
    Code:
    enp1s0    Link encap:Ethernet  HWaddr 10:7b:44:e8:d9:85  
              inet6 addr: fe80::127b:44ff:fee8:d985/64 Scope:Link
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:8 overruns:0 frame:0
              TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:508 (508.0 B)
    Code:
    dmesg | grep enp1s0
    reads:
    Code:
    [41620.480386] aquantia 000:01:00.0 enp1s0: renamed from eth0
    [83537.935168] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
    [83543.945619] IPV6: ADDRCONF(NETDEV_CHANGE): enp1s0: link becomes ready
    Thanks so much for your help so far. Let me know when it's the end of the road

  7. #17
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    24,000
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: XG-C100C 10G NIC card - any hints to install driver?

    brings the interface up with an inet6 address.
    However...
    inet6 addr: fe80::127b:44ff:fee8:d985/64
    fe80:: is a link-local address. Just like 169.254.x.y, it means that a valid IPv6 address was sought but not given.

    The one last thing I can think of it to hook the two 10 Gbps devices together and then Edit Connections in Network Manager and, under IPv4 settings, select 'Share to other computers.' Perhaps the two will begin to work as expected.

    You could also try setting static IP addresses, in the same place, such as 10.0.0.10 for one of them and 10.0.0.20 for the other. If that sticks, see if you can ping them.

    I am now officially out of knowledge and even guesses!
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  8. #18
    Join Date
    Sep 2017
    Beans
    31

    Re: XG-C100C 10G NIC card - any hints to install driver?

    Thanks so much again for your input! So far no success, I'll post back when I find an answer

  9. #19
    Join Date
    Sep 2017
    Beans
    31

    Re: XG-C100C 10G NIC card - any hints to install driver?

    Hmmm, so, after checking around, I found this comment on anandtech by someone under their review of the XG-C100C
    HTML Code:
    For anyone curious, the Linux drivers were upstreamed in 4.11.
    Unfortunately this means that it won't work out of the box on most  current non-rolling distributions.
    Ubuntu 17.04 and Fedora 25 are both  on 4.10, latest Debian stable is 4.9.
    So... I installed Kernel 4.12 using this tutorial (http://ubuntuhandbook.org/index.php/...tu-linux-mint/)

    Everything seemed to install fine... output of uname -r
    HTML Code:
    4.12.0-041200-generic
    Then i updated packages within Webmin & tried to execute make again from within the Atlantic directory

    Sadly that failed as follows:
    HTML Code:
    make -j4 CC=gcc -C /lib/modules/4.12.0-041200-generic/build M=/home/me/Atlantic modules
    make[1]: Entering directory '/usr/src/linux-headers-4.12.0-041200-generic'
      CC [M]  /home/me/Atlantic/aq_pci_func.o
      CC [M]  /home/me/Atlantic/aq_ring.o
      CC [M]  /home/me/Atlantic/aq_ethtool.o
      CC [M]  /home/me/Atlantic/aq_hw_utils.o
    /home/me/Atlantic/aq_pci_func.c: In function 'aq_pci_func_init':
    /home/me/Atlantic/aq_pci_func.c:157:8: error: implicit declaration of function 'pci_enable_msix' [-Werror=implicit-function-declaration]
      err = pci_enable_msix(self->pdev, self->msix_entry,
            ^
      CC [M]  /home/me/Atlantic/hw_atl/hw_atl_a0.o
      CC [M]  /home/me/Atlantic/hw_atl/hw_atl_b0.o
    cc1: some warnings being treated as errors
    scripts/Makefile.build:302: recipe for target '/home/me/Atlantic/aq_pci_func.o' failed
    make[2]: *** [/home/me/Atlantic/aq_pci_func.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    Makefile:1512: recipe for target '_module_/home/me/Atlantic' failed
    make[1]: *** [_module_/home/me/Atlantic] Error 2
    make[1]: Leaving directory '/usr/src/linux-headers-4.12.0-041200-generic'
    Makefile:60: recipe for target 'all' failed
    make: *** [all] Error 2
    Any ideas whether upgrading to a Kernel >= 4.11 could help? Or why make would fail now that I have Kernel 4.12?

  10. #20
    Join Date
    Sep 2017
    Beans
    31

    Re: XG-C100C 10G NIC card - any hints to install driver?

    Hmmm, so I found this
    https://www.spinics.net/lists/netdev/msg421033.html
    which requested:
    HTML Code:
    pci_enable_msix has been long deprecated, but this driver adds a new
    instance.  Convert it to pci_alloc_irq_vectors so that no new instance
    of the deprecated function reaches mainline.
    If I'm reading that right, the vendor didn't convert it, but allowed pci_enable_msix to go into the current Atlantic1.5.348.0 driver... So I guess an official fix is needed... at least before it's 4.12 compliant (Asus website says compliant only up to kernel 4.4)
    Last edited by madumi; September 13th, 2017 at 07:08 PM.

Page 2 of 4 FirstFirst 1234 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •