- Posts: 55
- Thank you received: 0
Paralell port problems SOLVED!
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.
Please Log in to join the conversation.
Please Log in to join the conversation.
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 to join the conversation.
Please Log in to join the conversation.
Rick G wrote: 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 to join the conversation.
gizmo6023 wrote: 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 to join the conversation.
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 to join the conversation.
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 to join the conversation.
gizmo6023 wrote: 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 to join the conversation.
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
Please Log in to join the conversation.
