This program test the device driver for ethernet ISA card based on NE2000. Much of device driver is a port from Donald Becker linux device driver. - Author:
- Pinto de Castro(sirpdc@gmail.com)
- Guidelines to test the device drive and the isa ethernet board:
- Install your NE2000 clone on ISA bus and run the "typical" DOS program to configure it on "jumpermode" with fixed IOBASE address, DMA and IRQ.
- Install allowio and the porttalk in order to be able to call inb and outb on Win2K
- Install cygwin (with gcc and make )
- Install Ethereal to "see what's going on" .
- Launch cygwin and run the ./run script on the project root. Don't forget to update the script with the parameter that match the io base address of your NE2000 clone card configured on step 1(typical is the arg 0 to 0x300 but check it!)
- Attention:
- Because the ./run scrip call the alloio.exe during the execution of the program it gives the idea that the program has ended, but that is not true. Even if the prompt apears try inserting 'n' continually until it "entry" again in the program. Use ps to see if the program continue run.
- run "ping ip" on "DOS" command prompt. Choose a ip inexistent on ARP cache ( to see the content of your arp table run "arp -a"), this way the PC generate a ARP request and broadcast it. If your card is working properly it will receive the packet.
- Attention:
- On PC do not use outsb or insb!!!!! (PC Crash!!!)
Test Program response to Ping.
References: Donald Becker NE2000 linux drivers
AN937 -"Loopback Diagnostics Using DP8390".
AN874 -"Writing Drivers for the DP8390".
Changes:
06/12/2005
-> uIP TCP/IP stack integrated
31/12/2005
-> Added test program to device driver of NE2000.
28/12/2005
-> Merge the AVR firmware and PC software
-> added MAC Address definition
-> added nic_mem_test to check NIC local mem!(usefull to set the bound for
ring buffer)
-> started ei_receive
27/12/2005
-> DETECTED A IMPORTANT ASPECT: you must not supply the 16-bits slot!
-> You must pay attention to the data size of ATMEGA8(you should not
exceed's 900 bytes(safety marting to STACK and c' var's)
26/12/2005
-> DETECTED A IMPORTANT ASPECT:
ON PC, THE ne_probe MUST BE CALLED First(if you don't call, PC crash's)
-> Reviewd functions
26/12/2005
-> Secesseful transmit a frame!!!!!!!!!!!!
-> added NIC8390_init
-> added ei_start_xmit(for transmiting frames!)
26/12/2005
-> debug messages reviewed
-> fixed usleep equivalent on ATMEGA8
-> fixed PC2NIC bug(the only need to be even in word mode access)
-> renamed HardReset to NICReset
25/12/2005
-> added LoopBack function
-> added HardReset
24/12/2005
-> Dropped Windows support, because we can use cygwin. Only Linux and AVR
21/11/2005
-> Added suport to Borland C++(file must be compiled as c++ file and
included inport/outport)
12/10/2005
-> BIG BUG on outb macro(swaping arg's)!!!!
8/10/2005
-> Mini test, just send and receive data from the card registers
Generated on Fri Jan 6 22:23:19 2006 for EtherProgs by
1.4.5