PDA

View Full Version : [ubuntu] hi i want to install realtek driver



count123
May 23rd, 2008, 07:01 PM
hi i just install a new ubuntu server and it didnt recognize my ethernet card which is realtek rtl8111

any idea how to install it A to Z (i have a USB stick i can use)

thanks

shifty_powers
May 23rd, 2008, 07:02 PM
can we have output of


lspci

please

stchman
May 23rd, 2008, 07:06 PM
hi i just install a new ubuntu server and it didnt recognize my ethernet card which is realtek rtl8111

any idea how to install it A to Z (i have a USB stick i can use)

thanks

Here is the driver for that card for the PCI-E version.

ftp://210.51.181.211/cn/nic/r8168-8.006.00.tar.bz2

There is usually a readme in the archive.

count123
May 23rd, 2008, 07:08 PM
cant really access the comp without the ethernet card byt i will write down the last 2 lines

intel corporation 82801g (ich7 family) smbus controller (rev 01)
ethernet controller : realtek semiconductor co., Ltd rtl8111/8168b PCI express gigabit ethernet controller (rev 02)

throughout the output it says intel 82801G for the usb and other controllers and bridges \

thanks

neurostu
May 23rd, 2008, 07:09 PM
Googling for "rtl8111 linux drivers"
http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false#2
came up as one of the first hits:

1. Goto the website
2. Download the driver for: Linux driver for kernel 2.6.x and 2.4.x (Support x86 and x64)
3. Unzip the download.
4. Read the readme:


# make clean modules (as root or with sudo)
# make install
# depmod -a
# insmod ./src/r8168.ko (or r8168.o in linux kernel 2.4.x)


5.post back problems.

stchman
May 23rd, 2008, 07:12 PM
This is odd, I have a PC with the 8139 10/100 and an 8169 10/100/1000 that work OOB with Ubuntu. The 8169 is an onboard PCI-E gigabit NIC.

count123
May 23rd, 2008, 07:13 PM
how do i access the usb stick drive?

neurostu
May 23rd, 2008, 07:15 PM
when you plug it in does it mount?
To check this open a terminal and type:


cd /media/
ls

post the results below, you should see something like USBDrive or something like that, my usb drive is branded patriot and it shows up as /media/Patriot_Memeory/

count123
May 23rd, 2008, 07:17 PM
nope only cdrom and cdrom0

count123
May 23rd, 2008, 07:24 PM
nothing?

neurostu
May 23rd, 2008, 07:26 PM
ok then you need to mount it.
To find out where the device is type:


tail -f /var/log/messages

then plug in your drive and paste the message that appears below.
look for something like sda or sdb to appear.

Once that appears use that info to mount the drive.

to mount the drive first make a directory to mount to:


sudo mkdir /media/usbMount

then mount the drive with:


mount /dev/sdX /media/usbMount
where sdX is what appeared above.

neurostu
May 23rd, 2008, 07:28 PM
nothing?Be patient man! you posted 3 minutes ago and it takes time to get answers to these questions.

Most of the time when people are posting answers they have to go out and find the answers to your questions, using google or other linux forums, so be patient!

count123
May 23rd, 2008, 07:39 PM
sorry for before.. thanks anyway

it gives me the following message:
mount: you must specify the filesystem type

neurostu
May 23rd, 2008, 07:40 PM
try:


mount -t fat32 /dev/sdX /media/usbMount
or
mount -t fat /dev/sdX /media/usbMount

count123
May 23rd, 2008, 07:45 PM
unkown filesystem type fat or fat32

count123
May 23rd, 2008, 07:47 PM
may b i can access using the Cdrom i alreay burned the driver also?

neurostu
May 23rd, 2008, 07:49 PM
oh, try FAT or FAT32, or vfat

neurostu
May 23rd, 2008, 07:50 PM
may b i can access using the Cdrom i alreay burned the driver also?, if you have a Cd burner that will work too.


If I can ask why do you have ubuntu server installed and not Ubuntu Desktop?

