Re: [Emc-users] PCI parallel port EPP problem with SUN1888 chipset

2010-01-20 Thread acemi list
I tried to write 0x80 to 0x1002 and 0x101A today. The results are as
the followings:

# ./epp 0x101a
ECR address: 0x101a
initial read: 0x00
write: 0x80
final read: 0x00

# ./epp 0x1002
ECR address: 0x1002
initial read: 0x15
write: 0x95
final read: 0x95


There are no change for the parport modes:

# lspci -v
04:00.0 Parallel controller: Timedia Technology Co Ltd Device 7268
(rev 01) (prog-if 02 [ECP])
Subsystem: Timedia Technology Co Ltd Device 0104
Flags: stepping, medium devsel, IRQ 21
I/O ports at 1018 [size=8]
I/O ports at 1010 [size=8]
I/O ports at 1008 [size=8]
I/O ports at 1000 [size=8]
Kernel driver in use: parport_pc
Kernel modules: parport_pc

# cat /proc/sys/dev/parport/parport1/modes
PCSPP,TRISTATE

# cat /proc/sys/dev/parport/parport2/modes
PCSPP,TRISTATE





On 1/19/10, Jeff Epler jep...@unpythonic.net wrote:
 Shouldn't you be writing at base_hi + 2, not at base_hi?

 Jeff

 --
 Throughout its 18-year history, RSA Conference consistently attracts the
 world's best and brightest in the field, creating opportunities for
 Conference
 attendees to learn about information security's most important issues
 through
 interactions with peers, luminaries and emerging and established companies.
 http://p.sf.net/sfu/rsaconf-dev2dev
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] PCI parallel port EPP problem with SUN1888 chipset

2010-01-20 Thread Jeff Epler
On Wed, Jan 20, 2010 at 12:40:43PM +0200, acemi list wrote:
 # cat /proc/sys/dev/parport/parport1/modes
 PCSPP,TRISTATE
 
 # cat /proc/sys/dev/parport/parport2/modes
 PCSPP,TRISTATE

Hm.

These are going to be determined by linux when it loads parport_pc.  If
you load parport_pc before running any of your manipulation programs and
it shows PCSPP,TRISTATE that implies to me that the linux kernel parport
driver (which embodies a lot more wisdom than the drivers in emc2)
thinks the port is not EPP capable.

Jeff

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] PCI parallel port EPP problem with SUN1888 chipset

2010-01-20 Thread Jeff Epler
The Linux parport_pc driver seems to detect epp mode based on whether it
is possible to clear the EPP timeout bit:

static int parport_EPP_supported(struct parport *pb)
{
const struct parport_pc_private *priv = pb-private_data;

/*
 * Theory:
 *  Bit 0 of STR is the EPP timeout bit, this bit is 0
 *  when EPP is possible and is set high when an EPP timeout
 *  occurs (EPP uses the HALT line to stop the CPU while it does
 *  the byte transfer, an EPP timeout occurs if the attached
 *  device fails to respond after 10 micro seconds).
 *
 *  This bit is cleared by either reading it (National Semi)
 *  or writing a 1 to the bit (SMC, UMC, WinBond), others ???
 *  This bit is always high in non EPP modes.
 */

/* If EPP timeout bit clear then EPP available */
if (!clear_epp_timeout(pb))
return 0;  /* No way to clear timeout */
...
}

It detects ECPEPP (that is, EPP mode where you must manipulate ECR to enter and
leave it) by doing the ECR write and then the EPP test above:
static int parport_ECPEPP_supported(struct parport *pb)
{
struct parport_pc_private *priv = pb-private_data;
int result;
unsigned char oecr;

if (!priv-ecr)
return 0;

oecr = inb(ECONTROL(pb));
/* Search for SMC style EPP+ECP mode */
ECR_WRITE(pb, 0x80);
outb(0x04, CONTROL(pb));
result = parport_EPP_supported(pb);

}

Of course, all this code is dependant on CONFIG_PARPORT_1284, and I don't know
whether your kernel has that enabled.

Jeff

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] PCI parallel port EPP problem with SUN1888 chipset

2010-01-20 Thread acemi list
 Of course, all this code is dependant on CONFIG_PARPORT_1284, and I don't
 know
 whether your kernel has that enabled.

CONFIG_PARPORT_1284 is enabled

$ grep CONFIG_PARPORT_1284 /boot/config-2.6.30.5-rtai
CONFIG_PARPORT_1284=y


I'm using this card for the soft stepping. It works at 50 KHz without
any problem (base_period=2 and double stepping). Does this means
that there is no need to force it to EPP mode? Will it cause problem
in the production time?

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] PCI parallel port EPP problem with SUN1888 chipset

