LinuxCNC Parallel Port Error - Unknown symbol in module

More
9 years 10 months ago #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:
Code:
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:
Code:
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
9 years 10 months ago #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
9 years 10 months ago #84915 by GingerPhil
Code:
[ 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
9 years 10 months ago - 9 years 10 months ago #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: 9 years 10 months ago by ArcEye.

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

More
9 years 10 months ago - 9 years 10 months ago #84917 by GingerPhil

ArcEye wrote: 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:
Code:
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:
Code:
[ 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: 9 years 10 months ago by GingerPhil. Reason: wrong quote

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

More
9 years 10 months ago #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:
Code:
Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/hal_parport.ko: No such device

A new error!
Code:
[ 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.

Time to create page: 0.106 seconds
Powered by Kunena Forum