Package Details: npreal2 5.0-10

Git Clone URL: https://aur.archlinux.org/npreal2.git (read-only, click to copy)
Package Base: npreal2
Description: real tty driver for Moxa NPort serial console terminal server
Upstream URL: https://www.moxa.com/en/products/industrial-edge-connectivity/serial-device-servers/terminal-servers/nport-6100-6200-series
Licenses: GPL, custom
Submitter: severach
Maintainer: severach
Last Packager: severach
Votes: 2
Popularity: 0.000000
First Submitted: 2016-12-20 05:54 (UTC)
Last Updated: 2023-12-19 01:38 (UTC)

Latest Comments

severach commented on 2023-12-18 07:43 (UTC)

@timothy.lee: Moxa's versioned sources like 6.0 do not run on earlier versions. They would need to be patched to compile with all versions in DKMS.

Avenger commented on 2023-01-02 08:00 (UTC) (edited on 2023-01-02 08:00 (UTC) by Avenger)

This needs two more patches to build with 6.1 kernels:

0012-kernel-serial_UART_XMIT_SIZE.patch: https://hastebin.com/bipeleyize.diff

0013-kernel-6.1-set_termios-const-ktermios.patch: https://hastebin.com/rewemacese.csharp

jfernandz commented on 2021-11-16 08:44 (UTC)

I'm not able to build the package ... but I'm not sure what's going on ...

❯ makepkg -sfrc
==> Making package: npreal2 5.0-6 (mar 16 nov 2021 09:39:24)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading moxa-real-tty-drivers-for-linux-5.x.x-driver-v5.0.tgz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 97556  100 97556    0     0  2210k      0 --:--:-- --:--:-- --:--:-- 2268k
  -> Found 0001-mxmknod-folder-fix-and-chgrp-uucp.patch
  -> Found 0002-kernel-5.0.0-access_ok.patch
  -> Found 0003-kernel-5.6-proc_dir_entry-proc_ops.patch
  -> Found 0004-mxloadsvr.c-disable-built-in-systemd-support.patch
  -> Found 0005-kernel-5.10-async-initialized.patch
  -> Found 0006-kernel-5.12-tty-low_latency.patch
  -> Found 0007-tty_unregister_driver-void.patch
  -> Found 0008-kernel-5.13-dropped-tty_check_change.patch
  -> Found 0009-kernel-5.14-task_struct.state-unsigned-tty.patch
  -> Found npreal2.sh
==> Validating source files with md5sums...
    moxa-real-tty-drivers-for-linux-5.x.x-driver-v5.0.tgz ... Passed
    0001-mxmknod-folder-fix-and-chgrp-uucp.patch ... Passed
    0002-kernel-5.0.0-access_ok.patch ... Passed
    0003-kernel-5.6-proc_dir_entry-proc_ops.patch ... Passed
    0004-mxloadsvr.c-disable-built-in-systemd-support.patch ... Passed
    0005-kernel-5.10-async-initialized.patch ... Passed
    0006-kernel-5.12-tty-low_latency.patch ... Passed
    0007-tty_unregister_driver-void.patch ... Passed
    0008-kernel-5.13-dropped-tty_check_change.patch ... Passed
    0009-kernel-5.14-task_struct.state-unsigned-tty.patch ... Passed
    npreal2.sh ... Passed
==> Validating source files with sha256sums...
    moxa-real-tty-drivers-for-linux-5.x.x-driver-v5.0.tgz ... Passed
    0001-mxmknod-folder-fix-and-chgrp-uucp.patch ... Passed
    0002-kernel-5.0.0-access_ok.patch ... Passed
    0003-kernel-5.6-proc_dir_entry-proc_ops.patch ... Passed
    0004-mxloadsvr.c-disable-built-in-systemd-support.patch ... Passed
    0005-kernel-5.10-async-initialized.patch ... Passed
    0006-kernel-5.12-tty-low_latency.patch ... Passed
    0007-tty_unregister_driver-void.patch ... Passed
    0008-kernel-5.13-dropped-tty_check_change.patch ... Passed
    0009-kernel-5.14-task_struct.state-unsigned-tty.patch ... Passed
    npreal2.sh ... Passed
==> Extracting sources...
  -> Extracting moxa-real-tty-drivers-for-linux-5.x.x-driver-v5.0.tgz with bsdtar
==> Starting prepare()...
patching file mxmknod
patching file npreal2.c
Hunk #1 succeeded at 373 (offset 7 lines).
Hunk #2 succeeded at 679 (offset 7 lines).
patching file mxloadsvr.c
patching file npreal2.c
patching file npreal2.c
patching file npreal2.c
patching file npreal2.c
patching file npreal2.c
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...

===============================================================================
Copyright (C) 2002-2019  Moxa Inc.
All Rights Reserved.

MOXA NPort Server Real TTY Driver Ver5.0 Installation.
System Information: Kernel 5.15.2-arch1-1; Machine x86_64.
===============================================================================

********************************WARNING**********************************
 MOXA NPort Server Real TTY Driver has been tested under kernel 5.3.0.
 That may not be compatible with Linux Kernel versions 5.15.2-arch1-1 .
 To download the available driver, please visit Moxa at: http://www.moxa.com
 If you have questions, please contact Moxa support at: support@moxa.com
*************************************************************************
Press enter to continue...

Building driver...