2010-01-20 Thread Jeff Epler
On Thu, Jan 21, 2010 at 01:52:19AM +0200, acemi list wrote:
 I'm using this card for the soft stepping. It works at 50 KHz without
 any problem (base_period=2 and double stepping). Does this means
 that there is no need to force it to EPP mode? Will it cause problem
 in the production time?

EPP mode is not required or used by hal_parport.  Is there documentation
that led you to think the opposite?

Jeff

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] PCI parallel port EPP problem with SUN1888 chipset

2010-01-20 Thread acemi list
 On Thu, Jan 21, 2010 at 01:52:19AM +0200, acemi list wrote:
 I'm using this card for the soft stepping. It works at 50 KHz without
 any problem (base_period=2 and double stepping). Does this means
 that there is no need to force it to EPP mode? Will it cause problem
 in the production time?

 EPP mode is not required or used by hal_parport.  Is there documentation
 that led you to think the opposite?



EPP is suggested in some wiki pages and in some e-mails from the EMC
list. But after I read the docs and the e-mails again, I saw that I
misunderstood these. These are for the PICO and Mesa cards.

Thanks Jeff

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] PCI parallel port EPP problem with SUN1888 chipset

2010-01-19 Thread Jeff Epler
What does linux parport_pc say about ports?

Presumably the base and base_hi ports all have to be from the set of
I/O ports named in lspci, so the base_hi ports must be the 1000 and
1010 addresses if the xxx8 addresses are the bases.

Jeff

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] PCI parallel port EPP problem with SUN1888 chipset

2010-01-19 Thread acemi list
On 1/19/10, Jeff Epler jep...@unpythonic.net wrote:
 What does linux parport_pc say about ports?

 Presumably the base and base_hi ports all have to be from the set of
 I/O ports named in lspci, so the base_hi ports must be the 1000 and
 1010 addresses if the xxx8 addresses are the bases.


# insmod /lib/modules/2.6.30.5-rtai/kernel/drivers/parport/parport_pc.ko

# cat /proc/sys/dev/parport/parport1/base-addr
41204112

(these are 0x1018 and 0x1010)

# cat /proc/sys/dev/parport/parport2/base-addr
41044096

(these are 0x1008 and 0x1000)

I tried to write 0x80 to 0x1010 and 0x1000 but nothing changed.
I used the attached code to write. The program output:

# ./epp 0x1010
00
write 80
00

# ./epp 0x1000
00
write 80
00
#include stdio.h
#include stdlib.h
#include unistd.h
#include sys/io.h

#define ECR_OFFSET	0x400
#define SPP_MODE	0x00
#define ECP_MODE	0x60
#define EPP_MODE	0x80

int main(int argc, char *argv[]) {
	unsigned int base;
	unsigned int ecr;
	unsigned char reg;

	if (argc != 2) {
		printf(No base address\n);
		exit(1);
	}
	// get the base address from the commandline
	base = strtol(argv[1], NULL, 16);

	// Extended Control Register address
	//ecr = base + ECR_OFFSET;
	ecr = base;

	// request to access to the address space
	if (iopl(3)) {
		perror(iopl);
		exit(2);
	}

	// request to write access to ECR 
	if (ioperm(ecr, 1, 1)) {
		perror(ioperm);
		exit(3);
	}

	// read from ECR
	reg = inb_p(ecr);
	printf(%02x\n, reg);

	// change mode
	reg = reg  0x1F;
	reg = reg | EPP_MODE;
	printf(write %02x\n, reg);

	// write to ECR
	outb(reg, ecr);
	usleep(10);

	// read from ECR
	reg = inb_p(ecr);
	printf(%02x\n, reg);

	// release to write privilege
	if (ioperm(ecr, 1, 0)) {
		perror(ioperm1);
		exit(4);
	}

	exit(0);
}
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] PCI parallel port EPP problem with SUN1888 chipset

2010-01-19 Thread Jeff Epler
Shouldn't you be writing at base_hi + 2, not at base_hi?

Jeff

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] PCI Parallel port

2009-04-10 Thread Lars Andersson
Snip from thread:

 Serial controller: Titan Electronics Inc VScom 010L 1 port  
 parallel adaptor (prog-if 02 [16550])

I tried short time ago the VSCOM-10 board with no success. IRC it was not
IEEE 1284 compatible.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] PCI Parallel port

2009-04-10 Thread William Baden

Chris,

  I don't think it's anything you're doing -- I don't like this
  Serial controller identification.  Something is goofy.  Maybe try
  another type of card?

Would that be an ubuntu thing I would have to adjust?  

Greg,

Where about are you located at?  

I will contact you off list about this.  I might take you up on that offer.

Thanks,
Will Baden

 From: emc2usrl...@distinctperspectives.com
 To: emc-users@lists.sourceforge.net
 Date: Thu, 9 Apr 2009 22:26:06 -0400
 Subject: Re: [Emc-users] PCI Parallel port
 
 Will - Where about are you located at?  With Chris' comment in mind - I've
 got a single port Netmos based PCI LPT that is going to be swapped shortly
 for a dual port Netmos (once I get over to my local shop _ I give them
 occasional business over Newegg since I don't want them to go under).  I'd
 be willing to part with the single unit for a steal (depending on your
 location that is - if shipping is more than the board's cost...)  Feel free
 to contact me off list.
 
 Greg
 www.distinctperspectives.com
  
  -Original Message-
  From: Chris Radek [mailto:ch...@timeguy.com]
  Sent: Thursday, April 09, 2009 10:13 PM
  To: Enhanced Machine Controller (EMC)
  Subject: Re: [Emc-users] PCI Parallel port
  
  On Fri, Apr 10, 2009 at 02:05:15AM +, William Baden wrote:
  
   Peter,
  
   Thanks for the idea, I have tried it and still come up with device
   or resource busy of one address and no output on the other three
   addresses.  Will have to wait til after this weekend, taking a
   vacation with the wife!
  
  
 00:0b.0 Serial controller: Titan Electronics Inc VScom 010L 1 port
 parallel adaptor (prog-if 02 [16550])
  
  
  I don't think it's anything you're doing -- I don't like this
  Serial controller identification.  Something is goofy.  Maybe try
  another type of card?
  
  Chris
  
  
 
 
 --
  This SF.net email is sponsored by:
  High Quality Requirements in a Collaborative Environment.
  Download a free trial of Rational Requirements Composer Now!
  http://p.sf.net/sfu/www-ibm-com
  ___
  Emc-users mailing list
  Emc-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/emc-users
 
 
 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-com
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

_
Rediscover Hotmail®: Get quick friend updates right in your inbox. 
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Updates1_042009
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] PCI Parallel port

2009-04-10 Thread William Baden

Lars,

Ahh.  Thanks for the information.  Maybe that is the problem I am having with 
the PCI 010l VSCom board. 

Thanks,
Will Baden

 From: l...@larsandersson.com
 To: emc-users@lists.sourceforge.net
 Date: Fri, 10 Apr 2009 09:27:30 +0200
 Subject: Re: [Emc-users] PCI Parallel port
 
 Snip from thread:
 
  Serial controller: Titan Electronics Inc VScom 010L 1 port  
  parallel adaptor (prog-if 02 [16550])
 
 I tried short time ago the VSCOM-10 board with no success. IRC it was not
 IEEE 1284 compatible.
 
 
 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-com
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

_
Rediscover Hotmail®: Get e-mail storage that grows with you. 
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage1_042009
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] PCI Parallel port

2009-04-09 Thread William Baden

Peter,

Thanks for the idea, I have tried it and still come up with device or resource 
busy of one address and no output on the other three addresses.  Will have to 
wait til after this weekend, taking a vacation with the wife!

