Paralell port problems SOLVED!
05 Mar 2016 01:30 - 15 Mar 2016 03:05 #71069
by gizmo6023
Paralell port problems SOLVED! was created by gizmo6023
I have attempted three different versions of Linux all of which worked initially but then lost the ability to communicate with the parallel ports. I have spent a week searching the forum for a way to resolve this issue and not found a workable answer. The system was running properly until shut down the next morning all it does is produce errors when attempting to launch LinuxCNC.
Attached are the latest error message generated at launch, lspci -v output, and fresh copy of dmesg out put.
Any assistance would be greatly appreciated.
Attached are the latest error message generated at launch, lspci -v output, and fresh copy of dmesg out put.
Any assistance would be greatly appreciated.
Last edit: 15 Mar 2016 03:05 by gizmo6023.
Please Log in or Create an account to join the conversation.
05 Mar 2016 02:10 #71072
by gizmo6023
Replied by gizmo6023 on topic Yet another nube with paralell port problems
Here is another file from ppdiag that may help
Please Log in or Create an account to join the conversation.
05 Mar 2016 20:59 #71100
by gizmo6023
Replied by gizmo6023 on topic Yet another nube with paralell port problems
Found another how to that only produces more errors.
dave@dave-desktop:~$ lsmod | grep parport
parport 30764 0
Does this mean that I have no parport drivers loaded??
dave@dave-desktop:~$ sudo modprobe parport_pc
dave@dave-desktop:~$ sudo rmmod ppdev
dave@dave-desktop:~$ sudo rmmod lp
dave@dave-desktop:~$ sudo rmmod parport_pc
ERROR: Module parport_pc does not exist in /proc/modules
Does this indicate that version 2.7.4 has had the offending file relocated if so where,or is this just another dead end?
I have followed the above steps and still get :
insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/hal_parport.ko': -1 Device or resource busy
./my-mill.hal:6: exit value: 1
./my-mill.hal:6: insmod for hal_parport failed, returned -1
See the output of 'dmesg' for more information.
2759
dave@dave-desktop:~$ lsmod | grep parport
parport 30764 0
Does this mean that I have no parport drivers loaded??
dave@dave-desktop:~$ sudo modprobe parport_pc
dave@dave-desktop:~$ sudo rmmod ppdev
dave@dave-desktop:~$ sudo rmmod lp
dave@dave-desktop:~$ sudo rmmod parport_pc
ERROR: Module parport_pc does not exist in /proc/modules
Does this indicate that version 2.7.4 has had the offending file relocated if so where,or is this just another dead end?
I have followed the above steps and still get :
insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/hal_parport.ko': -1 Device or resource busy
./my-mill.hal:6: exit value: 1
./my-mill.hal:6: insmod for hal_parport failed, returned -1
See the output of 'dmesg' for more information.
2759
Please Log in or Create an account to join the conversation.
06 Mar 2016 07:48 #71109
by Rick G
Replied by Rick G on topic Yet another nube with paralell port problems
The following user(s) said Thank You: gizmo6023
Please Log in or Create an account to join the conversation.
06 Mar 2016 15:46 #71114
by gizmo6023
Thank you for the link, I had not seen that one before.
I managed to get one of two parallel ports working again after I found which module was using parport_pc and shut it down.
I can not find any thing that indicates the second port is in use but it does not have any place to assign the port address in step config, and leaving two parallel ports option checked causes LinuxCNC to crash on start.
Will see if the information in the link provided will help recover the second port.
Dave
Replied by gizmo6023 on topic Yet another nube with paralell port problems
Have you looked here...
linuxcnc.org/docs/html/getting-started/u....html#_parallel_port
Rick G
Thank you for the link, I had not seen that one before.
I managed to get one of two parallel ports working again after I found which module was using parport_pc and shut it down.
I can not find any thing that indicates the second port is in use but it does not have any place to assign the port address in step config, and leaving two parallel ports option checked causes LinuxCNC to crash on start.
Will see if the information in the link provided will help recover the second port.
Dave
Please Log in or Create an account to join the conversation.
07 Mar 2016 13:03 #71148
by andypugh
To be pedantic, it isn't "crashing" it is exiting with an error.
The difference is that there will be some useful debug data available that will describe the error.
You might want to try referencing the parallel ports by index number (0, 1, 2) istead of base address.
Replied by andypugh on topic Yet another nube with paralell port problems
leaving two parallel ports option checked causes LinuxCNC to crash on start.
To be pedantic, it isn't "crashing" it is exiting with an error.
The difference is that there will be some useful debug data available that will describe the error.
You might want to try referencing the parallel ports by index number (0, 1, 2) istead of base address.
Please Log in or Create an account to join the conversation.
11 Mar 2016 21:09 #71450
by gizmo6023
Replied by gizmo6023 on topic Yet another nube with paralell port problems
To be pedantic, it isn't "crashing" it is exiting with an error.
The difference is that there will be some useful debug data available that will describe the error.
You might want to try referencing the parallel ports by index number (0, 1, 2) istead of base address.[/quote]
I was under the understanding that step config required the address, I will give it a try with only port numbers.
The difference is that there will be some useful debug data available that will describe the error.
You might want to try referencing the parallel ports by index number (0, 1, 2) istead of base address.[/quote]
I was under the understanding that step config required the address, I will give it a try with only port numbers.
Please Log in or Create an account to join the conversation.
12 Mar 2016 01:21 #71463
by gizmo6023
Replied by gizmo6023 on topic Yet another nube with paralell port problems
I attempted just using the port numbers vice the actual address and LinuxCNC had issues with that.
Error says port 1 not found. I am still not getting an option to assign parport 2 address in step config must still be something else grabbing that port before LinuxCNC gets it. Will try removing that card and see if that will release it so I can assign it to something useful.
Error says port 1 not found. I am still not getting an option to assign parport 2 address in step config must still be something else grabbing that port before LinuxCNC gets it. Will try removing that card and see if that will release it so I can assign it to something useful.
Please Log in or Create an account to join the conversation.
12 Mar 2016 01:35 #71466
by andypugh
Does is find port 0?
There does seem to be a problem with lp (printer thing) grabbing the parports in newer distributions. I can't help much, I stopped using the parport several years ago.
Replied by andypugh on topic Yet another nube with paralell port problems
I attempted just using the port numbers vice the actual address and LinuxCNC had issues with that.
Error says port 1 not found.
Does is find port 0?
There does seem to be a problem with lp (printer thing) grabbing the parports in newer distributions. I can't help much, I stopped using the parport several years ago.
Please Log in or Create an account to join the conversation.
12 Mar 2016 01:58 - 12 Mar 2016 02:06 #71470
by gizmo6023
Replied by gizmo6023 on topic Yet another nube with paralell port problems
Looks like it is having issues:
dave@debian:~$ dmesg | grep par
[ 0.004092] AppArmor: AppArmor disabled by boot time parameter
[ 1.231270] hpet0: 3 comparators, 64-bit 14.318180 MHz counter
[ 2.441740] ahci 0000:00:1f.2: flags: 64bit ncq pm led clo pio slum part ccc ems
[ 7.952108] PM: Hibernation image partition 8:5 present
[ 8.704534] parport0: PC-style at 0xdca0, irq 18 [PCSPP,TRISTATE,EPP]
[ 8.800225] parport0: PC-style at 0xdcc8, irq 19 [PCSPP,TRISTATE,EPP]
[ 12.866304] ppdev: user-space parallel port driver
[ 731.603303] PARPORT: ERROR: linux parport 0 not found
[ 806.720709] PARPORT: ERROR: linux parport 1 not found
dave@debian:~$
I have the system running with the first port address listed, still have one input available but would like to have the other port working so I can install limit switches and probe/touch plate
dave@debian:~$ dmesg | grep par
[ 0.004092] AppArmor: AppArmor disabled by boot time parameter
[ 1.231270] hpet0: 3 comparators, 64-bit 14.318180 MHz counter
[ 2.441740] ahci 0000:00:1f.2: flags: 64bit ncq pm led clo pio slum part ccc ems
[ 7.952108] PM: Hibernation image partition 8:5 present
[ 8.704534] parport0: PC-style at 0xdca0, irq 18 [PCSPP,TRISTATE,EPP]
[ 8.800225] parport0: PC-style at 0xdcc8, irq 19 [PCSPP,TRISTATE,EPP]
[ 12.866304] ppdev: user-space parallel port driver
[ 731.603303] PARPORT: ERROR: linux parport 0 not found
[ 806.720709] PARPORT: ERROR: linux parport 1 not found
dave@debian:~$
I have the system running with the first port address listed, still have one input available but would like to have the other port working so I can install limit switches and probe/touch plate
Last edit: 12 Mar 2016 02:06 by gizmo6023.
Please Log in or Create an account to join the conversation.
Time to create page: 0.191 seconds