Running QNX4. Trying to get boot from floppy with stdin and stdout via
serial port.
Are there any parameters to Proc, boot or both?
–
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
/ \ | __ ) | ~Jeffrey Jordan jordanj@abc-naco.com
/ | \ | _ ( Phone: (610)630-2330x216 jljordan@wans.net
/ ++ \ | ) ( Fax: (610)630-2323
|| |||/_| 2550 Blvd. o/t Generals, Norristown PA 19403
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Hi Jeffrey
It depends on exactly what you want to accomplish. Proc32 does have an
option to send it’s debug output to a serial port. I’m not sitting at a QNX
computer right now so I can’t check but if you do a
use /boot/sys/Proc32
there will be a line that says something about redirecting debug output to a
serial port.
On the other hand, if what you really want to do is to redirect ever other
programs stdin and stdout to a serial port I would suggest this.
- In your sysinint file load Dev and Dev.ser
- configure the serial port with stty commands if necessary
- tell sysinit to re-open it’s stdin and stdout. There are two ways to do
this
3a. the old way - there will be a line that says “reopen /dev/con1”. Change
it to read “reopen /dev/ser1”
3b. the new way - there will be a line that says “exec <> /dev/con1” (that
may not be the exact syntax). Change the /dev/con1 to /dev/ser1.
- from this point on, every program that sysinit spawns will have the new
device set for stdin and stdout.
Bill Caroselli
“Jeffrey O L Jordan” <jljordan@wans.net> wrote in message
news:3B82C404.41C8FD2E@wans.net…
Running QNX4. Trying to get boot from floppy with stdin and stdout via
serial port.
Are there any parameters to Proc, boot or both?
–
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
/ \ | __ ) | ~Jeffrey Jordan > jordanj@abc-naco.com
/ | \ | _ ( Phone: (610)630-2330x216 > jljordan@wans.net
/ ++ \ | ) ( Fax: (610)630-2323
|| |||/_| 2550 Blvd. o/t Generals, Norristown PA 19403
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
“Bill Caroselli (Q-TPS)” wrote:
Hi Jeffrey
It depends on exactly what you want to accomplish. Proc32 does have an
option to send it’s debug output to a serial port. I’m not sitting at a QNX
computer right now so I can’t check but if you do a
use /boot/sys/Proc32
there will be a line that says something about redirecting debug output to a
serial port.
On the other hand, if what you really want to do is to redirect ever other
programs stdin and stdout to a serial port I would suggest this.
- In your sysinint file load Dev and Dev.ser
- configure the serial port with stty commands if necessary
- tell sysinit to re-open it’s stdin and stdout. There are two ways to do
this
3a. the old way - there will be a line that says “reopen /dev/con1”. Change
it to read “reopen /dev/ser1”
3b. the new way - there will be a line that says “exec <> /dev/con1” (that
may not be the exact syntax). Change the /dev/con1 to /dev/ser1.
- from this point on, every program that sysinit spawns will have the new
device set for stdin and stdout.
You’d probably also want to change the tinit line, if present.