accidentally unplugged pc. Now I get an error

  • muzza
  • muzza's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
25 Apr 2022 04:49 #241145 by muzza
I tripped over an extension lead that was feeding my LinuxCNC computer, unplugging it.  After re-booting, when I try to launch my desktop shortcut, I get this error.  (I tried to upload the error report, but the forum software wouldn't allow it)

Background info; I've spent the morning trying to install the drivers for a PCI parallel card.  I couldn't find the drivers anywhere, but suddenly the parallel port started working.  NFI.
- - - - - - - - - - - - - - - - - - - - - - - - - - -
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.19.195-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.2
Machine configuration directory is '/home/muz/linuxcnc/configs/QueenOx'
Machine configuration file is 'QueenOx.ini'
INIFILE=/home/muz/linuxcnc/configs/QueenOx/QueenOx.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=halui
DISPLAY=gmoccapy
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
Starting HAL User Interface program: halui
Found file(REL): ./QueenOx.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.19.195-rtai-amd64/modules/linuxcnc/hal_parport.ko: Unknown symbol in module
./QueenOx.hal:6: exit value: 1
./QueenOx.hal:6: insmod for hal_parport failed, returned -1
See the output of 'dmesg' for more information.
1366
Stopping realtime threads
Unloading hal components

Kernel message information:
[  311.106015] I-pipe: head domain RTAI registered.
[  311.106016] RTAI[hal]: mounted. ISOL_CPUS_MASK: 0.
[  311.106018] SYSINFO - # CPUs: 8, TIMER NAME: 'lapic-deadline', TIMER IRQ: 4355, TIMER FREQ: 424048632, CLOCK NAME: 'tsc', CLOCK FREQ: 3392285000, CPU FREQ: 3392285000, LINUX TIMER IRQ: 4355.
[  311.108520] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[  311.108552] kstacks pool size = 524288 bytes
[  311.108552] RTAI[sched]: hard timer type/freq = lapic-deadline/424048632(Hz)
[  311.108553] linear timed lists.
[  311.108554] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 3392285000 hz.
[  311.108554] RTAI[sched]: timer setup = 105 ns, resched latency = 0 ns.
[  311.110538] USERMODE CHECK: OK.
[  311.110539] USERMODE CHECK PROVIDED (ns): KernelLatency 1471, UserLatency 2035.
[  311.110540] FINAL CALIBRATION SUMMARY (ns): KernelLatency 1471, UserLatency 2035.
[  311.115844] RTAI[math]: loaded, using musl libm.
[  311.152335] hal_parport: Unknown symbol parport_register_device (err -2)
[  311.152343] hal_parport: Unknown symbol parport_release (err -2)
[  311.152347] hal_parport: Unknown symbol parport_claim (err -2)
[  311.152351] hal_parport: Unknown symbol parport_unregister_device (err -2)
[  311.152355] hal_parport: Unknown symbol parport_find_number (err -2)
[  311.152361] hal_parport: Unknown symbol parport_find_base (err -2)
[  311.152365] hal_parport: Unknown symbol parport_put_port (err -2)
[  313.464509] RTAI[math]: unloaded.
[  313.527149] SCHED releases registered named ALIEN PEDV$D
[  313.531290] RTAI[malloc]: unloaded.
[  313.639127] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[  313.656522] I-pipe: head domain RTAI unregistered.
[  313.656527] 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: Mon 25 Apr 14:38:20 AEST 2022
            UTC Date: Mon 25 Apr 04:38:20 UTC 2022
        this program: /usr/bin/linuxcnc_info
              uptime: 14:38:20 up 5 min, 1 user, load average: 0.01, 0.14, 0.08
     lsb_release -sa: Debian Debian GNU/Linux 10 (buster) 10 buster
      which linuxcnc: /usr/bin/linuxcnc
                 pwd: /home/muz/linuxcnc/configs/QueenOx
                USER: muz
             LOGNAME: muz
                HOME: /home/muz
              EDITOR:
              VISUAL:
            LANGUAGE: en_AU:en
                TERM: dumb
           COLORTERM:
             DISPLAY: :0.0
             DESKTOP: lightdm-xsession
        display size: 1680x1050 pixels (444x277 millimeters)
                PATH: /usr/bin:/home/muz/linuxcnc/configs/QueenOx/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

uname items:
         nodename -n: LinuxCNC
      kernel-name -s: Linux
      kernel-vers -v: #5 SMP PREEMPT Sun Jul 11 19:13:27 BST 2021
          machine -m: x86_64
        processor -p: unknown
         platform -i: unknown
      oper system -o: GNU/Linux

/proc items:
             cmdline: BOOT_IMAGE=/boot/vmlinuz-4.19.195-rtai-amd64 root=UUID=1ef30892-0829-49ce-b8ee-42cc2871217b ro initrd=/install/gtk/initrd.gz quiet
          model name: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
               cores: 4
             cpu MHz: 1991.286
             parport:
              serial: 0000-0000 : 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.2
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.19.195-rtai-amd64/bin/rtai-config
          HALLIB_DIR: /usr/share/linuxcnc/hallib

dpkg -l '*linuxcnc*':
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                Version               Architecture Description
+++-===================-=====================-============-=====================================================================
ii  linuxcnc            1:2.8.2               amd64        motion controller for CNC machines and robots
ii  linuxcnc-dbgsym     1:2.8.2               amd64        debug symbols for linuxcnc
ii  linuxcnc-dev        1:2.8.2               amd64        PC based motion controller for real-time Linux
un  linuxcnc-doc        <none>                <none>       (no description available)
ii  linuxcnc-doc-en     1:2.8.2.11.g6a3d0a434 all          motion controller for CNC machines and robots (English documentation)
un  linuxcnc-sim        <none>                <none>       (no description available)
un  linuxcnc-sim-dev    <none>                <none>       (no description available)
rc  linuxcnc-uspace     1:2.8.2.11.g6a3d0a434 amd64        motion controller for CNC machines and robots
un  linuxcnc-uspace-dev <none>                <none>       (no description available)

 

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

  • ALittleOffTheRails
  • ALittleOffTheRails's Avatar
  • Visitor
  • Visitor
25 Apr 2022 04:55 #241147 by ALittleOffTheRails
Replied by ALittleOffTheRails on topic accidentally unplugged pc. Now I get an error
What it would appear is you are trying load linuxcnc-uspace with an RTAI kernel.
Uspace needs RT_PREEMPT kernel. Do you have both installed on your system ?

This is the give away to a kernel issue:
insmod: ERROR: could not insert module /usr/realtime-4.19.195-rtai-amd64/modules/linuxcnc/hal_parport.ko: Unknown symbol in module

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

  • muzza
  • muzza's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
25 Apr 2022 04:56 - 25 Apr 2022 04:59 #241148 by muzza
It is the rtai version. I had it running before unplugging.  I'm using rtai because I'm connected to a parallel port.
 
Last edit: 25 Apr 2022 04:59 by muzza.

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

  • muzza
  • muzza's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
25 Apr 2022 04:57 - 25 Apr 2022 05:09 #241150 by muzza
When I try to start LinuxCNC in 2.7.15, I get a similar error, but the error report is much longer. 
 

File Attachment:

File Name: 2.7.15error.txt
File Size:242 KB
Attachments:
Last edit: 25 Apr 2022 05:09 by muzza.

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

  • ALittleOffTheRails
  • ALittleOffTheRails's Avatar
  • Visitor
  • Visitor
25 Apr 2022 05:02 #241151 by ALittleOffTheRails
Replied by ALittleOffTheRails on topic accidentally unplugged pc. Now I get an error
For an RTAI kernel you need a RTAI version of Linuxcnc not the Uspace version.

Generally uspace versions work well with the parallel port.

Looking at what you have installed you have both a sim version the a uspace version installed. You should really have one or the other and for a "real" system just the uspace version.

Having a look at the buildbot there doesn't appear to be any recent RTAI packages available.

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

  • muzza
  • muzza's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
25 Apr 2022 05:08 #241152 by muzza
But that doesn't explain why it was working before the incident?

The last rtai version is 2.8.2 Buster, which is what I have installed.

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

  • muzza
  • muzza's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
25 Apr 2022 05:12 - 25 Apr 2022 05:14 #241153 by muzza
Did you see the error report I posted above from 2.7.15? That was also working before I unplugged it.

Has it maybe got something to do with the PCI parallel card?

FYI, (maybe it's irrelevant) I have both 2.8.2 Buster (rtai), 2.7.15 Wheezy and Windoze 7 all on different HDDs on the same 'poota.
 
Last edit: 25 Apr 2022 05:14 by muzza.

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

  • ALittleOffTheRails
  • ALittleOffTheRails's Avatar
  • Visitor
  • Visitor
25 Apr 2022 05:29 #241154 by ALittleOffTheRails
Replied by ALittleOffTheRails on topic accidentally unplugged pc. Now I get an error
The 2.7.15 issue is different.
Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/hal_parport.ko: No such device

Which I suspect is that kernel not supporting you PCI card.

Ok I'm well confused and ignore some of what I said before I had a rough night after watching to MotoGP, I can not for the life of me find any 2.8.2 RTAI packages or ISO for that case.

How exactly did you get rtai installed ?

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

  • muzza
  • muzza's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
25 Apr 2022 05:31 #241155 by muzza
The following user(s) said Thank You: strahlensauger

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

  • muzza
  • muzza's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
25 Apr 2022 05:35 - 25 Apr 2022 05:37 #241156 by muzza
this is what i get with lspci -v in 2.7.15, which is the one which I was able to actually use and create chips.

I was in the process of setting up a workable 2.8.2 config when I pulled the plug.  I think my priority is to get 2.7.15 up and running again so I can still make some stuff...
- - - - - - - - - - - - - - -

muz@LinuxCNC:~$ lspci -v
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller (rev 09)
Subsystem: Dell Device 053a
Flags: bus master, fast devsel, latency 0
Capabilities: <access denied>
Kernel driver in use: agpgart-intel

00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller (rev 09) (prog-if 00 [VGA controller])
Subsystem: Dell Device 053a
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at f7800000 (64-bit, non-prefetchable)
=4M%Memory at e0000000 (64-bit, prefetchable)
=256M%I/O ports at f000
Expansion ROM at <unassigned> [disabled]
Capabilities: <access denied>
Kernel driver in use: i915

00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04) (prog-if 30 [XHCI])
Subsystem: Dell Device 053a
Flags: bus master, medium devsel, latency 0, IRQ 16
Memory at f7c20000 (64-bit, non-prefetchable)
=64K%Capabilities: <access denied>
Kernel driver in use: xhci_hcd

00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
Subsystem: Dell Device 053a
Flags: bus master, fast devsel, latency 0, IRQ 11
Memory at f7c3c000 (64-bit, non-prefetchable)
Capabilities: <access denied>

00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
Subsystem: Dell Device 053a
Flags: bus master, fast devsel, latency 0, IRQ 20
Memory at f7c00000 (32-bit, non-prefetchable)
=128K%Memory at f7c39000 (32-bit, non-prefetchable)
=4K%I/O ports at f080
Capabilities: <access denied>
Kernel driver in use: e1000e

00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04) (prog-if 20 [EHCI])
Subsystem: Dell Device 053a
Flags: bus master, medium devsel, latency 0, IRQ 16
Memory at f7c38000 (32-bit, non-prefetchable)
=1K%Capabilities: <access denied>
Kernel driver in use: ehci_hcd

