LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-18-2023, 10:59 AM   #1
Jezekilj Monk
LQ Newbie
 
Registered: Dec 2019
Location: Kosovo - Serbia
Distribution: Linux Mint 20.3 Cinnamon, Ubuntu 20.04 LTS, Ubuntu-mate 20.04 LTS on RPi4, Win7, Win10 as VM
Posts: 21

Rep: Reputation: Disabled
How to install MOXA PCI card for two Serial Ports like CP-102U/UL


Hello,

Does anybody know how to properly install MOXA PCI card that provides two serial ports? On Ubuntu 22.04 or Linux Mint 21?


Basically I downloaded kernel driver from this link

https://www.moxa.com/getmedia/5f51c6...river-v5.1.tgz

which is on this web page

https://www.moxa.com/en/support/search?psid=56531

and tried to follow instructions in readme.txt file for static serial ports and got stuck at the step 3.5.6

In some of the previous steps I had to adjust proper paths as well, but this was not too complicated.
 
Old 01-18-2023, 01:58 PM   #2
Arnulf
Member
 
Registered: Jan 2022
Location: Hanover, Germany
Distribution: Slackware
Posts: 317

Rep: Reputation: 114Reputation: 114
Post output of lspci -v
Which kernel is in use?

This card (2-port RS-232 via PCI) should run out of the box if your kernel has compiled in or as modules:
  • "8250/16550 and compatible serial support" aka CONFIG_SERIAL_8250
  • "8250/16550 PCI device support" aka CONFIG_SERIAL_8250_PCI
  • "Maximum number of 8250/16550 serial ports" aka CONFIG_SERIAL_8250_NR_UARTS with a value of ≥ 2; value should be equal or larger to number of all RS232 ports in your computer
  • "Number of 8250/16550 serial ports to register at runtime" aka CONFIG_SERIAL_8250_RUNTIME_UARTS with a value equal to "Maximum number of 8250/16550 serial ports"
 
Old 01-18-2023, 02:12 PM   #3
Jezekilj Monk
LQ Newbie
 
Registered: Dec 2019
Location: Kosovo - Serbia
Distribution: Linux Mint 20.3 Cinnamon, Ubuntu 20.04 LTS, Ubuntu-mate 20.04 LTS on RPi4, Win7, Win10 as VM
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Arnulf View Post
Post output of lspci -v
Which kernel is in use?

This card (2-port RS-232 via PCI) should run out of the box if your kernel has compiled in or as modules:
  • "8250/16550 and compatible serial support" aka CONFIG_SERIAL_8250
  • "8250/16550 PCI device support" aka CONFIG_SERIAL_8250_PCI
  • "Maximum number of 8250/16550 serial ports" aka CONFIG_SERIAL_8250_NR_UARTS with a value of ≥ 2; value should be equal or larger to number of all RS232 ports in your computer
  • "Number of 8250/16550 serial ports to register at runtime" aka CONFIG_SERIAL_8250_RUNTIME_UARTS with a value equal to "Maximum number of 8250/16550 serial ports"
I hoped it would work out of the box after fresh install of linux mint 21.1, but it didn't

This is output of lspci -v
Code:
jezekilj@Mint-Agregati:~$ lspci -v
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] RS880 Host Bridge
	Subsystem: Hewlett-Packard Company RS880 Host Bridge
	Flags: bus master, 66MHz, medium devsel, latency 32, NUMA node 0
	Capabilities: <access denied>

00:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] RS780 PCI to PCI bridge (ext gfx port 0) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 24, NUMA node 0
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	I/O behind bridge: 00002000-00002fff [size=4K]
	Memory behind bridge: f0000000-f00fffff [size=1M]
	Prefetchable memory behind bridge: 00000000e0000000-00000000efffffff [size=256M]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:0a.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 5) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 25, NUMA node 0
	Bus: primary=00, secondary=3f, subordinate=3f, sec-latency=0
	I/O behind bridge: [disabled]
	Memory behind bridge: f0100000-f01fffff [size=1M]
	Prefetchable memory behind bridge: [disabled]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] (prog-if 01 [AHCI 1.0])
	Subsystem: Hewlett-Packard Company SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]
	Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 22, NUMA node 0
	I/O ports at 3110 [size=8]
	I/O ports at 3120 [size=4]
	I/O ports at 3118 [size=8]
	I/O ports at 3124 [size=4]
	I/O ports at 3100 [size=16]
	Memory at f0209000 (32-bit, non-prefetchable) [size=1K]
	Capabilities: <access denied>
	Kernel driver in use: ahci
	Kernel modules: ahci

00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller (prog-if 10 [OHCI])
	Subsystem: Hewlett-Packard Company SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
	Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 16, NUMA node 0
	Memory at f0204000 (32-bit, non-prefetchable) [size=4K]
	Kernel driver in use: ohci-pci

00:12.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller (prog-if 10 [OHCI])
	Subsystem: Hewlett-Packard Company SB7x0 USB OHCI1 Controller
	Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 16, NUMA node 0
	Memory at f0205000 (32-bit, non-prefetchable) [size=4K]
	Kernel driver in use: ohci-pci

00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller (prog-if 20 [EHCI])
	Subsystem: Hewlett-Packard Company SB7x0/SB8x0/SB9x0 USB EHCI Controller
	Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 17, NUMA node 0
	Memory at f0209400 (32-bit, non-prefetchable) [size=256]
	Capabilities: <access denied>
	Kernel driver in use: ehci-pci

