I built Prefect's adapter to use the second serial port and
used the following procedure to install Jailbait Linux on
an unmodified I-opener. No need to plug in a phone line
or try to make make your modem work without dialtone.
I connected the I-opener's second serial port (/dev/ser1)
to the second serial port (/dev/ttyS1) of a Linux box
through Prefect's serial port circuit and a null modem
cable. Verify connectivity with "qtalk -d /dev/ser1" on
the I-opener side and a terminal emulator (I used minicom)
on the Linux side. After that, you should be set to go.
First, get qnxflash and jailbait linux distribution to the
Linux box.
linux# mkdir /tmp/io; cd /tmp/io
linux# wget http://download.sourceforge.net/openflash/qnxflash.tgz
linux# tar -zxvf qnxflash.tgz
linux# wget http://download.sourceforge.net/JAILBAIT/version5_fullinstall.img.gz
Set up ppp networking between the Linux box (192.168.0.2)
& the I-opener (192.168.0.3). The connection goes away
after a while, so I had to restart it three or four
times before getting everything transferred. I got about
10Kb/s transfer rate, so it really doesn't take too long.
The PIDs of tinit and Dev.ser may vary; check your machine
with ps.
io# kill 63 26 # tinit, Dev.ser -m 2f8
io# cd /etc/ppp; mv options options.orig
io# on -t /dev/null Dev.ser -e -b 9600 -m 2f8,3
io# pppd /dev/ser1 115200 192.168.0.3:192.168.0.2 local noauth
linux# pppd /dev/ttyS1 115200 192.168.0.2:192.168.0.3 local noauth
Transfer files & update BIOS. The I-opener parts can be
done either on the IO console or using a telnet session
from the Linux machine. I made backup copies of the BIOS
and the original Sandisk contents for good measure.
io# cd /; cat /dev/hd0 | gzip -9 > hd0.gz
io# ftp 192.168.0.2
<login to linux FTP server>
ftp> bin
ftp> cd /tmp/io
ftp> put hd0.gz
ftp> get qnxflash
ftp> quit
io# chmod +x qnxflash
io# ./qnxflash -i
io# ./qnxflash -r bios.bin
io# ftp 192.168.0.2
<login to linux FTP server>
ftp> bin
ftp> cd /tmp/io
ftp> put bios.bin
<fiddle with bios on linux box>
ftp> get bios.bin
ftp> quit
io# ./qnxflash -w bios.bin
io# ./qnxflash -v bios.bin
io# ftp 192.168.0.2
<login to linux FTP server>
ftp> bin
ftp> cd /tmp/io
ftp> get version5_fullinstall.img.gz
ftp> quit
io# gzip -d -c < version5_fullinstall.img.gz > /dev/hd0
<power-cycle I-Opener>