If you want to use secure communication with target,
you might choose [y] to enable the SSL function.
Note: This function support RealCOM with secure mode only.
Do you want to enable secure function? [y/N].
make -C /usr/lib/modules/5.15.2-arch1-1/build SUBDIRS=/home/jfernandz/AUR/npreal2/src/moxa M=/home/jfernandz/AUR/npreal2/src/moxa modules
make[1]: Entering directory '/usr/lib/modules/5.15.2-arch1-1/build'
  CC [M]  /home/jfernandz/AUR/npreal2/src/moxa/npreal2.o
/home/jfernandz/AUR/npreal2/src/moxa/npreal2.c: In function ‘npreal2_module_exit’:
/home/jfernandz/AUR/npreal2/src/moxa/npreal2.c:555:9: error: implicit declaration of function ‘put_tty_driver’ [-Werror=implicit-function-declaration]
  555 |         put_tty_driver(DRV_VAR);
      |         ^~~~~~~~~~~~~~
/home/jfernandz/AUR/npreal2/src/moxa/npreal2.c:520:15: warning: unused variable ‘err’ [-Wunused-variable]
  520 |         int i,err = 0;
      |               ^~~
/home/jfernandz/AUR/npreal2/src/moxa/npreal2.c: In function ‘npreal_init’:
/home/jfernandz/AUR/npreal2/src/moxa/npreal2.c:648:25: error: implicit declaration of function ‘alloc_tty_driver’ [-Werror=implicit-function-declaration]
  648 |         npvar_sdriver = alloc_tty_driver(NPREAL_PORTS+1);
      |                         ^~~~~~~~~~~~~~~~
/home/jfernandz/AUR/npreal2/src/moxa/npreal2.c:648:23: warning: assignment to ‘struct tty_driver *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  648 |         npvar_sdriver = alloc_tty_driver(NPREAL_PORTS+1);
      |                       ^
/home/jfernandz/AUR/npreal2/src/moxa/npreal2.c: In function ‘npreal_ioctl’:
/home/jfernandz/AUR/npreal2/src/moxa/npreal2.c:1385:28: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1385 |                         if (tty->ldisc->ops->flush_buffer)
      |                            ^
/home/jfernandz/AUR/npreal2/src/moxa/npreal2.c:1388:17: note: here
 1388 |                 case TCOFLUSH:
      |                 ^~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:277: /home/jfernandz/AUR/npreal2/src/moxa/npreal2.o] Error 1
make[1]: *** [Makefile:1868: /home/jfernandz/AUR/npreal2/src/moxa] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.15.2-arch1-1/build'
make: *** [Makefile:72: module] Error 2
find: ‘/home/jfernandz/AUR/npreal2/pkg/npreal2/usr/lib/npreal2/driver/’: No such file or directory
==> ERROR: A failure occurred in package().
/usr/share/makepkg/util/message.sh: line 51: QUIET: unbound variable

york commented on 2021-06-30 19:00 (UTC)

Works now with commit 4559e0b. Thank you very much.

york commented on 2021-06-29 17:29 (UTC)

Just tried building the latest commit cd2a853, but failed. Please see https://gist.github.com/YorkZ/68a2e56ff12f5bca9e9769540df93043 for the build log. Thank you.

york commented on 2021-06-18 16:56 (UTC)

npreal2-5.0 dkms build is failing for the kernel 5.12.10-arch1-1 (x86_64). Please see the error messages here. Thank you.

york commented on 2020-07-05 15:13 (UTC)

Downloading from upstream failed, the following is the full output:

makepkg -s ==> Making package: npreal2 1.19-5 (Sun 05 Jul 2020 10:54:05 AM EDT) ==> Checking runtime dependencies... ==> Installing missing dependencies... resolving dependencies... looking for conflicting packages...

Packages (2) dkms-2.8.1-4 linux-headers-5.7.4.arch1-1

Total Download Size: 22.21 MiB Total Installed Size: 119.81 MiB

:: Proceed with installation? [Y/n] :: Retrieving packages... error: failed retrieving file 'linux-headers-5.7.4.arch1-1-x86_64.pkg.tar.zst' from mirror.csclub.uwaterloo.ca : The requested URL returned error: 404 error: failed retrieving file 'linux-headers-5.7.4.arch1-1-x86_64.pkg.tar.zst' from reflector.luehm.com : The requested URL returned error: 404 linux-headers-5.7.4.ar... 22.2 MiB 1104 KiB/s 00:21 [##############################] 100% dkms-2.8.1-4-any 53.9 KiB 1077 KiB/s 00:00 [##############################] 100% (2/2) checking keys in keyring [##############################] 100% (2/2) checking package integrity [##############################] 100% (2/2) loading package files [##############################] 100% (2/2) checking for file conflicts [##############################] 100% (2/2) checking available disk space [##############################] 100% :: Processing package changes... (1/2) installing dkms [##############################] 100% Optional dependencies for dkms linux-headers: build modules against the Arch kernel [pending] linux-lts-headers: build modules against the LTS kernel linux-zen-headers: build modules against the ZEN kernel linux-hardened-headers: build modules against the HARDENED kernel (2/2) installing linux-headers [##############################] 100% :: Running post-transaction hooks... (1/3) Arming ConditionNeedsUpdate... (2/3) Updating module dependencies... (3/3) Install DKMS modules ==> Checking buildtime dependencies... ==> Retrieving sources... -> Downloading npreal2_mainline_v1.19_build_17110917.tgz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 404 Not Found ==> ERROR: Failure while downloading https://www.moxa.com/drivers/IDC_SW/DeviceServer/Driver/NPort%20Real%20TTY%20Driver%20for%20Linux/Mainline/ver1.19/npreal2_mainline_v1.19_build_17110917.tgz Aborting...