Article title: FAQs about Nic settings in Linux (3 ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
6) You can also obtain the ne2k diagnostic program from Don's ftp site (also mentioned in howto) to see if you can use it to detect your Nic after you start Linux. Use the "-p 0xNNN" option to tell it where to find your Nic. (By default, only 0x300 is detected, which is different from that detected at startup. No other addresses are detected .) The output when the NIC is found is as follows:
Your registration value may be different from the PROM value. Note: For a 16-bit Nic, all the PROM values are doubled, and the Ethernet NIC address (00: 00: c0: b0: 05: 65) appears on the first line, the 0x57 identifier after doubling appears at the end of the PROM.
When no Nic is installed at 0x300, the output is as follows:
The 0xff value is returned when an empty I/O port is read. If there are other hardware in the detection area, you can see some non-0xff values.
7) after running the provided DOS driver or configuration program, start the floppy disk (through loadlin) from DOS and enter Linux. This may perform some extra (non-standard) "magic" to initialize the NIC.
8) try Russ Nelson's ne2000.com package driver to see if it can see your Nic-if it doesn't work, it's not a good thing. For example:
A:> ne2000 0x60 10 0x300
The parameters used are software interrupt vectors, hardware IRQ, and I/O addresses. You can find it in pktdrv11.zip of any msdosfile-the current version is later than 11.
Solution: The most common cause is that the configured PCI machine is not mapped to the ISA memory device. Therefore, you read the pc ram (all of which are 0xff values), rather than the RAM on the NIC that stores the received data packets.
Another typical problem that is easy to solve is board conflicts. There are caches or "shadow ROM" in this area, or your ISA bus runs at a speed higher than 8 Mhz. The number of memory failures on the Ethernet card is also surprising, so if your Ethernet card has a diagnostic program, run it.
Problem: SMC EtherEZ does not work in non-shared memory (PIO) mode.
Cause: earlier Ultra drivers only support operations in shared memory mode.
Solution: drivers attached to the kernel version 2.0 and later support programmable I/O mode operations. Upgrade to v2.0 or later.
Problem: The old wd8003 or wd8013 with jumper always gets the wrong IRQ.
Cause: The old wd8003 Nic or jumper wd8013 compatible card does not have a driver to read the configured irq eeprom from it. If the driver cannot read IRQ, try to use auto-IRQ to find it. If auto-IRQ returns 0, the driver assigns IRQ 5 to the 8-bit Nic or IRQ 16 to the 16-bit Nic.
Solution: Make the auto-IRQ Code invalid and tell the kernel what IRQ you have jumped to in your module configuration file (the startup parameter is used for the built-in driver.
Problem: The SMC Ultra Nic is detected as wd8013, but the IRQ and shared memory address are incorrect.
Cause: The Ultra Nic looks very similar to wd8013. if there is no Ultra driver in the kernel, the wd driver will mistake ultra as wd8013. Ultra detection is prior to wd, so generally there is no problem. The IRQ and memory address stored in the EEPROM are different from those saved in wd8013, so the reported value is false.
Solution: only the required driver is retained to recompile the kernel. If you use both wd and ultra Nic on the same machine and use modules, load the ultra module first.
6 3Com Nic problems
Problem: irq n is selected for 3c503, but irq n is also required for other devices. (Such as the cd rom driver and modem .) Can this problem be solved without being compiled into the kernel?
Solution: The 3c503 driver detects idle IRQ lines in the order of {5, 9/2, 3, 4} and finds an unused IRQ. When the NIC is configured with ifconfig, choose to interrupt IRQ.
If you are using a modular driver, you can use the module parameters to set various situations, including the value of IRQ interruption.
The following statement selects IRQ9, base address 0x300, and if_port #1 (external transceiver ).
Io = 0x300 irq = 9 xcvr = 1
If the driver is compiled into the kernel, you can also set the same value by passing parameters at startup through LILO.
LILO: linux ether = 9,0x300,0, 1, eth0
The following statement selects IRQ3, the detection base address, and the default if_port #0 (external transceiver ).
LILO: linux ether = 3, 0, 0, eth0
Problem: 3c503: configured interrupt X invalid, will use autoIRQ.
Cause: 3c503 NICs can only use one of the interrupt IRQ {5, 2/9, 3, 4} (these are the middle line that can be connected by the NIC .) If you use an IRQ value that is not in it, you will receive the above prompt. Generally, you do not need to specify the interrupt value for 3c503. 3c503 uses autoIRQ when configuring ifconfig, and selects one from IRQ {5, 2/9, 3, 4.
Solution: Use the valid IRQ value or do not specify IRQ to enable autoIRQ.
Problem: The 3c503 driver cannot use the AUI (coarse Ethernet) port. How can I select the AUI port instead of the default Ethernet port?
Solution: The 3c503 AUI port can be selected when the built-in driver is started, and the modular driver can be selected when the module is inserted. This option will overwrite the low bit of the unused dev-> rmem_start variable, so the startup parameter is:
LILO: linux ether = 0, 0, 1, eth0
The internal driver built in the kernel works.
To specify the AUI port when loading the module, you only need to append xcvr = 1 to the line that the module option contains your I/O and IRQ values ..
7. non-specific Nic FAQs
Plug-and-play Ethernet card for Linux and ISA
To achieve the best effect (with the least problem), we recommend that you use a program (usually a DOS program) with the network adapter to cancel the PnP mechanism and set a fixed I/O address and IRQ for the network adapter. Make sure that the I/O address you are using is detected by the driver at startup. if you are using a module, use the io = Option in/etc/conf. modules to provide the address. You can also go to BIOS/CMOS settings and change IRQ from PnP to Legacy-ISA (if your computer has this option ).
Note that running a DOS-based configuration program generally does not require DOS installation. You can start it with a DOS floppy disk, and then run them on the provided floppy disk. You can freely download OpenDOS and FreeDOS.
If you need to use PnP to be compatible with other operating systems, you have to use the Linux isapnptools package to configure the NIC each time you start. You also need to determine whether the I/O address selected for the NIC is detected by the driver, or use the io = option to provide the I/O address.
No Ethernet card is detected at startup
The common cause of this problem is that the kernel used does not support a specific Nic. For a modular kernel, this generally indicates that the required module has not been loaded, or you need to use the module option to specify its I/O address.
If you are using a modular kernel, try to use the configuration tool of this release to select the module used by the NIC, just as most Linux distributions are installed. A good idea for an ISA Nic is to determine the I/O address of the NIC. if the configuration tool requires an option, add it as an option (such as io = 0x340. If no configuration tool is available, you need to add the correct module name (and options) in/etc/conf. modules-read man modprobe for more details.
If you are using the pre-compiled kernel in the release suite, check the documentation to determine which kernel you are installing and whether it supports your Nic. If not, either try to find a kernel that supports your Nic or generate a kernel by yourself.
It is a smart idea to keep only the required driver to generate your own kernel, because it will reduce the kernel size (reserve valuable RAM for the application !), Reduces the number of device detection requests that disturb sensitive hardware. Generating a kernel is not as complicated as it sounds. You only need to answer some questions about which drivers you want, such as yes or no. Other things are done by the program.
Another major reason is that other devices occupy part of the I/O space required by the NIC. Most NICs occupy 16 or 32 bytes in the I/O space. If your Nic is at 0x300 and requires 32 bytes, the driver requires 0x300-0x31f. If a driver of another device registers even one of the ports, the driver does not detect the address, but quietly enters the next detection address. Therefore, after startup, run cat/proc/ioports to determine that all the I/O space required by the NIC is empty.
Another problem is that the I/O address that the Nic jumps to is not the default detection address. The detection address list of each driver can be easily found in the text comment in the driver source code. Even if the I/O address set by the network adapter is not in the detection address list, you can use the ether = command at startup (
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service