Home » Archimedes archive » Acorn User » AU 1995-05.adf » !Internet_StarterPak » !TCPIP/TCPIP_Doc/Notes/Ethernet

!TCPIP/TCPIP_Doc/Notes/Ethernet

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1995-05.adf » !Internet_StarterPak
Filename: !TCPIP/TCPIP_Doc/Notes/Ethernet
Read OK:
File size: 0862 bytes
Load address: 0000
Exec address: 0000
File contents
Setting up for Ethernet Use
---------------------------

Credits:

The DCI Driver module is a very slightly modified version of that
included with !NetLite, and presumably written by, and copyright
Jonathan Naylor.

The Ethernet driver code in !TCPIP is also based upon that in !Netlite.

So this means, give credit to Jonathan Naylor, but blame me if it doesnt
work - I think ;-)

As I dont actually have an Ethernet or even an Ethernet card to try this
out with, beyond checking that it seems to startup OK, this has not been
tested at all in actual use, as all I can do is pray that it will work,
so good luck ;-)

-------

To use Ethernet with !TCPIP, you will need to do two things:

1. Add a suitable attach command to the !TCPIPUser.Config file along
   with required route commands.

The attach command for ethernet is:

attach ether <unit number> <unit name> <mtu>

for eg:

attach ether 0 et0 1500

The unit name is tye name used in !TCPIP, and not the name that might
actually be used by the specific Ethernet card. See below about this.


2. Edit the file !TCPIP.EtherInit which contains system commands to
   load up !TCPIP's DCI driver.

Prior to loading !TCPIP's DCI driver, the system variable Inet$EtherType
*MUST* be set to the generic id name for your ethernet card, for eg
"ea", "et" etc.

This DCI driver is a little primative in that I think it can only cope
with one card. Also, you should not have any other DCI drivers for
Acorn's TCPIP or AUN loaded. Also it wont work if either of Acorn's
internet modules are loaded, or at yhe very least, the internet modules
wont work as both !TCPIP's DCI driver and the Acorn module will both
want IP and ARP/RARP frames.

If your Ethernet cards driver does not set the Inet$EtherType variable,
then you should set it.

Once set, then the DCIDriver can be loaded, and !TCPIP can be started.

This is not a complex as it looks. basically edit the !TCPIP.EtherInit
file to your needs and all should be OK. I would appreciate feed back of
Etherinit files for various ethernet cards if this seems appropriate.

