⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ltpc.txt

📁 《嵌入式系统设计与实例开发实验教材二源码》Linux内核移植与编译实验
💻 TXT
字号:
This is the ALPHA version of the ltpc driver.In order to use it, you will need at least version 1.3.3 of thenetatalk package, and the Apple or Farallon LocalTalk PC card.There are a number of different LocalTalk cards for the PC; thisdriver applies only to the one with the 65c02 processor chip on it.To include it in the kernel, select the CONFIG_LTPC switch in theconfiguration dialog.  You can also compile it as a module.While the driver will attempt to autoprobe the I/O port address, IRQline, and DMA channel of the card, this does not always work.  Forthis reason, you should be prepared to supply these parametersyourself.  (see "Card Configuration" below for how to determine orchange the settings on your card)When the driver is compiled into the kernel, you can add a line suchas the following to your /etc/lilo.conf: append="ltpc=0x240,9,1"where the parameters (in order) are the port address, IRQ, and DMAchannel.  The second and third values can be omitted, in which casethe driver will try to determine them itself.If you load the driver as a module, you can pass the parameters "io=","irq=", and "dma=" on the command line with insmod or modprobe, or addthem as options in /etc/modules.conf: alias lt0 ltpc # autoload the module when the interface is configured options ltpc io=0x240 irq=9 dma=1Before starting up the netatalk demons (perhaps in rc.local), youneed to add a line such as: /sbin/ifconfig lt0 127.0.0.42The address is unimportant - however, the card needs to be configuredwith ifconfig so that Netatalk can find it.The appropriate netatalk configuration depends on whether you areattached to a network that includes AppleTalk routers or not.  If,like me, you are simply connecting to your home Macintoshes andprinters, you need to set up netatalk to "seed".  The way I do thisis to have the lines dummy -seed -phase 2 -net 2000 -addr 2000.26 -zone "1033" lt0 -seed -phase 1 -net 1033 -addr 1033.27 -zone "1033"in my atalkd.conf.  What is going on here is that I need to foolnetatalk into thinking that there are two AppleTalk interfacespresent; otherwise, it refuses to seed.  This is a hack, and a morepermanent solution would be to alter the netatalk code.  Also, makesure you have the correct name for the dummy interface - If it'scompiled as a module, you will need to refer to it as "dummy0" or somesuch.If you are attached to an extended AppleTalk network, with routers onit, then you don't need to fool around with this -- the appropriateline in atalkd.conf is lt0 -phase 1--------------------------------------Card Configuration:The interrupts and so forth are configured via the dipswitch on theboard.  Set the switches so as not to conflict with other hardware.       Interrupts -- set at most one.  If none are set, the driver uses       polled mode.  Because the card was developed in the XT era, the       original documentation refers to IRQ2.  Since you'll be running       this on an AT (or later) class machine, that really means IRQ9.       SW1     IRQ 4       SW2     IRQ 3       SW3     IRQ 9 (2 in original card documentation only applies to XT)       DMA -- choose DMA 1 or 3, and set both corresponding switches.       SW4     DMA 3       SW5     DMA 1       SW6     DMA 3       SW7     DMA 1       I/O address -- choose one.       SW8     220 / 240--------------------------------------IP:Yes, it is possible to do IP over LocalTalk.  However, you can't justtreat the LocalTalk device like an ordinary Ethernet device, even ifthat's what it looks like to Netatalk.Instead, you follow the same procedure as for doing IP in EtherTalk.See Documentation/networking/ipddp.txt for more information about thekernel driver and userspace tools needed.--------------------------------------BUGS:IRQ autoprobing often doesn't work on a cold boot.  To get aroundthis, either compile the driver as a module, or pass the parametersfor the card to the kernel as described above.Also, as usual, autoprobing is not recommended when you use the driveras a module. (though it usually works at boot time, at least)Polled mode is *really* slow sometimes, but this seems to depend onthe configuration of the network.It may theoretically be possible to use two LTPC cards in the samemachine, but this is unsupported, so if you really want to do this,you'll probably have to hack the initialization code a bit.______________________________________THANKS:	Thanks to Alan Cox for helpful discussions early on in thiswork, and to Denis Hainsworth for doing the bleeding-edge testing.-- Bradford Johnson <bradford@math.umn.edu>-- Updated 11/09/1998 by David Huggins-Daines <dhd@debian.org>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -