You are not logged in.

#1 2013-09-21 13:02:56

rafdre
Member
From: Gdansk
Registered: 2013-09-21
Posts: 76

[SOLVED] Network issue - Atheros drivers

Hi
I am new to ArchLinux. Before I have used: RedHat, Fedora, Ubuntu, SLES and for quite long time OpenSuse (I still love it and have on other machine).
I decided to try ArchLinux on my laptop because I think OpenSuse is too heavy in some cases. I think its time for me to try a little bit more than box distro like openSUSE.

I have successfully installed ArchLinux on my machine with dual boot with Suse (thats why I do not need GRUB).
Now I have issue with my network. I already know that AR* Family does not work out of box, so I am trying to add it.
The issue I have is this:
since I do not have network, I have booted from CD and used 'arch-chroot /mnt'. Everything fine so far. I can add packages with pacman. I added 'make' and gcc'.
Now I try to 'make' from package AR81Family-linux-v1-10.1.14.tar.
When I execute 'make' I see error:

Linux kernel source not found

I have executed pacman -Qi linux and see there version 3.11.1-1.
I already installed linux-headers, but this not solve my issue. What package do I need?

I am not sure about "AR81Family-linux-v1-10.1.14". I know the WIKI mentioned another package , but I know "AR81Family-linux-v1-10.1.14" worked fine with SLES 11 SP1.

I have two questions:
what package is missing for kernel source?
what package do you advise me to install considering the kernel 3.11 and Laptop: ASUS G51J.

regards
Rafal

Last edited by rafdre (2013-09-26 05:11:39)

Offline

#2 2013-09-21 13:07:27

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 755

Re: [SOLVED] Network issue - Atheros drivers

You need linux-headers package.

Offline

#3 2013-09-21 13:10:56

rafdre
Member
From: Gdansk
Registered: 2013-09-21
Posts: 76

Re: [SOLVED] Network issue - Atheros drivers

Xabre wrote:

You need linux-headers package.

as I said : I already installed linux-headers, but this not solve my issue.

packman -Ss linux headers
tells me: installed

Last edited by rafdre (2013-09-21 13:11:55)

Offline

#4 2013-09-21 13:14:05

rafdre
Member
From: Gdansk
Registered: 2013-09-21
Posts: 76

Re: [SOLVED] Network issue - Atheros drivers

I have rebooted the system and now tried again. I see different message:

Linux kernel source not configured - missing version.h

Offline

#5 2013-09-21 13:29:53

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: [SOLVED] Network issue - Atheros drivers

Install the base-devel package set to your chroot.  Also, is there a package in the AUr for your drivers?  It is highly discouraged to build by hand on Arch.  Use PKGBUILD files so pacman and makepkg can manage your builds.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2013-09-21 13:47:00

rafdre
Member
From: Gdansk
Registered: 2013-09-21
Posts: 76

Re: [SOLVED] Network issue - Atheros drivers

which one?
pacman -S base-devel
tells me: There are 25 members in group base-devel
and then I have a list with:
autoconf
automake
...etc

Regarding network driver:
https://wiki.archlinux.org/index.php/Ne … ros_AR8161

I compiled the driver and added module on SLES SP1 so I think I can be able to do the same on ArchLinux
Above I provided wrong information. I have used : AR81Family-Linux-v1.0.1.9.tar
I think the version is important, because it depends on the kernel version.

Offline

#7 2013-09-21 13:49:44

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 755

Re: [SOLVED] Network issue - Atheros drivers

Whole group

pacman -S base-devel

enter for all

Offline

#8 2013-09-21 13:53:06

rafdre
Member
From: Gdansk
Registered: 2013-09-21
Posts: 76

Re: [SOLVED] Network issue - Atheros drivers

I have decided to choose "all".
when I try 'make' as 'chroot' then I always get:
Linux kernel source not found
...so i always reboot PC and use installed system (the one without network).
there 'make' still gives me:
Linux kernel source not configured - missing version.h

Last edited by rafdre (2013-09-21 13:53:19)

Offline

#9 2013-09-21 14:06:18

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: [SOLVED] Network issue - Atheros drivers

rafdre wrote:

I compiled the driver and added module on SLES SP1 so I think I can be able to do the same on ArchLinux
Above I provided wrong information. I have used : AR81Family-Linux-v1.0.1.9.tar

What kernel version does SLES use?
What is the upstream URL to these drivers?  It could be that the package you are attempting to compile is not for the 3.11.x kernel series...

EDIT:  Yep.[1]
EDIT2: Looks like alphaniner has a NIC with these drivers.[2]  Perhaps you can PM him/her to find out how it's working.
EDIT3: This wiki page suggests these drivers are working out-of-the-box.[3]