Apparently this code does work with !NetLite, so it should work in
!TCPIP.
00000000  53 65 74 74 69 6e 67 20  75 70 20 66 6f 72 20 45  |Setting up for E|
00000010  74 68 65 72 6e 65 74 20  55 73 65 0a 2d 2d 2d 2d  |thernet Use.----|
00000020  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
00000030  2d 2d 2d 2d 2d 2d 2d 0a  0a 43 72 65 64 69 74 73  |-------..Credits|
00000040  3a 0a 0a 54 68 65 20 44  43 49 20 44 72 69 76 65  |:..The DCI Drive|
00000050  72 20 6d 6f 64 75 6c 65  20 69 73 20 61 20 76 65  |r module is a ve|
00000060  72 79 20 73 6c 69 67 68  74 6c 79 20 6d 6f 64 69  |ry slightly modi|
00000070  66 69 65 64 20 76 65 72  73 69 6f 6e 20 6f 66 20  |fied version of |
00000080  74 68 61 74 0a 69 6e 63  6c 75 64 65 64 20 77 69  |that.included wi|
00000090  74 68 20 21 4e 65 74 4c  69 74 65 2c 20 61 6e 64  |th !NetLite, and|
000000a0  20 70 72 65 73 75 6d 61  62 6c 79 20 77 72 69 74  | presumably writ|
000000b0  74 65 6e 20 62 79 2c 20  61 6e 64 20 63 6f 70 79  |ten by, and copy|
000000c0  72 69 67 68 74 0a 4a 6f  6e 61 74 68 61 6e 20 4e  |right.Jonathan N|
000000d0  61 79 6c 6f 72 2e 0a 0a  54 68 65 20 45 74 68 65  |aylor...The Ethe|
000000e0  72 6e 65 74 20 64 72 69  76 65 72 20 63 6f 64 65  |rnet driver code|
000000f0  20 69 6e 20 21 54 43 50  49 50 20 69 73 20 61 6c  | in !TCPIP is al|
00000100  73 6f 20 62 61 73 65 64  20 75 70 6f 6e 20 74 68  |so based upon th|
00000110  61 74 20 69 6e 20 21 4e  65 74 6c 69 74 65 2e 0a  |at in !Netlite..|
00000120  0a 53 6f 20 74 68 69 73  20 6d 65 61 6e 73 2c 20  |.So this means, |
00000130  67 69 76 65 20 63 72 65  64 69 74 20 74 6f 20 4a  |give credit to J|
00000140  6f 6e 61 74 68 61 6e 20  4e 61 79 6c 6f 72 2c 20  |onathan Naylor, |
00000150  62 75 74 20 62 6c 61 6d  65 20 6d 65 20 69 66 20  |but blame me if |
00000160  69 74 20 64 6f 65 73 6e  74 0a 77 6f 72 6b 20 2d  |it doesnt.work -|
00000170  20 49 20 74 68 69 6e 6b  20 3b 2d 29 0a 0a 41 73  | I think ;-)..As|
00000180  20 49 20 64 6f 6e 74 20  61 63 74 75 61 6c 6c 79  | I dont actually|
00000190  20 68 61 76 65 20 61 6e  20 45 74 68 65 72 6e 65  | have an Etherne|
000001a0  74 20 6f 72 20 65 76 65  6e 20 61 6e 20 45 74 68  |t or even an Eth|
000001b0  65 72 6e 65 74 20 63 61  72 64 20 74 6f 20 74 72  |ernet card to tr|
000001c0  79 20 74 68 69 73 0a 6f  75 74 20 77 69 74 68 2c  |y this.out with,|
000001d0  20 62 65 79 6f 6e 64 20  63 68 65 63 6b 69 6e 67  | beyond checking|
000001e0  20 74 68 61 74 20 69 74  20 73 65 65 6d 73 20 74  | that it seems t|
000001f0  6f 20 73 74 61 72 74 75  70 20 4f 4b 2c 20 74 68  |o startup OK, th|
00000200  69 73 20 68 61 73 20 6e  6f 74 20 62 65 65 6e 0a  |is has not been.|
00000210  74 65 73 74 65 64 20 61  74 20 61 6c 6c 20 69 6e  |tested at all in|
00000220  20 61 63 74 75 61 6c 20  75 73 65 2c 20 61 73 20  | actual use, as |
00000230  61 6c 6c 20 49 20 63 61  6e 20 64 6f 20 69 73 20  |all I can do is |
00000240  70 72 61 79 20 74 68 61  74 20 69 74 20 77 69 6c  |pray that it wil|
00000250  6c 20 77 6f 72 6b 2c 0a  73 6f 20 67 6f 6f 64 20  |l work,.so good |
00000260  6c 75 63 6b 20 3b 2d 29  0a 0a 2d 2d 2d 2d 2d 2d  |luck ;-)..------|
00000270  2d 0a 0a 54 6f 20 75 73  65 20 45 74 68 65 72 6e  |-..To use Ethern|
00000280  65 74 20 77 69 74 68 20  21 54 43 50 49 50 2c 20  |et with !TCPIP, |
00000290  79 6f 75 20 77 69 6c 6c  20 6e 65 65 64 20 74 6f  |you will need to|
000002a0  20 64 6f 20 74 77 6f 20  74 68 69 6e 67 73 3a 0a  | do two things:.|
000002b0  0a 31 2e 20 41 64 64 20  61 20 73 75 69 74 61 62  |.1. Add a suitab|
000002c0  6c 65 20 61 74 74 61 63  68 20 63 6f 6d 6d 61 6e  |le attach comman|
000002d0  64 20 74 6f 20 74 68 65  20 21 54 43 50 49 50 55  |d to the !TCPIPU|
000002e0  73 65 72 2e 43 6f 6e 66  69 67 20 66 69 6c 65 20  |ser.Config file |
000002f0  61 6c 6f 6e 67 0a 20 20  20 77 69 74 68 20 72 65  |along.   with re|
00000300  71 75 69 72 65 64 20 72  6f 75 74 65 20 63 6f 6d  |quired route com|
00000310  6d 61 6e 64 73 2e 0a 0a  54 68 65 20 61 74 74 61  |mands...The atta|
00000320  63 68 20 63 6f 6d 6d 61  6e 64 20 66 6f 72 20 65  |ch command for e|
00000330  74 68 65 72 6e 65 74 20  69 73 3a 0a 0a 61 74 74  |thernet is:..att|
00000340  61 63 68 20 65 74 68 65  72 20 3c 75 6e 69 74 20  |ach ether <unit |
00000350  6e 75 6d 62 65 72 3e 20  3c 75 6e 69 74 20 6e 61  |number> <unit na|
00000360  6d 65 3e 20 3c 6d 74 75  3e 0a 0a 66 6f 72 20 65  |me> <mtu>..for e|
00000370  67 3a 0a 0a 61 74 74 61  63 68 20 65 74 68 65 72  |g:..attach ether|
00000380  20 30 20 65 74 30 20 31  35 30 30 0a 0a 54 68 65  | 0 et0 1500..The|
00000390  20 75 6e 69 74 20 6e 61  6d 65 20 69 73 20 74 79  | unit name is ty|
000003a0  65 20 6e 61 6d 65 20 75  73 65 64 20 69 6e 20 21  |e name used in !|
000003b0  54 43 50 49 50 2c 20 61  6e 64 20 6e 6f 74 20 74  |TCPIP, and not t|
000003c0  68 65 20 6e 61 6d 65 20  74 68 61 74 20 6d 69 67  |he name that mig|
000003d0  68 74 0a 61 63 74 75 61  6c 6c 79 20 62 65 20 75  |ht.actually be u|
000003e0  73 65 64 20 62 79 20 74  68 65 20 73 70 65 63 69  |sed by the speci|
000003f0  66 69 63 20 45 74 68 65  72 6e 65 74 20 63 61 72  |fic Ethernet car|
00000400  64 2e 20 53 65 65 20 62  65 6c 6f 77 20 61 62 6f  |d. See below abo|
00000410  75 74 20 74 68 69 73 2e  0a 0a 0a 32 2e 20 45 64  |ut this....2. Ed|
00000420  69 74 20 74 68 65 20 66  69 6c 65 20 21 54 43 50  |it the file !TCP|
00000430  49 50 2e 45 74 68 65 72  49 6e 69 74 20 77 68 69  |IP.EtherInit whi|
00000440  63 68 20 63 6f 6e 74 61  69 6e 73 20 73 79 73 74  |ch contains syst|
00000450  65 6d 20 63 6f 6d 6d 61  6e 64 73 20 74 6f 0a 20  |em commands to. |
00000460  20 20 6c 6f 61 64 20 75  70 20 21 54 43 50 49 50  |  load up !TCPIP|
00000470  27 73 20 44 43 49 20 64  72 69 76 65 72 2e 0a 0a  |'s DCI driver...|
00000480  50 72 69 6f 72 20 74 6f  20 6c 6f 61 64 69 6e 67  |Prior to loading|
00000490  20 21 54 43 50 49 50 27  73 20 44 43 49 20 64 72  | !TCPIP's DCI dr|
000004a0  69 76 65 72 2c 20 74 68  65 20 73 79 73 74 65 6d  |iver, the system|
000004b0  20 76 61 72 69 61 62 6c  65 20 49 6e 65 74 24 45  | variable Inet$E|
000004c0  74 68 65 72 54 79 70 65  0a 2a 4d 55 53 54 2a 20  |therType.*MUST* |
000004d0  62 65 20 73 65 74 20 74  6f 20 74 68 65 20 67 65  |be set to the ge|
000004e0  6e 65 72 69 63 20 69 64  20 6e 61 6d 65 20 66 6f  |neric id name fo|
000004f0  72 20 79 6f 75 72 20 65  74 68 65 72 6e 65 74 20  |r your ethernet |
00000500  63 61 72 64 2c 20 66 6f  72 20 65 67 0a 22 65 61  |card, for eg."ea|
00000510  22 2c 20 22 65 74 22 20  65 74 63 2e 0a 0a 54 68  |", "et" etc...Th|
00000520  69 73 20 44 43 49 20 64  72 69 76 65 72 20 69 73  |is DCI driver is|
00000530  20 61 20 6c 69 74 74 6c  65 20 70 72 69 6d 61 74  | a little primat|
00000540  69 76 65 20 69 6e 20 74  68 61 74 20 49 20 74 68  |ive in that I th|
00000550  69 6e 6b 20 69 74 20 63  61 6e 20 6f 6e 6c 79 20  |ink it can only |
00000560  63 6f 70 65 0a 77 69 74  68 20 6f 6e 65 20 63 61  |cope.with one ca|
00000570  72 64 2e 20 41 6c 73 6f  2c 20 79 6f 75 20 73 68  |rd. Also, you sh|
00000580  6f 75 6c 64 20 6e 6f 74  20 68 61 76 65 20 61 6e  |ould not have an|
00000590  79 20 6f 74 68 65 72 20  44 43 49 20 64 72 69 76  |y other DCI driv|
000005a0  65 72 73 20 66 6f 72 0a  41 63 6f 72 6e 27 73 20  |ers for.Acorn's |
000005b0  54 43 50 49 50 20 6f 72  20 41 55 4e 20 6c 6f 61  |TCPIP or AUN loa|
000005c0  64 65 64 2e 20 41 6c 73  6f 20 69 74 20 77 6f 6e  |ded. Also it won|
000005d0  74 20 77 6f 72 6b 20 69  66 20 65 69 74 68 65 72  |t work if either|
000005e0  20 6f 66 20 41 63 6f 72  6e 27 73 0a 69 6e 74 65  | of Acorn's.inte|
000005f0  72 6e 65 74 20 6d 6f 64  75 6c 65 73 20 61 72 65  |rnet modules are|
00000600  20 6c 6f 61 64 65 64 2c  20 6f 72 20 61 74 20 79  | loaded, or at y|
00000610  68 65 20 76 65 72 79 20  6c 65 61 73 74 2c 20 74  |he very least, t|
00000620  68 65 20 69 6e 74 65 72  6e 65 74 20 6d 6f 64 75  |he internet modu|
00000630  6c 65 73 0a 77 6f 6e 74  20 77 6f 72 6b 20 61 73  |les.wont work as|
00000640  20 62 6f 74 68 20 21 54  43 50 49 50 27 73 20 44  | both !TCPIP's D|
00000650  43 49 20 64 72 69 76 65  72 20 61 6e 64 20 74 68  |CI driver and th|
00000660  65 20 41 63 6f 72 6e 20  6d 6f 64 75 6c 65 20 77  |e Acorn module w|
00000670  69 6c 6c 20 62 6f 74 68  0a 77 61 6e 74 20 49 50  |ill both.want IP|
00000680  20 61 6e 64 20 41 52 50  2f 52 41 52 50 20 66 72  | and ARP/RARP fr|
00000690  61 6d 65 73 2e 0a 0a 49  66 20 79 6f 75 72 20 45  |ames...If your E|
000006a0  74 68 65 72 6e 65 74 20  63 61 72 64 73 20 64 72  |thernet cards dr|
000006b0  69 76 65 72 20 64 6f 65  73 20 6e 6f 74 20 73 65  |iver does not se|
000006c0  74 20 74 68 65 20 49 6e  65 74 24 45 74 68 65 72  |t the Inet$Ether|
000006d0  54 79 70 65 20 76 61 72  69 61 62 6c 65 2c 0a 74  |Type variable,.t|
000006e0  68 65 6e 20 79 6f 75 20  73 68 6f 75 6c 64 20 73  |hen you should s|
000006f0  65 74 20 69 74 2e 0a 0a  4f 6e 63 65 20 73 65 74  |et it...Once set|
00000700  2c 20 74 68 65 6e 20 74  68 65 20 44 43 49 44 72  |, then the DCIDr|
00000710  69 76 65 72 20 63 61 6e  20 62 65 20 6c 6f 61 64  |iver can be load|
00000720  65 64 2c 20 61 6e 64 20  21 54 43 50 49 50 20 63  |ed, and !TCPIP c|
00000730  61 6e 20 62 65 20 73 74  61 72 74 65 64 2e 0a 0a  |an be started...|
00000740  54 68 69 73 20 69 73 20  6e 6f 74 20 61 20 63 6f  |This is not a co|
00000750  6d 70 6c 65 78 20 61 73  20 69 74 20 6c 6f 6f 6b  |mplex as it look|
00000760  73 2e 20 62 61 73 69 63  61 6c 6c 79 20 65 64 69  |s. basically edi|
00000770  74 20 74 68 65 20 21 54  43 50 49 50 2e 45 74 68  |t the !TCPIP.Eth|
00000780  65 72 49 6e 69 74 0a 66  69 6c 65 20 74 6f 20 79  |erInit.file to y|
00000790  6f 75 72 20 6e 65 65 64  73 20 61 6e 64 20 61 6c  |our needs and al|
000007a0  6c 20 73 68 6f 75 6c 64  20 62 65 20 4f 4b 2e 20  |l should be OK. |
000007b0  49 20 77 6f 75 6c 64 20  61 70 70 72 65 63 69 61  |I would apprecia|
000007c0  74 65 20 66 65 65 64 20  62 61 63 6b 20 6f 66 0a  |te feed back of.|
000007d0  45 74 68 65 72 69 6e 69  74 20 66 69 6c 65 73 20  |Etherinit files |
000007e0  66 6f 72 20 76 61 72 69  6f 75 73 20 65 74 68 65  |for various ethe|
000007f0  72 6e 65 74 20 63 61 72  64 73 20 69 66 20 74 68  |rnet cards if th|
00000800  69 73 20 73 65 65 6d 73  20 61 70 70 72 6f 70 72  |is seems appropr|
00000810  69 61 74 65 2e 0a 0a 41  70 70 61 72 65 6e 74 6c  |iate...Apparentl|
00000820  79 20 74 68 69 73 20 63  6f 64 65 20 64 6f 65 73  |y this code does|
00000830  20 77 6f 72 6b 20 77 69  74 68 20 21 4e 65 74 4c  | work with !NetL|
00000840  69 74 65 2c 20 73 6f 20  69 74 20 73 68 6f 75 6c  |ite, so it shoul|
00000850  64 20 77 6f 72 6b 20 69  6e 0a 21 54 43 50 49 50  |d work in.!TCPIP|
00000860  2e 0a                                             |..|
00000862