No parport registered

More
30 May 2022 16:38 #244227 by marceloBrazil
No parport registered was created by marceloBrazil
Hello friends!
I had a machine running linuxcnc normally.
I use the version LinuxCNC 2.8.2 Debian 10 Buster PREEMPT-RT ISO
I went to change the motherboard and parallel port and now it prints the following message


no parport registered at 0xe000


lspci shows the following parallel port:

lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation H61 Express Chipset Family LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
01:00.0 Serial controller: Asix Electronics Corporation Device 9100
01:00.1 Serial controller: Asix Electronics Corporation Device 9100
01:00.2 Parallel controller: Asix Electronics Corporation Device 9100
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 05)



lspci -vv shows the following parallel port:

01:00.0 Serial controller: Asix Electronics Corporation Device 9100 (prog-if 02 [16550])
    Subsystem: Device a000:1000
    Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Interrupt: pin A routed to IRQ 16
    Region 0: I/O ports at e030
    Region 1: Memory at f7c05000 (32-bit, non-prefetchable) [size=4K]
    Region 5: Memory at f7c04000 (32-bit, non-prefetchable) [size=4K]
    Capabilities: <access denied>

01:00.1 Serial controller: Asix Electronics Corporation Device 9100 (prog-if 02 [16550])
    Subsystem: Device a000:1000
    Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Interrupt: pin B routed to IRQ 17
    Region 0: I/O ports at e020
    Region 1: Memory at f7c03000 (32-bit, non-prefetchable) [size=4K]
    Region 5: Memory at f7c02000 (32-bit, non-prefetchable) [size=4K]
    Capabilities: <access denied>

01:00.2 Parallel controller: Asix Electronics Corporation Device 9100 (prog-if 03 [IEEE1284])
    Subsystem: Device a000:2000
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0, Cache Line Size: 32 bytes
    Interrupt: pin C routed to IRQ 3
    Region 0: I/O ports at e010
    Region 1: I/O ports at e000
    Region 2: Memory at f7c01000 (32-bit, non-prefetchable) [size=4K]
    Region 5: Memory at f7c00000 (32-bit, non-prefetchable) [size=4K]
    Capabilities: <access denied>
    
    
My HAL-File is the following:

# Generated by stepconf 1.1 at Fri May 27 13:51:13 2022
# If you make changes to this file, they will be
# overwritten when you run stepconf again
loadrt [KINS]KINEMATICS
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS
loadrt hal_parport cfg="0xe010 out"
setp parport.0.reset-time 5000
loadrt stepgen step_type=0,0,0

addf parport.0.read base-thread
addf stepgen.make-pulses base-thread
addf parport.0.write base-thread
addf parport.0.reset base-thread


tried as two separate ports to no avail:
loadrt hal_parport cfg="0xe000 out"
loadrt hal_parport cfg="0xe010 out"

proc command returns nothing
cat /proc/ioports|grep parport*


need help.
thanks

 

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
30 May 2022 17:22 #244233 by tommylight
Replied by tommylight on topic No parport registered
Get the card out, give it a good clean on the pins with a cotton ... t shirt or towel, get a toothbrush and clean the pins inside the slot on the motherboard, put the card back in.
Or just try another slot, if there are any.

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

More
31 May 2022 01:47 - 01 Jun 2022 02:06 #244256 by Bari
Replied by Bari on topic No parport registered
I saw this problem, a week or two ago on IRC.

Which make and model card is this?

forum.linuxcnc.org/27-driver-boards/3439...l-cards-what-chipset

@marceloBrazil Can you try lspci -vv as root or sudo and post the relevant output?

I think it's some  newer non-standard chip used or clone device.
Last edit: 01 Jun 2022 02:06 by Bari.

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

More
24 Jul 2022 23:00 - 24 Jul 2022 23:13 #248198 by Bari
Replied by Bari on topic No parport registered
PCIe MCS9900 strangeness: Capabilities: <access denied> Saw this helping someone with the same card a few months ago on IRC.

LCNC 2.9 Stepconf does not recognize the card either.

Linux lcncbull 5.18.0-0.bpo.1-rt-amd64 #1 SMP PREEMPT_RT Debian 5.18.2-1~bpo11+1 (2022-06-14) x86_64 GNU/Linux

2:00.0 Parallel controller: MosChip Semiconductor Technology Ltd. MCS9900 Multi-I/O Controller (prog-if 03 [IEEE1284])
Subsystem: Asix Electronics Corporation (Wrong ID) MCS9900 Multi-I/O Controller
Flags: bus master, fast devsel, latency 0, IRQ 5, NUMA node 0
I/O ports at df00
I/O ports at de00
Memory at fdcff000 (32-bit, non-prefetchable)

  1. 02:00.0 Parallel controller [0701]: MosChip Semiconductor Technology Ltd. MCS9900 Multi-I/O Controller [9710:9900] (prog-if 03 [IEEE1284])
     
  2.         Subsystem: Asix Electronics Corporation (Wrong ID) MCS9900 Multi-I/O Controller [a000:2000]
     
  3.         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
     
  4.         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
     
  5.         Latency: 0, Cache Line Size: 4 bytes
  6.         Interrupt: pin A routed to IRQ 5
  7.         NUMA node: 0
  8.         Region 0: I/O ports at df00
  9.         Region 1: I/O ports at de00
  10.         Region 2: Memory at fdcff000 (32-bit, non-prefetchable) [size=4K]
  11.         Region 5: Memory at fdcfe000 (32-bit, non-prefetchable) [size=4K]
  12.         Capabilities: <access denied>


=4K%Memory at fdcfe000 (32-bit, non-prefetchable)
=4K%Capabilities: <access denied>
Last edit: 24 Jul 2022 23:13 by Bari. Reason: more lspci

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
25 Jul 2022 00:41 #248211 by tommylight
Replied by tommylight on topic No parport registered
Use sudo for lspci:
sudo lspci
"access denied" is the result of not using sudo.
-
some ports will not work when set to 0 or 1 in LinuxCNC so they do need the exact address, in Bari's case it is 0xdf00 or 0xde00, this can be entered in StepConf or edited in hal.
For MarceloBrasil it would be 0xe010 or 0xe000.
Please be aware that if one of the addresses do not work, restart the PC as it might keep the port locked and not work even after entering the correct address.

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

More
25 Jul 2022 00:58 #248212 by Bari
Replied by Bari on topic No parport registered
The better fix will be adding these PCI addresses to the kernel.

I'm sorry but when you dumb down the LPT ports to 0 and 1 how do you know which one is which when you have 2 LPT ports without trial and error?

StepConf did not let me edit the LPT port when it could not find a LPT port.

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

More
04 Oct 2022 02:01 #253408 by Bari
Replied by Bari on topic No parport registered
github.com/LinuxCNC/linuxcnc/issues/2055

revert: Removed the option of manually inserting the parallel port

Is fixed now! \0/

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

Time to create page: 0.079 seconds
Powered by Kunena Forum