Score:0

how to prevent re-installing Moxa npreal2 (real TTY driver) driver after kernel update on Ubuntu 20.04 LTS

in flag

I am on Ubuntu (20.04.2 LTS) user and I am using the Moxa npreal2 drivers (real TTY driver) to connect to my serial device server. I have the problem with v5.0 and 5.1.

The issue is that every time I do a kernel upgrade (which happens around once a month) drivers stop working and I need to do a uninstall and then reinstall of the driver (and after that mapping the tty ports).

This although is quite simple is annoying, it seems like when you install the driver it actually attaches to the kernel and when the kernel is upgraded it won't transfer driver to it and you have to do it for it.

Is this something that can be prevented somehow? Is anyone with these drivers having the same issues?

Pilot6 avatar
cn flag
Yes, you can. You need to install the driver using dkms. It will rebuild the driver automatically on kernel upgrades. But this needs some knowledge.
in flag
Thnx. Seems a lot of knowledge is required and googled is not very helpful.
Pilot6 avatar
cn flag
Not really a lot. A `dkms.conf` file is required ;-)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.