Mint 20 problem, looks like not the right kernel
- sajurcaju
- Offline
- Premium Member
Less
More
- Posts: 86
- Thank you received: 6
23 Feb 2023 22:01 #265158
by sajurcaju
Mint 20 problem, looks like not the right kernel was created by sajurcaju
I followed the details in the first post and ended up with errors starting LinuxCNC. Stepconf worked fine, Latency Test worked but indicated horrible latency.
The Update Manager reports that I'm on kernel 5.4.0-26. I'm pretty sure that disagrees with what is on the first page:wget ftp.us.debian.org/debian/pool/main/l/lin..._4.9.228-1_amd64.deb
So something went wrong. Do I just need to get the correct kernel?
Thanks,
Steve
The Update Manager reports that I'm on kernel 5.4.0-26. I'm pretty sure that disagrees with what is on the first page:wget ftp.us.debian.org/debian/pool/main/l/lin..._4.9.228-1_amd64.deb
So something went wrong. Do I just need to get the correct kernel?
Thanks,
Steve
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19464
- Thank you received: 6529
23 Feb 2023 22:17 #265159
by tommylight
Replied by tommylight on topic Mint 20 problem, looks like not the right kernel
-Power on PC,
-hold down the "shift" key
-at the GRUB menu choose the 4.9 RT kernel
-press enter
-hold down the "shift" key
-at the GRUB menu choose the 4.9 RT kernel
-press enter
Please Log in or Create an account to join the conversation.
- sajurcaju
- Offline
- Premium Member
Less
More
- Posts: 86
- Thank you received: 6
23 Feb 2023 22:27 #265161
by sajurcaju
Replied by sajurcaju on topic Mint 20 problem, looks like not the right kernel
Thank you tommylight. I should have figured that out...but didn't.
Latency is now where it should be (from previous on this computer).
I have both a motherboard parallel port and a PCIE parallel port (SUN1989). I'm pretty sure I looked for the card when I had the previous kernel and found it. Now, it has vanished from /dev. Any clues?
Latency is now where it should be (from previous on this computer).
I have both a motherboard parallel port and a PCIE parallel port (SUN1989). I'm pretty sure I looked for the card when I had the previous kernel and found it. Now, it has vanished from /dev. Any clues?
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19464
- Thank you received: 6529
23 Feb 2023 22:37 #265165
by tommylight
Replied by tommylight on topic Mint 20 problem, looks like not the right kernel
cat /proc/ioports |grep parport
dmesg |grep parp I get
lsmod | grep parp
sudo lspci -v | grep parp
dmesg |grep parp I get
lsmod | grep parp
sudo lspci -v | grep parp
Please Log in or Create an account to join the conversation.
- sajurcaju
- Offline
- Premium Member
Less
More
- Posts: 86
- Thank you received: 6
23 Feb 2023 22:45 #265167
by sajurcaju
Replied by sajurcaju on topic Mint 20 problem, looks like not the right kernel
sudo cat /proc/ioports | grep parport
[sudo] password for steve:
0378-037a : parport0
037b-037f : parport0
sudo dmesg | grep parp
[ 4.483609] parport_pc 00:02: reported by Plug and Play ACPI
[ 4.483687] parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP,TRISTATE,EPP]
[ 4.582937] lp0: using parport0 (interrupt-driven).
lsmod | grep parp
parport_pc 28672 1
parport 49152 3 lp,parport_pc,ppdev
sudo dmesg | grep parp
[ 4.483609] parport_pc 00:02: reported by Plug and Play ACPI
[ 4.483687] parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP,TRISTATE,EPP]
[ 4.582937] lp0: using parport0 (interrupt-driven).
[sudo] password for steve:
0378-037a : parport0
037b-037f : parport0
sudo dmesg | grep parp
[ 4.483609] parport_pc 00:02: reported by Plug and Play ACPI
[ 4.483687] parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP,TRISTATE,EPP]
[ 4.582937] lp0: using parport0 (interrupt-driven).
lsmod | grep parp
parport_pc 28672 1
parport 49152 3 lp,parport_pc,ppdev
sudo dmesg | grep parp
[ 4.483609] parport_pc 00:02: reported by Plug and Play ACPI
[ 4.483687] parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP,TRISTATE,EPP]
[ 4.582937] lp0: using parport0 (interrupt-driven).
Please Log in or Create an account to join the conversation.
- sajurcaju
- Offline
- Premium Member
Less
More
- Posts: 86
- Thank you received: 6
24 Feb 2023 12:47 #265232
by sajurcaju
Replied by sajurcaju on topic Mint 20 problem, looks like not the right kernel
I left off the lspci. My PCIE card is a Sunix with the SUN1989 chip. It has a serial port and a parallel port. lspci finds the serial port:
05:00.0 Communication controller [0708]: SUNIX Co., Ltd. Multiport serial controller
Subsystem: SUNIX Co., Ltd. Multiport serial controller
Flags: medium devsel, IRQ 11
I/O ports at cce0
I/O ports at ccc0
I/O ports at ccc8
I/O ports at ccd0
Capabilities: [40] Power Management version 3
but no mention of the parallel port on the card.
05:00.0 Communication controller [0708]: SUNIX Co., Ltd. Multiport serial controller
Subsystem: SUNIX Co., Ltd. Multiport serial controller
Flags: medium devsel, IRQ 11
I/O ports at cce0
I/O ports at ccc0
I/O ports at ccc8
I/O ports at ccd0
Capabilities: [40] Power Management version 3
but no mention of the parallel port on the card.
Please Log in or Create an account to join the conversation.
- sajurcaju
- Offline
- Premium Member
Less
More
- Posts: 86
- Thank you received: 6
24 Feb 2023 12:48 #265233
by sajurcaju
Replied by sajurcaju on topic Mint 20 problem, looks like not the right kernel
I thought I posted this, but it doesn't seem to exist.
I booted with the not real time kernel, finds the PCIE parallel port with no problem.
I booted with the not real time kernel, finds the PCIE parallel port with no problem.
Please Log in or Create an account to join the conversation.
- sajurcaju
- Offline
- Premium Member
Less
More
- Posts: 86
- Thank you received: 6
24 Feb 2023 12:55 #265234
by sajurcaju
Replied by sajurcaju on topic Mint 20 problem, looks like not the right kernel
I don't understand what I'm getting from lspci -v | grep parp:
sudo lspci -v | grep parp
lspci: Unable to load libkmod resources: error -12
When I look for the serial port:
sudo lspci -v | grep ser
lspci: Unable to load libkmod resources: error -12
05:00.0 Communication controller [0708]: SUNIX Co., Ltd. Multiport serial controller
Subsystem: SUNIX Co., Ltd. Multiport serial controller
I can grep something else, like "lspci -v | grep Xeon" and it works fine. Putting "parp" in quotes doesn't help. "lspci -v" also works fine.
sudo lspci -v | grep parp
lspci: Unable to load libkmod resources: error -12
When I look for the serial port:
sudo lspci -v | grep ser
lspci: Unable to load libkmod resources: error -12
05:00.0 Communication controller [0708]: SUNIX Co., Ltd. Multiport serial controller
Subsystem: SUNIX Co., Ltd. Multiport serial controller
I can grep something else, like "lspci -v | grep Xeon" and it works fine. Putting "parp" in quotes doesn't help. "lspci -v" also works fine.
Please Log in or Create an account to join the conversation.
- sajurcaju
- Offline
- Premium Member
Less
More
- Posts: 86
- Thank you received: 6
24 Feb 2023 13:50 #265237
by sajurcaju
Replied by sajurcaju on topic Mint 20 problem, looks like not the right kernel
Looking at lspci -vvv:
First, the *not* real time kernel:
04:00.0 Communication controller [0708]: SUNIX Co., Ltd. Multiport serial controller
Subsystem: SUNIX Co., Ltd. Multiport serial controller
Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 32
Region 0: I/O ports at cce0
Region 1: I/O ports at ccc0
Region 2: I/O ports at ccc8
Region 3: I/O ports at ccd0
Capabilities: [40] Power Management version 3
Flags: PMEClk+ DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot+,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Kernel driver in use: parport_serial
Kernel modules: parport_serial
Now the same output from the real time kernel:
04:00.0 Communication controller [0708]: SUNIX Co., Ltd. Multiport serial controller
Subsystem: SUNIX Co., Ltd. Multiport serial controller
Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 11
Region 0: I/O ports at cce0
Region 1: I/O ports at ccc0
Region 2: I/O ports at ccc8
Region 3: I/O ports at ccd0
Capabilities: [40] Power Management version 3
Flags: PMEClk+ DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot+,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
It looks like they are identical until the last two lines. Is the driver not loading? I'm out of my depth on this.
First, the *not* real time kernel:
04:00.0 Communication controller [0708]: SUNIX Co., Ltd. Multiport serial controller
Subsystem: SUNIX Co., Ltd. Multiport serial controller
Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 32
Region 0: I/O ports at cce0
Region 1: I/O ports at ccc0
Region 2: I/O ports at ccc8
Region 3: I/O ports at ccd0
Capabilities: [40] Power Management version 3
Flags: PMEClk+ DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot+,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Kernel driver in use: parport_serial
Kernel modules: parport_serial
Now the same output from the real time kernel:
04:00.0 Communication controller [0708]: SUNIX Co., Ltd. Multiport serial controller
Subsystem: SUNIX Co., Ltd. Multiport serial controller
Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 11
Region 0: I/O ports at cce0
Region 1: I/O ports at ccc0
Region 2: I/O ports at ccc8
Region 3: I/O ports at ccd0
Capabilities: [40] Power Management version 3
Flags: PMEClk+ DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot+,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
It looks like they are identical until the last two lines. Is the driver not loading? I'm out of my depth on this.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23162
- Thank you received: 4860
25 Feb 2023 12:19 #265318
by andypugh
Replied by andypugh on topic Mint 20 problem, looks like not the right kernel
LinuxCNC has its own driver. If you get the correct address then it should just work even if the Linux system isn't finding it.
parport_pc is handy for finding the port by index number (0, 1, 2...) but isn't needed to find it by address.
parport_pc is handy for finding the port by index number (0, 1, 2...) but isn't needed to find it by address.
Please Log in or Create an account to join the conversation.
Time to create page: 0.087 seconds