Oxford University PCI parallel port
29 Apr 2016 15:57 #74061
by grump
Oxford University PCI parallel port was created by grump
Hi guys I am a newbie here.
Not new to Linuxcnc or computers but this one has me stumped and I wonder if you can help?
I have installed version 2.7.4 on a more powerful PC but it doesn't have a parport so I added a PCI port in the hope all would go smoothly.
Some hope, I cannot get a movement from the cnc machine no matter what I read or try, I know the first things you will ask for are readouts so here goes.
root@CNC:~# dmesg | grep par
[ 0.004049] AppArmor: AppArmor disabled by boot time parameter
[ 0.177248] hpet0: 3 comparators, 64-bit 14.318180 MHz counter
[ 6.477919] PM: Hibernation image partition 8:5 present
[ 26.720275] ppdev: user-space parallel port driver
[ 221.076454] PARPORT: ERROR: linux parport 0 not found
root@CNC:~#
lspci -v and hal attached. Anything else I might need?
There is nowhere in bios to enable pci parallel or serial ports, I have the PC dual booting and windoze sees the port and prints OK when attached to printer.
I know the dangers of using root so that lecture is not required thanks.
I have two parallel pci cards but only one installed and one spare, neither of them work in Linux and both work in windoze with the address as E800 or He800.
I have no hair left as I have pulled it all out with this issue. The cnc machine works fine when swapped to the old pc.
Please help??
Brian.
Not new to Linuxcnc or computers but this one has me stumped and I wonder if you can help?
I have installed version 2.7.4 on a more powerful PC but it doesn't have a parport so I added a PCI port in the hope all would go smoothly.
Some hope, I cannot get a movement from the cnc machine no matter what I read or try, I know the first things you will ask for are readouts so here goes.
root@CNC:~# dmesg | grep par
[ 0.004049] AppArmor: AppArmor disabled by boot time parameter
[ 0.177248] hpet0: 3 comparators, 64-bit 14.318180 MHz counter
[ 6.477919] PM: Hibernation image partition 8:5 present
[ 26.720275] ppdev: user-space parallel port driver
[ 221.076454] PARPORT: ERROR: linux parport 0 not found
root@CNC:~#
lspci -v and hal attached. Anything else I might need?
There is nowhere in bios to enable pci parallel or serial ports, I have the PC dual booting and windoze sees the port and prints OK when attached to printer.
I know the dangers of using root so that lecture is not required thanks.
I have two parallel pci cards but only one installed and one spare, neither of them work in Linux and both work in windoze with the address as E800 or He800.
I have no hair left as I have pulled it all out with this issue. The cnc machine works fine when swapped to the old pc.
Please help??
Brian.
Please Log in or Create an account to join the conversation.
29 Apr 2016 16:53 - 29 Apr 2016 17:17 #74063
by andypugh
Replied by andypugh on topic Oxford University PCI parallel port
Deleted, I was talking rubbish
Last edit: 29 Apr 2016 17:17 by andypugh.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
29 Apr 2016 17:12 #74064
by Todd Zuercher
Replied by Todd Zuercher on topic Oxford University PCI parallel port
To start with I think you need to change this line in your hal file.
From:
loadrt sim_parport names=parport.0
To:
loadrt hal_parport cfg="0xe800 out"
From:
loadrt sim_parport names=parport.0
To:
loadrt hal_parport cfg="0xe800 out"
Please Log in or Create an account to join the conversation.
29 Apr 2016 17:36 #74065
by grump
Replied by grump on topic Oxford University PCI parallel port
Thanks for the input, I had tried that and all the other address's, e880, ec00, e480, they all allo0w a gui but no movement from machine.
Please Log in or Create an account to join the conversation.
29 Apr 2016 17:44 #74067
by grump
Replied by grump on topic Oxford University PCI parallel port
I see what had happened I renamed the wrong hal, and I said I am comfortable in root.
Logged in as user ow and got the right hal file attached.
Logged in as user ow and got the right hal file attached.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
29 Apr 2016 17:44 #74068
by Todd Zuercher
Replied by Todd Zuercher on topic Oxford University PCI parallel port
The main problem I was trying to poin out was the sim_parport needed changed to hal_parport.
Please Log in or Create an account to join the conversation.
29 Apr 2016 17:51 #74069
by grump
Replied by grump on topic Oxford University PCI parallel port
As I say the actual hal being used was as hal and not sim, I sent the wrong file, an old one from initial install on 15th I have been trying to solve this myself since then and still no joy.
If anyone could solve the issue I would sure be grateful.
If anyone could solve the issue I would sure be grateful.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
29 Apr 2016 18:22 - 29 Apr 2016 18:22 #74071
by Todd Zuercher
Replied by Todd Zuercher on topic Oxford University PCI parallel port
Sorry, your corrected hal file was posted while I was typing.
The lspci output mentions something about the card (or the parallel port part of it) being disabled. Sorry I got nothing for you, other than try a different brand card. The closest thing I found on google was mentioning something about recompiling the kernel for it, but that is beyond my expertise.
The lspci output mentions something about the card (or the parallel port part of it) being disabled. Sorry I got nothing for you, other than try a different brand card. The closest thing I found on google was mentioning something about recompiling the kernel for it, but that is beyond my expertise.
05:01.0 Serial controller: Oxford Semiconductor Ltd EXSYS EX-41092 Dual 16950 Serial adapter (prog-if 06 [16950])
Subsystem: AFAVLAB Technology Inc Device 2130
Flags: medium devsel, IRQ 18
I/O ports at ec00 [size=32]
Memory at febff000 (32-bit, non-prefetchable) [size=4K]
I/O ports at e880 [size=32]
Memory at febfe000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [40] Power Management version 2
Kernel driver in use: serial
05:01.1 Bridge: Oxford Semiconductor Ltd OX16PCI954 (Quad 16950 UART) function 1 (Disabled)
Subsystem: AFAVLAB Technology Inc Device 0000
Flags: medium devsel, IRQ 5
I/O ports at e800 [size=32]
Memory at febfd000 (32-bit, non-prefetchable) [size=4K]
I/O ports at e480 [size=32]
Memory at febfc000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [40] Power Management version 2
Last edit: 29 Apr 2016 18:22 by Todd Zuercher.
Please Log in or Create an account to join the conversation.
30 Apr 2016 02:05 #74081
by jmelson
Replied by jmelson on topic Oxford University PCI parallel port
Those "serial ports" likely also contain the parallel ports. The Oxford multi-I/O chips generally combine UARTS and parport functions on the same chip. Try using the I/O port addresses shown in the lspci listing and see if they work. You likely will have to try them in order until you find the one that works. It won't be the default 378 address.
Jon
Jon
Please Log in or Create an account to join the conversation.
30 Apr 2016 13:56 - 30 Apr 2016 14:00 #74086
by grump
Replied by grump on topic Oxford University PCI parallel port
Solved.
Many thanks for your input guys, I used the parport tester here and noticed that only one configuration was making any difference.
The E800 hal, when toggled the 17 pin the 15 input changed value, other than that everything was dead.
I changed the PCI board to my spare and all is now working fine and dandy, the correct port for this card is e880 and it's like magic.
I now have a super fast cnc working smoother and quieter than ever before.
I am happy bunny having discovered I am not as stupid as I thought and do have a dead PCI board.
Many thanks for your input guys, I used the parport tester here and noticed that only one configuration was making any difference.
The E800 hal, when toggled the 17 pin the 15 input changed value, other than that everything was dead.
I changed the PCI board to my spare and all is now working fine and dandy, the correct port for this card is e880 and it's like magic.
I now have a super fast cnc working smoother and quieter than ever before.
I am happy bunny having discovered I am not as stupid as I thought and do have a dead PCI board.
Last edit: 30 Apr 2016 14:00 by grump. Reason: bad spelling
Please Log in or Create an account to join the conversation.
Time to create page: 0.094 seconds