Results 1 to 3 of 3
Hi,
I have difficulties installing the driver for my new Gigabit nic card (TPLink TG-3269).
I have downloaded the driver TG-3269_100628 and
I have followed the instructions from the README ...
- 09-12-2011 #1Just Joined!
- Join Date
- Sep 2011
- Posts
- 4
Can't install the driver for TG-3269 TPLink Network Adapter
Hi,
I have difficulties installing the driver for my new Gigabit nic card (TPLink TG-3269).
I have downloaded the driver TG-3269_100628 and
I have followed the instructions from the README file:
<<
This is the Linux device driver released for RealTek Ethernet controllers, which are listed as following.
1. RTL8169S/SB/SC (Gigabit Ethernet with PCI interface)
2. RTL8168B (Gigabit Ethernet with PCI-Express interface)
3. RTL8101E (Fast Ethernet with PCI-Express interface)
<Requirements>
- kernel source tree (supported versions 2.4.x or 2.6.x)
- compiler/binutils for kernel compilation
<Quick install with proper kernel settings>
Unpack the tarball :
unzip r1000_linuxdrv_vxx.zip
Change to the directory:
cd r1000
If you are running the target kernel, then you should be
able to do :
make clean modules (as root or with sudo)
make install
depmod -a
>>
but I failed in the very first command: make clean modules
I get the below error:
<<
make -C src/ clean
make[1]: Entering directory `/root/r1000/src'
rm -f *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags
make[1]: Leaving directory `/root/r1000/src'
make -C src/ modules
make[1]: Entering directory `/root/r1000/src'
make -C /lib/modules/2.6.32-5-686/build SUBDIRS=/root/r1000/src modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.32-5-686'
CC [M] /root/r1000/src/r1000_n.o
/root/r1000/src/r1000_n.c: In function âr1000_phy_timer_t_handlerâ:
/root/r1000/src/r1000_n.c:525: error: âstruct net_deviceâ has no member named âprivâ
/root/r1000/src/r1000_n.c: In function âr1000_timer_handlerâ:
/root/r1000/src/r1000_n.c:561: error: âstruct net_deviceâ has no member named âprivâ
/root/r1000/src/r1000_n.c: In function âr1000_init_boardâ:
/root/r1000/src/r1000_n.c:615: error: implicit declaration of function âSET_MODULE_OWNERâ
/root/r1000/src/r1000_n.c:621: error: âstruct net_deviceâ has no member named âprivâ
/root/r1000/src/r1000_n.c: In function âr1000_init_oneâ:
/root/r1000/src/r1000_n.c:783: error: âstruct net_deviceâ has no member named âprivâ
/root/r1000/src/r1000_n.c:794: error: âstruct net_deviceâ has no member named âopenâ
/root/r1000/src/r1000_n.c:795: error: âstruct net_deviceâ has no member named âhard_start_xmitâ
/root/r1000/src/r1000_n.c:796: error: âstruct net_deviceâ has no member named âget_statsâ
/root/r1000/src/r1000_n.c:797: error: âstruct net_deviceâ has no member named âstopâ
/root/r1000/src/r1000_n.c:798: error: âstruct net_deviceâ has no member named âtx_timeoutâ
/root/r1000/src/r1000_n.c:799: error: âstruct net_deviceâ has no member named âset_multicast_listâ
/root/r1000/src/r1000_n.c:816: error: âstruct net_deviceâ has no member named âprivâ
/root/r1000/src/r1000_n.c: In function âr1000_openâ:
/root/r1000/src/r1000_n.c:1052: error: âstruct net_deviceâ has no member named âprivâ
/root/r1000/src/r1000_n.c:1064: error: âSA_SHIRQâ undeclared (first use in this function)
/root/r1000/src/r1000_n.c:1064: error: (Each undeclared identifier is reported only once
/root/r1000/src/r1000_n.c:1064: error: for each function it appears in.)
/root/r1000/src/r1000_n.c:1064: warning: passing argument 2 of ârequest_irqâ from incompatible pointer type
/root/r1000/src/r1000_n.c: In function âr1000_hw_PHY_resetâ:
/root/r1000/src/r1000_n.c:1140: error: âstruct net_deviceâ has no member named âprivâ
/root/r1000/src/r1000_n.c: In function âr1000_hw_PHY_configâ:
/root/r1000/src/r1000_n.c:1168: error: âstruct net_deviceâ has no member named âprivâ
/root/r1000/src/r1000_n.c: In function âr1000_hw_startâ:
/root/r1000/src/r1000_n.c:1244: error: âstruct net_deviceâ has no member named âprivâ
/root/r1000/src/r1000_n.c: In function âr1000_init_ringâ:
/root/r1000/src/r1000_n.c:1399: error: âstruct net_deviceâ has no member named âprivâ
/root/r1000/src/r1000_n.c: In function âr1000_tx_timeoutâ:
/root/r1000/src/r1000_n.c:1475: error: âstruct net_deviceâ has no member named âprivâ
/root/r1000/src/r1000_n.c: In function âr1000_start_xmitâ:
/root/r1000/src/r1000_n.c:1508: error: âstruct net_deviceâ has no member named âprivâ
/root/r1000/src/r1000_n.c: In function âr1000_interruptâ:
/root/r1000/src/r1000_n.c:1749: error: âstruct net_deviceâ has no member named âprivâ
/root/r1000/src/r1000_n.c: In function âr1000_closeâ:
/root/r1000/src/r1000_n.c:1812: error: âstruct net_deviceâ has no member named âprivâ
/root/r1000/src/r1000_n.c: In function âr1000_set_rx_modeâ:
/root/r1000/src/r1000_n.c:1914: error: âstruct net_deviceâ has no member named âprivâ
/root/r1000/src/r1000_n.c: In function âr1000_get_statsâ:
/root/r1000/src/r1000_n.c:1980: error: âstruct net_deviceâ has no member named âprivâ
/root/r1000/src/r1000_n.c: In function âr1000_init_moduleâ:
/root/r1000/src/r1000_n.c:2009: error: implicit declaration of function âpci_module_initâ
make[5]: *** [/root/r1000/src/r1000_n.o] Error 1
make[4]: *** [_module_/root/r1000/src] Error 2
make[3]: *** [sub-make] Error 2
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-5-686'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/root/r1000/src'
make: *** [modules] Error 2
>>
I believe that I have installed all the necessary utils for doing the compilation:
apt-get install build-essential checkinstall linux-headers-$(uname -r)
apt-get install linux-source-2.6.32
tar -xjvf linux-source-2.6.32.tar.bz2 -C /usr/src
Am I missing something?
Please help!!!
- 09-12-2011 #2
Hello and Welcome.
Are you sure you must compile your own driver? If no, then post the output of these commands and lets see what we can find out. Use root or sudo as needed.
Code:lspci -vv
If it's a USB device then you need this command instead.Code:ifconfig -a
Code:lsusb
I do not respond to private messages asking for Linux help, Please keep it on the forums only.
All new users please read this.** Forum FAQS. ** Adopt an unanswered post.
- 09-16-2011 #3Just Joined!
- Join Date
- Sep 2011
- Posts
- 4
Hi,
I used finally the Realtek RTL8110SC(L) chipset driver (version 6.015.00) and managed to compile and load the NIC module to the Kernel.
However I have now another problem.
The link is set to 100 Mbps although the card is Gigabit.
I tried the below ways to reconfigure that but I failed, please see below the commands as well as their results.
ethtool -s eth1 speed 1000 duplex full
Cannot set new settings: Invalid argument
not setting speed
not setting duplex
insmod ./src/r8169.ko speed=1000 duplex=1
insmod: error inserting '/lib/modules/2.6.32-5-686/kernel/drivers/net/r8169.ko': -1 File exists
mii-tool -F 1000baseTx-FD eth1
Invalid media specification '1000baseTx-FD'.
Could I try something different?
FYI, I am able to use all the above commands with speed parameters 100/10.
Thanks!
Akis
P.S. I provide here my /etc/network/interfaces configuration
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
# The secondary network interface
allow-hotplug eth1
iface eth1 inet dhcp
and the Realtek guidelines for changing the NIC parameters
<Force Link Status>
1. Force the link status when insert the driver.
If the user is in the path ~/r8169, the link status can be forced
to one of the 5 modes as following command.
# insmod ./src/r8169.ko speed=SPEED_MODE duplex=DUPLEX_MODE autoneg=NWAY_OPTION
, where
SPEED_MODE = 1000 for 1000Mbps
= 100 for 100Mbps
= 10 for 10Mbps
DUPLEX_MODE = 0 for half-duplex
= 1 for full-duplex
NWAY_OPTION = 0 for auto-negotiation off (true force)
= 1 for auto-negotiation on (nway force)
For example:
# insmod ./src/r8169.ko speed=100 duplex=0 autoneg=0
will force PHY to operate in 100Mpbs Half-duplex(nway force).
2. Force the link status by using ethtool.
a. Insert the driver first.
b. Make sure that ethtool exists in /sbin.
c. Force the link status as the following command.
# ethtool -s ethX speed SPEED_MODE duplex DUPLEX_MODE autoneg NWAY_OPTION
, where
SPEED_MODE = 1000 for 1000Mbps
= 100 for 100Mbps
= 10 for 10Mbps
DUPLEX_MODE = half for half-duplex
= full for full-duplex
NWAY_OPTION = off for auto-negotiation off (true force)
= on for auto-negotiation on (nway force)
For example:
# ethtool -s eth0 speed 100 duplex full autoneg on
will force PHY to operate in 100Mpbs Full-duplex(nway force).


Reply With Quote