count123
May 23rd, 2008, 08:08 PM
just tried that we need to build a new test enviorment with some linux servers thought to try ubuntu server :( anyway while typing i am dowloading the desktop edition

count123
May 25th, 2008, 10:17 AM
hi again

tried everything now my network doesnt work correctly...

can anyone help... i have installed now the ubuntu desktop edition i am trying to install the rtl8111 driver but without success i am getting all kind of errors when submitting the make command through the readme file any idea how to overide it?

thanks

count123
May 25th, 2008, 10:40 AM
ok here is the error i get any one?

root@endless-server:/home/aviv/Documents/r8168-8.006.00# make clean modules
make -C src/ clean
make[1]: Entering directory `/home/aviv/Documents/r8168-8.006.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers rset
make[1]: Leaving directory `/home/aviv/Documents/r8168-8.006.00/src'
make -C src/ modules
make[1]: Entering directory `/home/aviv/Documents/r8168-8.006.00/src'
make -C /lib/modules/2.6.24-16-generic/build SUBDIRS=/home/aviv/Documents/r8168-8.006.00/src modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic'
CC [M] /home/aviv/Documents/r8168-8.006.00/src/r8168_n.o
/home/aviv/Documents/r8168-8.006.00/src/r8168_n.c: In function ‘rtl8168_init_board’:
/home/aviv/Documents/r8168-8.006.00/src/r8168_n.c:2300: error: implicit declaration of function ‘SET_MODULE_OWNER’
/home/aviv/Documents/r8168-8.006.00/src/r8168_n.c: In function ‘rtl8168_init_one’:
/home/aviv/Documents/r8168-8.006.00/src/r8168_n.c:2600: error: ‘struct net_device’ has no member named ‘poll’
/home/aviv/Documents/r8168-8.006.00/src/r8168_n.c:2601: error: ‘struct net_device’ has no member named ‘weight’
/home/aviv/Documents/r8168-8.006.00/src/r8168_n.c: In function ‘rtl8168_rx_interrupt’:
/home/aviv/Documents/r8168-8.006.00/src/r8168_n.c:4029: error: ‘struct net_device’ has no member named ‘quota’
/home/aviv/Documents/r8168-8.006.00/src/r8168_n.c:4029: warning: type defaults to ‘int’ in declaration of ‘_y’
/home/aviv/Documents/r8168-8.006.00/src/r8168_n.c:4029: error: ‘struct net_device’ has no member named ‘quota’
/home/aviv/Documents/r8168-8.006.00/src/r8168_n.c:4029: warning: comparison of distinct pointer types lacks a cast
/home/aviv/Documents/r8168-8.006.00/src/r8168_n.c: In function ‘rtl8168_interrupt’:
/home/aviv/Documents/r8168-8.006.00/src/r8168_n.c:4225: error: too few arguments to function ‘netif_rx_schedule_prep’
/home/aviv/Documents/r8168-8.006.00/src/r8168_n.c:4226: error: too few arguments to function ‘__netif_rx_schedule’
/home/aviv/Documents/r8168-8.006.00/src/r8168_n.c: In function ‘rtl8168_poll’:
/home/aviv/Documents/r8168-8.006.00/src/r8168_n.c:4274: error: ‘struct net_device’ has no member named ‘quota’
/home/aviv/Documents/r8168-8.006.00/src/r8168_n.c:4274: warning: type defaults to ‘int’ in declaration of ‘_y’
/home/aviv/Documents/r8168-8.006.00/src/r8168_n.c:4274: error: ‘struct net_device’ has no member named ‘quota’
/home/aviv/Documents/r8168-8.006.00/src/r8168_n.c:4282: error: ‘struct net_device’ has no member named ‘quota’
/home/aviv/Documents/r8168-8.006.00/src/r8168_n.c:4285: error: too few arguments to function ‘netif_rx_complete’
make[3]: *** [/home/aviv/Documents/r8168-8.006.00/src/r8168_n.o] Error 1
make[2]: *** [_module_/home/aviv/Documents/r8168-8.006.00/src] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/aviv/Documents/r8168-8.006.00/src'
make: *** [modules] Error 2

count123
May 25th, 2008, 03:27 PM
anyone?