Reassign ttySx

Hi everyone, first of all i hope you’re not going to hold my english on me.
I have to reassign the ttyS to specific com port so ttys2 mappes the com port C & ttyS3 mappes com port D.
For some reason, the system unit i have (IBM POS) has the following com port mapping

ttyS0 ==> com A
ttyS1 ==> com B
ttyS2 ==> com E
ttyS3 ==> com F
ttyS4 ==> com C
ttyS5 ==> com D
ttyS6 ==> com G
ttyS7 ==> com H

I am actually able to reassign ressources (IRQ, etc…) using the “Setserial” command so it matches with what i want however everytime i reboot the machine, it loses the settings.
I’ve read several posts dealing with this on other distribution but none of them seems to work.

I’ve modified the script ‘setserial’ from etc/init.d so it assigns the ressources accordingly with no more success.

LAst but not least, i’m not very familiar with Linux and especially OpenSuse i then apologize in advance to those who think this is a dumb question

Welcome to the forums. You’re English is fine.

I have to reassign the ttyS to specific com port so ttys2 mappes the com port C & ttyS3 mappes com port D.
For some reason, the system unit i have (IBM POS) has the following com port mapping

ttyS0 ==> com A
ttyS1 ==> com B
ttyS2 ==> com E
ttyS3 ==> com F
ttyS4 ==> com C
ttyS5 ==> com D
ttyS6 ==> com G
ttyS7 ==> com H

You could use udev rules to create symlinks (SYMLINK+=“…”) or reassign the kernel device names with NAME=“…” (eg /dev/tty8,9,…) so that /dev/ttyS+n are created in the order that you’d like. There’s an example of that given here:

Serial HOWTO: Serial Port Devices /dev/ttyS2, etc.

http://miao5.blogspot.co.nz/2008/11/udev-name-vs-symlink.html

I am actually able to reassign ressources (IRQ, etc…) using the “Setserial” command so it matches with what i want however everytime i reboot the machine, it loses the settings.
I’ve read several posts dealing with this on other distribution but none of them seems to work.

I’ve modified the script ‘setserial’ from etc/init.d so it assigns the ressources accordingly with no more success.

Create a script and use /etc/init.d/after.local and you’ll need to set up a service as explained here

https://forums.opensuse.org/blogs/jdmcdaniel3/systemd-using-after-local-script-opensuse-12-1-12-2-12-3-71/

Hi, thanks for all
I’ll try this out and update the thread of the results.

Thanks again