Thanks again,
Will Baden

 Date: Tue, 7 Apr 2009 12:57:58 +0200
 To: emc-users@lists.sourceforge.net
 From: p.blo...@dreki.de
 Subject: Re: [Emc-users] PCI Parallel port
 
 William,
 if you can't find the correct memory addresses of your card then try the 
 hard way: remove all PCI or ISA cards and everything else that's not 
 necessary to run the bare PC. Boot and look at /proc/ioports for changes to 
 the former state (risk a few sheets of paper ro print the file contents). 
 Test the port if you suspect an address to work. Then put in the other 
 cards one after the other, rebooting and trying each time. Weary job.
 By the way: my addresses changed from a400 and b000 to b400 and d000 when I 
 moved the PC from one room to another...;-)
 
 Best regards
 Peter Blodow
 
 Hello William,
 
 last week I had just the same problem. It turned out that some other device
 claimed the same addresses as my Netmos 2 port card. This particular one
 may be hard to find. First, use lspic -vv or even lspci -vvv to get more
 information than with lspci -v.
 
 Look at /proc/ioports: You will find addresses like a400, b000 up to d000.
 My card supplies 6 such possibilities to chose. Behind the valid address
 EMC had put in a line stating hal parport as a comment. That's the one.
 If you are not sure, try them all with stepconf: insert the address to be
 tested, doubleclick on Continue to get to the X-Axis page and test axis.
 If the re is no motion, return with doubleclick and try the next address.
 Within a minute I had tested all 6 addresses given.
 Don't save the stepconf five when leaving in case you have made unintended
 changes.
 
 Note that this address you found can change in case you play with BIOS or
 Cmos-Setup or install some other devices.
 
 I made myself a printer port test plug with LED's (from a serial null
 modem) so I can see what's happening on the lines without the whole machine
 setup.
 
 Best regards
 Peter Blodow
 
 
 
 At 04:40 06.04.2009, you wrote:
 
  Hi all,
  
  Being still new to linux and EMC2 I have decided to use an old computer to
  learn more about it, using a small table top mill that I built using
  various parts.  Wanting to branch out into a cheap I/O upgrade I decided
  to purchase a PCI parallel port card.  But I have run into a problem
  getting this going.
  
  After installing the card, I used sudo lspci -v to find out the address,
  this is what was displayed:
  
  00:00.0 Host bridge: Intel Corporation 440LX/EX - 82443LX/EX Host bridge
  (rev 03)
   Flags: bus master, medium devsel, latency 64
   Memory at e800 (32-bit, prefetchable) [size=64M]
   Capabilities: [a0] AGP version 1.0
  
  00:01.0 PCI bridge: Intel Corporation 440LX/EX - 82443LX/EX AGP bridge
  (rev 03) (prog-if 00 [Normal decode])
   Flags: bus master, 66MHz, medium devsel, latency 64
   Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
   I/O behind bridge: b000-bfff
   Memory behind bridge: d800-e7ff
  
  00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 01)
   Flags: bus master, medium devsel, latency 0
  
  00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
  (prog-if 80 [Master])
   Flags: bus master, medium devsel, latency 64
   [virtual] Memory at 01f0 (32-bit, non-prefetchable) [disabled]
   [size=8]
   [virtual] Memory at 03f0 (type 3, non-prefetchable) [disabled]
   [size=1]
   [virtual] Memory at 0170 (32-bit, non-prefetchable) [disabled]
   [size=8]
   [virtual] Memory at 0370 (type 3, non-prefetchable) [disabled]
   [size=1]
   I/O ports at f000 [size=16]
  
  00:07.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
  (prog-if 00 [UHCI])
   Flags: bus master, medium devsel, latency 64, IRQ 10
   I/O ports at c000 [size=32]
  
  00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 01)
   Flags: medium devsel, IRQ 9
  
  00:0b.0 Serial controller: Titan Electronics Inc VScom 010L 1 port
  parallel adaptor (prog-if 02 [16550])
   Subsystem: Titan Electronics Inc VScom 010L 1 port parallel adaptor
   Flags: medium devsel, IRQ 9
   I/O ports at c400 [size=8]
   I/O ports at c800 [size=8]
   I/O ports at cc00 [size=8]
   I/O ports at d000 [size=8]
   Memory at ed001000 (32-bit, non-prefetchable) [size=64]
  
  00:0c.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone]
  (rev 30)
   Subsystem: 3Com Corporation 3C905B Fast Etherlink XL 10/100
   Flags: bus master, medium devsel, latency 64, IRQ 10
   I/O ports at d400 [size=128]
   Memory at ed00 (32-bit, non-prefetchable) [size=128]
   Expansion ROM at ec00 [disabled] [size=128K

Re: [Emc-users] PCI Parallel port

2009-04-09 Thread Chris Radek
On Fri, Apr 10, 2009 at 02:05:15AM +, William Baden wrote:
 
 Peter,
 
 Thanks for the idea, I have tried it and still come up with device
 or resource busy of one address and no output on the other three
 addresses.  Will have to wait til after this weekend, taking a
 vacation with the wife!  


   00:0b.0 Serial controller: Titan Electronics Inc VScom 010L 1 port
   parallel adaptor (prog-if 02 [16550])


I don't think it's anything you're doing -- I don't like this
Serial controller identification.  Something is goofy.  Maybe try
another type of card?

Chris


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] PCI Parallel port

2009-04-09 Thread Greg Michalski
Will - Where about are you located at?  With Chris' comment in mind - I've
got a single port Netmos based PCI LPT that is going to be swapped shortly
for a dual port Netmos (once I get over to my local shop _ I give them
occasional business over Newegg since I don't want them to go under).  I'd
be willing to part with the single unit for a steal (depending on your
location that is - if shipping is more than the board's cost...)  Feel free
to contact me off list.

Greg
www.distinctperspectives.com
 
 -Original Message-
 From: Chris Radek [mailto:ch...@timeguy.com]
 Sent: Thursday, April 09, 2009 10:13 PM
 To: Enhanced Machine Controller (EMC)
 Subject: Re: [Emc-users] PCI Parallel port
 
 On Fri, Apr 10, 2009 at 02:05:15AM +, William Baden wrote:
 
  Peter,
 
  Thanks for the idea, I have tried it and still come up with device
  or resource busy of one address and no output on the other three
  addresses.  Will have to wait til after this weekend, taking a
  vacation with the wife!
 
 
00:0b.0 Serial controller: Titan Electronics Inc VScom 010L 1 port
parallel adaptor (prog-if 02 [16550])
 
 
 I don't think it's anything you're doing -- I don't like this
 Serial controller identification.  Something is goofy.  Maybe try
 another type of card?
 
 Chris
 
 


--
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-com
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] PCI Parallel port

2009-04-07 Thread Peter blodow
William,
if you can't find the correct memory addresses of your card then try the 
hard way: remove all PCI or ISA cards and everything else that's not 
necessary to run the bare PC. Boot and look at /proc/ioports for changes to 
the former state (risk a few sheets of paper ro print the file contents). 
Test the port if you suspect an address to work. Then put in the other 
cards one after the other, rebooting and trying each time. Weary job.
By the way: my addresses changed from a400 and b000 to b400 and d000 when I 
moved the PC from one room to another...;-)

Best regards
Peter Blodow

Hello William,

last week I had just the same problem. It turned out that some other device
claimed the same addresses as my Netmos 2 port card. This particular one
may be hard to find. First, use lspic -vv or even lspci -vvv to get more
information than with lspci -v.

Look at /proc/ioports: You will find addresses like a400, b000 up to d000.
My card supplies 6 such possibilities to chose. Behind the valid address
EMC had put in a line stating hal parport as a comment. That's the one.
If you are not sure, try them all with stepconf: insert the address to be
tested, doubleclick on Continue to get to the X-Axis page and test axis.
If the re is no motion, return with doubleclick and try the next address.
Within a minute I had tested all 6 addresses given.
Don't save the stepconf five when leaving in case you have made unintended
changes.

Note that this address you found can change in case you play with BIOS or
Cmos-Setup or install some other devices.

I made myself a printer port test plug with LED's (from a serial null
modem) so I can see what's happening on the lines without the whole machine
setup.

Best regards
Peter Blodow



At 04:40 06.04.2009, you wrote:

 Hi all,
 
 Being still new to linux and EMC2 I have decided to use an old computer to
 learn more about it, using a small table top mill that I built using
 various parts.  Wanting to branch out into a cheap I/O upgrade I decided
 to purchase a PCI parallel port card.  But I have run into a problem
 getting this going.
 
 After installing the card, I used sudo lspci -v to find out the address,
 this is what was displayed:
 
 00:00.0 Host bridge: Intel Corporation 440LX/EX - 82443LX/EX Host bridge
 (rev 03)
  Flags: bus master, medium devsel, latency 64
  Memory at e800 (32-bit, prefetchable) [size=64M]
  Capabilities: [a0] AGP version 1.0
 
 00:01.0 PCI bridge: Intel Corporation 440LX/EX - 82443LX/EX AGP bridge
 (rev 03) (prog-if 00 [Normal decode])
  Flags: bus master, 66MHz, medium devsel, latency 64
  Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
  I/O behind bridge: b000-bfff
  Memory behind bridge: d800-e7ff
 
 00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 01)
  Flags: bus master, medium devsel, latency 0
 
 00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
 (prog-if 80 [Master])
  Flags: bus master, medium devsel, latency 64
  [virtual] Memory at 01f0 (32-bit, non-prefetchable) [disabled]
  [size=8]
  [virtual] Memory at 03f0 (type 3, non-prefetchable) [disabled]
  [size=1]
  [virtual] Memory at 0170 (32-bit, non-prefetchable) [disabled]
  [size=8]
  [virtual] Memory at 0370 (type 3, non-prefetchable) [disabled]
  [size=1]
  I/O ports at f000 [size=16]
 
 00:07.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
 (prog-if 00 [UHCI])
  Flags: bus master, medium devsel, latency 64, IRQ 10
  I/O ports at c000 [size=32]
 
 00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 01)
  Flags: medium devsel, IRQ 9
 
 00:0b.0 Serial controller: Titan Electronics Inc VScom 010L 1 port
 parallel adaptor (prog-if 02 [16550])
  Subsystem: Titan Electronics Inc VScom 010L 1 port parallel adaptor
  Flags: medium devsel, IRQ 9
  I/O ports at c400 [size=8]
  I/O ports at c800 [size=8]
  I/O ports at cc00 [size=8]
  I/O ports at d000 [size=8]
  Memory at ed001000 (32-bit, non-prefetchable) [size=64]
 
 00:0c.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone]
 (rev 30)
  Subsystem: 3Com Corporation 3C905B Fast Etherlink XL 10/100
  Flags: bus master, medium devsel, latency 64, IRQ 10
  I/O ports at d400 [size=128]
  Memory at ed00 (32-bit, non-prefetchable) [size=128]
  Expansion ROM at ec00 [disabled] [size=128K]
  Capabilities: [dc] Power Management version 1
 
 01:00.0 VGA compatible controller: S3 Inc. 86c794 [Savage 3D] (rev 01)
 (prog-if 00 [VGA controller])
  Subsystem: CardExpert Technology Unknown device 8a20
  Flags: bus master, 66MHz, medium devsel, latency 80, IRQ 11
  Memory at d800 (32-bit, non-prefetchable) [size=128M]
  Expansion ROM at e000 [disabled] [size=64K]
  Capabilities: [dc] Power Management version 1
  Capabilities: [80] AGP version 1.0
 
 Assuming that 

