hi,
I want to force the speed of the erternet card AMD pcnet32 at boot time.
# cat /proc/version
Linux version 2.4.18-27.8.0 ([EMAIL PROTECTED]) (gcc version
3.2 20020903 (Red Hat Linux 8.0 3.2-7)) #1 Fri Mar 14 06:45:49 EST 2003
the ethernet driver is configured as a module, the switch is configured as 100FD
# lsmod | grep pcnet32
pcnet32 17888 1
mii 2156 0 [pcnet32]
# modinfo pcnet32
filename: /lib/modules/2.4.18-27.8.0/kernel/drivers/net/pcnet32.o
description: "Driver for PCnet32 and PCnetPCI based ethercards"
author: "Thomas Bogendoerfer"
license: "GPL"
parm: debug int, description "pcnet32 debug level (0-6)"
parm: max_interrupt_work int, description "pcnet32 maximum events handled
per interrupt"
parm: rx_copybreak int, description "pcnet32 copy breakpoint for
copy-only-tiny-frames"
parm: tx_start_pt int, description "pcnet32 transmit start point (0-3)"
parm: pcnet32vlb int, description "pcnet32 Vesa local bus (VLB) support
(0/1)"
parm: options int array (min = 1, max = 8), description "pcnet32 initial
option setting(s) (0-15)"
parm: full_duplex int array (min = 1, max = 8), description "pcnet32 full
duplex setting(s) (1)"
in the modules.conf :
alias parport_lowlevel parport_pc
alias eth0 pcnet32
options pcnet32 full_duplex=1 options=14
alias scsi_hostadapter ips
alias scsi_hostadapter1 aic7xxx
alias usb-controller usb-uhci
with this parameters "options pcnet32 options=14" or "options pcnet32
full_duplex=1 options=14", at the restart, the link is down !! oups
in the file /usr/src/linux-2.4/drivers/net/pcnet32.c, I see :
/*
* table to translate option values from tulip
* to internal options
*/
static unsigned char options_mapping[] = {
PCNET32_PORT_ASEL, /* 0 Auto-select */
PCNET32_PORT_AUI, /* 1 BNC/AUI */
PCNET32_PORT_AUI, /* 2 AUI/BNC */
PCNET32_PORT_ASEL, /* 3 not supported */
PCNET32_PORT_10BT | PCNET32_PORT_FD, /* 4 10baseT-FD */
PCNET32_PORT_ASEL, /* 5 not supported */
PCNET32_PORT_ASEL, /* 6 not supported */
PCNET32_PORT_ASEL, /* 7 not supported */
PCNET32_PORT_ASEL, /* 8 not supported */
PCNET32_PORT_MII, /* 9 MII 10baseT */
PCNET32_PORT_MII | PCNET32_PORT_FD, /* 10 MII 10baseT-FD */
PCNET32_PORT_MII, /* 11 MII (autosel) */
PCNET32_PORT_10BT, /* 12 10BaseT */
PCNET32_PORT_MII | PCNET32_PORT_100, /* 13 MII 100BaseTx */
PCNET32_PORT_MII | PCNET32_PORT_100 | PCNET32_PORT_FD, /* 14 MII
100BaseTx-FD */
PCNET32_PORT_ASEL /* 15 not supported */
};
The link is ok with the command :
# mii-tool -F 100baseTx-FD eth0
to check it :
# mii-tool -v
eth0: 100 Mbit, full duplex, link ok
product info: National DP83840A rev 1
basic mode: 100 Mbit, full duplex
basic status: link ok
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
any ideas ? any ideas about the parameters in modules.conf ?
thanks in advance and sorry for my english
fabrice
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list