2011/8/25 Kirk Wallace <[email protected]>: > On Thu, 2011-08-25 at 19:57 +0300, Viesturs Lācis wrote: >> 2011/8/25 Kirk Wallace <[email protected]>: >> > On Thu, 2011-08-25 at 08:51 -0400, Kent A. Reed wrote: >> > ...snip >> >> > But dmesg shows: >> >> > [ 8.962720] parport0: PC-style at 0x378, irq 7 [PCSPP] >> > >> > "PCSPP" above seems to indicate that the port is not in EPP mode. Would >> > setting the proper bit in a register fix this? I wrote a short utility, >> > showport.c, to help me understand the parallel port, but seems to come >> > in handy for setting bits too. >> > http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Startech >> >> Kirk, thank You, this script seems very promising! >> I need some more details about Your script: > The C file was based in this information: > http://www.beyondlogic.org/spp/parallel.htm#6 (see bottom of page for > Extended Control Register) > http://www.beyondlogic.org/ecp/ecp.htm > http://www.faqs.org/docs/Linux-mini/IO-Port-Programming.html > >> 1) In which folder should I put it and then in terminal "cd" to? > You just need to copy the C file to wherever you want > it, /home/my_dir/emc2 maybe? Then compile it, I think the file header > has a sample gcc command in the comments. You may need to install gcc or > emc2-dev to get the needed support files, but it has been a while, so I > don't recall. > >> 2) How exactly should I run it? Address of parport is 0x378. How >> exactly should that command look? > For the motherboard port, I thought the BIOS should have a setting that > lets you set this port to EPP, but I guess this is broken? > >> 3) Is the effect of setting the parport to EPP permanent or do I have >> to run this every time before using EMC? > > I don't recall. The BeyondLoic link above may mention if the register is > "sticky". If not, you could put a script in you start up files, such as > in rc.d, unless of course the files are changed like the grub and xorg > files always seem to.
Kirk, does this mean some kind of success? waterjet@waterjet:~$ sudo ./showport 0378 037a e ~~~~~ Base @ 0x378 Extended @ 0x37a DPR: 4 DSR: 87 DCR: 204 EPPA: 255 EPPD: 255 CFA: 204 CFB: 255 ECR: 255 ~~~~~ Setting mode to EPP ECR: 255 ~~~~~ waterjet@waterjet:~$ Viesturs ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