Re: [Emc-users] PCI Parallel port

2009-04-06 Thread Peter blodow
Hello William,

last week I had just the same problem. It turned out that some other device 
claimed the same addresses as my Netmos 2 port card. This particular one 
may be hard to find. First, use lspic -vv or even lspci -vvv to get more 
information than with lspci -v.

Look at /proc/ioports: You will find addresses like a400, b000 up to d000. 
My card supplies 6 such possibilities to chose. Behind the valid address 
EMC had put in a line stating hal parport as a comment. That's the one. 
If you are not sure, try them all with stepconf: insert the address to be 
tested, doubleclick on Continue to get to the X-Axis page and test axis. 
If the re is no motion, return with doubleclick and try the next address. 
Within a minute I had tested all 6 addresses given.
Don't save the stepconf five when leaving in case you have made unintended 
changes.

Note that this address you found can change in case you play with BIOS or 
Cmos-Setup or install some other devices.

I made myself a printer port test plug with LED's (from a serial null 
modem) so I can see what's happening on the lines without the whole machine 
setup.

Best regards
Peter Blodow



At 04:40 06.04.2009, you wrote:

Hi all,

Being still new to linux and EMC2 I have decided to use an old computer to 
learn more about it, using a small table top mill that I built using 
various parts.  Wanting to branch out into a cheap I/O upgrade I decided 
to purchase a PCI parallel port card.  But I have run into a problem 
getting this going.

After installing the card, I used sudo lspci -v to find out the address, 
this is what was displayed:

00:00.0 Host bridge: Intel Corporation 440LX/EX - 82443LX/EX Host bridge 
(rev 03)
 Flags: bus master, medium devsel, latency 64
 Memory at e800 (32-bit, prefetchable) [size=64M]
 Capabilities: [a0] AGP version 1.0

00:01.0 PCI bridge: Intel Corporation 440LX/EX - 82443LX/EX AGP bridge 
(rev 03) (prog-if 00 [Normal decode])
 Flags: bus master, 66MHz, medium devsel, latency 64
 Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
 I/O behind bridge: b000-bfff
 Memory behind bridge: d800-e7ff

00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 01)
 Flags: bus master, medium devsel, latency 0

00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01) 
(prog-if 80 [Master])
 Flags: bus master, medium devsel, latency 64
 [virtual] Memory at 01f0 (32-bit, non-prefetchable) [disabled] 
 [size=8]
 [virtual] Memory at 03f0 (type 3, non-prefetchable) [disabled] 
 [size=1]
 [virtual] Memory at 0170 (32-bit, non-prefetchable) [disabled] 
 [size=8]
 [virtual] Memory at 0370 (type 3, non-prefetchable) [disabled] 
 [size=1]
 I/O ports at f000 [size=16]

00:07.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01) 
(prog-if 00 [UHCI])
 Flags: bus master, medium devsel, latency 64, IRQ 10
 I/O ports at c000 [size=32]

00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 01)
 Flags: medium devsel, IRQ 9

00:0b.0 Serial controller: Titan Electronics Inc VScom 010L 1 port 
parallel adaptor (prog-if 02 [16550])
 Subsystem: Titan Electronics Inc VScom 010L 1 port parallel adaptor
 Flags: medium devsel, IRQ 9
 I/O ports at c400 [size=8]
 I/O ports at c800 [size=8]
 I/O ports at cc00 [size=8]
 I/O ports at d000 [size=8]
 Memory at ed001000 (32-bit, non-prefetchable) [size=64]

00:0c.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] 
(rev 30)
 Subsystem: 3Com Corporation 3C905B Fast Etherlink XL 10/100
 Flags: bus master, medium devsel, latency 64, IRQ 10
 I/O ports at d400 [size=128]
 Memory at ed00 (32-bit, non-prefetchable) [size=128]
 Expansion ROM at ec00 [disabled] [size=128K]
 Capabilities: [dc] Power Management version 1

01:00.0 VGA compatible controller: S3 Inc. 86c794 [Savage 3D] (rev 01) 
(prog-if 00 [VGA controller])
 Subsystem: CardExpert Technology Unknown device 8a20
 Flags: bus master, 66MHz, medium devsel, latency 80, IRQ 11
 Memory at d800 (32-bit, non-prefetchable) [size=128M]
 Expansion ROM at e000 [disabled] [size=64K]
 Capabilities: [dc] Power Management version 1
 Capabilities: [80] AGP version 1.0

Assuming that this 00:0b.0 Serial controller: Titan Electronics Inc VScom 
010L 1 port parallel adaptor was the pci card that I recently installed, 
I used the address c400 for the address in the .hal file line:

loadrt hal_parport cfg=0xc400

