Parallel port error in RTAI kernel

More
10 Jan 2022 07:41 #231290 by rajsekhar
Parallel port error in RTAI kernel was created by rajsekhar
Dear Friends,

I installed linuxcnc 2.7 wheezy with RTAI. Earlier I was doing Linuxcnc 2.8.2 buster RT-Preepmt, but latency became the barrier. With RTAI , Latency is below 17000ns.

Now with RTAI, the parallel port error occurs. 

The parallel port is enabled in bios. In my PC, one Parallel port is on motherboard itself, other is on PCIE slot.

The lspci -v screen and linuxcnc error message is attached.

I have already tried rmmod lp,  rmmod ppdev & rmmod -f parport_pc. but no luck.

How to get rid of this.?
Attachments:

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

  • ALittleOffTheRails
  • ALittleOffTheRails's Avatar
  • Visitor
  • Visitor
10 Jan 2022 07:54 - 10 Jan 2022 07:58 #231291 by ALittleOffTheRails
Replied by ALittleOffTheRails on topic Parallel port error in RTAI kernel
Please attach your hal, ini & linux debug files and the screens shots you supplied do not show anything regarding the parallel port.

Screens shots are very difficult for debugging as other users have to read through the logs rather than using grep or some other tool to look for the info they need to debug.

This thread here has information regarding how to get some useful parallel port info from your system.
forum.linuxcnc.org/18-computer/42826-par...-info-thread?start=0

If you search there are a lot and I mean a lot of threads that other users have started with issues with the parallel port.

A few of the regulars have tried to get information together in one thread to make this issue simpler to debug, but unfortunately very few users actually seem to search.
Last edit: 10 Jan 2022 07:58 by ALittleOffTheRails.

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

  • ALittleOffTheRails
  • ALittleOffTheRails's Avatar
  • Visitor
  • Visitor
10 Jan 2022 08:01 #231292 by ALittleOffTheRails
Replied by ALittleOffTheRails on topic Parallel port error in RTAI kernel
If you don't have internet access on the machine you are using you will have to copy the requested files via USB to a computer you are accessing the forums with.

If you don't know how to there are many resources on the internet.

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

More
10 Jan 2022 11:34 #231297 by rajsekhar
Replied by rajsekhar on topic Parallel port error in RTAI kernel
HAL, Linuxcnc error, INI file attached 

File Attachment:

File Name: linuxcncerror.txt
File Size:44 KB

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

More
10 Jan 2022 17:35 #231325 by rajsekhar
Replied by rajsekhar on topic Parallel port error in RTAI kernel
Well, with few hour study, I understand that parallel port address need to be added to hal file 'cfg='.
 

File Attachment:

File Name: catprocioports.txt
File Size:2 KB

 

File Attachment:

File Name: lspci.txt
File Size:6 KB


$lspci and $cat /proc/ioports screen attached. My PC is having 1 parallel port on MB, another in PCIE X1 slot.

But what is the address exactly?? I am not able to find out, need help.
Attachments:

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

  • ALittleOffTheRails
  • ALittleOffTheRails's Avatar
  • Visitor
  • Visitor
11 Jan 2022 00:53 #231378 by ALittleOffTheRails
Replied by ALittleOffTheRails on topic Parallel port error in RTAI kernel
try
sudo cat /proc/ioports

As doing it without superuser privileges produces output that has no actual info.

Also I think you should try and read this:
linuxcnc.org/docs/2.8/html/config/stepconf.html

As it looks like you tired to use a simulator config.

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

More
11 Jan 2022 04:08 #231388 by rajsekhar
Replied by rajsekhar on topic Parallel port error in RTAI kernel
I got sucess for one parallel port with its address added to 'cfg=0x0378 out'.

But same is not happening for 2nd parallel port when I use step config wizard witj two parport.

The error shows partport.ko: busy or unavaliable.

what is the solution??

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

  • ALittleOffTheRails
  • ALittleOffTheRails's Avatar
  • Visitor
  • Visitor
11 Jan 2022 04:21 #231393 by ALittleOffTheRails
Replied by ALittleOffTheRails on topic Parallel port error in RTAI kernel
From your output
02:00.0 Serial controller: Device 1c00:3250 (rev 10) (prog-if 05 [16850])
	Subsystem: Device 1c00:3250
	Physical Slot: 0
	Flags: bus master, fast devsel, latency 0, IRQ 16
	I/O ports at e000 [size=256]
	Memory at e0508000 (32-bit, prefetchable) [size=32K]
	I/O ports at e100 [size=4]
	Expansion ROM at e0500000 [disabled] [size=32K]
	Capabilities: <access denied>
	Kernel driver in use: parport_serial
	Kernel modules: parport_serial

We can see that the kernel has loaded the kernel module for your PCIe parallel port.
There is an I\O Port at e000.

Now if you had of followed the links on the page I linked, the links are on that page to help, you would have found this page.
wiki.linuxcnc.org/cgi-bin/wiki.pl?Parallel_Port_Cards

Be sure to look at the Parallel Port test page as well.

The reason for that page was to help indentify which cards work and links that provide information that is not included.

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

Time to create page: 0.091 seconds
Powered by Kunena Forum