00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
Subsystem: Dell Device 053a
Flags: bus master, fast devsel, latency 0, IRQ 22
Memory at f7c30000 (64-bit, non-prefetchable)
=16K%Capabilities: <access denied>
Kernel driver in use: snd_hda_intel

00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04) (prog-if 20 [EHCI])
Subsystem: Dell Device 053a
Flags: bus master, medium devsel, latency 0, IRQ 23
Memory at f7c37000 (32-bit, non-prefetchable)
=1K%Capabilities: <access denied>
Kernel driver in use: ehci_hcd

00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a4) (prog-if 01 [Subtractive decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
I/O behind bridge: 00002000-00002fff
Memory behind bridge: dfb00000-dfbfffff
Capabilities: <access denied>

00:1f.0 ISA bridge: Intel Corporation C216 Series Chipset LPC Controller (rev 04)
Subsystem: Dell Device 053a
Flags: bus master, medium devsel, latency 0
Capabilities: <access denied>

00:1f.2 RAID bus controller: Intel Corporation 82801 SATA Controller [RAID mode] (rev 04)
Subsystem: Dell Device 053a
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 19
I/O ports at f0d0
I/O ports at f0c0
I/O ports at f0b0
I/O ports at f0a0
I/O ports at f060
Memory at f7c36000 (32-bit, non-prefetchable)
=2K%Capabilities: <access denied>
Kernel driver in use: ahci

00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
Subsystem: Dell Device 053a
Flags: medium devsel, IRQ 18
Memory at f7c35000 (64-bit, non-prefetchable)
I/O ports at f040

01:02.0 Parallel controller: Device 1710:9865 (prog-if 03 [IEEE1284])
Subsystem: Smart Link Ltd. Device 2000
Flags: medium devsel, IRQ 255
I/O ports at 2000 [disabled]
I/O ports at 2008 [disabled]
Memory at dfb00000 (32-bit, non-prefetchable) [disabled]
=4K%Memory at dfb01000 (32-bit, non-prefetchable) [disabled]
=4K%Capabilities: <access denied>

muz@LinuxCNC:~$
Last edit: 25 Apr 2022 05:37 by muzza. Reason: more info added
The following user(s) said Thank You: ALittleOffTheRails

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

Time to create page: 0.075 seconds
Powered by Kunena Forum