The .hal file that I used was created by stepconf, and functions fine with 
the built in parallel port.  But when I use 0xc400 as the address I get 
this error on startup of Axis:

Debug file information:
insmod: error inserting 
'/usr/realtime-2.6.24-16-rtai/modules/emc2/hal_parport.ko': -1 Device or 
resource busy
FlatBed_Scanner_Mill_2nd_parallel_port_test.hal:27: exit value: 1

Re: [Emc-users] PCI Parallel port

2009-04-06 Thread Lars Andersson
Hi William,

wiki.linuxcnc.org/cgi-bin/emcinfo.pl?TroubleShooting#Parallel_port_no_longer
_works_in_EMC_2_0_1_or_later_hal_parport_Device_or_resource_busy
Paragraph 4 in this document describes soething similar to your debug output


 Debug file information:
 insmod: error inserting
'/usr/realtime-2.6.24-16-rtai/modules/emc2/hal_parport.ko': -1 Device or
resource busy


Regards,
Lars



--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] PCI Parallel port

2009-04-06 Thread William Baden

Greg,

I just tried starting up this config with loadrt prob_parport commented out but 
it still errors out.


Peter,

 last week I had just the same problem. It turned out that some other device 
 claimed the same addresses as my Netmos 2 port card. This particular one 
 may be hard to find. First, use lspic -vv or even lspci -vvv to get more 
 information than with lspci -v.

lspci -vv outputs this:

00:0b.0 Serial controller: Titan Electronics Inc VScom 010L 1 port parallel 
adaptor (prog-if 02 [16550])
Subsystem: Titan Electronics Inc VScom 010L 1 port parallel adaptor
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium TAbort- TAbort- 
MAbort- SERR- PERR-
Interrupt: pin A routed to IRQ 9
Region 0: I/O ports at c400 [size=8]
Region 1: I/O ports at c800 [size=8]
Region 2: I/O ports at cc00 [size=8]
Region 3: I/O ports at d000 [size=8]
Region 4: Memory at ed001000 (32-bit, non-prefetchable) [size=64]

lspci -vvv outputs this:

00:0b.0 Serial controller: Titan Electronics Inc VScom 010L 1 port parallel 
adaptor (prog-if 02 [16550])
Subsystem: Titan Electronics Inc VScom 010L 1 port parallel adaptor
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium TAbort- TAbort- 
MAbort- SERR- PERR-
Interrupt: pin A routed to IRQ 9
Region 0: I/O ports at c400 [size=8]
Region 1: I/O ports at c800 [size=8]
Region 2: I/O ports at cc00 [size=8]
Region 3: I/O ports at d000 [size=8]
Region 4: Memory at ed001000 (32-bit, non-prefetchable) [size=64]

 Look at /proc/ioports: You will find addresses like a400, b000 up to d000. 
 My card supplies 6 such possibilities to chose. Behind the valid address 
 EMC had put in a line stating hal parport as a comment. That's the one. 
 If you are not sure, try them all with stepconf: insert the address to be 
 tested, doubleclick on Continue to get to the X-Axis page and test axis. 
 If the re is no motion, return with doubleclick and try the next address. 
 Within a minute I had tested all 6 addresses given.
 Don't save the stepconf five when leaving in case you have made unintended 
 changes.

I think I have done something similar to this by changing the .hal file to the 
four different addresses that were shown via lspci -v.  0xc400 caused errors 
and the other three would allow axis to start up but there would be no output.

So with the above data shown from lspci, is there anything in there besides the 
addresses that could be used to figure out what is happening?

Thanks for the help so far!
Will Baden

_
Windows Live™: Keep your life in sync.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_042009
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] PCI Parallel port

2009-04-06 Thread William Baden

Lars,

I have gone through that page but have not found anything that would show the 
problem, maybe a second look is what needs to be done.

Thanks,
Will Baden

 From: l...@larsandersson.com
 To: emc-users@lists.sourceforge.net
 Date: Mon, 6 Apr 2009 19:02:31 +0200
 Subject: Re: [Emc-users] PCI Parallel port
 
 Hi William,
 
 wiki.linuxcnc.org/cgi-bin/emcinfo.pl?TroubleShooting#Parallel_port_no_longer
 _works_in_EMC_2_0_1_or_later_hal_parport_Device_or_resource_busy
 Paragraph 4 in this document describes soething similar to your debug output
 
 
  Debug file information:
  insmod: error inserting
 '/usr/realtime-2.6.24-16-rtai/modules/emc2/hal_parport.ko': -1 Device or
 resource busy
 
 
 Regards,
 Lars
 
 
 
 --
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

_
Rediscover Hotmail®: Get e-mail storage that grows with you. 
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage1_042009
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] PCI Parallel port

2009-04-06 Thread William Baden

Lars,

Just checked, there is a file /etc/modprobe.d/emc2 that does have the line 
install parport_pc /bin/true

