Is it possible to rearrange dev/ttyS numbers?
Hello, I recently installed a serial port addon card for the purpose of programming picaxe microcontrollers. I could not find linux drivers but it appears Ubuntu 16.04 recognizes it right out of the box. Using lspci shows the following:
Code:
05:00.0 Serial controller: Oxford Semiconductor Ltd OXPCIe952 Dual 16C950 UART (prog-if 02 [16550]) Code:
dev/ttyS0: No such device So, is there a way to reconfigure my ttyS numbers so that instead of ttyS4 and ttyS5 my serial ports correspond to ttyS0 and ttyS1? |
http://www.tldp.org/HOWTO/Serial-HOWTO-10.html
If that doesn't work then there may be other ways around it but from notes you may have some issues if onboard isa serial ports exist. |
This may sound like a stupid idea, but a quick and dirty possible fix might be to try and delete /dev/ttyS0 and create a symlink to ttyS4.
Code:
rm -vi /dev/ttyS0 http://www.tldp.org/HOWTO/Serial-HOW...tml#create_dev |
Ok, thanks for getting back to me. I'm still reading through the documentation you guys linked to, I want to have some idea of what I'm doing before I start executing commands in terminal. I did try adding a line to the udev rules file to rename ttyS4 as ttyS0 at startup but that failed to change anything. I read a bit about the mknod command online and sort of understand it, but the MAJOR and MINOR arguments were kind of cryptic to me at first. I found the section about them on tldp.org and using ls gave me the following:
Code:
michael@michael-All-Series:~$ ls -l /dev/ttyS[0,1,2,3,4,5] Jefro, I read your remark about onboard ISA ports causing issues and I think I may just have such an issue. Here is the relevant lspci output I found: Code:
00:1f.0 ISA bridge: Intel Corporation Z87 Express LPC Controller (rev 05) |
As I recall in dos you had to move the lower comm and then swap the higher comm but may not apply here.
|
You might check the BIOS/UFI configuration. sometimes you can disable the internal serial device (com0-3), and that would allow the addin card to become 0/1.
You may even be able to re-order the list. I think what is causing this is the BIOS provided device list. |
All times are GMT -5. The time now is 11:24 PM. |