00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller (prog-if 10 [OHCI])
	Subsystem: Hewlett-Packard Company SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
	Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 18, NUMA node 0
	Memory at f0206000 (32-bit, non-prefetchable) [size=4K]
	Kernel driver in use: ohci-pci

00:13.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller (prog-if 10 [OHCI])
	Subsystem: Hewlett-Packard Company SB7x0 USB OHCI1 Controller
	Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 18, NUMA node 0
	Memory at f0207000 (32-bit, non-prefetchable) [size=4K]
	Kernel driver in use: ohci-pci

00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller (prog-if 20 [EHCI])
	Subsystem: Hewlett-Packard Company SB7x0/SB8x0/SB9x0 USB EHCI Controller
	Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 19, NUMA node 0
	Memory at f0209500 (32-bit, non-prefetchable) [size=256]
	Capabilities: <access denied>
	Kernel driver in use: ehci-pci

00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 3c)
	Subsystem: Hewlett-Packard Company SBx00 SMBus Controller
	Flags: 66MHz, medium devsel, NUMA node 0
	Capabilities: <access denied>
	Kernel driver in use: piix4_smbus
	Kernel modules: i2c_piix4, sp5100_tco

00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA)
	Subsystem: Hewlett-Packard Company SBx00 Azalia (Intel HDA)
	Flags: bus master, slow devsel, latency 32, IRQ 16, NUMA node 0
	Memory at f0200000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller
	Subsystem: Hewlett-Packard Company SB7x0/SB8x0/SB9x0 LPC host controller
	Flags: bus master, 66MHz, medium devsel, latency 0, NUMA node 0

00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge (prog-if 01 [Subtractive decode])
	Flags: bus master, VGA palette snoop, 66MHz, medium devsel, latency 64, NUMA node 0
	Bus: primary=00, secondary=0f, subordinate=0f, sec-latency=64
	I/O behind bridge: 00001000-00001fff [size=4K]
	Memory behind bridge: [disabled]
	Prefetchable memory behind bridge: [disabled]

00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller (prog-if 10 [OHCI])
	Subsystem: Hewlett-Packard Company SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
	Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 18, NUMA node 0
	Memory at f0208000 (32-bit, non-prefetchable) [size=4K]
	Kernel driver in use: ohci-pci

00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor HyperTransport Configuration
	Flags: fast devsel, NUMA node 0
	Capabilities: <access denied>

00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Address Map
	Flags: fast devsel, NUMA node 0

00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor DRAM Controller
	Flags: fast devsel, NUMA node 0

00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Miscellaneous Control
	Flags: fast devsel, NUMA node 0
	Capabilities: <access denied>
	Kernel driver in use: k10temp
	Kernel modules: k10temp

00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Link Control
	Flags: fast devsel, NUMA node 0

02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cedar [Radeon HD 5000/6000/7350/8350 Series] (prog-if 00 [VGA controller])
	Subsystem: Micro-Star International Co., Ltd. [MSI] Cedar [Radeon HD 5000/6000/7350/8350 Series]
	Physical Slot: 3
	Flags: bus master, fast devsel, latency 0, IRQ 26, NUMA node 0
	Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Memory at f0000000 (64-bit, non-prefetchable) [size=128K]
	I/O ports at 2100 [size=256]
	Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: radeon
	Kernel modules: radeon

02:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cedar HDMI Audio [Radeon HD 5400/6300/7300 Series]
	Subsystem: Micro-Star International Co., Ltd. [MSI] Cedar HDMI Audio [Radeon HD 5400/6300/7300 Series]
	Physical Slot: 3
	Flags: bus master, fast devsel, latency 0, IRQ 27, NUMA node 0
	Memory at f0020000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

0f:00.0 Serial controller: Moxa Technologies Co Ltd CP-102UL (2-port RS-232 Universal PCI) (prog-if 02 [16550])
	Subsystem: Moxa Technologies Co Ltd CP-102UL (2-port RS-232 Universal PCI)
	Physical Slot: 4
	Flags: medium devsel, IRQ 20, NUMA node 0
	I/O ports at 1140 [size=32]
	I/O ports at 1100 [size=64]
	I/O ports at 1160 [size=16]
	Kernel modules: mxser

3f:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5761 Gigabit Ethernet PCIe (rev 10)
	Subsystem: Hewlett-Packard Company NetXtreme BCM5761 Gigabit Ethernet PCIe
	Flags: bus master, fast devsel, latency 0, IRQ 28, NUMA node 0
	Memory at f0100000 (64-bit, non-prefetchable) [size=64K]
	Memory at f0110000 (64-bit, non-prefetchable) [size=64K]
	Capabilities: <access denied>
	Kernel driver in use: tg3
	Kernel modules: tg3
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't install mini pci-e card into desktop PC through a mini pci-e to pci-e 1x card bocaiwen Linux - Hardware 3 05-15-2012 02:29 AM
On my PCI serial port card I-440 work only two ports from 4 vitaly_v_ch Linux - Hardware 0 01-16-2010 01:18 AM
Moxa C320T/PCI install problem! rusmosav Linux - Hardware 3 05-17-2007 11:19 PM
terminal server moxa massimo_r Linux - Hardware 0 02-06-2007 05:37 AM
moxa multiport driver for 2.6.x?! silvercloud Linux - Hardware 0 09-24-2005 02:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration