Page 1 of 1
No connection through Atheros onboard ethernet

Posted:
Jun 25th, '12, 03:09
by suzamaki
I have been searching all day for some help with my Mageia saying that my network is down and the only help ive found is for Ubuntu. I do apologize if there is already a topic on this but like i said ive been searching all day and havent found it.
So, ive deleted the connection eth0 and created a new one and it still never connects. When i monitor the connection it says Status: Up...down...up...down...up...down
What ive found so far is that the Atheros drivers aren't compatible with linux so i found these guides for Ubuntu to solve the problem.
http://rhythmcloud.blogspot.com/2010/07 ... t.html?m=1http://ubuntuforums.org/showthread.php?t=1476231The problem with these guides is that they use commands such as "make install" and i have no idea what the similar command would be for Mageia. Sorry i havent provided much information, i can get whatever you need. Any help in any way would be appreciated.
-Ricky
On a side note, I booted Mageia using the live cd and my internet works on here, just not when i actually install it.
Re: No connection through Atheros onboard ethernet

Posted:
Jun 25th, '12, 10:28
by yankee495
Hello,
I am on my Desktop running Mandriva 2010.2 with the 8151. I have the files here but I think maybe you just need to enable the non-free repositories to get the driver since you say it works on the live version.
I intend to install Mageia on this machine but my wife is asleep and it is 3am, and I just have not had time.
What the people were trying to explain was how to compile a driver module.
I'll translate it to Mageia for you:
1. Install kernel-devel and kernel-headers. Do this using MCC>Add software
2. Install compilers. Do this using MCC>Install Software and install make, automake, autoconf, gcc, and gcc-c++
THIS IS your build environment so you can compile programs. This will give you the commands make and make install.
I am attaching the file AR81Family-linux-v1.0.1.14.tar.gz which is a newer driver then the one you (they) were talking about. It has worked well for me since 2010. Inside is a file of the exact same name but it is the ORIGINAL so just ignore it. You can uncompress it to a folder called src (for source).
The makefile has been edited so it should work.
Open a console, terminal or konsole...whatever name you know it by.
Do:
su root
Enter root password.
Then cd to the src directory where you put the files.
Then:
make
make install.
This should make it work. I'll go look at my laptop and see if it looks like it is in the non-free. If it is you will not have to do all of this but the driver will still be available here for others.
I'll check back and see if it worked.
Re: No connection through Atheros onboard ethernet

Posted:
Jun 25th, '12, 10:41
by yankee495
I don't know what package to look for to find out if it is in the non-free repo.
Maybe someone else can tell you.
Try it your self. MCC>Configure media sources and put a check next to the non-free ones and apply (ok) it.
If you have no net, then you can't do that. You'll have to find out the package names and copy them to a USB stick and install from there. I take it your wireless is working though.
Re: No connection through Atheros onboard ethernet

Posted:
Jun 25th, '12, 11:53
by yankee495
SORRY: I do think Mageia2 has the driver built in. Use MCC>Install Software and install kernel-desktop-devel-3.3.6-2.mga2.
It does show Atheros to be in that file.
I don't know if it will install itself or what steps you need to do.
Re: No connection through Atheros onboard ethernet

Posted:
Jun 25th, '12, 22:04
by doktor5000
yankee495 wrote:SORRY: I do think Mageia2 has the driver built in. Use MCC>Install Software and install kernel-desktop-devel-3.3.6-2.mga2.
It does show Atheros to be in that file.
These are development files (headers) to compile new kernel modules against the running kernel. It doesn't contain any drivers.
Re: No connection through Atheros onboard ethernet

Posted:
Jun 25th, '12, 22:45
by yankee495
Hey Dok, I took a look through those too. I didn't see 8151 listed and the link the OP listed was for the 8151 (like my desktop) but he may be generically referring to Atheros.
Whatever the case I'll have to get it going myself when I get time. It is 104 here with heat index of like 112...so I'll be having some "inside" time.
I backed up my home folder to another partition, just the files, and those source files...not the settings...so it is ready...waiting on me.
Re: No connection through Atheros onboard ethernet

Posted:
Jun 26th, '12, 01:51
by suzamaki
Here is what ive done so far.
I downloaded the Dvd 64 bit and re installed. Last install was from the Live dvd so i had very little packages to work with. During installation it said it was downloading updates for the system yet when i tested the connection, and after finishing instillation, i still have no connection.
Next, i got all of the Packages Yankee495 said i should get off the dvd since i have no wireless on my desktop and i proceeded to do the steps he mentioned with the file posted and i am recieving errors after the make and make install command.
Make Error
- Code: Select all
[root@localhost src]# make
gcc: error: /lib/modules/3.3.6-desktop-2.mga2/build/include/linux/autoconf.h: No such file or directory
gcc: fatal error: no input files
compilation terminated.
Makefile:188: ***
Makefile:193: *** Warning: kernel source configuration (UP)
Makefile:194: *** does not match running kernel (SMP)
Makefile:196: *** Continuing with build,
Makefile:197: *** resulting driver may not be what you want
Makefile:198: ***
gcc -mcmodel=kernel -mno-red-zone -DDRIVER_ATL1E -DDRIVER_NAME=atl1e -DDRIVER_NAME_CAPS=ATL1E -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -DDBG=0 -I/lib/modules/3.3.6-desktop-2.mga2/build/include -I. -c -o at_common_main.o at_common_main.c
In file included from /lib/modules/3.3.6-desktop-2.mga2/build/include/linux/kernel.h:13:0,
from /lib/modules/3.3.6-desktop-2.mga2/build/include/linux/cache.h:4,
from /lib/modules/3.3.6-desktop-2.mga2/build/include/linux/time.h:7,
from /lib/modules/3.3.6-desktop-2.mga2/build/include/linux/stat.h:60,
from /lib/modules/3.3.6-desktop-2.mga2/build/include/linux/module.h:10,
from kcompat.h:28,
from at_common.h:4,
from at_common_main.c:1:
/lib/modules/3.3.6-desktop-2.mga2/build/include/linux/linkage.h:5:25: fatal error: asm/linkage.h: No such file or directory
compilation terminated.
make: *** [at_common_main.o] Error 1
Make Install Error
- Code: Select all
[root@localhost src]# make install
gcc: error: /lib/modules/3.3.6-desktop-2.mga2/build/include/linux/autoconf.h: No such file or directory
gcc: fatal error: no input files
compilation terminated.
Makefile:188: ***
Makefile:193: *** Warning: kernel source configuration (UP)
Makefile:194: *** does not match running kernel (SMP)
Makefile:196: *** Continuing with build,
Makefile:197: *** resulting driver may not be what you want
Makefile:198: ***
make
gcc: error: /lib/modules/3.3.6-desktop-2.mga2/build/include/linux/autoconf.h: No such file or directory
gcc: fatal error: no input files
compilation terminated.
make[1]: Entering directory `/home/suzamaki/Desktop/AR81Family-linux-v1.0.1.14/src'
Makefile:188: ***
Makefile:193: *** Warning: kernel source configuration (UP)
Makefile:194: *** does not match running kernel (SMP)
Makefile:196: *** Continuing with build,
Makefile:197: *** resulting driver may not be what you want
Makefile:198: ***
gcc -mcmodel=kernel -mno-red-zone -DDRIVER_ATL1E -DDRIVER_NAME=atl1e -DDRIVER_NAME_CAPS=ATL1E -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -DDBG=0 -I/lib/modules/3.3.6-desktop-2.mga2/build/include -I. -c -o at_common_main.o at_common_main.c
In file included from /lib/modules/3.3.6-desktop-2.mga2/build/include/linux/kernel.h:13:0,
from /lib/modules/3.3.6-desktop-2.mga2/build/include/linux/cache.h:4,
from /lib/modules/3.3.6-desktop-2.mga2/build/include/linux/time.h:7,
from /lib/modules/3.3.6-desktop-2.mga2/build/include/linux/stat.h:60,
from /lib/modules/3.3.6-desktop-2.mga2/build/include/linux/module.h:10,
from kcompat.h:28,
from at_common.h:4,
from at_common_main.c:1:
/lib/modules/3.3.6-desktop-2.mga2/build/include/linux/linkage.h:5:25: fatal error: asm/linkage.h: No such file or directory
compilation terminated.
make[1]: *** [at_common_main.o] Error 1
make[1]: Leaving directory `/home/suzamaki/Desktop/AR81Family-linux-v1.0.1.14/src'
make: *** [default] Error 2
Re: No connection through Atheros onboard ethernet

Posted:
Jun 26th, '12, 02:18
by yankee495
OK, sorry....let me look.
I am right here. It has been over 2 years since I done this.
I'll try it on this laptop without the install.
Re: No connection through Atheros onboard ethernet

