ewrk3.txt
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:2k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. The EtherWORKS 3  driver in this distribution is  designed to  work with all
  2. kernels   >  1.1.33   (approx)  and  includes  tools   in  the  'ewrk3tools'
  3. subdirectory   to  allow  set   up of   the   card,  similar  to  the  MSDOS
  4. 'NICSETUP.EXE' tools provided on  the DOS drivers  disk (type 'make' in that
  5. subdirectory to make the tools).
  6. The supported  cards are DE203,  DE204 and DE205.  All   other cards are NOT
  7. supported - refer to 'depca.c' for running the LANCE based network cards and
  8. 'de4x5.c'  for the  DIGITAL   Semiconductor PCI  chip  based  adapters  from
  9. Digital.
  10. The ability to load  this driver as a  loadable module has been included and
  11. used extensively  during the driver  development (to save those  long reboot
  12. sequences). To utilise this ability, you have to do 8 things:
  13.     0) have a copy of the loadable modules code installed on your system.
  14.     1) copy ewrk3.c from the  /linux/drivers/net directory to your favourite
  15.     temporary directory.
  16.     2) edit the  source code near  line 1898 to reflect  the I/O address and
  17.     IRQ you're using.
  18.     3) compile  ewrk3.c, but include -DMODULE in  the command line to ensure
  19.     that the correct bits are compiled (see end of source code).
  20.     4) if you are wanting to add a new  card, goto 5. Otherwise, recompile a
  21.     kernel with the ewrk3 configuration turned off and reboot.
  22.     5) insmod ewrk3.o
  23.           [Alan Cox: Changed this so you can insmod ewrk3.o irq=x io=y]
  24.     6) run the net startup bits for your new eth?? interface manually 
  25.     (usually /etc/rc.inet[12] at boot time). 
  26.     7) enjoy!
  27.     Note that autoprobing is not allowed in loadable modules - the system is
  28.     already up and running and you're messing with interrupts.
  29.     To unload a module, turn off the associated interface 
  30.     'ifconfig eth?? down' then 'rmmod ewrk3'.
  31. The performance we've  achieved so far  has been measured through the 'ttcp'
  32. tool   at 975kB/s.  This  measures  the  total  TCP  stack performance which
  33. includes the   card,  so don't  expect   to get   much nearer  the  1.25MB/s
  34. theoretical Ethernet rate.
  35. Enjoy!
  36. Dave