How to install kernel patch? (Moschip 9900)
- jor
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
20 Jul 2025 02:32 #332045
by jor
How to install kernel patch? (Moschip 9900) was created by jor
Hello all! I am very new to LinuxCNC and have question about how to install a kernel patch.
I have a PCIe parallel port card with a netmos 9900. The driver that came with does not work, and I found this patch on the kernel site:
git.kernel.org/pub/scm/linux/kernel/git/...6917eeda4284ed220079
In usr/src it shows my current version is 6.1.0-30, which I assume is the latest since I just downloaded it. The patch seems to be 6.08 (?)
My question is, can anyone guide me on how to install this patch? I found some information on patches that had "patch.gz" in the file extension, whereas this one seems to be "tar.gz" and those tutorials don't work.
Otherwise, does anyone know of some kind of guide or video on how to install this particular kind of patch? I apologize for this being such a general question, but I am very new and don't really know how linux kernel works!
Thank you in advance.
I have a PCIe parallel port card with a netmos 9900. The driver that came with does not work, and I found this patch on the kernel site:
git.kernel.org/pub/scm/linux/kernel/git/...6917eeda4284ed220079
In usr/src it shows my current version is 6.1.0-30, which I assume is the latest since I just downloaded it. The patch seems to be 6.08 (?)
My question is, can anyone guide me on how to install this patch? I found some information on patches that had "patch.gz" in the file extension, whereas this one seems to be "tar.gz" and those tutorials don't work.
Otherwise, does anyone know of some kind of guide or video on how to install this particular kind of patch? I apologize for this being such a general question, but I am very new and don't really know how linux kernel works!
Thank you in advance.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18929
- Thank you received: 5224
20 Jul 2025 03:14 #332046
by PCW
Replied by PCW on topic How to install kernel patch? (Moschip 9900)
You should not need to install any drivers.
Does
lspci -v
Show your card?
Does
lspci -v
Show your card?
Please Log in or Create an account to join the conversation.
- jor
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
20 Jul 2025 16:48 #332067
by jor
Replied by jor on topic How to install kernel patch? (Moschip 9900)
When I boot the computer, lspci -v shows the card, and i can jog the stepper. But after a little bit the stepper stops working and lspci -v shows "(disabled)" next to the ports. The only way I've found to get it working again is to reboot.
I have the windows driver installed (dual boot), do you think that could mess it up on linux somehow? It's just weird that it works and then becomes disabled partway through working, so i figured maybe that patch would help. Unless the patch is outdated and the latest kernel already supports 9900?
Also, when the stepper does jog, it will stop for a split second intermittently, and then soon after show "joint 0 following error". It also shows "unexpected realtime delay on task 0 with period 100000... run latency test and resolve before continuing," I already ran the latency test.
I have the windows driver installed (dual boot), do you think that could mess it up on linux somehow? It's just weird that it works and then becomes disabled partway through working, so i figured maybe that patch would help. Unless the patch is outdated and the latest kernel already supports 9900?
Also, when the stepper does jog, it will stop for a split second intermittently, and then soon after show "joint 0 following error". It also shows "unexpected realtime delay on task 0 with period 100000... run latency test and resolve before continuing," I already ran the latency test.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18929
- Thank you received: 5224
20 Jul 2025 17:02 #332069
by PCW
Replied by PCW on topic How to install kernel patch? (Moschip 9900)
PC latency is likely the cause of the issue , I doubt that it's driver related.
(especially it it ever worked)
Did you run a latency test?
(especially it it ever worked)
Did you run a latency test?
Please Log in or Create an account to join the conversation.
- jor
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
20 Jul 2025 18:05 #332075
by jor
Replied by jor on topic How to install kernel patch? (Moschip 9900)
OK I just looked into the latency test. It's almost 70k which i assume is bad... I tried changing to isolcpus=3 with no change.
I saw in another post someone said to use RTAI kernel but I cannot figure out how to install it. Computer is Dell Optiplex 9020 which people have recommended in several other forum posts.
Do you think RTAI is the right route? do i need to reinstall linuxcnc with a different image and then install the .deb file for rtai?
I saw in another post someone said to use RTAI kernel but I cannot figure out how to install it. Computer is Dell Optiplex 9020 which people have recommended in several other forum posts.
Do you think RTAI is the right route? do i need to reinstall linuxcnc with a different image and then install the .deb file for rtai?
Please Log in or Create an account to join the conversation.
- jor
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
20 Jul 2025 19:03 #332077
by jor
Replied by jor on topic How to install kernel patch? (Moschip 9900)
I just disabled a bunch of stuff in BIOS (another thread recommended) and latency is down to 15k, but all the same errors persist
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 20471
- Thank you received: 6967
20 Jul 2025 19:17 #332078
by tommylight
Replied by tommylight on topic How to install kernel patch? (Moschip 9900)
Try this
www.linuxcnc.org/iso/linuxcnc-2.7.14-wheezy.iso
You can boot from USB, and make a quick simple config and test with, all without installing it, then if it works better, install.
www.linuxcnc.org/iso/linuxcnc-2.7.14-wheezy.iso
You can boot from USB, and make a quick simple config and test with, all without installing it, then if it works better, install.
Please Log in or Create an account to join the conversation.
- jor
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
21 Jul 2025 01:10 #332095
by jor
Replied by jor on topic How to install kernel patch? (Moschip 9900)
It seems to work better while it works, but it shortly stops and the parallel port becomes disabled, and I have to reboot. The pausing problem stopped and the latency is much better, but it gets disabled pretty quickly
Please Log in or Create an account to join the conversation.
- jor
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
21 Jul 2025 01:32 #332097
by jor
Replied by jor on topic How to install kernel patch? (Moschip 9900)
I found how to "enable" the parport without reboot with
echo 1 | sudo tee /sys/bus/pci/devices/0000:03:00.0/enable
which removes the "disabled" from lspci -v
but it doesn't cause the stepper to work again unless I reboot. Also, i was jogging before at low speed. I tried with higher speeds and it still has alot of that "pausing" going on even though latency is now like 4000. Plus, on starting my configuration it still has "error : unexpected realtime delay on task 1... run the latency test..."
echo 1 | sudo tee /sys/bus/pci/devices/0000:03:00.0/enable
which removes the "disabled" from lspci -v
but it doesn't cause the stepper to work again unless I reboot. Also, i was jogging before at low speed. I tried with higher speeds and it still has alot of that "pausing" going on even though latency is now like 4000. Plus, on starting my configuration it still has "error : unexpected realtime delay on task 1... run the latency test..."
Please Log in or Create an account to join the conversation.
Time to create page: 0.151 seconds