Koozali.org: home of the SME Server

need help to get dual 8169sc onboard lan running

Offline Jean-Philippe Pialasse

  • *
  • 2,767
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
need help to get dual 8169sc onboard lan running
« Reply #60 on: July 04, 2007, 02:01:47 AM »
Hello, thanks to your how to I have compiled a kernel for my J7F4..but

-my networks card still does not works with r8169 drivers a dhcp ip is attributed to the wan NIC but nothing goes trough

-unable to compile the R1000 v1.06 under 2.6.21-rc5 (it worked just fine under 2.6.9 kernels

- thanks to the new kernel i am able to reboot (with 2.6.9 kernel if no keyboard PS2 was present the system hang up before reboot)

- no more auto creation of the folder in media for removable device is this udev thing ?


the most enoying thing is about the NIC ..... I saw some information on the net about windows that disable the network card, but no windows on the machine and it works just fine with the r1000 driver but older kernel...


JPP

Offline levien

  • *
  • 26
  • +0/-0
need help to get dual 8169sc onboard lan running
« Reply #61 on: July 04, 2007, 02:08:28 PM »
Quote from: "unnilennium"
Hello, thanks to your how to I have compiled a kernel for my J7F4..but
-my networks card still does not works with r8169 drivers a dhcp ip is attributed to the wan NIC but nothing goes trough


Sounds like a configuration issue. Which drivers are loaded? Did you set up the correct driver in the SMB config database? Or perhaps both the r1000 and the r8169 get loaded? Do you get any error messages in dmesg?

Quote from: "unnilennium"
-unable to compile the R1000 v1.06 under 2.6.21-rc5 (it worked just fine under 2.6.9 kernels


Yes, apparently the new Realtek driver doesn't yet compile with newer kernel versions (> 2.6.18 or so). You could try the 1.05 or 1.04 version (I should still have a copy of these somewhere).

Quote from: "unnilennium"

- no more auto creation of the folder in media for removable device is this udev thing ?


Hmm, yes I didn't consider that: udev will need to be updated for it to work with a kernel > 2.6.12. I'll look into it.

-Levien

Offline Jean-Philippe Pialasse

  • *
  • 2,767
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
need help to get dual 8169sc onboard lan running
« Reply #62 on: July 05, 2007, 02:21:26 AM »
Quote from: "levien"
Quote from: "unnilennium"
Hello, thanks to your how to I have compiled a kernel for my J7F4..but
-my networks card still does not works with r8169 drivers a dhcp ip is attributed to the wan NIC but nothing goes trough


Sounds like a configuration issue. Which drivers are loaded? Did you set up the correct driver in the SMB config database? Or perhaps both the r1000 and the r8169 get loaded? Do you get any error messages in dmesg?

no there is just  the one with the kernl that is on and compiled.
dmesg just say that eth 1 and eth0 are up no error during the load of the driver

Quote from: "levien"

Quote from: "unnilennium"
-unable to compile the R1000 v1.06 under 2.6.21-rc5 (it worked just fine under 2.6.9 kernels


Yes, apparently the new Realtek driver doesn't yet compile with newer kernel versions (> 2.6.18 or so). You could try the 1.05 or 1.04 version (I should still have a copy of these somewhere).

will try with the 1.04 because the 1.05 freeze network with high speed up/download
=> after trying 1.04 do not compil
=> 1.05 compil with some errors but can be installed ....but no more success than with the r8169 ... :(
i can ping ip adresses on wan
- i can't ping with dns name
i can't lynx dns name or ip adresses
the NIC is always blinking


Quote from: "levien"

Quote from: "unnilennium"

- no more auto creation of the folder in media for removable device is this udev thing ?


Hmm, yes I didn't consider that: udev will need to be updated for it to work with a kernel > 2.6.12. I'll look into it.

-Levien


I have seen lot of update for r8169 on 2.6.22 kernels maybe i should see...

other thing i saw that there is some pb with dual boot with windows where windows disable the NIc at shutdown and the r8169 driver is not able to up it correctly. but it seems that nothing is blinking on it which is not my case

Offline Jean-Philippe Pialasse

  • *
  • 2,767
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com

Offline nigeltodd

  • ***
  • 82
  • +0/-0
    • http://nigelt.dyndns.org
need help to get dual 8169sc onboard lan running
« Reply #64 on: July 09, 2007, 12:37:33 PM »
[root@gateway drivers]# cd r1000_v1.04
[root@gateway r1000_v1.04]# ls
Makefile  README  release_note.txt  src
[root@gateway r1000_v1.04]# make clean modules
make -C src/ clean
make[1]: Entering directory `/home/e-smith/files/ibays/antreno/drivers/r1000_v1.04/src'
rm -f *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags
make[1]: Leaving directory `/home/e-smith/files/ibays/antreno/drivers/r1000_v1.04/src'
make -C src/ modules
make[1]: Entering directory `/home/e-smith/files/ibays/antreno/drivers/r1000_v1.04/src'
make -C /lib/modules/2.6.9-55.0.2.ELsmp/build SUBDIRS=/home/e-smith/files/ibays/antreno/drivers/r1000_v1.04/src modules
make: *** /lib/modules/2.6.9-55.0.2.ELsmp/build: No such file or directory.  Stop.
make: Entering an unknown directorymake: Leaving an unknown directorymake[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/e-smith/files/ibays/antreno/drivers/r1000_v1.04/src'
make: *** [modules] Error 2
[root@gateway r1000_v1.04]#

This is what happens when i foillow the steps above?

Any suggestions anyone?
smoke-free since June 24th, 2004............

Offline nigeltodd

  • ***
  • 82
  • +0/-0
    • http://nigelt.dyndns.org
need help to get dual 8169sc onboard lan running
« Reply #65 on: July 09, 2007, 12:46:40 PM »
This is whta happens when I try to do the make commands!!

Any suggestions anyone??

"[root@gateway drivers]# cd r1000_v1.04
[root@gateway r1000_v1.04]# ls
Makefile  README  release_note.txt  src
[root@gateway r1000_v1.04]# make clean modules
make -C src/ clean
make[1]: Entering directory `/home/e-smith/files/ibays/antreno/drivers/r1000_v1.04/src'
rm -f *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags
make[1]: Leaving directory `/home/e-smith/files/ibays/antreno/drivers/r1000_v1.04/src'
make -C src/ modules
make[1]: Entering directory `/home/e-smith/files/ibays/antreno/drivers/r1000_v1.04/src'
make -C /lib/modules/2.6.9-55.0.2.ELsmp/build SUBDIRS=/home/e-smith/files/ibays/antreno/drivers/r1000_v1.04/src modules
make: *** /lib/modules/2.6.9-55.0.2.ELsmp/build: No such file or directory.  Stop.
make: Entering an unknown directorymake: Leaving an unknown directorymake[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/e-smith/files/ibays/antreno/drivers/r1000_v1.04/src'
make: *** [modules] Error 2
[root@gateway r1000_v1.04]#
"

Thanks in advance
smoke-free since June 24th, 2004............

Offline Jean-Philippe Pialasse

  • *
  • 2,767
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
need help to get dual 8169sc onboard lan running
« Reply #66 on: July 09, 2007, 12:52:59 PM »
install the kernel source: kernel-devel

you may think first to boot to the non smp kernel if you have a J7 motherboard with single core then install the kernel-devel

otherwise you will need kernel-smp-devel


Code: [Select]
yum install kernel-smp-devel --enablerepo=base  -y

or
Code: [Select]

yum install kernel-devel --enablerepo=base  -y


as  you need


JPP

Offline Jean-Philippe Pialasse

  • *
  • 2,767
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
need help to get dual 8169sc onboard lan running
« Reply #67 on: July 27, 2007, 06:53:27 PM »
following the How to i get it work perfectly with one interface in  server only  mode


with server + gateway :
- lan side is ok
- wan side obtain dhcp address or connect with static ip adress BUT

the sme can only ping the gateway with it's ip , and cannot resolve anything
no dns working
no http through the wan interface
only ping ip is possible
AND the LED interface keep  flashing , netstats gives a lot of connection on domain port

HELP i need it to work in server gateway what's happens ?

Offline Jean-Philippe Pialasse

  • *
  • 2,767
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
need help to get dual 8169sc onboard lan running
« Reply #68 on: July 29, 2007, 02:01:01 AM »
iptables problem !!!

on 2.6.21 masquerade needs iptables 1.3.8

at startup SME show an error  about masquerade , you need to restart /etc/init.d/iptables restart to access WAN

source : http://www.plouf.fr.eu.org/bazar/netfilter/changements-netfilter-2.6.html#linux-2.6.21


need to correct that , then correct the udev thing: (maybe this is this problem  - sorry for french- http://forums.fedora-fr.org/viewtopic.php?id=22876)

Offline Jean-Philippe Pialasse

  • *
  • 2,767
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
need help to get dual 8169sc onboard lan running
« Reply #69 on: July 31, 2007, 02:34:09 PM »
searching more about the problem it was due to some missing component in the compiled kernel , masq was creating an error due to lack of "state" for iptables and netfilter in the kernel.

so i compile a new one with theses options and tada !


About Udev and HAL


here how i did to make it to workwith 7.1.3: DO NOT DO THIS
Quote

Code: [Select]

db yum_repositories set FC4 repository \
 BaseURL  http://mirror.aarnet.edu.au/pub/fedora/linux/core/4/i386/os/ \
 EnableGroups yes \
 GPGCheck no \
 Name 'Fedora Core 4' \
 Visible yes \
 status disabled

expand-template /etc/yum.conf

yum update --enablerepo=FC4 hal



for information what was updated
Code: [Select]
Updating:
 hal                     i386       0.5.2-2          FC4               207 k
Updating for dependencies:
 SysVinit                i386       2.85-39          FC4                98 k
 dbus                    i386       0.33-3           FC4               542 k
 dbus-glib               i386       0.33-3           FC4                57 k
 glib2                   i386       2.6.4-1          FC4               552 k
 initscripts             i386       8.11.1-1         FC4               1.1 M
 libselinux              i386       1.23.10-2        FC4                66 k
 libsepol                i386       1.5.9-2          FC4                42 k
 libstdc++               i386       4.0.0-8          FC4               295 k
 libusb                  i386       0.1.10a-1        FC4                28 k
 udev                   i386       0.58-1              FC4               1.1 M
   

then i simply  did
Code: [Select]


start_udev
udevd&
hald



you can alternatively just signal-event post upgrade; signal-event reboot

/!\ be carrefull this solution is not good for 7.2 SME version : conflict due to  smolt and smeserver-support with dbus, dbus-glib and dbus-python that is needed....

here what to do  for 7.2 and 7.1.3 :
Code: [Select]

wget ftp://fr.rpmfind.net/linux/fedora/core/updates/3/x86_64/hal-0.4.7-1.FC3.i386.rpm
rpm -Uvh hal-0.4.7-1.FC3.i386.rpm
/etc/init.d/haldaemon start



I can also suggest you to update iptable to 1.3.7 from FC7 ( http://ftp.univie.ac.at/systems/linux/fedora/releases/7/Fedora/i386/os/Fedora/iptables-1.3.7-2.i386.rpm ) or 1.3.8-1 ( http://mirror.internode.on.net/pub/fedora/linux/development/i386/os/Fedora/iptables-1.3.8-1.i386.rpm ) in the dev of FC, but it seems to work properly with the  one coming with SME.

I ll post her later my .config to compil the kernel and the rpm kernel


JPP

Offline Rigger

  • ***
  • 71
  • +0/-0
Re: Jetway & RTL8169SC running
« Reply #70 on: August 01, 2007, 06:56:11 AM »
My RTL8169SC fix...............

BELKIN - Gigabit Desktop Network PCI Card (Part # F5D5005)
http://catalog.belkin.com/IWCatProductPage.process?Product_Id=183751

After pulling the cute little BELKIN sticker off the chip you would see it's a Realtek chip (RTL8169SC).

-----------------------------------------------------------------------------------
yum -y install kernel-devel gcc gcc-c++

wget ftp://210.51.181.211/cn/nic/r8169-6.002.00.tar.bz2

tar -jzxf r8169-6.002.00.tar.bz2

cd r8169-6.002.00

make clean modules

make install

chmod 744 /lib/modules/2.6.9-55.0.2.EL/kernel/drivers/net/r8169.ko

modprobe -a

Reboot the server

Configure and select the r8169 driver.

System will then prompt again for a reboot.
---------------------------------------------------------------------------------

YOu can find the instruction earlier in the thread if you want to remove the developer files.



Rigger

Offline neggard

  • *
  • 29
  • +0/-0
Re: need help to get dual 8169sc onboard lan running
« Reply #71 on: October 10, 2007, 09:58:38 PM »
is there anyone who have a rpm binary package with r8169-6.003.00.tar.bz2 compiled for kernel-2.6.9-55.0.2.EL.i686. I cannot access the net in order to download any of the required packages so a little help would be awesome :)

Offline SoftDux

  • ****
  • 240
  • +0/-0
    • http://www.SoftDux.com
Re: need help to get dual 8169sc onboard lan running
« Reply #72 on: November 06, 2007, 08:30:43 AM »
Doesn't anyone have a "patched" kernel with this driver already installed, that we can just use?

Offline arne

  • ****
  • 1,116
  • +0/-4
Re: need help to get dual 8169sc onboard lan running
« Reply #73 on: November 06, 2007, 01:00:48 PM »
I have a standard updated SME 7.2 server, with a unmodified kernel.
(But not the refered hardware.)

Look:

[root@sme72 ~]# modprobe r8169

[root@sme72 ~]# lsmod | grep r8169
r8169                  28745  0


**********

dmesg | grep eth  ??

dmesg | tail ??

ifconfig eth0 up

ifconfig eth1 up

ifconfig ??
« Last Edit: November 06, 2007, 02:55:43 PM by arne »
......

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: need help to get dual 8169sc onboard lan running
« Reply #74 on: November 06, 2007, 04:31:25 PM »
is there anyone who have a rpm binary package with r8169-6.003.00.tar.bz2 compiled for kernel-2.6.9-55.0.2.EL.i686. I cannot access the net in order to download any of the required packages so a little help would be awesome :)
How about downloading on another machine and using a USB stick or CD to copy your data to the server?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)