So it doesn't look to be this problem.

Thanks,
Will Baden

 From: willba...@hotmail.com
 To: emc-users@lists.sourceforge.net
 Date: Tue, 7 Apr 2009 00:10:01 +
 Subject: Re: [Emc-users] PCI Parallel port
 
 
 Lars,
 
 I have gone through that page but have not found anything that would show the 
 problem, maybe a second look is what needs to be done.
 
 Thanks,
 Will Baden
 
  From: l...@larsandersson.com
  To: emc-users@lists.sourceforge.net
  Date: Mon, 6 Apr 2009 19:02:31 +0200
  Subject: Re: [Emc-users] PCI Parallel port
  
  Hi William,
  
  wiki.linuxcnc.org/cgi-bin/emcinfo.pl?TroubleShooting#Parallel_port_no_longer
  _works_in_EMC_2_0_1_or_later_hal_parport_Device_or_resource_busy
  Paragraph 4 in this document describes soething similar to your debug output
  
  
   Debug file information:
   insmod: error inserting
  '/usr/realtime-2.6.24-16-rtai/modules/emc2/hal_parport.ko': -1 Device or
  resource busy
  
  
  Regards,
  Lars
  
  
  
  --
  ___
  Emc-users mailing list
  Emc-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/emc-users
 
 _
 Rediscover Hotmail®: Get e-mail storage that grows with you. 
 http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage1_042009
 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-com
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

_
Rediscover Hotmail®: Get e-mail storage that grows with you. 
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage1_042009
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] PCI Parallel port

2009-04-05 Thread Greg Michalski
Hi Will - 

I'm a bit tired but I recall having to try all the addresses to get my
Netmos card to work - which you've already done.  Looking at my config file
I have quotes around my addresses (I have 2 ports, one an input only so that
might be why - I'd have to go back and read docs).  Also the dmesg file says
something about the module parport - did you try commenting out the loadrt
prob_parport?  Not sure if this is what it refers to.  Sorry I can't be of
more assistance at the moment.

HTH

Greg
www.distinctperspectives.com
 
 From: William Baden [mailto:willba...@hotmail.com]
 Sent: Sunday, April 05, 2009 10:41 PM
 Subject: [Emc-users] PCI Parallel port
 
 Hi all,
 
 Being still new to linux and EMC2 I have decided to use an old computer to
learn
 more about it, using a small table top mill that I built using various
parts.  Wanting
 to branch out into a cheap I/O upgrade I decided to purchase a PCI
parallel port
 card.  But I have run into a problem getting this going.
 
 After installing the card, I used sudo lspci -v to find out the address,
this is what
 was displayed:

[SNIP] 
 
 00:0b.0 Serial controller: Titan Electronics Inc VScom 010L 1 port
parallel adaptor
 (prog-if 02 [16550])
 Subsystem: Titan Electronics Inc VScom 010L 1 port parallel adaptor
 Flags: medium devsel, IRQ 9
 I/O ports at c400 [size=8]
 I/O ports at c800 [size=8]
 I/O ports at cc00 [size=8]
 I/O ports at d000 [size=8]
 Memory at ed001000 (32-bit, non-prefetchable) [size=64]
 
[/SNIP
 
 Assuming that this 00:0b.0 Serial controller: Titan Electronics Inc VScom
010L 1
 port parallel adaptor was the pci card that I recently installed, I used
the address
 c400 for the address in the .hal file line:
 
 loadrt hal_parport cfg=0xc400
 
 The .hal file that I used was created by stepconf, and functions fine with
the built in
 parallel port.  But when I use 0xc400 as the address I get this error on
startup of
 Axis:
 
 Debug file information:
 insmod: error inserting
'/usr/realtime-2.6.24-16-rtai/modules/emc2/hal_parport.ko': -
 1 Device or resource busy
 FlatBed_Scanner_Mill_2nd_parallel_port_test.hal:27: exit value: 1
 FlatBed_Scanner_Mill_2nd_parallel_port_test.hal:27: insmod failed,
returned -1
 See the output of 'dmesg' for more information.
 4820
   PID TTY  STAT   TIME COMMAND
 Stopping realtime threads
 Unloading hal components
 
 And also from dmesg:
 
 [  336.998036] config string '0xc400'
 [  336.999790] PARPORT: ERROR: request_region(c400) failed
 [  336.999821] (make sure the kernel module 'parport' is unloaded)
 
 I have tried the other three address's listed.  They allow Axis to start
but cause no
 outputs on the parallel port card.
 
 Also, after searching the Gmane archives, I found info about Netmos cards
but nno
 luck on VSCom.
 
 I am sure that I missed some steps in the setup fo this card but am unsure
as to
 what they are.
 What are the steps that I missed to do and what can I do to track them
down?
 
 Thanks,
 
 Will Baden
 


--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users