📄 cs89x0.txt
字号:
4.1 COMPILING THE DRIVER AS A LOADABLE MODULETo compile the driver into a loadable module, use the following command (single command line, without quotes):"gcc -D__KERNEL__ -I/usr/src/linux/include -I/usr/src/linux/net/inet -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DMODULE -DCONFIG_MODVERSIONS -c cs89x0.c"4.2 COMPILING THE DRIVER TO SUPPORT MEMORY MODESupport for memory mode was not carried over into the 2.3 series kernels.4.3 COMPILING THE DRIVER TO SUPPORT Rx DMAThe compile-time optionality for DMA was removed in the 2.3 kernelseries. DMA support is now unconditionally part of the driver. It isenabled by the 'use_dma=1' module option.4.4 COMPILING THE DRIVER INTO THE KERNELIf your Linux distribution already has support for the cs89x0 driverthen simply copy the source file to the /usr/src/linux/drivers/netdirectory to replace the original ones and run the make utility torebuild the kernel. See Step 3 for rebuilding the kernel.If your Linux does not include the cs89x0 driver, you need to edit three configuration files, copy the source file to the /usr/src/linux/drivers/netdirectory, and then run the make utility to rebuild the kernel.1. Edit the following configuration files by adding the statements asindicated. (When possible, try to locate the added text to the section of thefile containing similar statements).a.) In /usr/src/linux/drivers/net/Config.in, add:tristate 'CS89x0 support' CONFIG_CS89x0Example: if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then tristate 'ICL EtherTeam 16i/32 support' CONFIG_ETH16I fi tristate 'CS89x0 support' CONFIG_CS89x0 tristate 'NE2000/NE1000 support' CONFIG_NE2000 if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then tristate 'NI5210 support' CONFIG_NI52b.) In /usr/src/linux/drivers/net/Makefile, add the following lines: ifeq ($(CONFIG_CS89x0),y)L_OBJS += cs89x0.oelse ifeq ($(CONFIG_CS89x0),m) M_OBJS += cs89x0.o endifendifc.) In /linux/drivers/net/Space.c file, add the line:extern int cs89x0_probe(struct device *dev);Example: extern int ultra_probe(struct device *dev); extern int wd_probe(struct device *dev); extern int el2_probe(struct device *dev); extern int cs89x0_probe(struct device *dev); extern int ne_probe(struct device *dev); extern int hp_probe(struct device *dev); extern int hp_plus_probe(struct device *dev);Also add: #ifdef CONFIG_CS89x0 { cs89x0_probe,0 }, #endif2.) Copy the driver source files (cs89x0.c and cs89x0.h) into the /usr/src/linux/drivers/net directory.3.) Go to /usr/src/linux directory and run 'make config' followed by 'make dep' and finally 'make' (or make bzImage) to rebuild the kernel. 4.) Use the DOS 'setup' utility to disable plug and play on the NIC.5.0 TESTING AND TROUBLESHOOTING===============================================================================5.1 KNOWN DEFECTS and LIMITATIONSRefer to the RELEASE.TXT file distributed as part of this archive for a list of known defects, driver limitations, and work arounds.5.2 TESTING THE ADAPTEROnce the adapter has been installed and configured, the diagnostic option of the CS8900/20 Setup Utility can be used to test the functionality of the adapter and its network connection. Use the diagnostics 'Self Test' option totest the functionality of the adapter with the hardware configuration you haveassigned. You can use the diagnostics 'Network Test' to test the ability of theadapter to communicate across the Ethernet with another PC equipped with a CS8900/20-based adapter card (it must also be running the CS8900/20 Setup Utility). NOTE: The Setup Utility's diagnostics are designed to run in a DOS-only operating system environment. DO NOT run the diagnostics from a DOS or command prompt session under Windows 95, Windows NT, OS/2, or other operating system.To run the diagnostics tests on the CS8900/20 adapter: 1.) Boot DOS on the PC and start the CS8900/20 Setup Utility. 2.) The adapter's current configuration is displayed. Hit the ENTER key to get to the main menu. 4.) Select 'Diagnostics' (ALT-G) from the main menu. * Select 'Self-Test' to test the adapter's basic functionality. * Select 'Network Test' to test the network connection and cabling.5.2.1 DIAGNOSTIC SELF-TESTThe diagnostic self-test checks the adapter's basic functionality as well as its ability to communicate across the ISA bus based on the system resources assigned during hardware configuration. The following tests are performed: * IO Register Read/Write Test The IO Register Read/Write test insures that the CS8900/20 can be accessed in IO mode, and that the IO base address is correct. * Shared Memory Test The Shared Memory test insures the CS8900/20 can be accessed in memory mode and that the range of memory addresses assigned does not conflict with other devices in the system. * Interrupt Test The Interrupt test insures there are no conflicts with the assigned IRQ signal. * EEPROM Test The EEPROM test insures the EEPROM can be read. * Chip RAM Test The Chip RAM test insures the 4K of memory internal to the CS8900/20 is working properly. * Internal Loop-back Test The Internal Loop Back test insures the adapter's transmitter and receiver are operating properly. If this test fails, make sure the adapter's cable is connected to the network (check for LED activity for example). * Boot PROM Test The Boot PROM test insures the Boot PROM is present, and can be read. Failure indicates the Boot PROM was not successfully read due to a hardware problem or due to a conflicts on the Boot PROM address assignment. (Test only applies if the adapter is configured to use the Boot PROM option.)Failure of a test item indicates a possible system resource conflict with another device on the ISA bus. In this case, you should use the Manual Setup option to reconfigure the adapter by selecting a different value for the systemresource that failed.5.2.2 DIAGNOSTIC NETWORK TESTThe Diagnostic Network Test verifies a working network connection by transferring data between two CS8900/20 adapters installed in different PCs on the same network. (Note: the diagnostic network test should not be run between two nodes across a router.) This test requires that each of the two PCs have a CS8900/20-based adapterinstalled and have the CS8900/20 Setup Utility running. The first PC is configured as a Responder and the other PC is configured as an Initiator. Once the Initiator is started, it sends data frames to the Responder which returns the frames to the Initiator.The total number of frames received and transmitted are displayed on the Initiator's display, along with a count of the number of frames received and transmitted OK or in error. The test can be terminated anytime by the user at either PC.To setup the Diagnostic Network Test: 1.) Select a PC with a CS8900/20-based adapter and a known working network connection to act as the Responder. Run the CS8900/20 Setup Utility and select 'Diagnostics -> Network Test -> Responder' from the main menu. Hit ENTER to start the Responder. 2.) Return to the PC with the CS8900/20-based adapter you want to test and start the CS8900/20 Setup Utility. 3.) From the main menu, Select 'Diagnostic -> Network Test -> Initiator'. Hit ENTER to start the test. You may stop the test on the Initiator at any time while allowing the Responderto continue running. In this manner, you can move to additional PCs and test them by starting the Initiator on another PC without having to stop/start the Responder. 5.3 USING THE ADAPTER'S LEDsThe 2 and 3-media adapters have two LEDs visible on the back end of the board located near the 10Base-T connector. Link Integrity LED: A "steady" ON of the green LED indicates a valid 10Base-T connection. (Only applies to 10Base-T. The green LED has no significance fora 10Base-2 or AUI connection.)TX/RX LED: The yellow LED lights briefly each time the adapter transmits or receives data. (The yellow LED will appear to "flicker" on a typical network.)5.4 RESOLVING I/O CONFLICTSAn IO conflict occurs when two or more adapter use the same ISA resource (IO address, memory address or IRQ). You can usually detect an IO conflict in one of four ways after installing and or configuring the CS8900/20-based adapter: 1.) The system does not boot properly (or at all). 2.) The driver can not communicate with the adapter, reporting an "Adapter not found" error message. 3.) You cannot connect to the network or the driver will not load. 4.) If you have configured the adapter to run in memory mode but the driver reports it is using IO mode when loading, this is an indication of a memory address conflict.If an IO conflict occurs, run the CS8900/20 Setup Utility and perform a diagnostic self-test. Normally, the ISA resource in conflict will fail the self-test. If so, reconfigure the adapter selecting another choice for the resource in conflict. Run the diagnostics again to check for further IO conflicts.In some cases, such as when the PC will not boot, it may be necessary to removethe adapter and reconfigure it by installing it in another PC to run the CS8900/20 Setup Utility. Once reinstalled in the target system, run the diagnostics self-test to ensure the new configuration is free of conflicts before loading the driver again.When manually configuring the adapter, keep in mind the typical ISA system resource usage as indicated in the tables below.I/O Address Device IRQ Device----------- -------- --- -------- 200-20F Game I/O adapter 3 COM2, Bus Mouse 230-23F Bus Mouse 4 COM1 270-27F LPT3: third parallel port 5 LPT2 2F0-2FF COM2: second serial port 6 Floppy Disk controller 320-32F Fixed disk controller 7 LPT1 8 Real-time Clock 9 EGA/VGA display adapter 12 Mouse (PS/2) Memory Address Device 13 Math Coprocessor-------------- --------------------- 14 Hard Disk controllerA000-BFFF EGA Graphics AdpaterA000-C7FF VGA Graphics AdpaterB000-BFFF Mono Graphics AdapterB800-BFFF Color Graphics AdapterE000-FFFF AT BIOS6.0 TECHNICAL SUPPORT===============================================================================6.1 CONTACTING CIRRUS LOGIC'S TECHNICAL SUPPORTCirrus Logic's CS89XX Technical Application Support can be reached at:Telephone :(800) 888-5016 (from inside U.S. and Canada) :(512) 442-7555 (from outside the U.S. and Canada)Fax :(512) 912-3871Email :ethernet@crystal.cirrus.comWWW :http://www.cirrus.com6.2 INFORMATION REQUIRED BEFORE CONTACTING TECHNICAL SUPPORTBefore contacting Cirrus Logic for technical support, be prepared to provide as Much of the following information as possible. 1.) Adapter type (CRD8900, CDB8900, CDB8920, etc.)2.) Adapter configuration * IO Base, Memory Base, IO or memory mode enabled, IRQ, DMA channel * Plug and Play enabled/disabled (CS8920-based adapters only) * Configured for media auto-detect or specific media type (which type). 3.) PC System's Configuration * Plug and Play system (yes/no) * BIOS (make and version) * System make and model * CPU (type and speed) * System RAM * SCSI Adapter4.) Software * CS89XX driver and version * Your network operating system and version * Your system's OS version * Version of all protocol support files5.) Any Error Message displayed.6.3 OBTAINING THE LATEST DRIVER VERSIONYou can obtain the latest CS89XX drivers and support software from Cirrus Logic's Web site. You can also contact Cirrus Logic's Technical Support (email:ethernet@crystal.cirrus.com) and request that you be registered for automatic software-update notification.Cirrus Logic maintains a web page at http://www.cirrus.com with thethe latest drivers and technical publications.6.4 Current maintainerIn February 2000 the maintenance of this driver was assumed by AndrewMorton <andrewm@uow.edu.au>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -