LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-22-2015, 10:06 AM   #1
srd
LQ Newbie
 
Registered: Apr 2015
Posts: 2

Rep: Reputation: Disabled
Lightbulb Wired connection of Qualcom card not working, can't compile drivers


Hi


I installed Ubuntu 14.10 on my Lenevo Ideapad Y510P and I can't get my wirded connection to work. The wlan is working fine, but when I turn it off and leave only the wired one it tries to connect for some time and then just displays offline message. I think that my card is installed correctly:

Code:
srd@ubuntu:~/Downloads$ ifconfig
    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:3487 errors:0 dropped:0 overruns:0 frame:0
              TX packets:3487 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:621148 (621.1 KB)  TX bytes:621148 (621.1 KB)

    p3p1      Link encap:Ethernet  HWaddr 28:d2:44:2a:7d:5c  
              inet6 addr: fe80::2ad2:44ff:fe2a:7d5c/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:16351 errors:0 dropped:87 overruns:0 frame:0
              TX packets:206 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:98346
srd@ubuntu:~/sudo lshw -C network
  *-network               
       description: Ethernet interface
       product: QCA8171 Gigabit Ethernet
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:08:00.0
       logical name: p3p1
       version: 10
       serial: 28:d2:44:2a:7d:5c
       size: 100Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi msix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=alx duplex=full latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
       resources: irq:50 memory:c2500000-c253ffff ioport:3000(size=128)
  *-network
srd@ubuntu:~$ modinfo alx
filename:       /lib/modules/3.16.0-34-generic/kernel/drivers/net/ethernet/atheros/alx/alx.ko
license:        GPL
description:    Qualcomm Atheros(R) AR816x/AR817x PCI-E Ethernet Network Driver
author:         Qualcomm Corporation, <nic-devel@qualcomm.com>
author:         Johannes Berg <johannes@sipsolutions.net>
srcversion:     A8A24DC0B21D72803977AB3
alias:          pci:v00001969d000010A0sv*sd*bc*sc*i*
alias:          pci:v00001969d000010A1sv*sd*bc*sc*i*
alias:          pci:v00001969d00001090sv*sd*bc*sc*i*
alias:          pci:v00001969d0000E091sv*sd*bc*sc*i*
alias:          pci:v00001969d00001091sv*sd*bc*sc*i*
depends:        mdio
intree:         Y
vermagic:       3.16.0-34-generic SMP mod_unload modversions 
srd@ubuntu:~$ lsmod |grep alx
alx                    36680  0 
mdio                   13561  1 alx
I read that I need special drivers for my card, but it seems that I can't compile them (i tried 2 versions):

Code:
srd@ubuntu:~/Downloads/compat-drivers-3.9-rc4-2-su$ scripts/driver-select alx
    Processing new driver-select request...
    Backup exists: Makefile.bk
    Backup exists: Makefile.bk
    Backup exists: drivers/net/ethernet/broadcom/Makefile.bk
    Backup exists: drivers/net/ethernet/atheros/Makefile.bk
    Backup exists: Makefile.bk
    Backup exists: Makefile.bk
    Backup exists: drivers/net/ethernet/broadcom/Makefile.bk
    srd@ubuntu:~/Downloads/compat-drivers-3.9-rc4-2-su$ sudo make
    ./scripts/gen-compat-autoconf.sh /home/srd/Downloads/compat-drivers-3.9-rc4-2-su/.config /home/srd/Downloads/compat-drivers-3.9-rc4-2-su/config.mk > include/linux/compat_autoconf.h
    make -C /lib/modules/3.16.0-34-generic/build M=/home/srd/Downloads/compat-drivers-3.9-rc4-2-su modules
    make[1]: Entering directory '/usr/src/linux-headers-3.16.0-34-generic'
      CC [M]  /home/srd/Downloads/compat-drivers-3.9-rc4-2-su/compat/main.o
      LD [M]  /home/srd/Downloads/compat-drivers-3.9-rc4-2-su/compat/compat.o
      CC [M]  /home/srd/Downloads/compat-drivers-3.9-rc4-2-su/drivers/net/ethernet/atheros/alx/alx_main.o
      CC [M]  /home/srd/Downloads/compat-drivers-3.9-rc4-2-su/drivers/net/ethernet/atheros/alx/alx_ethtool.o
    /home/srd/Downloads/compat-drivers-3.9-rc4-2-su/drivers/net/ethernet/atheros/alx/alx_ethtool.c: In function ‘alx_set_ethtool_ops’:
    /home/srd/Downloads/compat-drivers-3.9-rc4-2-su/drivers/net/ethernet/atheros/alx/alx_ethtool.c:1804:2: error: implicit declaration of function ‘SET_ETHTOOL_OPS’ [-Werror=implicit-function-declaration]
      SET_ETHTOOL_OPS(dev, &alx_ethtool_ops);
      ^
    cc1: some warnings being treated as errors
    scripts/Makefile.build:257: recipe for target '/home/srd/Downloads/compat-drivers-3.9-rc4-2-su/drivers/net/ethernet/atheros/alx/alx_ethtool.o' failed
    make[4]: *** [/home/srd/Downloads/compat-drivers-3.9-rc4-2-su/drivers/net/ethernet/atheros/alx/alx_ethtool.o] Error 1
    scripts/Makefile.build:404: recipe for target '/home/srd/Downloads/compat-drivers-3.9-rc4-2-su/drivers/net/ethernet/atheros/alx' failed
    make[3]: *** [/home/srd/Downloads/compat-drivers-3.9-rc4-2-su/drivers/net/ethernet/atheros/alx] Error 2
    scripts/Makefile.build:404: recipe for target '/home/srd/Downloads/compat-drivers-3.9-rc4-2-su/drivers/net/ethernet/atheros' failed
    make[2]: *** [/home/srd/Downloads/compat-drivers-3.9-rc4-2-su/drivers/net/ethernet/atheros] Error 2
    Makefile:1345: recipe for target '_module_/home/srd/Downloads/compat-drivers-3.9-rc4-2-su' failed
    make[1]: *** [_module_/home/srd/Downloads/compat-drivers-3.9-rc4-2-su] Error 2
    make[1]: Leaving directory '/usr/src/linux-headers-3.16.0-34-generic'
    Makefile:89: recipe for target 'modules' failed
    make: *** [modules] Error 2
