Error,
- tjamscad
- Offline
- Platinum Member
-
Less
More
- Posts: 320
- Thank you received: 1
14 Dec 2016 17:26 #84106
by tjamscad
Everything is orginal except the hard drive. It is a Dell GX620 with a 25pin D-shell parrell port.
Replied by tjamscad on topic Error,
Just read the complete thread, and one of the errors mentions that existing parallel port does not support mode 4, so that just proves that you do not have a PPMC and the parallel port will not work as one. Do you have a PCI card on the old computer? If so, you will have to use that card and change the I/O address.
Ok just saw your post. So you do have one.
Now that is the external card. Is there a internal card on the old computer?
Everything is orginal except the hard drive. It is a Dell GX620 with a 25pin D-shell parrell port.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 19985
- Thank you received: 6783
14 Dec 2016 17:37 #84107
by tommylight
Replied by tommylight on topic Error,
Ok, so it was connected to the parallel port on the old computer. Right?
There might be a mode 4 for parallel ports, but i am not aware of it, i know only 3 modes namely the in,out, and X mode. Anyway i am sure none of the paraports have a DAC on pin 1. Or on any of the pins. They can be used as PWM easily, and depending on the mode they are set can be used as inputs or outputs, but not all pins.
You can try starting linuxcnc from a terminal using sudo, as i recal reading somewhere about permision denied.
Give it a try and report back.
There might be a mode 4 for parallel ports, but i am not aware of it, i know only 3 modes namely the in,out, and X mode. Anyway i am sure none of the paraports have a DAC on pin 1. Or on any of the pins. They can be used as PWM easily, and depending on the mode they are set can be used as inputs or outputs, but not all pins.
You can try starting linuxcnc from a terminal using sudo, as i recal reading somewhere about permision denied.
Give it a try and report back.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 19985
- Thank you received: 6783
14 Dec 2016 17:48 - 14 Dec 2016 17:54 #84110
by tommylight
Replied by tommylight on topic Error,
Can you please also post you hal and ini files
I am on the phone, but i will chack them as soo as posible.
Found the permision problem
Debug file information: Can not find -sec MOT -var MOT -num 1 Can not find -sec IO -var IO -num 1 Can not find -sec LINUXCNC -var NML_FILE -num 1 Can not find -sec EMC -var NML_FILE -num 1 insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/hal_ppmc.ko': -1 Operation not permitted enshu.hal:14: exit value: 1 enshu.hal:14: insmod failed, returned -1 See the output of 'dmesg' for more information.
Hal_ppmc.ko operation not permited.
So it can not load the driver, and can not find the card as a result.
Check the permisions for that file, and it should work,
I am on the phone, but i will chack them as soo as posible.
Found the permision problem
Debug file information: Can not find -sec MOT -var MOT -num 1 Can not find -sec IO -var IO -num 1 Can not find -sec LINUXCNC -var NML_FILE -num 1 Can not find -sec EMC -var NML_FILE -num 1 insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/hal_ppmc.ko': -1 Operation not permitted enshu.hal:14: exit value: 1 enshu.hal:14: insmod failed, returned -1 See the output of 'dmesg' for more information.
Hal_ppmc.ko operation not permited.
So it can not load the driver, and can not find the card as a result.
Check the permisions for that file, and it should work,
Last edit: 14 Dec 2016 17:54 by tommylight.
Please Log in or Create an account to join the conversation.
- tjamscad
- Offline
- Platinum Member
-
Less
More
- Posts: 320
- Thank you received: 1
14 Dec 2016 18:51 #84112
by tjamscad
I have not changed any cables.
Replied by tjamscad on topic Error,
Ok, so it was connected to the parallel port on the old computer. Right?
I have not changed any cables.
Please Log in or Create an account to join the conversation.
- tjamscad
- Offline
- Platinum Member
-
Less
More
- Posts: 320
- Thank you received: 1
14 Dec 2016 18:54 #84114
by tjamscad
Replied by tjamscad on topic Error,
Can you please also post you hal and ini files
Please Log in or Create an account to join the conversation.
- tjamscad
- Offline
- Platinum Member
-
Less
More
- Posts: 320
- Thank you received: 1
14 Dec 2016 19:07 #84115
by tjamscad
Replied by tjamscad on topic Error,
Bios settings
Please Log in or Create an account to join the conversation.
- cncnoob1979
-
- Offline
- Platinum Member
-
Less
More
- Posts: 403
- Thank you received: 75
14 Dec 2016 19:22 #84117
by cncnoob1979
Replied by cncnoob1979 on topic Error,
Have you tried to run linuxcnc with the
sudo
Command?
This will verify if you have a permission problem.
sudo linuxcnc /path/to/ini
sudo
Command?
This will verify if you have a permission problem.
sudo linuxcnc /path/to/ini
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 19985
- Thank you received: 6783
14 Dec 2016 19:31 #84118
by tommylight
Replied by tommylight on topic Error,
Everything looks O.K.
The only problem.you have to solve is to check permisions for hal_ppmc.ko as you are geting permision denied on that file. That file is located in the rtai kernel path so i assume it is a comp that has to be istalled ( with halcompile ) or it might work by changing the permisions of that file. Check to see if it is executable.
I rarely use halcompile, so i am not sure how to use it or of it is usable in this case. Check the config folder if you have a file with th .comp extension ( suposedly hal_ppmc.comp ) .
Also check '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/hal_ppmc.ko' for executable .
The only problem.you have to solve is to check permisions for hal_ppmc.ko as you are geting permision denied on that file. That file is located in the rtai kernel path so i assume it is a comp that has to be istalled ( with halcompile ) or it might work by changing the permisions of that file. Check to see if it is executable.
I rarely use halcompile, so i am not sure how to use it or of it is usable in this case. Check the config folder if you have a file with th .comp extension ( suposedly hal_ppmc.comp ) .
Also check '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/hal_ppmc.ko' for executable .
Please Log in or Create an account to join the conversation.
- tjamscad
- Offline
- Platinum Member
-
Less
More
- Posts: 320
- Thank you received: 1
14 Dec 2016 19:42 #84119
by tjamscad
Replied by tjamscad on topic Error,
mpm@enshu:~$ sudo /usr/bin/linuxcnc '/home/mpm/linuxcnc/configs/new_ppmc/enshu_touchy/enshu.ini'
[sudo] password for mpm:
LINUXCNC - 2.5.4
Machine configuration directory is '/home/mpm/linuxcnc/configs/new_ppmc/enshu_touchy'
Machine configuration file is 'enshu.ini'
Starting LinuxCNC...
enshu.hal:868: Pin 'ppmc.0.encoder.04.position' does not exist
Shutting down and cleaning up LinuxCNC...
Cleanup done
LinuxCNC terminated with an error. You can find more information in the log:
/home/mpm/linuxcnc_debug.txt
and
/home/mpm/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
mpm@enshu:~$
[sudo] password for mpm:
LINUXCNC - 2.5.4
Machine configuration directory is '/home/mpm/linuxcnc/configs/new_ppmc/enshu_touchy'
Machine configuration file is 'enshu.ini'
Starting LinuxCNC...
enshu.hal:868: Pin 'ppmc.0.encoder.04.position' does not exist
Shutting down and cleaning up LinuxCNC...
Cleanup done
LinuxCNC terminated with an error. You can find more information in the log:
/home/mpm/linuxcnc_debug.txt
and
/home/mpm/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
mpm@enshu:~$
Please Log in or Create an account to join the conversation.
- cncnoob1979
-
- Offline
- Platinum Member
-
Less
More
- Posts: 403
- Thank you received: 75
14 Dec 2016 19:53 #84121
by cncnoob1979
Replied by cncnoob1979 on topic Error,
Please post the dmesg as well.
Just to troubleshoot you can try to commit that offending line in your Hal file - just to see.
I believe it will just complain on the next line. Since it can't load the realtime module.
But as Tommylight pointed out - your dmesg is pointing to a permissions error - can you verify the files location and permissions?
Just to troubleshoot you can try to commit that offending line in your Hal file - just to see.
I believe it will just complain on the next line. Since it can't load the realtime module.
But as Tommylight pointed out - your dmesg is pointing to a permissions error - can you verify the files location and permissions?
Please Log in or Create an account to join the conversation.
Time to create page: 0.150 seconds