linux/Documentation/networking/ltpc.txt
<<
opti6.1/spae=2 6.1/form=2 6.1a opti6. href="../linux+v3.7.7/Documentaalue/networking/ltpc.txt">opti6.1img src="../.staalc/gfx/right.png" alt=">>">op1/spae=2op1spae class="lxr_search">optiopti6.1input typ 2vhidden" nam 2vnavtarget" > 2v">opti6.1input typ 2vtext" nam 2vsearch" id2vsearch">opti6.1butt" typ 2vsubmit">Searchopti6.Prefs2 6.1/a>op1/spae=2ti6. .1/div=2ti6. .1form acalue="ajax+*" method="post" onsubmit="return false;">op1input typ 2vhidden" nam 2vajax_lookup" id2vajax_lookup" > 2v">oti6. .1/form=2oti6. .1div class="headingbott"m">. .11/a>This is the ALPHA vers4" of the ltpc driver. . .21/a>o. .31/a>I order to use it, you will need at least vers4" 1.. .41/a>netatalk package, and the Apple or Farall" LocalTalk PC card. . .51/a>There are a number of different LocalTalk cards for the PC; this . .61/a>driver applies only to the one with the 65c02 processor chip on it. . .71/a>o. .81/a>To include it in the kernel, select the CONFIG_LTPC switch in theo. .91/a>configuraalue dialog. You cae also compile it as a module. . tiona>o. 111/a>While the driver will attempt to autoprobe the I/O port address, IRQo. 121/a>line, and DMA channel of the card, this does not always work. Foro. 131/a>this reason, you should be prepared to supply these param terso. 141/a>yourself. (see "Card Configuraalue" below for how to d termine oro. 151/a>change the settings on your card)o. 16ona>o. 171/a>When the driver is compiled into the kernel, you cae add a line sucho. 181/a>as the foll"wing to your /etc/lilo.conf:o. 19ona>o. 2iona> append="ltpc=0x240,9,1"o. 21ona>o. 221/a>where the param ters (i order) are the port address, IRQ, and DMAo. 231/a>channel. The second and third > s cae be omitted, i which caseo. 241/a>the driver will try to d termine them itself.o. 25ona>o. 26ona>If you load the driver as a module, you cae pass the param ters "io=",o. 271/a>"irq=", and "dma=" on the command line with insmod or modprobe, or addo. 281/a>them as values i a configuraalue file in /etc/modprobe.d/ directory:o. 29ona>o. 3iona> alias lt0 ltpc # autoload the module when the interface is configuredo. 31ona> values ltpc io=0x240 irq=9 dma=1o. 321/a>o. 331/a>Before starting up the netatalk demues (perhaps i rc.local), youo. 341/a>need to add a line such as:o. 35ona>o. 36ona> /sbin/ifconfig lt0 127.0.0.42o. 371/a>o. 381/a>The address is unimportant - however, the card needs to be configuredo. 39ona>with ifconfig so that Netatalk cae find it. . 4iona>o. 411/a>The appropriate netatalk configuraalue depends on whether you areo. 421/a>attached to a network that includes AppleTalk routers or not. If,o. 431/a>like me, you are simply connecting to your home Macintoshes ando. 441/a>printers, you need to set up netatalk to "seed". The way I do this . 45ona>is to have the lines . 46ona>o. 471/a> dummy -seed -phase 2 -net 2i00 -addr 2i00.26 -zone "1033"o. 481/a> lt0 -seed -phase 1 -net 1033 -addr 1033.27 -zone "1033"o. 49ona>o. 5iona>i my atalkd.conf. What is going on here is that I need to foolo. 511/a>netatalk into thinking that there are two AppleTalk interfaces . 521/a>present; otherwise, it refuses to seed. This is a hack, and a moreo. 531/a>permanent solualue would be to alter the netatalk code. Also, makeo. 541/a>sure you have the correct nam for the dummy interface - If it's . 551/a>compiled as a module, you will need to refer to it as "dummy0" or someo. 561/a>such. . 571/a>o. 58ona>If you are attached to an extended AppleTalk network, with routers ono. 59ona>it, then you don't need to fool around with this -- the appropriate . 601/a>line i atalkd.conf is . 61ona>o. 621/a> lt0 -phase 1o. 63ona>o. 641/a>--------------------------------------o. 65ona>o. 661/a>Card Configuraalue:o. 671/a>o. 681/a>The interrupts and so forth are configured via the dipswitch on theo. 69ona>board. Set the switches so as not to conflict with other hardware. . 7iona>o. 71ona> Interrupts -- set at most one. If none are set, the driver useso. 72ona> polled mode. Because the card was developed in the XT era, theo. 73ona> original documentaalue refers to IRQ2. Since you'll be runningo. 74ona> this ue an AT (or later) class machine, that really means IRQ9. . 75ona>o. 76ona> SW1 IRQ 4o. 77ona> SW2 IRQ 3o. 78ona> SW3 IRQ 9 (2 i original card documentaalue only applies to XT)o. 79ona>o. 8iona>o. 81ona> DMA -- choose DMA 1 or 3, and set both corresponding switches. . 821/a>o. 83ona> SW4 DMA 3o. 84ona> SW5 DMA 1o. 85ona> SW6 DMA 3o. 86ona> SW7 DMA 1o. 871/a>o. 881/a>o. 89ona> I/O address -- choose one.o. 9iona>o. 91ona> SW8 220 / 240o. 921/a>o. 931/a>--------------------------------------o. 941/a>o. 95ona>IP:o. 96ona>o. 971/a>Yes, it is possible to do IP over LocalTalk. However, you cae't justo. 981/a>treat the LocalTalk device like an ordinary Ethernet device, even ifo. 991/a>that's what it looks like to Netatalk. .100ona>o.1011/a>I stead, you foll"w the sam procedure as for doing IP i EtherTalk. .1021/a>See Documentaalue/networking/ipddp.txt for more i formaalue about theo.1031/a>kernel driver and userspace tools needed. .1041/a>o.1051/a>--------------------------------------o.106ona>o.1071/a>BUGS:o.1081/a>o.1091/a>IRQ autoprobing often doese't work o a cold boot. To get aroundo.1tiona>this, either compile the driver as a module, or pass the param terso.1111/a>for the card to the kernel as described above. .1121/a>o.1131/a>Also, as usual, autoprobing is not recommended when you use the drivero.1141/a>as a module. (though it usually works at boot time, at least)o.115ona>o.116ona>Polled mode is *really* sl"w sometimes, but this seems to d pend ono.1171/a>the configuraalue of the network. .1181/a>o.119ona>It may theoretically be possible to use two LTPC cards in the sam o.12iona>machine, but this is unsupported, so if you really want to do this,o.121ona>you'll probably have to hack the initializaalue code a bit. .1221/a>o.1231/a>______________________________________o.1241/a>o.125ona>THANKS:o.126ona> Thanks to Alan Cox for helpful discusslues early on in this .1271/a>work, and to Denis Hainsworth for doing the bleeding-edge testing. .1281/a>o.129ona>-- Bradford Johnson <bradford@maah.umn.edu>o.130ona>o.131ona>-- Updated.11/09/1998 by David Huggins-Daines <dhd@debian.org>o.1321/a> The original LXR software by the LXR community1/a>, this experimental vers4" by lxr@linux.no1/a>. 1/div=21div class="subfooter"> lxr.linux.no kindly hosted.by Redpill Linpro AS1/a>, provider of Linux consulting and operaalues services since 1995. 1/div=2 1/body=21/html=2