srd@ubuntu:~/Downloads/compat-drivers-2013-03-04-u$ sudo make
make -C /lib/modules/3.16.0-34-generic/build M=/home/srd/Downloads/compat-drivers-2013-03-04-u modules
make[1]: Entering directory '/usr/src/linux-headers-3.16.0-34-generic'
  CC [M]  /home/srd/Downloads/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.o
/home/srd/Downloads/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c: In function ‘alx_dispatch_skb’:
/home/srd/Downloads/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c:700:4: error: too few arguments to function ‘__vlan_hwaccel_put_tag’
    __vlan_hwaccel_put_tag(skb, ntohs(tag));
    ^
In file included from /home/srd/Downloads/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c:22:0:
include/linux/if_vlan.h:350:31: note: declared here
 static inline struct sk_buff *__vlan_hwaccel_put_tag(struct sk_buff *skb,
                               ^
/home/srd/Downloads/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c: In function ‘alx_set_vlan_mode’:
/home/srd/Downloads/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c:1141:17: error: ‘NETIF_F_HW_VLAN_RX’ undeclared (first use in this function)
  if (features & NETIF_F_HW_VLAN_RX)
                 ^
/home/srd/Downloads/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c:1141:17: note: each undeclared identifier is reported only once for each function it appears in
/home/srd/Downloads/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c: In function ‘alx_fix_features’:
/home/srd/Downloads/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c:1158:17: error: ‘NETIF_F_HW_VLAN_RX’ undeclared (first use in this function)
  if (features & NETIF_F_HW_VLAN_RX)
                 ^
/home/srd/Downloads/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c:1159:15: error: ‘NETIF_F_HW_VLAN_TX’ undeclared (first use in this function)
   features |= NETIF_F_HW_VLAN_TX;
               ^
/home/srd/Downloads/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c: In function ‘alx_set_features’:
/home/srd/Downloads/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c:1176:18: error: ‘NETIF_F_HW_VLAN_RX’ undeclared (first use in this function)
  if (!(changed & NETIF_F_HW_VLAN_RX))
                  ^
/home/srd/Downloads/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c: In function ‘alx_probe’:
/home/srd/Downloads/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c:2637:10: error: ‘NETIF_F_HW_VLAN_RX’ undeclared (first use in this function)
          NETIF_F_HW_VLAN_RX |
          ^
/home/srd/Downloads/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c:2640:43: error: ‘NETIF_F_HW_VLAN_TX’ undeclared (first use in this function)
  netdev->features = netdev->hw_features | NETIF_F_HW_VLAN_TX;
                                           ^
scripts/Makefile.build:257: recipe for target '/home/srd/Downloads/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.o' failed
make[4]: *** [/home/srd/Downloads/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.o] Error 1
scripts/Makefile.build:404: recipe for target '/home/srd/Downloads/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx' failed
make[3]: *** [/home/srd/Downloads/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx] Error 2
scripts/Makefile.build:404: recipe for target '/home/srd/Downloads/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros' failed
make[2]: *** [/home/srd/Downloads/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros] Error 2
Makefile:1345: recipe for target '_module_/home/srd/Downloads/compat-drivers-2013-03-04-u' failed
make[1]: *** [_module_/home/srd/Downloads/compat-drivers-2013-03-04-u] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.16.0-34-generic'
Makefile:89: recipe for target 'modules' failed
make: *** [modules] Error 2
 
Old 04-27-2015, 03:28 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,893

Rep: Reputation: 163Reputation: 163
Do you installed source code of linux kernel for the distribution?
 
Old 04-27-2015, 08:14 PM   #3
srd
LQ Newbie
 
Registered: Apr 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
lately I have found a version of backports that actually compile (3.10.19) I have installed the qualcome drivers abut that didn't help the problem (they should be in the Kernel anyway). When I try to type dhclient p3p1 the console prints nothing and of course the connection is not established.
 
Old 04-28-2015, 03:30 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,893

Rep: Reputation: 163Reputation: 163
Based on ifconfig output, p3p1 is up and running except IP address. You can use static IP address at first to verify the network.
 
  


Reply

Tags
atheros, connection, ethernet, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
internet slow with wired connection OK with WiFi, do I need linux drivers? merryway11 Linux - Newbie 6 03-22-2014 12:46 PM
Ubuntu 8.4 and 9.4 live: wired connection not working kalimat Linux - Distributions 3 01-12-2013 02:08 PM
Upgraded to 12.04 from 10.04 and wired/wireless connection not working bmorebears Linux - Newbie 6 09-18-2012 09:47 AM
[SOLVED] catch 22 install wireless drivers without a wired connection Nizzok Linux - Newbie 13 12-28-2010 03:53 PM
Keep the wired connection working while reconnection wireless martvefun Linux - Networking 1 11-09-2010 09:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration