LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   change serial port IO addresses by command line (https://www.linuxquestions.org/questions/linux-hardware-18/change-serial-port-io-addresses-by-command-line-469692/)

powah 08-01-2006 07:28 AM

change serial port IO addresses by command line
 
To make the serial ports work with the minicom and other software, the IO addresses of the two serial port of a computer have to be changed from 2FE to 3F8 and from 3FE to 2F8 in the BIOS setting.
I have to make hundreds of identical computer to work, so I don't want to change them manually in the BIOS.
Is there a way to change the IO addresses of the two serial port by the command line?
Alternatively, is there other way to accomplish the same goal?

I use FC 3.
/etc/inittab has this line:
s0:2345:respawn:/sbin/mgetty ttyS0

thelvaci 08-01-2006 07:55 AM

try to use setserial command example:

setserial /dev/ttyS2 port 0xd000 uart 16550A irq 5 Baud_base 115200
setserial /dev/ttyS3 port 0xb800 uart 16550A irq 5 Baud_base 115200

These are just examples you should modify as to your need


All times are GMT -5. The time now is 01:02 PM.