7i43 and parallel port errors

More
02 Apr 2016 23:46 #72593 by gandalf
Hi,
I'm working on a new 7i43 configuration on Debian Wheezy PREEMPT and linuxcnc 2.7-uspace but I'm facing with errors related to parallel port.

root@cnc:~# uname -a
Linux cnc 3.2.0-4-rt-amd64 #1 SMP PREEMPT RT Debian 3.2.78-1 x86_64 GNU/Linux

Some modules must be included in modprobe blacklist.

root@cnc:~# cat /etc/modprobe.d/linuxcnc-blacklist.conf
blacklist parport_pc
blacklist lp
blacklist ppdev

Now, when linuxcnc load the hm2_7i43 I get an error, when axis starts (in the bottom right error message box ), that says:

Linux parallel port @888 not found

running axis from shell I get:

LINUXCNC - 2.7.4
Machine configuration directory is '/home/antonio/linuxcnc/configs/my_LinuxCNC_machine'
Machine configuration file is 'my_LinuxCNC_machine.ini'
Starting LinuxCNC...
Found file(REL): ./my_LinuxCNC_machine.hal
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
hm2_7i43: loading HostMot2 Mesa 7i43 driver version 0.3
Linux parallel port @888 not found
hm2/hm2_7i43.0: Smart Serial Firmware Version 43
hm2/hm2_7i43.0: 48 I/O Pins used:
hm2/hm2_7i43.0: IO Pin 000 (P4-01): IOPort
...
...
hm2/hm2_7i43.0: registered
hm2_7i43.0: board at (ioaddr=0x0378, ioaddr_hi=0x0000, epp_wide ON) found
Found file(REL): ./custom.hal
Linux parallel port @888 not found

Someone knows what it means?

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

More
04 Apr 2016 11:59 #72702 by andypugh

hm2_7i43.0: board at (ioaddr=0x0378, ioaddr_hi=0x0000, epp_wide ON) found
Found file(REL): ./custom.hal
Linux parallel port @888 not found

Someone knows what it means?


It might be coincidence, but 888 decimal == 378 hex.

Are you sure that 0x378 is the parallel port base address?

In the current version of LinuxCNC I believe it is now unhelpful to blacklist parport_pc, you could try putting it back.

cat /proc/ioports might show where the parallel port is.
The following user(s) said Thank You: gandalf

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

More
04 Apr 2016 18:20 #72732 by PCW
Replied by PCW on topic 7i43 and parallel port errors
Actually it looks like it found the 7I43 card so the error message is coming from something else
maybe something with the now deprecated probe_parport
The following user(s) said Thank You: gandalf

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

More
04 Apr 2016 19:46 - 04 Apr 2016 19:50 #72735 by gandalf
Maybe it is solved.
I removed all blackilist but 7i43 was not found. During startup modules are loaded.
Then I tried few combinations doing rmmod (at startup modules are always loaded) and trying to modprobe manually and the correct order is:
1) ppdev
2) parport_pc (it seems mandatory to have /dev/parport0)

Then I used the file /etc/modules adding this 2 lines:

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.

loop

#LinuxCNC
ppdev
parport_pc

Now, after rebbot, 7i43 is loaded without errors

Below the lsmod output.
....
ppdev 12763 0
loop 22561 0
joydev 17190 0
evdev 17486 17
coretemp 12898 0
crc32c_intel 12747 0
cryptd 14517 0
parport_pc 22364 0
parport 35922 2 parport_pc,ppdev
...

It seems that the order is important during kernel module loading.
Hope this can be useful for other.
Last edit: 04 Apr 2016 19:50 by gandalf.

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

Moderators: cmorley
Time to create page: 0.162 seconds
Powered by Kunena Forum