Hálókártya install

Fórumok

Sziasztok, neharagadujatok meg a számotokra amatör kérdés miatt, de én csak most imserkedek linuxal-al. Van 1 hálókarim D-Link DGE-528T tipusú és a cd-n nincs linuxhoz driver viszont nemismeri fel a redhat. Nemtudna valaki segíteni hogy tudnám működésre bírni?

Hozzászólások

"installed DLINK DGE-528T on my linux server ( kernel 2.6.11.8 ) and it
works with r8169 kernel module."

Asszem harmadik v negyedik találat googleben. Próbáld ki, hátha megy.
Milyen kernel futkározik? (uname -r)
Próbáld ki (rootkent): modprobe r8169
Ha nincs ilyen, akkor nem tartalmazza terjesztés. Amugy a Red Hat megállt a 9.0-nál , nem? Mintha egy jo ideje fedora core lenne a jogutód:)

Üdv,
Neo

Ha a modprobe r8169 szó nélkül bement (nem adott hibát), nézd meg, hogy most az lsmod parancs álatal adott listában szerepel-e az r8169. Ha igen, akkor tényleg betöltötte a modult, jöhet az interfész bekonfigurálása. Esetleg a dmesg paranccsal is ellenőrizheted, hogy mondott-e valami info-t. Ez az r8169 ha jól tévedek egyébként a Realtek 8169 chiphez készült driver.

oké. A modult betöltötte. De ha ujraindítom a gépet ott nem írja ki azt mondjuk hogy ETH 3 aktiválása pedig a másik hálókártyára kiírja.
Vagy ez most teljesen mind1? Hogy csináljam akkor a konfigurálást? És ez a modul kell ehez a D-link DGE528T karihoz?

Nem az erős aki sosem esik el, hanem az aki mindig fel tud állni!

Lassabban hékás :) Ha betölötte a modult, próbáld kézzel felhúzni az interfészt, hogy lássuk, műxik-e egyáltalán. Még mindig nem tudjuk, hogy pontosan milyen OS distrod és verziód van. Nem használok RedHat-et, de azon azt hiszem volt ifup parancs (talán /sbin/ifup). Paraméterként interfész nevet vár: /sbin/ifup eth0 (ha a kérdéses éppen az eth0). Ha nincs több hálókártya a gépben akkor valszeg eth0. Ezek után nézd meg ifconfig paranccsal, hogy lett-e eth0, utána próbálj valamit megpingelni, vagy elérni LAN-on (ha nem LANon akarsz, akkor előbb nézd meg a route -n paranccsal, hogy a route tábla - főleg a connected és a default route - rendben van-e, és a névfeloldás be van-e állítva, nehogy azok miatt fals eredményt kapjál). Ha mindez megy, akkor utána kell nézni, hogyan kell ezt állandósítani a RedHat-ben, mert annyira nem ismerem.

A RedHat 9 Manual szerint azonban a Kudzu automatikusan felismeri a hardverelemeket, és bekonfigolja hozzá a megfelelő modult. Lehetőség van a kézi modul konfigra is, a /etc/modules.conf-ban. Ilyesmit kéne beleírni:

alias eth0 r8169

és törölni minden egyéb hivatkozást az eth0-ra ha van. Többet sajnos nem tudok segíteni, Slackware-em, van, más mint a RedHat. Én is csak google-ból tudnék többet mondani, vagy ha feltelepítenék egy RedHat-et.

Linux version 2.6.9-27.cc (devel@beaker.pointclark.net) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 Mon Oct 24 18:48:25 EDT 2005

/sbin/ifup: a(z) eth2 konfigurĂĄciĂłja nem talĂĄlhatĂł.
HasznĂĄlat: ifup
[root@server ~]#

Igen szerintem is felkéne ismerni. De se az alaplapi gigabites kártyát nem ismeri fel sem ha belerakok bármilyen már kipróbált gigabites kártyát. Ha sima 10/100 as kártyát teszek bele azzal nincs gond.

Nem az erős aki sosem esik el, hanem az aki mindig fel tud állni!

ha ragazkodsz a redhathez, akkor talan probald ki a centos5-ot, az uj redhat ingyenes vatozata, talan ez egybol felismeri majd:
http://centos.org/

ui.: ha nem gond, akkor rakj egy -- elvalasztot a signodhoz, kb ugy, mint nekem :)

--
The Internet has evolved from smart people in front of dumb terminals to dumb people in front of smart terminals.

Lehet, hogy nem vagyok képben, de miért pont a RedHat? Ehh...mindegy.

