#!/bin/bash PATH=$PATH:/usr/local/bin cd /dev # These devices nodes need to be created every time we boot since /dev is # managed by the kernel and thus empty at boot time. I don't know how to # convince the kernel to create the devices, but creating them this way # works fine. I will later try to figure out how to get the kernel to create # the devices with devfs. for i in 4 5 6 7 8 9 10 11 ; do let minor=$i+64 mknod -m 666 /dev/ttyS$i c 4 $minor done # Bottom Card (bottom in my case. Stack them however you want.) setserial -v /dev/ttyS4 port 0x280 uart 16550A irq 5 ^fourport setserial -v /dev/ttyS5 port 0x288 uart 16550A irq 5 ^fourport setserial -v /dev/ttyS6 port 0x290 uart 16550A irq 5 ^fourport setserial -v /dev/ttyS7 port 0x298 uart 16550A irq 5 ^fourport setserial -v /dev/ttyS4 set_multiport port1 0x2c0 mask1 0xf match1 0xf # Top Card setserial -v /dev/ttyS8 port 0x240 uart 16550A irq 7 ^fourport setserial -v /dev/ttyS9 port 0x248 uart 16550A irq 7 ^fourport setserial -v /dev/ttyS10 port 0x250 uart 16550A irq 7 ^fourport setserial -v /dev/ttyS11 port 0x258 uart 16550A irq 7 ^fourport setserial -v /dev/ttyS8 set_multiport port1 0x2d0 mask1 0xf match1 0xf # I am not sure of the proper way of setting up these ports. I have also # tried omitting the "^fourport" options and leaving out the lines with # "set_multiport" in them.