Atheros Wired Connection Problem

Issues Related to Networking (Wired and Wireless)

Moderator: Moderators

Atheros Wired Connection Problem

Postby KFwLsKvVAs » Thu Sep 20, 2012 10:48

Hello,

New to Sabayon, been using #! and Debian for a while but I got a new computer and decided to give it a shot, try to learn something new.

So far I like what I see, I like the package manager, and I like Gnome 3, but I can't get my ethernet to work. In #! I had to do the following commands to get it to work:

Code: Select all
sudo apt-get install linux-headers-generic build-essential
wget http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.5/compat-wireless-3.5.1-1-snpc.tar.bz2
tar -xf compat-wireless-3.5.1-1-snpc.tar.bz2
cd compat-wireless-3.5.1-1-snpc
./scripts/driver-select alx
make
sudo make install
sudo modprobe alx


So I figured I needed the compat-wireless driver. I found what I believe I needed here. I downloaded and extracted the compat-wireless-3.5.3-2.tar.bz2 file, then tried to follow the installation instructions. I got to the part where you are supposed to do

Code: Select all
cd /path/to/compat-wireless-2.6.32-rc5
./scripts/driver-select alx
make
sudo make install


and I run into errors. The errors I get have something to do with make trying to use kbuild and not being able to find it (forgive me if I'm describing this poorly, I don't really have much of any experience with this sort of thing yet).

Code: Select all
Utopia compat-wireless-3.5.3-2 # make
make -C /lib/modules/3.5.0-sabayon/build M=/home/bonez/Downloads/compat-wireless-3.5.3-2 modules
make[1]: Entering directory `/usr/src/linux-3.5.0-sabayon'
Makefile:323: /usr/src/linux-3.5.0-sabayon/scripts/Kbuild.include: No such file or directory
Makefile:564: /usr/src/linux-3.5.0-sabayon/arch/x86/Makefile: No such file or directory
/bin/sh: /usr/src/linux-3.5.0-sabayon/scripts/gcc-goto.sh: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-3.5.0-sabayon/arch/x86/Makefile'.  Stop.
make[1]: Leaving directory `/usr/src/linux-3.5.0-sabayon'
make: *** [modules] Error 2


Here is the ls of /usr/src/linux-3.5.0-sabayon:

Code: Select all
Utopia linux-3.5.0-sabayon # ls -la
total 4188
drwxr-xr-x 3 root root    4096 Sep 20 04:07 .
drwxr-xr-x 3 root root    4096 Sep 20 04:07 ..
-rw-r--r-- 1 root root  139039 Sep 11 03:47 .config
drwxr-xr-x 3 root root    4096 Sep 20 04:06 include
-rw-r--r-- 1 root root   47161 Sep 11 03:47 Makefile
-rw-r--r-- 1 root root  845976 Sep 11 03:47 Module.symvers
-rw-r--r-- 1 root root 3237365 Sep 11 03:47 System.map


I've tried

Code: Select all
equo install linux-sabayon:3.5 --ask
equo install linux-headers-3.1


and updating, but I can't get it to work. Could somebody point me in the right direction please?

Oh, also, output from lspci -k | grep Ethernet is:

02:00.0 Ethernet controller: Atheros Communications Inc. AR8161 Gigabit Ethernet (rev 08)

Thanks in advance.
KFwLsKvVAs
Baby Hen
 
Posts: 6
Joined: Thu Sep 20, 2012 10:30

Re: Atheros Wired Connection Problem

Postby Fitzcarraldo » Thu Sep 20, 2012 12:11

I don't have your hardware so can only offer advice. According to my search using DuckDuckGo, the new Atheros driver for the Atheros AR8161 controller is the ALX driver:

Qualcomm Atheros Publishes New Network Driver, Posted by Michael Larabel on August 12, 2012

which is indeed included in the compat-wireless package:

Gentoo: Ethernet Atheros AR8161/AR8162 using compat-wireless module alx

If you follow the instructions in the blog post (link above) and install the driver using the Portage package manager and the Pentoo overlay then you should be able to get it working. See the section entitled 'Long description for module alx' in that blog post.

As SL these days does not come set up out-of-the-box to use Portage and Git overlays, do a little preparation before following the instructions in the above-mentioned blog post:

Code: Select all
$ su
Password:
# equo update # Sync the Entropy database.
# equo install git # Some Portage overlays use Git.
# emerge --sync # Sync with the Portage main tree.
# layman -S # Add the Portage overlay list.
# layman -d sabayon # Delete the sabayon overlay in case it is the old monolithic one.
# layman -d sabayon-distro # Delete the sabayon-distro overlay as I have found this sometimes has to be re-added.
# layman -a sabayon # Add the sabayon overlay.
# layman -a sabayon-distro # Add the sabayon-distro overlay.
# layman -S # Re-sync just in case.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7340
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Atheros Wired Connection Problem

Postby Fitzcarraldo » Thu Sep 20, 2012 12:17

P.S. I'm moving this thread to the Networking and Wireless shed (forum), as that is a more appropriate place for this kind of query.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7340
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Atheros Wired Connection Problem

Postby KFwLsKvVAs » Fri Sep 21, 2012 3:27

Fitzcarraldo - I put it in software because I was having trouble installing the compat driver, if networking/wireless is more appropriate so be it.

