Populate serial port options properly

Description

Per summary, serial ports are indeed available at the OS level:

root@filer[~]# ls -l /dev/cua*
crw-rw---- 1 uucp dialer 0x47 May 31 17:16 /dev/cuau0
crw-rw---- 1 uucp dialer 0x48 May 31 17:16 /dev/cuau0.init
crw-rw---- 1 uucp dialer 0x49 May 31 17:16 /dev/cuau0.lock
crw-rw---- 1 uucp dialer 0x4d May 31 17:16 /dev/cuau1
crw-rw---- 1 uucp dialer 0x4e May 31 17:16 /dev/cuau1.init
crw-rw---- 1 uucp dialer 0x4f May 31 17:16 /dev/cuau1.lock

root@filer[~]# grep -E '^(sio|uart)[0-9]' < /var/run/dmesg.boot
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
uart1: console (115200,n,8,1)

But UI just lists — in System->advanced in the serial ports drop down.

FWIW, the sqlite DB of the freenas configuration does contain a port (2F8), and if I was able to change it to the right one. It looks like it's just a bug in the Web UI or middleware component that lists the serial ports in the system.

Problem/Justification

None

Impact

None

duplicates

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Gianluca Varenni June 6, 2019 at 3:52 AM

Is there a fix that you want me to test?

Erin Clark June 5, 2019 at 9:46 PM

Gianluca Varenni June 5, 2019 at 5:18 PM

root@freenas[~]# midclt call system.advanced.serial_port_choices
{"0x2f8": "0x2f8", "0x3f8": "0x3f8"}

 

