# Are there plans for a Linux kernel 4.x RealPort driver?

**URL:** <https://forums.digi.com/t/are-there-plans-for-a-linux-kernel-4-x-realport-driver/16153>\
**Category:** Portserver TS\
**Tags:** kernel, realport\
**Created:** [January 27, 2016, 8:12am UTC](https://forums.digi.com/t/are-there-plans-for-a-linux-kernel-4-x-realport-driver/16153 "2016-01-27T08:12:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmarley](https://avatars.discourse-cdn.com/v4/letter/j/ce73a5/32.png) [@jmarley](https://forums.digi.com/u/jmarley)\
**Post date:** [January 27, 2016, 8:12am UTC](https://forums.digi.com/t/are-there-plans-for-a-linux-kernel-4-x-realport-driver/16153/1 "2016-01-27T08:12:47Z")

</div>

I’m running the following version of Ubuntu (“lsb\_release -a” output):

Distributor ID: Ubuntu  
Description: Ubuntu 15.10  
Release: 15.10  
Codename: wily

Which is running the following kernel version (“uname -r” output):

4.2.0-25-generic

I would like to install and use the Linux RealPort driver to use a Digi PortServer TS 16 MEI. Following the directions here:

[http://knowledge.digi.com/articles/Knowledge\_Base\_Article/HOW-TO-Install-the-RealPort-Driver-in-Ubuntu-Linux](http://knowledge.digi.com/articles/Knowledge_Base_Article/HOW-TO-Install-the-RealPort-Driver-in-Ubuntu-Linux)

I attempted to install the driver (40002086\_W.src.rpm) without success (compile time error). Moving backwards, I downloaded the source tarball ( 81000137\_W.tgz ), extracted it, and then attempted to follow the instructions in release\_notes.txt without success.

And yes, I am aware that THIS IS NOT SUPPORTED according to the release notes (release notes only promise support for the 3.x.x kernel).

In case you’re interested, the errors during build (“make all”) look similar to the following:

dgrp\_net\_ops.c:502:31: error: ‘TTY\_CLOSING’ undeclared (first use in this function)

Is there a known workaround for this, or is there an expected time when the 4.x kernel will be supported for the RealPort driver?

---

<div class="post-metadata">

**Author:** ![userid0](https://avatars.discourse-cdn.com/v4/letter/u/f6c823/32.png) [@userid0](https://forums.digi.com/u/userid0)\
**Post date:** [January 27, 2016, 12:58pm UTC](https://forums.digi.com/t/are-there-plans-for-a-linux-kernel-4-x-realport-driver/16153/2 "2016-01-27T12:58:09Z")

</div>

Can you try the following release candidate and post your results?

ftp://ftp1.digi.com/support/beta/linux/dgrp/40002086\_X2P.src.rpm

---

<div class="post-metadata">

**Author:** ![jmarley](https://avatars.discourse-cdn.com/v4/letter/j/ce73a5/32.png) [@jmarley](https://forums.digi.com/u/jmarley)\
**Post date:** [January 28, 2016, 8:52am UTC](https://forums.digi.com/t/are-there-plans-for-a-linux-kernel-4-x-realport-driver/16153/3 "2016-01-28T08:52:55Z")

</div>

I get further, but still no joy. Since there’s an 8K character max here, but the log is 37K in length, I can’t post a complete log. Here’s the beginning:

root@LCO-U236487D001:~/Downloads# sudo rpmbuild --rebuild 40002086\_X2P.src.rpm

Installing 40002086\_X2P.src.rpm  
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.IyVzoG

- umask 022
- cd /home/myusername/rpmbuild/BUILD
- cd /home/myusername/rpmbuild/BUILD
- rm -rf dgrp-1.9
- /bin/gzip -dc /home/myusername/rpmbuild/SOURCES/dgrp-1.9.tgz
- /bin/tar -xvvf -  
drwxr-xr-x root/root 0 2015-09-24 15:01 dgrp-1.9/  
drwxr-xr-x root/root 0 2015-09-24 15:01 dgrp-1.9/dinc/  
-rw-r–r-- root/root 3617 2015-09-24 15:01 dgrp-1.9/dinc/Makefile

… and here’s the end …

install -d /home/myusername/rpmbuild/BUILDROOT/dgrp-1.9-36.x86\_64/usr/share  
install -d /home/myusername/rpmbuild/BUILDROOT/dgrp-1.9-36.x86\_64/usr/share/doc

- /usr/lib/rpm/brp-compress
- /usr/lib/rpm/brp-strip /usr/bin/strip
- /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
- /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump  
Processing files: dgrp-1.9-36.x86\_64  
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.OiJAz3
- umask 022
- cd /home/myusername/rpmbuild/BUILD
- cd dgrp-1.9
- DOCDIR=/home/myusername/rpmbuild/BUILDROOT/dgrp-1.9-36.x86\_64/usr/share/doc/dgrp-1.9
- export DOCDIR
- /bin/mkdir -p /home/myusername/rpmbuild/BUILDROOT/dgrp-1.9-36.x86\_64/usr/share/doc/dgrp-1.9
- cp -pr README /home/myusername/rpmbuild/BUILDROOT/dgrp-1.9-36.x86\_64/usr/share/doc/dgrp-1.9
- cp -pr COPYING /home/myusername/rpmbuild/BUILDROOT/dgrp-1.9-36.x86\_64/usr/share/doc/dgrp-1.9
- cp -pr release\_notes.txt /home/myusername/rpmbuild/BUILDROOT/dgrp-1.9-36.x86\_64/usr/share/doc/dgrp-1.9
- exit 0  
Provides: dgrp = 1.9-36 dgrp(x86-64) = 1.9-36  
Requires(interp): /bin/sh /bin/sh /bin/sh  
Requires(rpmlib): rpmlib(CompressedFileNames) \<= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) \<= 4.0-1  
Requires(post): /bin/sh  
Requires(preun): /bin/sh  
Requires(postun): /bin/sh  
Requires: /bin/sh libc.so.6()(64bit) libc.so.6(GLIBC\_2.14)(64bit) libc.so.6(GLIBC\_2.15)(64bit) libc.so.6(GLIBC\_2.2.5)(64bit) libc.so.6(GLIBC\_2.3)(64bit) libc.so.6(GLIBC\_2.3.4)(64bit) libc.so.6(GLIBC\_2.4)(64bit) libc.so.6(GLIBC\_2.7)(64bit) libcrypto.so.1.0.0()(64bit) libcrypto.so.1.0.0(OPENSSL\_1.0.0)(64bit) libncurses.so.5()(64bit) libpanel.so.5()(64bit) libssl.so.1.0.0()(64bit) libssl.so.1.0.0(OPENSSL\_1.0.0)(64bit) libtinfo.so.5()(64bit) rtld(GNU\_HASH)  
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/myusername/rpmbuild/BUILDROOT/dgrp-1.9-36.x86\_64  
Wrote: /home/myusername/rpmbuild/RPMS/x86\_64/dgrp-1.9-36.x86\_64.rpm  
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.CNBRJk
- umask 022
- cd /home/myusername/rpmbuild/BUILD
- cd dgrp-1.9
- ‘[’ /home/myusername/rpmbuild/BUILDROOT/dgrp-1.9-36.x86\_64 ‘!=’ / ‘]’
- rm -rf /home/myusername/rpmbuild/BUILDROOT/dgrp-1.9-36.x86\_64
- exit 0  
Executing(–clean): /bin/sh -e /var/tmp/rpm-tmp.CLFIUB
- umask 022
- cd /home/myusername/rpmbuild/BUILD
- rm -rf dgrp-1.9
- exit 0

root@LCO-U236487D001:~/Downloads# sudo alien -d --scripts /usr/src/rpm/RPMS/i386/dgrp-1.9-36.i386.rpm  
File “/usr/src/rpm/RPMS/i386/dgrp-1.9-36.i386.rpm” not found.

---

<div class="post-metadata">

**Author:** ![userid0](https://avatars.discourse-cdn.com/v4/letter/u/f6c823/32.png) [@userid0](https://forums.digi.com/u/userid0)\
**Post date:** [January 28, 2016, 8:56am UTC](https://forums.digi.com/t/are-there-plans-for-a-linux-kernel-4-x-realport-driver/16153/4 "2016-01-28T08:56:19Z")

</div>

Your log shows the file was written in the rpmbuild path:

Wrote: /home/myusername/rpmbuild/RPMS/x86\_64/dgrp-1.9-36.x86\_64.rpm

Try:

sudo alien -d --scripts /home/myusername/rpmbuild/RPMS/x86\_64/dgrp-1.9-36.x86\_64.rpm

---

<div class="post-metadata">

**Author:** ![jmarley](https://avatars.discourse-cdn.com/v4/letter/j/ce73a5/32.png) [@jmarley](https://forums.digi.com/u/jmarley)\
**Post date:** [April 19, 2016, 9:20pm UTC](https://forums.digi.com/t/are-there-plans-for-a-linux-kernel-4-x-realport-driver/16153/5 "2016-04-19T21:20:41Z")

</div>

With the help of other responders, and after finally getting back to working on this, I have a solution for Ubuntu 14.04 LTS (clean install). I post this in case someone else has the same need. The normal disclaimers apply.

[Make temp directory and change directory to it]  
sudo apt-get update && sudo apt-get dist-upgrade  
sudo apt-get install openssh-server  
wget ftp://ftp1.digi.com/support/beta/linux/dgrp/40002086\_X6P.src.rpm  
sudo sh  
apt-get update && apt-get install -y rpm libncurses-dev alien  
script  
rpmbuild --rebuild 40002086\_X6P.src.rpm  
cd ~/rpmbuild/RPMS/x86\_64  
alien -d --scripts dgrp-1.9-36.x86\_64.rpm  
dpkg -i dgrp\_1.9-37\_amd64.deb  
sudo update-rc.d dgrp\_daemon defaults  
dgrp\_cfg\_node init g 10.31.69.58 32 [replace IP address with your IP address and 32 with the number of ports you need]  
reboot