I'm still having trouble getting this installed. I followed the instructions from the site you linked, and got to step 3 (cd into the compat-wireless directory, then ebuild compat-wireless-3.5_rc3.ebuild and prepare. Then this happens:

Code: Select all
Utopia compat-wireless-3.5.3-2 # ebuild compat-wireless-3.5.3-2.ebuild prepare
!!! net-wireless/compat-wireless-3.5.3-2 does not follow correct package syntax.


Any suggestions?
KFwLsKvVAs
Baby Hen
 
Posts: 6
Joined: Thu Sep 20, 2012 10:30

Re: Atheros Wired Connection Problem

Postby Fitzcarraldo » Fri Sep 21, 2012 13:03

Looking at the compat-wireless ebuilds in the Pentoo overlay (http://gpo.zugaina.org/Overlays/pentoo/ ... t-wireless), I see that the latest version of the ebuild is compat-wireless-3.6_rc5, so try that instead. Perhaps there was a bug in compat-wireless-3.5_rc3.ebuild.

If you are not in a desperate rush, I suggest you file a request for the package to be built and added to the Entropy repository -- use the link 'Bugs' at the top right of this page.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7340
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Atheros Wired Connection Problem

Postby KFwLsKvVAs » Sat Sep 22, 2012 8:41

With that one I get the following error:

Code: Select all
Utopia compat-wireless # ebuild compat-wireless-3.6_rc5.ebuild prepare
 * Manifest not found for '/var/lib/layman/sabayon/net-wireless/compat-wireless/compat-wireless-3.6_rc5.ebuild'
KFwLsKvVAs
Baby Hen
 
Posts: 6
Joined: Thu Sep 20, 2012 10:30

Re: Atheros Wired Connection Problem

Postby Fitzcarraldo » Sat Sep 22, 2012 9:16

Looks like you're in the wrong directory. The overlay is pentoo, not sabayon. If you have added the pentoo overlay:

Code: Select all
cd /var/lib/layman/pentoo/net-wireless/compat-wireless
ebuild compat-wireless-3.6_rc5.ebuild prepare

Actually, thinking about it, if I were you, before trying the procedure in that blog post, I'd try just merging the ebuild without hacking around, then try to modprobe the alx module to see if it was built by merging the ebuild:

Code: Select all
layman -a pentoo
emerge -1v compat-wireless
modprobe alx

And if that didn't work, I'd try the earlier version mentioned in that blog post:

Code: Select all
emerge -1v =compat-wireless-3.5_rc3
rmmod alx
modprobe alx
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7340
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Atheros Wired Connection Problem

Postby KFwLsKvVAs » Sat Sep 22, 2012 18:28

When trying to add the pentoo repository I get this error:
Code: Select all
Utopia bonez # layman -a pentoo

 * Adding overlay,...
 * Adding repository "pentoo" failed!

 * CLI: Errors occured processing action add
 * Adding repository "pentoo" failed!


Apparently the directory /var/lib/layman/pentoo/net-wireless/compat-wireless does not exist.

Here is the contents of /var/lib/layman:
Code: Select all
Utopia layman # ls -la
total 272
drwxr-xr-x  4 root root   4096 Sep 22 02:20 .
drwxr-xr-x 49 root root   4096 Oct 15  2011 ..
-rw-r--r--  1 root root     29 Sep 20 13:07 cache_ac494f50f5736be7871962c0dec7b3bb.timestamp
-rw-r--r--  1 root root 245838 Sep 20 13:07 cache_ac494f50f5736be7871962c0dec7b3bb.xml
-rw-r--r--  1 root root   1207 Sep 20 16:27 installed.xml
-rw-r--r--  1 root root      0 Sep 22 02:20 .keep_app-portage_layman-0
-rw-r--r--  1 root root     92 Sep 20 16:27 make.conf
drwxr-xr-x 98 root root   4096 Sep 20 15:40 sabayon
drwxr-xr-x 58 root root   4096 Sep 20 16:27 sabayon-distro
KFwLsKvVAs
Baby Hen
 
Posts: 6
Joined: Thu Sep 20, 2012 10:30

Re: Atheros Wired Connection Problem

Postby Fitzcarraldo » Sat Sep 22, 2012 19:32

It seems that the pentoo overlay uses the Subversion version control system rather than the Git version control system, so you need to install that:

Code: Select all
equo install subversion

Then try again to add the pentoo overlay, and so on.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7340
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Atheros Wired Connection Problem

Postby KFwLsKvVAs » Sat Sep 22, 2012 21:51

Ok, installing subversion allowed me to add the pentoo repository.

Then, I cd into /var/lib/pentoo/net-wireless/compat-wireless.

Whe I try to ebuild compat-wireless-3.6_rc5.ebuild I get this error:

Code: Select all
Utopia compat-wireless # ebuild compat-wireless-3.6_rc5.ebuild prepare
 * compat-wireless-3.6-rc5-1-c.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...  [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ !! ]

!!! A file listed in the Manifest could not be found: /var/lib/layman/pentoo/net-wireless/compat-wireless/files/compat-wireless-3.6-grsec.patch
KFwLsKvVAs
Baby Hen
 
Posts: 6
Joined: Thu Sep 20, 2012 10:30

Next

Return to Networking and Wireless

Who is online

Users browsing this forum: No registered users and 4 guests