Posted:
Jun 26th, '12, 02:21
by suzamaki
Now this is what im seeing
- Code: Select all
[root@localhost AR81Family-linux-v1.0.1.14]# make
make -C ./src
make[1]: Entering directory `/home/suzamaki/Desktop/AR81Family-linux-v1.0.1.14/src'
gcc -mcmodel=kernel -mno-red-zone -DDRIVER_ATL1E -DDRIVER_NAME=atl1e -DDRIVER_NAME_CAPS=ATL1E -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -DDBG=0 -I/lib/modules/3.3.6-desktop-2.mga2/build/include -I. -D__SMP__ -c -o at_common_main.o at_common_main.c
In file included from /lib/modules/3.3.6-desktop-2.mga2/build/include/linux/kernel.h:13:0,
from /lib/modules/3.3.6-desktop-2.mga2/build/include/linux/cache.h:4,
from /lib/modules/3.3.6-desktop-2.mga2/build/include/linux/time.h:7,
from /lib/modules/3.3.6-desktop-2.mga2/build/include/linux/stat.h:60,
from /lib/modules/3.3.6-desktop-2.mga2/build/include/linux/module.h:10,
from kcompat.h:28,
from at_common.h:4,
from at_common_main.c:1:
/lib/modules/3.3.6-desktop-2.mga2/build/include/linux/linkage.h:5:25: fatal error: asm/linkage.h: No such file or directory
compilation terminated.
make[1]: *** [at_common_main.o] Error 1
make[1]: Leaving directory `/home/suzamaki/Desktop/AR81Family-linux-v1.0.1.14/src'
make: *** [all] Error 2
Re: No connection through Atheros onboard ethernet

Posted:
Jun 26th, '12, 02:26
by yankee495
I think the src is where you want to be. Sorry...trying it now.
It may not work with this kernel...but I think it should.
Re: No connection through Atheros onboard ethernet

Posted:
Jun 26th, '12, 03:12
by suzamaki
Let me know what you find out
Re: No connection through Atheros onboard ethernet

Posted:
Jun 26th, '12, 05:00
by yankee495
This file /lib/modules/3.3.6-desktop-2.mga2/build/include/linux/linkage.h says in it #include <asm/linkage.h>
This is where the error is coming from.
Doing locate linkage.h gives me:
- Code: Select all
[root@localhost src]# locate linkage.h
/usr/src/linux-3.3.6-2.mga2/arch/arm/include/asm/linkage.h
/usr/src/linux-3.3.6-2.mga2/arch/x86/include/asm/linkage.h
/usr/src/linux-3.3.6-2.mga2/include/asm-generic/linkage.h
/usr/src/linux-3.3.6-2.mga2/include/linux/linkage.h
/usr/src/linux-3.3.6-2.mga2/tools/perf/util/include/linux/linkage.h
/usr/src/linux-3.3.6-desktop-2.mga2/arch/x86/include/asm/linkage.h
/usr/src/linux-3.3.6-desktop-2.mga2/include/asm-generic/linkage.h
/usr/src/linux-3.3.6-desktop-2.mga2/include/linux/linkage.h
I don't know which one it wants or how to tell it where it is. I've googled it and people are having this problem all over and I have not found a good answer. I guess I know this isn't going to just make install on my desktop.
I'm still looking.
Re: No connection through Atheros onboard ethernet

Posted:
Jun 26th, '12, 06:57
by yankee495
I just made a folder called src, so the dir is /src/src
Just tired of typing and that was short.
Ok, on my Mandriva 2010.2 doing make results in this:- Code: Select all
[root@localhost src]# make
make -C ./src
gcc: /lib/modules/2.6.33.7-desktop-2mnb/build/include/linux/autoconf.h: No such file or directory
gcc: no input files
make[1]: Entering directory `/home/john/src/src'
Makefile:188: ***
Makefile:193: *** Warning: kernel source configuration (UP)
Makefile:194: *** does not match running kernel (SMP)
Makefile:196: *** Continuing with build,
Makefile:197: *** resulting driver may not be what you want
Makefile:198: ***
make -C /lib/modules/2.6.33.7-desktop-2mnb/build SUBDIRS=/home/john/src/src modules
make[2]: Entering directory `/usr/src/linux-2.6.33.7-desktop-2mnb'
gcc: /lib/modules/2.6.33.7-desktop-2mnb/build/include/linux/autoconf.h: No such file or directory
gcc: no input files
/home/john/src/src/Makefile:188: ***
/home/john/src/src/Makefile:193: *** Warning: kernel source configuration (UP)
/home/john/src/src/Makefile:194: *** does not match running kernel (SMP)
/home/john/src/src/Makefile:196: *** Continuing with build,
/home/john/src/src/Makefile:197: *** resulting driver may not be what you want
/home/john/src/src/Makefile:198: ***
Building modules, stage 2.
gcc: /lib/modules/2.6.33.7-desktop-2mnb/build/include/linux/autoconf.h: No such file or directory
gcc: no input files
/home/john/src/src/Makefile:188: ***
/home/john/src/src/Makefile:193: *** Warning: kernel source configuration (UP)
/home/john/src/src/Makefile:194: *** does not match running kernel (SMP)
/home/john/src/src/Makefile:196: *** Continuing with build,
/home/john/src/src/Makefile:197: *** resulting driver may not be what you want
/home/john/src/src/Makefile:198: ***
MODPOST 1 modules
make[2]: Leaving directory `/usr/src/linux-2.6.33.7-desktop-2mnb'
make[1]: Leaving directory `/home/john/src/src'
This driver does work on this machine. I'm going to look at the kernel source file setup on this.
Re: No connection through Atheros onboard ethernet

