ltpc.txt 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. This is the ALPHA version of the ltpc driver.
  2. In order to use it, you will need at least version 1.3.3 of the
  3. netatalk package, and the Apple or Farallon LocalTalk PC card.
  4. There are a number of different LocalTalk cards for the PC; this
  5. driver applies only to the one with the 65c02 processor chip on it.
  6. To include it in the kernel, select the CONFIG_LTPC switch in the
  7. configuration dialog. You can also compile it as a module.
  8. While the driver will attempt to autoprobe the I/O port address, IRQ
  9. line, and DMA channel of the card, this does not always work. For
  10. this reason, you should be prepared to supply these parameters
  11. yourself. (see "Card Configuration" below for how to determine or
  12. change the settings on your card)
  13. When the driver is compiled into the kernel, you can add a line such
  14. as the following to your /etc/lilo.conf:
  15. append="ltpc=0x240,9,1"
  16. where the parameters (in order) are the port address, IRQ, and DMA
  17. channel. The second and third values can be omitted, in which case
  18. the driver will try to determine them itself.
  19. If you load the driver as a module, you can pass the parameters "io=",
  20. "irq=", and "dma=" on the command line with insmod or modprobe, or add
  21. them as options in a configuration file in /etc/modprobe.d/ directory:
  22. alias lt0 ltpc # autoload the module when the interface is configured
  23. options ltpc io=0x240 irq=9 dma=1
  24. Before starting up the netatalk demons (perhaps in rc.local), you
  25. need to add a line such as:
  26. /sbin/ifconfig lt0 127.0.0.42
  27. The address is unimportant - however, the card needs to be configured
  28. with ifconfig so that Netatalk can find it.
  29. The appropriate netatalk configuration depends on whether you are
  30. attached to a network that includes AppleTalk routers or not. If,
  31. like me, you are simply connecting to your home Macintoshes and
  32. printers, you need to set up netatalk to "seed". The way I do this
  33. is to have the lines
  34. dummy -seed -phase 2 -net 2000 -addr 2000.26 -zone "1033"
  35. lt0 -seed -phase 1 -net 1033 -addr 1033.27 -zone "1033"
  36. in my atalkd.conf. What is going on here is that I need to fool
  37. netatalk into thinking that there are two AppleTalk interfaces
  38. present; otherwise, it refuses to seed. This is a hack, and a more
  39. permanent solution would be to alter the netatalk code. Also, make
  40. sure you have the correct name for the dummy interface - If it's
  41. compiled as a module, you will need to refer to it as "dummy0" or some
  42. such.
  43. If you are attached to an extended AppleTalk network, with routers on
  44. it, then you don't need to fool around with this -- the appropriate
  45. line in atalkd.conf is
  46. lt0 -phase 1
  47. --------------------------------------
  48. Card Configuration:
  49. The interrupts and so forth are configured via the dipswitch on the
  50. board. Set the switches so as not to conflict with other hardware.
  51. Interrupts -- set at most one. If none are set, the driver uses
  52. polled mode. Because the card was developed in the XT era, the
  53. original documentation refers to IRQ2. Since you'll be running
  54. this on an AT (or later) class machine, that really means IRQ9.
  55. SW1 IRQ 4
  56. SW2 IRQ 3
  57. SW3 IRQ 9 (2 in original card documentation only applies to XT)
  58. DMA -- choose DMA 1 or 3, and set both corresponding switches.
  59. SW4 DMA 3
  60. SW5 DMA 1
  61. SW6 DMA 3
  62. SW7 DMA 1
  63. I/O address -- choose one.
  64. SW8 220 / 240
  65. --------------------------------------
  66. IP:
  67. Yes, it is possible to do IP over LocalTalk. However, you can't just
  68. treat the LocalTalk device like an ordinary Ethernet device, even if
  69. that's what it looks like to Netatalk.
  70. Instead, you follow the same procedure as for doing IP in EtherTalk.
  71. See Documentation/networking/ipddp.txt for more information about the
  72. kernel driver and userspace tools needed.
  73. --------------------------------------
  74. BUGS:
  75. IRQ autoprobing often doesn't work on a cold boot. To get around
  76. this, either compile the driver as a module, or pass the parameters
  77. for the card to the kernel as described above.
  78. Also, as usual, autoprobing is not recommended when you use the driver
  79. as a module. (though it usually works at boot time, at least)
  80. Polled mode is *really* slow sometimes, but this seems to depend on
  81. the configuration of the network.
  82. It may theoretically be possible to use two LTPC cards in the same
  83. machine, but this is unsupported, so if you really want to do this,
  84. you'll probably have to hack the initialization code a bit.
  85. ______________________________________
  86. THANKS:
  87. Thanks to Alan Cox for helpful discussions early on in this
  88. work, and to Denis Hainsworth for doing the bleeding-edge testing.
  89. -- Bradford Johnson <bradford@math.umn.edu>
  90. -- Updated 11/09/1998 by David Huggins-Daines <dhd@debian.org>