View previous topic :: View next topic |
Author |
Message |
razer l33t
Joined: 08 Oct 2004 Posts: 893 Location: Paris - France
|
Posted: Sun Oct 22, 2006 8:28 pm Post subject: [kernel]Auto chargement des modules(résolu) |
|
|
Je finis par poser cette question qui me turlupine ici, faute d'avoir trouvé une réponse ailleurs.
J'ai un serveur (sous debian... ben oui, c'est un PII 400, alors je me passe des compils) qui comporte 3 cartes réseau. 2 pour le réseau local (je n'ai pas de hub/switch, que des câbles croisés en stock, et ma fois çà marche bien comme çà...) et une pour la connexion cable noos.
Seulement voila : depuis mon passage à un kernel 2.6, ce dernier a l'excellente idée de détecter les cartes PCI et de charger automatiquement les modules... Quand à l'ordre de ce chargement, c'est selon son humeur : d'ou mon problème...
Je voudrais donc :
soit supprimer ce chargement automatique des modules par le kernel pour que ma distrib s'en charge (/etc/modprobe.d, /etc/modules, les solutions ne manquent pas...)
soit trouver les bons paramètres à fournir au kernel pour qui me charge tel module pour eth0, tel autre pour eth1...
Merci d'avance
Last edited by razer on Mon Oct 23, 2006 8:31 am; edited 1 time in total |
|
Back to top |
|
|
kopp Advocate
Joined: 09 Apr 2004 Posts: 2885 Location: Grenoble, France
|
Posted: Sun Oct 22, 2006 8:30 pm Post subject: |
|
|
Tu es sur que ceci ne vient pas de udev ou d'un équivalent de coldplug ? |
|
Back to top |
|
|
Adrien Advocate
Joined: 13 Jul 2004 Posts: 2326 Location: Bretagne
|
Posted: Sun Oct 22, 2006 8:36 pm Post subject: |
|
|
kopp wrote: | Tu es sur que ceci ne vient pas de udev ou d'un équivalent de coldplug ? |
+1 |
|
Back to top |
|
|
razer l33t
Joined: 08 Oct 2004 Posts: 893 Location: Paris - France
|
Posted: Sun Oct 22, 2006 9:12 pm Post subject: |
|
|
kopp wrote: | Tu es sur que ceci ne vient pas de udev ou d'un équivalent de coldplug ? |
Udev, peut-être, mais je doute car ce chargement s'effectue avant même le montage en rw de la partition racine.
De plus, j'ai rien trouvé de particulier dans la config d'udev, et il n'y a pas de hotplug/coldplug d'installé
Code: | Linux version 2.6.17.14 (root@dalila) (gcc version 4.1.2 20060613 (prerelease)
(Debian 4.1.1-5)) #3 Mon Oct 16 03:24:52 CEST 2006
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000000fef0000 (usable)
BIOS-e820: 000000000fef0000 - 000000000fef3000 (ACPI NVS)
BIOS-e820: 000000000fef3000 - 000000000ff00000 (ACPI data)
BIOS-e820: 00000000ffb00000 - 0000000100000000 (reserved)
254MB LOWMEM available.
On node 0 totalpages: 65264
DMA zone: 4096 pages, LIFO batch:0
Normal zone: 61168 pages, LIFO batch:15
DMI 2.1 present.
Allocating PCI resources starting at 10000000 (gap: 0ff00000:efc00000)
Built 1 zonelists
Kernel command line: auto BOOT_IMAGE=Linux-2.6.17.14 ro root=305
Enabling fast FPU save and restore... done.
Initializing CPU#0
PID hash table entries: 1024 (order: 10, 4096 bytes)
Detected 400.985 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 255572k/261056k available (1878k kernel code, 4992k reserved, 537k data
, 140k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 803.12 BogoMIPS (lpj=1606245)
Mount-cache hash table entries: 512
CPU: After generic identify, caps: 0183f9ff 00000000 00000000 00000000 00000000
00000000 00000000
CPU: After vendor identify, caps: 0183f9ff 00000000 00000000 00000000 00000000
00000000 00000000
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 128K
CPU: After all inits, caps: 0183f9ff 00000000 00000000 00000040 00000000 000000
00 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: Intel Celeron (Mendocino) stepping 05
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 0k freed
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfb0d0, last bus=1
Setting up standard PCI resources
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
Boot video device is 0000:00:01.0
PCI quirk: region 4000-407f claimed by ICH4 ACPI/GPIO/TCO
PCI quirk: region 4080-40bf claimed by ICH4 GPIO
PCI: Transparent bridge - 0000:00:1e.0
PCI: Using IRQ router PIIX/ICH [8086/2420] at 0000:00:1f.0
PCI: Ignore bogus resource 6 [0:0] of 0000:00:01.0
PCI: Bridge: 0000:00:1e.0
IO window: b000-cfff
MEM window: d4000000-d5ffffff
PREFETCH window: 10000000-100fffff
PCI: Setting latency timer of device 0000:00:1e.0 to 64
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 8192 bind 4096)
TCP reno registered
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)
audit: initializing netlink socket (disabled)
audit(1161555214.388:1): initialized
JFS: nTxBlock = 1997, nTxLock = 15980
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered (default)
lp: driver loaded but no devices found
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
parport0: PC-style at 0x378 [PCSPP,TRISTATE]
lp0: using parport0 (polling).
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
loop: loaded (max 8 devices)
PPP generic driver version 2.4.2
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ICH0: IDE controller at PCI slot 0000:00:1f.1
ICH0: chipset revision 1
ICH0: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:pio, hdd:pio
Probing IDE interface ide0...
hda: IBM-DTLA-307030, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
Probing IDE interface ide1...
hda: max request size: 128KiB
hda: 60036480 sectors (30738 MB) w/1916KiB Cache, CHS=59560/16/63, UDMA(33)
hda: cache flushes not supported
hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 hda8 >
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
input: PC Speaker as /class/input/input0
input: AT Translated Set 2 keyboard as /class/input/input1
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Using IPI Shortcut mode
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 140k freed
ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
http://www.scyld.com/network/ne2k-pci.html
eth0: RealTek RTL-8029 found at 0xb000, IRQ 12, 00:50:BF:11:4C:6E.
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
0000:01:04.0: 3Com PCI 3c905C Tornado at d094c000.
8139too Fast Ethernet driver 0.9.27
eth2: RealTek RTL8139 at 0xb800, 00:00:21:ee:64:2c, IRQ 9
eth2: Identified 8139 chip type 'RTL-8139B'
hw_random hardware driver 1.0.0 loaded
Adding 313228k swap on /dev/hda1. Priority:-1 extents:1 across:313228k
EXT3 FS on hda5, internal journal
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda3, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda6, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda7, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda2, internal journal
EXT3-fs: mounted filesystem with ordered data mode. |
|
|
Back to top |
|
|
Ey l33t
Joined: 07 Apr 2005 Posts: 863 Location: Paris
|
Posted: Sun Oct 22, 2006 11:12 pm Post subject: |
|
|
Oui sauf que comme tu peux le constater ça se fait après le montage de la partition racine, donc c'est très probablement la faute à init. => chercher s'il n'y a pas un coldplug ou similaire dans /etc/init.d/ sous ta debian (à priori tu as un lien symbolique dans rcS.d avec un numéro très faible vu que c'est l'une des première choses qu'il fait - typiquement le numéro doit être plus faible que le mount des partitions locales) |
|
Back to top |
|
|
yoyo Bodhisattva
Joined: 04 Mar 2003 Posts: 4273 Location: Lyon - France
|
Posted: Mon Oct 23, 2006 6:13 am Post subject: |
|
|
Il me semble que ce problème a déjà été abordé ici ... et que la soluce la plus simple consiste à inclure en dur le support pour eth0 et en module celui pour eth1.
C'est moyen comme soluce mais c'est celle dont je me souviens (et peut-être pas la seule).
Enjoy ! _________________ La connaissance s'accroît quand on la partage.
JCB |
|
Back to top |
|
|
blasserre Veteran
Joined: 10 Feb 2004 Posts: 1362 Location: Lille, Vlaanderen
|
Posted: Mon Oct 23, 2006 6:48 am Post subject: |
|
|
yoyo wrote: | Il me semble que ce problème a déjà été abordé ici ... et que la soluce la plus simple consiste à inclure en dur le support pour eth0 et en module celui pour eth1.
C'est moyen comme soluce mais c'est celle dont je me souviens (et peut-être pas la seule).
Enjoy ! |
et eth2 ? il le met en quoi ?
gniarfgniarfgniarf
je vois que toi aussi t'es du matin _________________ benj
technicien professionnel, ascendant winner |
|
Back to top |
|
|
yoyo Bodhisattva
Joined: 04 Mar 2003 Posts: 4273 Location: Lyon - France
|
Posted: Mon Oct 23, 2006 6:57 am Post subject: |
|
|
blasserre wrote: | je vois que toi aussi t'es du matin | Rhooo l'autre comment y me flame !!
Alors je reprends : Quote: | Il me semble que ce problème a déjà été abordé ici ...
[snip]
c'est celle dont je me souviens (et peut-être pas la seule) | et je complète : [réseau] ptite question(résolu).
Et là c'est moi qui : gniarfgniarfgniarf
_________________ La connaissance s'accroît quand on la partage.
JCB |
|
Back to top |
|
|
razer l33t
Joined: 08 Oct 2004 Posts: 893 Location: Paris - France
|
Posted: Mon Oct 23, 2006 8:30 am Post subject: |
|
|
yoyo wrote: | blasserre wrote: | je vois que toi aussi t'es du matin | Rhooo l'autre comment y me flame !!
Alors je reprends : Quote: | Il me semble que ce problème a déjà été abordé ici ...
[snip]
c'est celle dont je me souviens (et peut-être pas la seule) | et je complète : [réseau] ptite question(résolu).
Et là c'est moi qui : gniarfgniarfgniarf
|
Merci à tous. Sous debian, la solution se trouve dans "/etc/udev/rules.d/z25_persistent-net.rules"
Code: | # PCI device 0x10ec:0x8029 (ne2k-pci)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:50:bf:11:4c:6e", NAME="eth2
"
# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:00:21:ee:64:2c", NAME="eth1
"
# PCI device 0x10b7:0x9200 (3c59x)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:01:02:96:df:1a", NAME="eth0
" |
|
|
Back to top |
|
|
yoyo Bodhisattva
Joined: 04 Mar 2003 Posts: 4273 Location: Lyon - France
|
Posted: Mon Oct 23, 2006 8:37 am Post subject: |
|
|
razer wrote: | Merci à tous. Sous debian, la solution se trouve dans "/etc/udev/rules.d/z25_persistent-net.rules" | Alors je ne sais pas comment fonctionne debian avec udev mais normalement les fichiers ont une priorité inverse à leur nombre. Il te suffisait donc de créer un fichier de règles udev 10_whatever.rules et d'y coller tes propres règles. Enfin c'est juste pour préciser et éviter l'écrasement de ta conf lors d'une mise à jour d'udev (une nouvelle fois, je ne sais pas comment fonctionne debian à ce niveau).
Enjoy ! _________________ La connaissance s'accroît quand on la partage.
JCB |
|
Back to top |
|
|
man in the hill Veteran
Joined: 15 Dec 2005 Posts: 1552 Location: Madinina
|
Posted: Mon Oct 23, 2006 10:44 am Post subject: |
|
|
razer wrote: | Merci à tous. Sous debian, la solution se trouve dans "/etc/udev/rules.d/z25_persistent-net.rules"
Code: | # PCI device 0x10ec:0x8029 (ne2k-pci)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:50:bf:11:4c:6e", NAME="eth2
"
# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:00:21:ee:64:2c", NAME="eth1
"
# PCI device 0x10b7:0x9200 (3c59x)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:01:02:96:df:1a", NAME="eth0
" |
|
Ce n'est pas ATTR{address}=="mac_adress" ? avec S ou sans S ? _________________ Get Up and Go ! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|