Posted:
Jun 26th, '12, 08:28
by yankee495
Maybe one step closer??
- Code: Select all
[root@localhost src]# make -C /usr/src/linux-3.3.6-desktop-2.mga2 M=`pwd`
make: Entering directory `/usr/src/linux-3.3.6-desktop-2.mga2'
scripts/Makefile.build:49: *** CFLAGS was changed in "/home/john/ar8151/src/Makefile". Fix it to use ccflags-y. Stop.
make: *** [_module_/home/john/ar8151/src] Error 2
make: Leaving directory `/usr/src/linux-3.3.6-desktop-2.mga2'
[root@localhost src]#
It seems pointing to the source code (make -C /usr/src/linux-3.3.6-desktop-2.mga2 M=`pwd`) gets it to find all of the include files but I don't know how to fix ccflags-y.
It appears I need to edit the makefile to use this option. I just know some old pro is gonna stop by and say do this and boom, there it is. I don't use the word "Expert", because an ex is a has been and a spert is a big drip...
Re: No connection through Atheros onboard ethernet

Posted:
Jun 26th, '12, 09:58
by suzamaki
haha well i really appreciate the help that youve provided. i do hope that a pro knowing what to make of this stops in. I for one have become extremely frustrated with the situation and not being able to do something as simple as connecting to the internet. I will continue to look into this here and there to see if i find resolution.
Re: No connection through Atheros onboard ethernet

Posted:
Jun 26th, '12, 10:29
by yankee495
I think we'll get it...if not, mine is a desktop with wireless and PCI slots, so I'll put in a card. I have USB sticks I bought just because they are plug-n-play in Linux and was on sale for $10 with free S&H.
It just gets me that it works in 2010 and not Mageia2. Of course we are talking 2.x? kernel and 3.3? kernel which is a big difference. What I've read so far is that EXTRA_CFLAGS was replaced with ccflags and you just lost me.
I'd like to have it working, but it is all a learning experience, so I figure there was no time wasted.
My 2010 ran so good I didn't want to put Mageia on my laptop, but I did and love it, so the desktop is going to get it!
I will for sure post when I figure it out.
Re: No connection through Atheros onboard ethernet

Posted:
Jun 26th, '12, 21:49
by suzamaki
yeah mine is a desktop as well and so i went out and bought a usb stick to give it a shot but i couldnt get that to work either. got the ndiswrapper interface error. Only reason i got it is that Walmart has a good return policy haha ill have to look into getting a plug n play linux one so i can at least use my main computer. im going to install a windows partition today so i dont have to rely on my netbook for everything.
What gets me is that it works perfect when i boot the live CD.. it loads and the internet is connected instantly. That is very true though, ive learned a lot about linux with having this issue so i now know my way around the terminal a little bit.
Thanks again and keep me posted. I hope this is resolved fairly soon
Re: No connection through Atheros onboard ethernet

Posted:
Jun 26th, '12, 23:00
by linuxero
If it is a firmware problem why just not copy it from /lib/firmware on a working livecd into the same folder of your installation!
Re: No connection through Atheros onboard ethernet

Posted:
Jun 27th, '12, 20:30
by suzamaki
linuxero wrote:If it is a firmware problem why just not copy it from /lib/firmware on a working livecd into the same folder of your installation!
Didnt make a difference when i tried it. I had thought about that but i dont know what i would need to copy from the live CD that makes the ethernet work that would be different on my installation. Live CD i have is 32 bit and installation i have is 64. ill try downloading the 64 Live CD and messing around with that more.
Re: No connection through Atheros onboard ethernet

Posted:
Jun 28th, '12, 15:14
by linuxero
suzamaki wrote: I had thought about that but i dont know what i would need to copy from the live CD that makes the ethernet work that would be different on my installation. Live CD i have is 32 bit and installation i have is 64. ill try downloading the 64 Live CD and messing around with that more.
Copying the whole content of
/lib/firmware should do no harm as far as I know; since you cannot figure out the needed ones. Then as for x32/x64 thing, the firmware itself does not matter as to my modest experience..so you can copy it form the live cd right into your installation
/lib/firmware! Good luck.
Do not forget to reboot!! Somehow I noticed that in Mageia, as well as latest Mandriva releases, the module is not loaded automatically and in all my recent installation a reboot would do the trick so that the hardware is detected..!