You are not logged in.

#1 2012-04-22 09:39:14

pivonroll
Member
Registered: 2009-04-24
Posts: 30

Problem compiling driver for Realtek 8168

Hi all, I have downloaded latest stable .iso installation of Arch and I tried to build the driver for Realtek 8168, but when I start ./autorun.sh I get an error: no make rule for clean in /lib/modules/3.0-ARCH/build. After that I tried copying src from the Realtek driver to /lib/modules/3.0-ARCH/build but after that system just hangs after a couple of minutes.
After that I tried to run: make clean modules, but the only message I see is:
make -C /lib/modules/3.0-ARCH/build /root/realtek clean

and this message is repeated on and on and on and on and on, until system runs out of memory and freezes.

Can anyone help me please. Arch is i686.

This post is sent from Windows 7 sad

P.S. I have accidentally posted the same question here https://bbs.archlinux.org/viewtopic.php?pid=1087374, I apologize for that.

Last edited by pivonroll (2012-04-22 09:40:19)

Offline

#2 2012-04-22 11:02:16

pivonroll
Member
Registered: 2009-04-24
Posts: 30

Re: Problem compiling driver for Realtek 8168

I am soo soo soo stupid. I didn't  have linux-headers and linux-api-headers instlled, tht was the problem. I thought I  had them installed. Problem is solved.
But now I face another problem, I  have  this network setup:
PC <-> tpLink wa500g <-> wireless connection <-> huawei hg520c <-> internet. I cannot get a working   inernet cnnection. When I connect my PC to huawei hg520c with cable connection  I get an internet connection. Tp Link wa500g is already setup to work in a client mode and I have no problem with getting a connection on Windows 7. What am I missing?

Offline

#3 2012-04-22 14:02:41

pivonroll
Member
Registered: 2009-04-24
Posts: 30

Re: Problem compiling driver for Realtek 8168

Problem is solved.
The trick was to enable dhcp on tp-link wa 500g and the to setup like this:
Under Network set Gateway to 192.168.1.1 (this is the ip of my huawei hg520c)
Under DHCP->DHCP Settings:
   enable dhcp
   set Default Gateway to 192.168.1.1
   set Primary DNS to 192.168.1.1

NOTE: I have my network running even without Realtek 8168 driver for linux.
Maybe someone can use this information in the future. Cheers!

Offline

#4 2012-04-22 14:08:45

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

Re: Problem compiling driver for Realtek 8168

...why not write a PKGBUILD for this?  No self-respecting Archer would compile from source like this.

EDIT: WTF, this is a package in [community] http://www.archlinux.org/packages/commu … _64/r8168/

Why in the world would you not use ABS in this case?

Last edited by graysky (2012-04-22 14:10:20)


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

Offline

#5 2012-04-22 14:21:25

pivonroll
Member
Registered: 2009-04-24
Posts: 30

Re: Problem compiling driver for Realtek 8168

To compile what? There are already some PKBUILD scripts in AUR for Realtek 8168, and my solution has nothing to do with building or compiling anything. I just needed to setup mu TP Link WA 500G access point as I have mentioned above and my network was working out of the box. I even removed r8168 driver which I have built previously. I build the driver by running provided autorun.sh which comes with the driver's makefiles and source code.

Last edited by pivonroll (2012-04-22 14:22:42)

Offline

#6 2012-04-22 14:36:22

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

Re: Problem compiling driver for Realtek 8168

pivonroll wrote:

To compile what? There are already some PKBUILD scripts in AUR for Realtek 8168, and my solution has nothing to do with building or compiling anything. I just needed to setup mu TP Link WA 500G access point as I have mentioned above and my network was working out of the box. I even removed r8168 driver which I have built previously. I build the driver by running provided autorun.sh which comes with the driver's makefiles and source code.

You mention the word 'compile' in your title and allude to compilation vis-a-vis "I tried to build the driver..." but you're not interested in compiling the driver?  No offense, but to help others help you in the future, consider being more to-the-point in your thread. 

Problem: "I need to setup mu TP Link WA 500G access point" for example.  Guess I didn't know what you wanted when I read your post.

pivonroll wrote:

Hi all, I have downloaded latest stable .iso installation of Arch and I tried to build the driver for Realtek 8168, but when I start ./autorun.sh I get an error: no make rule for clean in /lib/modules/3.0-ARCH/build. After that I tried copying src from the Realtek driver to /lib/modules/3.0-ARCH/build but after that system just hangs after a couple of minutes.
After that I tried to run: make clean modules, but the only message I see is:
make -C /lib/modules/3.0-ARCH/build /root/realtek clean

Last edited by graysky (2012-04-22 14:38:32)


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

Offline

#7 2012-04-22 15:41:00

pivonroll
Member
Registered: 2009-04-24
Posts: 30

Re: Problem compiling driver for Realtek 8168

But in my second post I mentioned that I didn't install linux headers, linux API headers and module tools. That was the problem, there wasn't no need for any additional stuff nor speacial build commands, I just run provided autorun.sh and that was it.

Offline

Board footer

Powered by FluxBB