- Posts: 44
- Thank you received: 0
insmod for hal_parport failed, returned -1
Error report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:
Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/realtime-4.14.174-rtai-amd64/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.8.1
Machine configuration directory is '/home/ddd/linuxcnc/configs/мой-станок'
Machine configuration file is 'мой-станок.ini'
INIFILE=/home/ddd/linuxcnc/configs/мой-станок/мой-станок.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=
DISPLAY=axis
COORDINATES=X Y Z
KINEMATICS=trivkins coordinates=XYZ
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Found file(REL): ./мой-станок.hal
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
insmod: ERROR: could not insert module /usr/realtime-4.14.174-rtai-amd64/modules/linuxcnc/hal_parport.ko: Unknown symbol in module
./мой-станок.hal:6: exit value: 1
./мой-станок.hal:6: insmod for hal_parport failed, returned -1
See the output of 'dmesg' for more information.
1488
Stopping realtime threads
Unloading hal components
Kernel message information:
[ 153.220464] I-pipe: head domain RTAI registered.
[ 153.220467] RTAI[hal]: mounted. ISOL_CPUS_MASK: 0.
[ 153.220469] SYSINFO - # CPUs: 2, TIMER NAME: 'lapic', TIMER IRQ: 4355, TIMER FREQ: 62496399, CLOCK NAME: 'tsc', CLOCK FREQ: 4007781000, CPU FREQ: 4007781000, LINUX TIMER IRQ: 4355.
[ 153.322283] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 153.323054] kstacks pool size = 524288 bytes
[ 153.323057] RTAI[sched]: hard timer type/freq = lapic/62496399(Hz)
[ 153.323058] linear timed lists.
[ 153.323060] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 4007781000 hz.
[ 153.323061] RTAI[sched]: timer setup = 2778 ns, resched latency = 0 ns.
[ 153.364572] USERMODE CHECK: OK.
[ 153.364574] USERMODE CHECK PROVIDED (ns): KernelLatency 33006, UserLatency 18523.
[ 153.364576] FINAL CALIBRATION SUMMARY (ns): KernelLatency 33006, UserLatency 18523.
[ 153.367786] RTAI[math]: loaded, using musl libm.
[ 153.706396] RTAPI: ERROR: Unexpected realtime delay on task 1
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
[ 153.771523] hal_parport: Unknown symbol parport_register_device (err 0)
[ 153.771535] hal_parport: Unknown symbol parport_release (err 0)
[ 153.771543] hal_parport: Unknown symbol parport_claim (err 0)
[ 153.771551] hal_parport: Unknown symbol parport_unregister_device (err 0)
[ 153.771568] hal_parport: Unknown symbol parport_find_number (err 0)
[ 153.771581] hal_parport: Unknown symbol parport_find_base (err 0)
[ 153.771590] hal_parport: Unknown symbol parport_put_port (err 0)
[ 156.935821] RTAI[math]: unloaded.
[ 156.964837] SCHED releases registered named ALIEN PEDV$D
[ 156.974780] RTAI[malloc]: unloaded.
[ 157.080737] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 157.102424] I-pipe: head domain RTAI unregistered.
[ 157.102461] RTAI[hal]: unmounted.
Info report created by linuxcnc_info:
The file: /tmp/linuxcnc_info.txt
can be posted to a forum or a web site like:
pastebin.com
in order to provide information about the linuxcnc
system and configuration.
Date: Пн мая 10 21:38:35 +06 2021
UTC Date: Пн мая 10 15:38:35 UTC 2021
this program: /usr/bin/linuxcnc_info
uptime: 21:38:35 up 2 min, 1 user, load average: 0,75, 0,72, 0,31
lsb_release -sa: Debian Debian GNU/Linux 10 (buster) 10 buster
which linuxcnc: /usr/bin/linuxcnc
pwd: /home/ddd/linuxcnc/configs/мой-станок
USER: ddd
LOGNAME: ddd
HOME: /home/ddd
EDITOR:
VISUAL:
LANGUAGE:
TERM: dumb
COLORTERM:
DISPLAY: :0.0
DESKTOP: lightdm-xsession
display size: 1920x1080 pixels (508x286 millimeters)
PATH: /usr/bin:/home/ddd/linuxcnc/configs/мой-станок/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
uname items:
nodename -n: ddd
kernel-name -s: Linux
kernel-vers -v: #3 SMP PREEMPT Wed Apr 22 12:38:32 BST 2020
machine -m: x86_64
processor -p: unknown
platform -i: unknown
oper system -o: GNU/Linux
/proc items:
cmdline: BOOT_IMAGE=/boot/vmlinuz-4.14.174-rtai-amd64 root=UUID=d2271399-312e-494f-af4f-22cd015f795a ro quiet
model name: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
cores: 2
cpu MHz: 4007.781
parport:
serial:
Versions:
gcc: gcc (Debian 8.3.0-6) 8.3.0
python: Python 2.7.16
git: not_in_PATH
git commit: NA
tcl: 8.6
tk: 8.6
glade: not_in_PATH
glade-gtk2: not_in_PATH
linuxcnc_var all:
LINUXCNCVERSION: 2.8.1
LINUXCNC_AUX_GLADEVCP: /usr/share/linuxcnc/aux_gladevcp
LINUXCNC_AUX_EXAMPLES: /usr/share/linuxcnc/aux_examples
REALTIME: /etc/init.d/realtime
RTS: /usr/realtime-4.14.174-rtai-amd64/bin/rtai-config
HALLIB_DIR: /usr/share/linuxcnc/hallib
dpkg -l '*linuxcnc*':
Желаемый=неизвестно/установить/удалить[r]/вычистить[p]/зафиксировать[h]
| Состояние=не[n]/установлен/настроен[c]/распакован/частично настроен[F]/
частично установлен[H]/trig-aWait/Trig-pend
|/ Ошибка?
нет)/требуется переустановка[R] (верхний регистрв полях состояния и ошибки указывает на ненормальную ситуацию)
||/ Имя Версия Архитектура Описание
+++-===================-============-============-=====================================================================
ii linuxcnc 1:2.8.1 amd64 motion controller for CNC machines and robots
ii linuxcnc-dev 1:2.8.1 amd64 PC based motion controller for real-time Linux
un linuxcnc-doc <нет> <нет> (описание недоступно)
ii linuxcnc-doc-en 1:2.8.0 all motion controller for CNC machines and robots (English documentation)
un linuxcnc-sim <нет> <нет> (описание недоступно)
un linuxcnc-sim-dev <нет> <нет> (описание недоступно)
un linuxcnc-uspace <нет> <нет> (описание недоступно)
un linuxcnc-uspace-dev <нет> <нет> (описание недоступно)
Attachment not found
Please Log in to join the conversation.
Note that LinuxCNC generally won't run well at all in a VM, except for simulation.
Jon
Please Log in to join the conversation.
jmelson wrote: Does your VM make a parallel port available to the guest OS? Most do NOT, by default, you have to turn the parport on explicitly.
Note that LinuxCNC generally won't run well at all in a VM, except for simulation.
Jon
the output of the "lspci-v" command does not contain information about the parallel port on any of the running VMs, but any configuration is started on other VMs.
Please Log in to join the conversation.
try "sudo cat /proc/ioports" to find non-pci parallel ports. (if you don't use "sudo" the addresses show as 0000)
Here is the output from one of my own VMs after adding a simulated parport:
But that parport does _not_ show up with lspci.
Please Log in to join the conversation.
andypugh wrote: Does your VM emulate a parallel port as a PCI device, or just as a generic endpoint at 0x378?
try "sudo cat /proc/ioports" to find non-pci parallel ports. (if you don't use "sudo" the addresses show as 0000)
Here is the output from one of my own VMs after adding a simulated parport:Code:andypugh@buster:~/linuxcnc-dev/src$ sudo cat /proc/ioports ... 0376-0376 : ata_piix 0378-037a : parport0 03c0-03df : vga+
But that parport does _not_ show up with lspci.
thank you for your tip. on no virtual machine does the output "sudo cat /proc/ioports" contain information about parallel ports. I will look for a solution further. below is an example of the output "sudo cat /proc/ioports" and it is approximately the same for the rest of the machines:
0000-0cf7 : PCI Bus 0000:00
0000-001f : dma1
0020-0021 : pic1
0040-0043 : timer0
0050-0053 : timer1
0060-0060 : keyboard
0064-0064 : keyboard
0070-0071 : rtc_cmos
0070-0071 : rtc0
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : 0000:00:01.1
0170-0177 : ata_piix
01f0-01f7 : 0000:00:01.1
01f0-01f7 : ata_piix
0376-0376 : 0000:00:01.1
0376-0376 : ata_piix
03c0-03df : vga+
03f6-03f6 : 0000:00:01.1
03f6-03f6 : ata_piix
0cf8-0cff : PCI conf1
0d00-ffff : PCI Bus 0000:00
4000-403f : 0000:00:07.0
4000-4003 : ACPI PM1a_EVT_BLK
4004-4005 : ACPI PM1a_CNT_BLK
4008-400b : ACPI PM_TMR
4020-4021 : ACPI GPE0_BLK
4100-410f : 0000:00:07.0
4100-4108 : piix4_smbus
d000-d00f : 0000:00:01.1
d000-d00f : ata_piix
d010-d017 : 0000:00:03.0
d010-d017 : e1000
d020-d03f : 0000:00:04.0
d100-d1ff : 0000:00:05.0
d100-d1ff : Intel 82801AA-ICH
d200-d23f : 0000:00:05.0
d200-d23f : Intel 82801AA-ICH
d240-d247 : 0000:00:0d.0
d240-d247 : ahci
d248-d24b : 0000:00:0d.0
d248-d24b : ahci
d250-d257 : 0000:00:0d.0
d250-d257 : ahci
d258-d25b : 0000:00:0d.0
d258-d25b : ahci
d260-d26f : 0000:00:0d.0
d260-d26f : ahci
Please Log in to join the conversation.
If your VM does not allow that, then you can still use pure-sim configs.
Please Log in to join the conversation.
Jon
Please Log in to join the conversation.
Please Log in to join the conversation.
