Andre (on4hu ?),
Have you tried to execute the setserial commands 'by hand' first? (As
root, of course.)
These are my commands:
I put them in a script file and made sure it's executable.
#!/bin/sh
# Setup serial ports for STB Four port card. (ttyS2-ttyS5 = COM3-COM6)
# Author: Gustav Schaffter, December 31 1999.
echo "Configuring serial ports for STB fourport device." |
/usr/bin/logger
/bin/setserial -v /dev/ttyS2 port 0x03E8 irq 11 uart 16550A skip_test
^fourport | /usr/bin/logger
/bin/setserial -v /dev/ttyS3 port 0x01E8 irq 12 uart 16550A skip_test
^fourport | /usr/bin/logger
/bin/setserial -v /dev/ttyS4 port 0x02A8 irq 12 uart 16550A skip_test
^fourport | /usr/bin/logger
/bin/setserial -v /dev/ttyS5 port 0x01A8 irq 12 uart 16550A skip_test
^fourport | /usr/bin/logger
Works fine for me.
The logger command writes to /var/log/messages where I can later on
check the outcome, should something look strange.
You set the uart as 8250, mine is 16550A (???)
Try to get one port running first. Do the setserial stuff on a command
line and try to use it. Does that work? If not, what error messages do
you get from a) setserial? b) using the port c) in /var/log/messages ?
BTW, do you have the right owner and permissions on the ttySx devices?
chown root.tty /dev/ttyS[4567]
chmod 600 /dev/ttyS[4567]
Yes, write like that with the brackets. Saves you some writing :-)
Finally, when they work manually, you have to decide how to run the
commands on boot. You may either chose to store it in rc.serial or in
rc.local. By logging what happens, you can make sure that it gets
executed as (and when) expected.
In my case it was more complicated, because I have a daemon (upsd) that
makes use of one of the ports. So I had to setup the 'setserial' script
as a SysV init script that gets executed before upsd starts.
If that is your case, you may come back to me when you can get it
running 'by hand' and I'll help you setup the rc script as an init
script.
If that is not necessary for you, then the above should at least be
helpful (I hope :-).
Regards
Gustav
on4hu wrote:
>
> At 11:10 17/01/2000 +0100, you wrote:
> >Hi,
> >
> >You will have to run setserial for each port except ttyS0 and ttyS1.
> >
> >man setserial
> >
> >If you can wait until tonight, I may send you the script I execute to
> >'setserial' my STB fourport card. Pls, let me know.
> >
> >Regards
> >Gustav
>
> Hello Gustav,
> yes i understood i am waiting tonight for your answer
> i have done the following:
> first off all after install RedHat 6.0 the file /etc/rc.d/rc.serial do not
> exist ????
> i have copy rc.serial on /etc/rc.d/rc.serial
> i am using radioamateur programme using name ax0 for ttyS1,
> ax1
> ax1 for ttyS4
> rc.serial contain the line:
>
> setserial -bv /dev/ttyS4 port 0x1a0 irq 5 uart 8250 ^fourport
> setserial -bv /dev/ttyS5 " 1a8 5 "
> setserial -bv /dev/ttyS6 " 1b0 5 "
> setserial -bv /dev/ttyS7 " 1b8 5 "
>
> the address and irq's are those mapping i/o to each channel write on the
> four port manual
> and irq5 are not used for other purpose also this card work nicely on one
> old version
> slackware linux last year
> ttyS1 are in connection with anoter PC using DOS at 38.4Kbs
> i search to use ttyS4,5,6 and 7 at 9.6kbps with my old four serial card to
> connect
> 4 modem like (in fact radio-TNC's)
>
> >on4hu wrote:
> > >
> > > hello everybody
> > >
> > > i am completly a newcomer with linux RedHat 6.0 2.2.5-15 and french
> > speaking
> > > my four serials ports will not fonction..why?
> > > my computer is Intel pentium-II 400Mhz with com1 and com2 installed, no
> > > com3 nor com4
> > > i have initialized with the following command the 4x serials as below
> > >
> > > mknod -m 666 /dev/ttyS4 c 4 68
> > > mknod -m 666 /dev/ttyS5 c 4 69
> > > mknod -m 666 /dev/ttyS6 c 4 70
> > > mknod -m 666 /dev/ttyS7 c 4 71
> > >
> > > only ttyS0 and ttyS1 (com1: + com2:) will work
> > > please H E L P
> > >
>
> Andre Hoolandts Internet E-Mail-> [EMAIL PROTECTED] or
> [EMAIL PROTECTED]
> Rue du Printemps,9 ham tcpip bbs ->
> [EMAIL PROTECTED]
> B-7700 MOUSCRON BELGIUM ham ax25 bbs -> [EMAIL PROTECTED]
> Tel.: +32-(0)56-84.57.40 ham -> on4hu = 44.144.3.1 - on0hu =
> 44.144.3.44
> Fax.: +32-(0)56-84.57.41 ham -> Radio Network *
> EURO><LINK *
> WEB for radio-amateurs:
> <http://users.skynet.be/on4hu/>http://users.skynet.be/on4hu/ &
> <http://ping.be/on4hu/>http://ping.be/on4hu/
>
>
> --
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.
--
pgp = Pretty Good Privacy.
To get my public pgp key, send an e-mail to: [EMAIL PROTECTED]
Visit my web site at http://www.schaffter.com
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.