Linux Mint 18 -> Windows10: serial card problems
Posted: 16. Nov 2016, 18:49
by casadellachiave
Hallo
i had installed into my new computer with Motherboard Asus Z170 a PCI card with 4 serial port... SERIAL, not USB....
i have to say first there is 1 serial port on motherboard BUT i need about 4-5 serial port to drive my cutting key machines
if i digit "setserial -g /dev/ttyS*" it display correct info like:
/dev/ttyS0, UART 16550A, PORT 0x03f8, IRQ: 4
/dev/ttyS4, UART undefined, PORT 0xd070, IRQ19
/dev/ttyS5, UART undefined, PORT 0xd060, IRQ19
/dev/ttyS6, UART undefined, PORT 0xd050, IRQ19
/dev/ttyS7, UART undefined, PORT 0xd040, IRQ19
the first is the one on MB, the otres in card, of course it display to me other ttyS but "unknown...
NOW... i had installed inside virtualbox a win10 pro. it work well with usb video, mouse bla bla all...
i had enabled all 4 sderial port with HOST type and i did this
COM1 -> /dev/ttyS0
COM2-> /dev/ttyS1
etc...
when i didn't install the card win10 see find regulary the COM1
BUT
if i install the cart, windows show me yelllow warning on any COM with the error 12
conflict in resources...
i have another serial card but only with 2 ports (i need at least 4)
and when i install it windows say:
COM1 and COM3 conflict, COM2 OK
i'm near become crazy....
plesase help me!!!!

Re: Linux Mint 18 -> Windows10 serial card problems
Posted: 16. Nov 2016, 19:39
by casadellachiave
...i hsd try DEFINE uart as in ttyS0 16550A, i had try different irq for any port,
i had try change port address and insert the standard port value for seriual and it say "source busy"
i'm doing all with second account on computer but when i try modify i use sudo before so i assume i'm root when i try modify
i had try open virtualbox as root...
nothing changed
Re: Linux Mint 18 -> Windows10 serial card problems
Posted: 16. Nov 2016, 20:47
by Martin
For me it looks like you need first to make sure that the ports work correcly in the host Linux.
"UART undefined" doesn't look like a correct working driver.
When the ports are working and can be used from Linux then you can start trying to pass them to a Virtualbox guest.
Re: Linux Mint 18 -> Windows10 serial card problems
Posted: 17. Nov 2016, 00:24
by casadellachiave
Could be card is broken? Or dont work properly? I will search some test... I dont know now how test them...
Re: Linux Mint 18 -> Windows10 serial card problems
Posted: 17. Nov 2016, 11:20
by casadellachiave
here what i read trought some commands:
lspci -v | grep "Serial"
Capabilities: [100] Device Serial Number 00-30-e0-11-11-00-01-10
05:01.0 Serial controller: WCH.CN CH355 PCI Quad Serial Port Controller (rev 10) (prog-if 02 [16550])
Subsystem: WCH.CN CH355 PCI Quad Serial Port Controller
Capabilities: [160] Device Serial Number 01-00-00-00-68-4c-e0-00
setserial -g /dev/ttyS*
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS10, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS11, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS12, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS13, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS14, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS15, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS16, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS17, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS18, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS19, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS20, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS21, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS22, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS23, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS24, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS25, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS26, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS27, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS28, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS29, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
/dev/ttyS30, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS31, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS4, UART: undefined, Port: 0xd070, IRQ: 19
/dev/ttyS5, UART: undefined, Port: 0xd060, IRQ: 19
/dev/ttyS6, UART: undefined, Port: 0xd050, IRQ: 19
/dev/ttyS7, UART: undefined, Port: 0xd040, IRQ: 19
/dev/ttyS8, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS9, UART: unknown, Port: 0x0000, IRQ: 0
dmesg | grep tty
[ 0.000000] console [tty0] enabled
[ 0.864242] 00:01: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 0.867524] 0000:05:01.0: ttyS4 at I/O 0xd070 (irq = 19, base_baud = 115200) is a XScale
[ 0.867731] 0000:05:01.0: ttyS5 at I/O 0xd060 (irq = 19, base_baud = 115200) is a XScale
[ 0.867957] 0000:05:01.0: ttyS6 at I/O 0xd050 (irq = 19, base_baud = 115200) is a XScale
[ 0.868203] 0000:05:01.0: ttyS7 at I/O 0xd040 (irq = 19, base_baud = 115200) is a XScale
what can i do to try if ttyS* are properly working?
Re: Linux Mint 18 -> Windows10: serial card problems
Posted: 17. Nov 2016, 17:57
by casadellachiave
i have some adapters... usb to serial...
i have 6 usb (4x2.0 and 2x3.0) but when i plug them 1 is ok, 2 is ok, but when i plug others i recive a yellow waring on the peripher
about insufficient resources or not existant hardware????????!?!?!?!?!?!?!?
i become crazy...
Re: Linux Mint 18 -> Windows10: serial card problems
Posted: 24. Nov 2016, 14:42
by casadellachiave
last update:
i have 3 cards... 1 with 2 ports, and 2 cards with 2 porte each
and i had try installing 1 com with 4 ports or 2 carrds with 2 ports each
same results
(i had disable the com avaible onboard)
into a win10 guest coms work properly just if i enable only 2 and only if i enable COM1-COM2 or COM1-COM2 or COM3-COM4 or COM1-COM4 or COM2-COM3
i had installed WINXP and magically all 4 COM work properly
so i think is a driver problem, seem win10 under virtualbox accept only 2 COM evenif i try enable all 4
someone have a sugestion for me?
thank you