Azért írjatok be valamit, ha esetleg sikerül...

Here is a description on how to patch the current driver on 2.6 kernels before 2.6.10.

As mentioned above, the DGE-528T uses the RTL-8169. For the RTL-8169 a driver is available in 2.6 (/usr/src/linux/drivers/net/r8169.c.) but not being used for the DGE-528T.

The reason is, that the driver expects a card with the PCI ID 10EC:8169, but the PCI ID of the DGE-528T is 1186:4300.

You can display the PCI IDs of all your PCI cards using lspci -n. Make sure that your DGE-528T has the ID 1186:4300 before proceeding.

A devices driver uses the PCI ID to determine, if it can handle the device in question. For this reason a table exists within the device driver, listing the IDs of all cards it feels responsible for.

This is the table in r8169.c before kernel 2.6.10:

Code:
static struct pci_device_id rtl8169_pci_tbl[] = {
{0x10ec, 0x8169, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
{0,},
};
and this is the table since 2.6.10:

Code:
static struct pci_device_id rtl8169_pci_tbl[] = {
{0x10ec, 0x8169, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
{0x1186, 0x4300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
{0,},
};
As you can see, our ID has been added to the table and since then, the driver recognizes the DGE-528T automatically.

In order to add this feature, the official way would be to get a newer kernel from your distribution, or, if this is not available, to get the source for the current one and modify it accordingly. You would also need to download and install all the necessary utilities for compiling a kernel. Then you have to modify the source in the way mentioned above, recompile the kernel and install the module. This all is very time consuming and other problems may occur along the way.

And all this for only 8 "wrong" bytes.

A faster way would be, to find the "wrong" ID in the module binary and replace it with "our" ID.

In order to do this, you only need the utility hexedit, which might not be installed by default. Get it from your distribution.

No warranties on the following procedure. Tested on Debian 2.6.8 on an Intel based machine.

Find out what kernel version you use:

Code:
uname -r
The module should be located at:

/lib/modules/2.6.x/kernel/drivers/net/r8169.ko

(replace 2.6.x with the version number of your kernel - all of it (the entire output of the last command)).

Become root and change to this subdirectory. Create a backup copy of the driver (one never knows) and start hexedit:

Code:
cd /lib/modules/2.6.x/kernel/drivers/net
cp r8169.ko r8169.ko.old
hexedit r8169.ko
You now see the file in hex format.
In order to find the "wrong" ID "10EC 8169", you have to search for: EC 10 00 00 69 81 00 00
(Remember: on Intel architecture)

The search function in hexedit is activated by the key "/". Enter the hex number without spaces: EC10000069810000

Press Enter. The cursor should move and now being placed over the byte containing "EC". FYI: I found that string at position 0x3340.

Overwrite the bytes with: 8611000000430000
(Which is 1186:4300 in the "Intel byte order").

Save the file with "F2" and exit hexedit with Ctrl-X.

Reboot - keep an eye on the boot messages. The card should be recognized now.

elvileg 1 filet kellene hex editorban szerkesztenem. nem tudsz ilyen editort?

Nem az erős aki sosem esik el, hanem az aki mindig fel tud állni!

ha megnézed, írtam hogy eléggé kezdő vagyok. ez kb olyan mintha én azt mondanám neked kedves beteg, fáradjon haza és lássa el az unlarizált klariteszát majd kösse át és fertőtlenítse le. Tudod miről beszélek? :)

Nem az erős aki sosem esik el, hanem az aki mindig fel tud állni!

Bocsi. Nem figyeltem, hogy a kezdo reszlegben van a topik :)

Szoval az ujabb kernelekben (2.6.22-rc1-et neztem) benne van az eszkoz azonositoja (bar ezt reggel megegyszer meg kene neznem, mert mar faradt vagyok). Tehat annyi a dolgod, hogy vagy frissited csomagbol (redhat alatt lovesem sincs hogyan kell), vagy csomagbol, esetleg a kernel.org-rol szerzel kernel forrast, es leforditod, telepited. Az utobbi maceras lehet egy kezdonek, en is szenvedtem meg anno nem keveset a konfiguralassal. Es ha eleg friss ezek utan a kerneled, akkor jo esetben felismeri a halokartyad.

sziasztok. Kernelt frissítettem de továbbse ismeri fel.Phpsysinfo látja a drágát:
03:09.0 Ethernet controller: D-Link System Inc DGE-528T Gigabit Ethernet Adapter

de továbbra is fenn áll a gond. Any idea?

Nem az erős aki sosem esik el, hanem az aki mindig fel tud állni!