root@freenas[~]# /usr/sbin/devinfo -u
Interrupt request lines:
0x0 (attimer0)
0x1 (root0)
0x3 (uart1)
0x4 (uart0)
0x5-0x7 (root0)
0x8 (atrtc0)
0x9 (acpi0)
0xa-0x11 (root0)
0x12 (ehci1)
0x12 (ehci0)
0x13-0x2f (root0)
0x100 (hpet0)
0x101 (hpet0)
0x102 (hpet0)
0x103 (hpet0)
0x104 (hpet0)
0x105 (hpet0)
0x106 (hpet0)
0x107 (hpet0)
0x108 (mpr0)
0x109 (ix0)
0x10a (ix0)
0x10b (ix0)
0x10c (ix0)
0x10d (ix0)
0x10e (ix0)
0x10f (ix0)
0x110 (ix0)
0x111 (ix0)
0x112 (igb0)
0x113 (igb0)
0x114 (igb0)
0x115 (igb0)
0x116 (igb0)
0x117 (igb0)
0x118 (igb0)
0x119 (igb0)
0x11a (igb0)
0x11b (igb1)
0x11c (igb1)
0x11d (igb1)
0x11e (igb1)
0x11f (igb1)
0x120 (igb1)
0x121 (igb1)
0x122 (igb1)
0x123 (igb1)
0x124 (igb2)
0x125 (igb2)
0x126 (igb2)
0x127 (igb2)
0x128 (igb2)
0x129 (igb2)
0x12a (igb2)
0x12b (igb2)
0x12c (igb2)
0x12d (igb3)
0x12e (igb3)
0x12f (igb3)
0x130 (igb3)
0x131 (igb3)
0x132 (igb3)
0x133 (igb3)
0x134 (igb3)
0x135 (igb3)
0x136 (ahci0)
0x137 (xhci0)
0x138 (pcib6)
0x139 (ahci1)
DMA request lines:
0-3 (root0)
4 (atdma0)
5-7 (root0)
I/O ports:
0x0-0xf (atdma0)
0x10-0x1f (acpi0)
0x20-0x3d ----
0x3e-0x3f (root0)
0x40-0x43 (attimer0)
0x44-0x4f (root0)
0x50-0x53 (attimer0)
0x54-0x60 (root0)
0x61 ----
0x62-0x6f (root0)
0x70-0x71 (atrtc0)
0x72-0x73 (acpi0)
0x74-0x77 (atrtc0)
0x78-0x7f (root0)
0x80 (acpi0)
0x81-0x83 (atdma0)
0x84-0x86 (acpi0)
0x87 (atdma0)
0x88 (acpi0)
0x89-0x8b (atdma0)
0x8c-0x8e (acpi0)
0x8f (atdma0)
0x90-0x9f (acpi0)
0xa0-0xbd ----
0xbe-0xbf (root0)
0xc0-0xdf (atdma0)
0xe0-0xef (root0)
0xf0 (fpupnp0)
0xf1-0x2f7 (root0)
0x2f8-0x2ff (uart1)
0x300-0x3f7 (root0)
0x3f8-0x3ff (uart0)
0x400-0x47f (acpi0)
0x480-0x4cf (root0)
0x4d0-0x4d1 ----
0x4d2-0x4ff (root0)
0x500-0x57f (acpi0)
0x580-0x59f (acpi0)
0x5a0-0x5ff (root0)
0x600-0x61f (acpi0)
0x620-0x7ff (root0)
0x800-0x81f (acpi0)
0x820-0x87f (root0)
0x880-0x883 (acpi0)
0x884-0x9ff (root0)
0xa00-0xa0f (acpi0)
0xa10-0xa1f (acpi0)
0xa20-0xa2f (acpi0)
0xa30-0xa3f (acpi0)
0xa40-0xa4f (acpi0)
0xa50-0xca1 (root0)
0xca2 (ipmi0)
0xca3 (ipmi0)
0xca4-0xcf7 (root0)
0xcf8-0xcff (pcib1)
0xd00-0xafff (root0)
0xb000-0xbfff (pcib7)
0xc000-0xcfff (pcib5)
0xd000-0xdfff (pcib3)
0xe000-0xefff (pcib2)
0xf000-0xf01f (ahci1)
0xf020-0xf03f (ahci0)
0xf040-0xf043 (ahci1)
0xf044-0xf04f (root0)
0xf050-0xf057 (ahci1)
0xf058-0xf05f (root0)
0xf060-0xf063 (ahci1)
0xf064-0xf06f (root0)
0xf070-0xf077 (ahci1)
0xf078-0xf0df (root0)
0xf0e0-0xf0e3 (ahci0)
0xf0e4-0xf0ef (root0)
0xf0f0-0xf0f7 (ahci0)
0xf0f8-0xf0ff (root0)
0xf100-0xf103 (ahci0)
0xf104-0xf10f (root0)
0xf110-0xf117 (ahci0)
0xf118-0xffff (root0)
I/O memory addresses:
0x0-0x973ff (ram0)
0x97400-0x9ffff (root0)
0xa0000-0xaffff (vtvga0)
0xb0000-0xbffff (root0)
0xc0000-0xc7fff (orm0)
0xc8000-0xcefff (root0)
0xcf000-0xcffff (orm0)
0xd0000-0xfffff (root0)
0x100000-0x78f00fff (ram0)
0x78f01000-0xf9ffffff (root0)
0xfa000000-0xfb0fffff (pcib7)
0xfb100000-0xfb2fffff (pcib2)
0xfb300000-0xfb3fffff (pcib5)
0xfb400000-0xfb4fffff (pcib3)
0xfb500000-0xfb50ffff (xhci0)
0xfb510000-0xfb513fff ----
0xfb514000-0xfb517fff ----
0xfb518000-0xfb51bfff ----
0xfb51c000-0xfb51ffff ----
0xfb520000-0xfb523fff ----
0xfb524000-0xfb527fff ----
0xfb528000-0xfb52bfff ----
0xfb52c000-0xfb52ffff ----
0xfb530000-0xfb530fff (root0)
0xfb531000-0xfb5310ff ----
0xfb531100-0xfb531fff (root0)
0xfb532000-0xfb5327ff (ahci1)
0xfb532800-0xfb532fff (root0)
0xfb533000-0xfb5333ff (ehci1)
0xfb533400-0xfb533fff (root0)
0xfb534000-0xfb5343ff (ehci0)
0xfb534400-0xfb535fff (root0)
0xfb536000-0xfb53600f ----
0xfb536010-0xfb536fff (root0)
0xfb537000-0xfb53700f ----
0xfb537010-0xfb537fff (root0)
0xfb538000-0xfb5387ff (ahci0)
0xfb538800-0xfb538fff (root0)
0xfb539000-0xfb539fff (ioapic0)
0xfb53a000-0xfbdfffff (root0)
0xfbe00000-0xfbefffff (pcib3)
0xfbf00000-0xfebfffff (root0)
0xfec00000-0xfecfffff ----
0xfed00000-0xfed003ff (hpet0)
0xfed00400-0xfed11fff (root0)
0xfed12000-0xfed1200f (acpi0)
0xfed12010-0xfed1201f (acpi0)
0xfed12020-0xfed1afff (root0)
0xfed1b000-0xfed1bfff (acpi0)
0xfed1c000-0xfed3ffff (acpi0)
0xfed40000-0xfed44fff (root0)
0xfed45000-0xfed8bfff (acpi0)
0xfed8c000-0xfedfffff (root0)
0xfee00000-0xfeefffff (acpi0)
0xfef00000-0xfeffffff (root0)
0xff000000-0xffffffff (acpi0)
0x100000000-0x407fffffff (ram0)
0x4080000000-0xffffffffffffffff (root0)
ACPI I/O ports:
0x10-0x1f (root0)
0x72-0x73 (root0)
0x80 (root0)
0x84-0x86 (root0)
0x88 (root0)
0x8c-0x8e (root0)
0x90-0x9f (root0)
0x400-0x407 (root0)
0x408-0x40b (acpi_timer0)
0x40c-0x42f (root0)
0x430-0x437 (ichwd0)
0x438-0x45f (root0)
0x460-0x47f (ichwd0)
0x500-0x57f (root0)
0x580-0x59f ----
0x600-0x61f (root0)
0x800-0x81f (root0)
0x880-0x883 (root0)
0xa00-0xa4f (root0)
ACPI I/O memory addresses:
0xfed12000-0xfed1201f (root0)
0xfed1b000-0xfed1bfff (root0)
0xfed1c000-0xfed1f40f (root0)
0xfed1f410-0xfed1f413 (isab0)
0xfed1f414-0xfed3ffff (root0)
0xfed45000-0xfed8bfff (root0)
0xfee00000-0xfeefffff (root0)
0xff000000-0xffffffff (root0)
PCI domain 0 bus numbers:
0 (pci1)
1 (pcib2)
2 (pcib3)
3 (pcib4)
4 (pcib5)
5 (pcib6)
6-7 (pcib7)
8-254 (root0)
255 (pci0)
pcib2 bus numbers:
1 (pci2)
pcib2 I/O port window:
0xe000-0xe0ff (mpr0)
0xe100-0xefff (root0)
pcib2 memory window:
0xfb100000-0xfb1fffff (root0)
0xfb200000-0xfb23ffff (mpr0)
0xfb240000-0xfb24ffff (mpr0)
0xfb250000-0xfb2fffff (root0)
pcib2 prefetch window:
pcib3 bus numbers:
2 (pci3)
pcib3 I/O port window:
0xd000-0xd01f (ix0)
0xd020-0xdfff (root0)
pcib3 memory window:
0xfb400000-0xfb4fffff (root0)
pcib3 prefetch window:
0xfbe00000-0xfbe7ffff (ix0)
0xfbe80000-0xfbe83fff (ix0)
0xfbe84000-0xfbefffff (root0)
pcib4 bus numbers:
3 (pci4)
pcib4 I/O port window:
pcib4 memory window:
pcib4 prefetch window:
pcib5 bus numbers:
4 (pci5)
pcib5 I/O port window:
0xc000-0xc01f (igb3)
0xc020-0xc03f (igb2)
0xc040-0xc05f (igb1)
0xc060-0xc07f (igb0)
0xc080-0xcfff (root0)
pcib5 memory window:
0xfb300000-0xfb31ffff (igb3)
0xfb320000-0xfb33ffff (igb2)
0xfb340000-0xfb35ffff (igb1)
0xfb360000-0xfb37ffff (igb0)
0xfb380000-0xfb383fff (igb3)
0xfb384000-0xfb387fff (igb2)
0xfb388000-0xfb38bfff (igb1)
0xfb38c000-0xfb38ffff (igb0)
0xfb390000-0xfb3fffff (root0)
pcib5 prefetch window:
I/O memory addresses:
0xfb538000-0xfb5380ff (root0)
0xfb538100-0xfb53817f (ahcich0)
0xfb538180-0xfb5381ff (ahcich1)
0xfb538200-0xfb53827f (ahcich2)
0xfb538280-0xfb5382ff (ahcich3)
0xfb538300-0xfb5387ff (root0)
pcib6 bus numbers:
5 (root0)
pcib6 I/O port window:
pcib6 memory window:
pcib6 prefetch window:
pcib7 bus numbers:
6 (pci6)
7 (pcib8)
pcib7 I/O port window:
0xb000-0xbfff (pcib8)
pcib7 memory window:
0xfa000000-0xfb0fffff (pcib8)
pcib7 prefetch window:
pcib8 bus numbers:
7 (pci7)
pcib8 I/O port window:
0xb000-0xb07f (vgapci0)
0xb080-0xbfff (root0)
pcib8 memory window:
0xfa000000-0xfaffffff (vgapci0)
0xfb000000-0xfb01ffff (vgapci0)
0xfb020000-0xfb0fffff (root0)
pcib8 prefetch window:
I/O memory addresses:
0xfb532000-0xfb5320ff (root0)
0xfb532100-0xfb53217f (ahcich4)
0xfb532180-0xfb5321ff (ahcich5)
0xfb532200-0xfb53227f (ahcich6)
0xfb532280-0xfb5322ff (ahcich7)
0xfb532300-0xfb53237f (ahcich8)
0xfb532380-0xfb5323ff (ahcich9)
0xfb532400-0xfb5327ff (root0)

Alexander Motin June 5, 2019 at 3:04 PM

And if somehow above won't show you the ports, please attach output of `/usr/sbin/devinfo -u`.

William Gryzbowski June 5, 2019 at 1:12 PM

Whats the output of `midclt call system.advanced.serial_port_choices` ?

Complete
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

More fields

Katalon Platform

Created June 3, 2019 at 8:58 PM
Updated July 1, 2022 at 4:31 PM
Resolved October 30, 2019 at 6:28 PM