1. https://www.suse.com/releasenotes/x86_6 … ernelTools
2. https://bbs.archlinux.org/viewtopic.php … 6#p1290646
3. https://wiki.archlinux.org/index.php/Acer_Aspire_8920G

Last edited by graysky (2013-09-21 14:27:53)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#10 2013-09-22 10:57:25

rafdre
Member
From: Gdansk
Registered: 2013-09-21
Posts: 76

Re: [SOLVED] Network issue - Atheros drivers

Hello,
I think there is an issue with the network drivers due to the new kernel.

On this page https://www.kernel.org/pub/linux/kernel … 013/03/28/
The latest file I have found is exactly the one described here:

https://wiki.archlinux.org/index.php/Ne … ros_AR8161

But with the file "compat-drivers-2013-03-28-5-u.tar.bz2" I get errors when I use the procedure described on the WIKI page.

After "make "I get error:
/root/compat-drivers-2013-03-28-5-u/include/linux/compat-3.10.h:93:6: error: dereferencing pointer to incomplete type info->skip_vt_switch = true;

I have found something here: http://comments.gmane.org/gmane.linux.backports/374
but have not yet tried anything and I am not sure if this is relevant for me.

Regarding the file "AR81Family-linux-v1.0.1.14.tar.gz"
The error message "Linux kernel source not configured - missing autoconf.h" is known and have nothing to do with missing package linux-headers
Check this:

http://www.aligrant.com/?p=news/archive&v=2011-08

I have applied the patch in src directory like this :
patch -p1 < /path/to/AR81Family-linux-v1-1.0.1.14.patch

but now I get an error:
"This driver is not supported on kernel drivers older that 2.4.0"
...so I guess the program cannot recognize that my kernel is newer and stops installation.


regards
Rafal

Offline

#11 2013-09-22 11:17:01

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: [SOLVED] Network issue - Atheros drivers

rafdre wrote:

I already know that AR* Family does not work out of box

Where does this come from? Because it's the contrary, Atheros chips are extremely well supported, both ethernet and wireless. The alx driver took a while to enter the kernel, but that's an exception.

Your particular NIC is supported by the atl1e driver, you don't need to compile any out-of-kernel drivers. If it doesn't work, explain exactly in what way it doesn't - output of dmesg, error messages from the tools you used to try to configure the network, etc, etc, just follow troubleshooting steps from the wiki.

Offline

#12 2013-09-22 12:56:35

rafdre
Member
From: Gdansk
Registered: 2013-09-21
Posts: 76

Re: [SOLVED] Network issue - Atheros drivers

ok..I double checked the WIKI. Indeed it says:
"Note: With the 3.10.2-1-ARCH kernel update, the alx ethernet driver module is included in the package."

but in my system when I execute "ifconfig eth0" I see this:
eth0: error fetching interface information: Device not found

I have checked "lspci -v" and found there:
Kernel modules ath9k

modprobe ath9k

Looks good ;-)

so I tried to ping any side...and it worked!

ifconfig does not properly, but I read that this is not supported by default (I added net-tools)

sorry for any confusion. ...apparently something worked bad in the beginning (when I check it first time) and the issue was not related to drivers. Afterwords I focused too much on installation instead of checking if network does not work.

Offline

#13 2013-09-22 13:12:06

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Network issue - Atheros drivers

rafdre wrote:

but in my system when I execute "ifconfig eth0" I see this:
eth0: error fetching interface information: Device not found

Maybe it's because http://www.freedesktop.org/wiki/Softwar … faceNames/

Offline

#14 2013-09-22 13:25:45

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,404

Re: [SOLVED] Network issue - Atheros drivers

I think if you are intending to recompile the whole kernel, you need to download the current kernel source in its' entirety from kernel.org.  If you use abs, this may simplify things.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Online

#15 2013-09-25 18:51:51

rafdre
Member
From: Gdansk
Registered: 2013-09-21
Posts: 76

Re: [SOLVED] Network issue - Atheros drivers

karol wrote:
rafdre wrote:

but in my system when I execute "ifconfig eth0" I see this:
eth0: error fetching interface information: Device not found

Maybe it's because http://www.freedesktop.org/wiki/Softwar … faceNames/

Hi,

when I execute:

ls /sys/class/net

then I get this:

enp7s0 lo wlp3s0

when I boot the system then I do not have network connection automatically. After PING I get this error:

ping: unknown host www.google.com

I have it after I execute:

systemctl start dhcpcd.service

I read about this and found another way. First:

dhcpcd -k

and then

dhcpcd

This gives me information like:

enp7s0: offered 192.168.1.2 from 192.168.1.1

...so I executed this:

systemctl enable dhcpcd@enp7s0

...and now I can enjoy network every time I start my laptop ;-)

thanks for everybody for help.
Cheers
Rafal

Offline

#16 2013-09-25 19:07:11

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Network issue - Atheros drivers

Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

Board footer

Powered by FluxBB