LinuxCNC Parallel Port Error - Unknown symbol in module

More
30 Dec 2016 13:52 #84912 by GingerPhil
Good afternoon!

This is my first post, hopefully there is no other like it. I have been playing around trying to get LinuxCNC to work on an old PC with a motherboard parallel port. However I am having some problems with the parallel port!

After using StepConf to setup the machine, I first get the error:
Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/hal_parport.ko: Device or resource busy

Which I believe isn't uncommon, however after ending lp, Ppdev, and parport_pc, a new error appears that I have not come across before:
Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/hal_parport.ko: Unknown symbol in module

Please Log in or Create an account to join the conversation.

More
30 Dec 2016 13:56 #84913 by andypugh
What do you see in the last 20 lines of so of the output of the "dmesg" command?

Please Log in or Create an account to join the conversation.

More
30 Dec 2016 15:16 #84915 by GingerPhil
[  753.383326] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
[  753.401813] RTAI[math]: loaded.
[  753.552178] hal_parport: Unknown symbol parport_register_device (err 0)
[  753.552209] hal_parport: Unknown symbol parport_release (err 0)
[  753.552229] hal_parport: Unknown symbol parport_claim (err 0)
[  753.552251] hal_parport: Unknown symbol parport_unregister_device (err 0)
[  753.552270] hal_parport: Unknown symbol parport_find_number (err 0)
[  753.552301] hal_parport: Unknown symbol parport_find_base (err 0)
[  753.552322] hal_parport: Unknown symbol parport_put_port (err 0)
[  754.054050] RTAI[math]: unloaded.
[  754.057632] SCHED releases registered named ALIEN PEDV$D
[  754.068963] RTAI[malloc]: unloaded.
[  754.168047] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[  754.171609] I-pipe: head domain RTAI unregistered.
[  754.171697] RTAI[hal]: unmounted.

I presume this is what you are after?

Please Log in or Create an account to join the conversation.

More
30 Dec 2016 15:48 - 30 Dec 2016 15:51 #84916 by ArcEye
You need to have parport loaded, to supply the base access functions.
The errors in dmesg suggest it is not loaded.

Before you start linuxcnc, open a terminal and do
$ lsmod

You should have parport loaded, but not lp or ppdev or parport_pc

If it is not loaded then do
$ sudo modprobe parport

If it is loaded and so are the other modules as above then do
$ sudo rmmod parport_pc && sudo rmmod ppdev && sudo rmmod lp

Then try running linuxcnc .

I have had this problem with some kernels previously, where if you blacklist lp and / or parport_pc, udev decides that there is no need for parport either and does not load it.
Last edit: 30 Dec 2016 15:51 by ArcEye.

Please Log in or Create an account to join the conversation.

More
30 Dec 2016 17:23 - 30 Dec 2016 17:57 #84917 by GingerPhil

I have had this problem with some kernels previously, where if you blacklist lp and / or parport_pc, udev decides that there is no need for parport either and does not load it.


I think that is what has happened, parport has not been loaded as a result of ppdev, parport_pc and lp not being there.

However if I load parport and then check only parport is loaded with $ lsmod, I still get the original error:
Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/hal_parport.ko: Device or resource busy

with dmesg showing:
[ 7411.417163] RTAI[math]: loaded. 
[ 7411.567424] config string 'configuration string' 
[ 7411.570138] PARPORT: ERROR: request_region(0xffff) failed 
[ 7412.065364] RTAI[math]: unloaded. 
[ 7412.069109] SCHED releases registered named ALIEN PEDV$D 
[ 7412.079870] RTAI[malloc]: unloaded. 
[ 7412.176047] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0). 
[ 7412.179559] I-pipe: head domain RTAI unregistered.
Last edit: 30 Dec 2016 17:57 by GingerPhil. Reason: wrong quote

Please Log in or Create an account to join the conversation.

More
30 Dec 2016 17:38 #84919 by GingerPhil
Scrap that I had a strange stuff in the .hal in an attempt to fix it earlier - after rerunning stepconf I get:
Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/hal_parport.ko: No such device

A new error!
[ 7411.404993] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns. 
[ 7411.417163] RTAI[math]: loaded. 
[ 7411.567424] config string 'configuration string' 
[ 7411.570138] PARPORT: ERROR: request_region(0xffff) failed 
[ 7412.065364] RTAI[math]: unloaded. 
[ 7412.069109] SCHED releases registered named ALIEN PEDV$D 
[ 7412.079870] RTAI[malloc]: unloaded. 
[ 7412.176047] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0). 
[ 7412.179559] I-pipe: head domain RTAI unregistered. 


and


[ 8346.985411] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns. 
[ 8346.997155] RTAI[math]: loaded. 
[ 8347.211470] config string '0 out' 
[ 8347.214257] PARPORT: ERROR: linux parport 0 not found 
[ 8349.836303] RTAI[math]: unloaded. 
[ 8349.840323] SCHED releases registered named ALIEN PEDV$D 
[ 8349.850123] RTAI[malloc]: unloaded. 
[ 8349.948042] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).

Please Log in or Create an account to join the conversation.

More
10 May 2017 19:31 #92993 by kagouraki
Exact same problem here. Have you found a solution ?

Giorgos

Please Log in or Create an account to join the conversation.

More
10 May 2017 23:00 #92997 by tommylight
Parport.0. Not found
That is when Linuxcnc can not find parport due to having this in the hal file:
Loadrt parport "0 out"
You have to give it a valid address as in some cases that does not workn so
Loadrt parport "0x378 out"
Should work if that is the actual address.
Device or resource busy you get when you have wrong address, and when you get that, you have to restart the computer and edit the address. Without restart it will not work even after editing the correct address.
If using add on pci cards use
Sudo lspci -v
And look for driver in use parport or parport_pc, use the address above that and put it in the hal file.

Please Log in or Create an account to join the conversation.

Time to create page: 0.074 seconds
Powered by Kunena Forum