Thanks for the info mario. I looked over the document and there seems to be some good info in there, but I haven’t found anything that seems to be directly related to what I want to do (or I’m just too naive to recognize it - which is probably the case).
There were two files that I copied to QNX for the serial card to work:
device(pci, ven=135e, dev=7804)
uniq(sernum, devc-ser, 1)
driver(8PTPCISER, $(sernum $(ioport1) $(irq) )
echo "obase=16; ibase=16; $ioport1 + 8;" | bc
echo "obase=16; ibase=16; $ioport2 + 8;" | bc
echo "obase=16; ibase=16; $ioport3 + 8;" | bc
echo "obase=16; ibase=16; $ioport4 + 8;" | bc
echo "obase=16; ibase=16; $ioport5 + 8;" | bc
echo "obase=16; ibase=16; $ioport6 + 8;" | bc
echo "obase=16; ibase=16; $ioport7 + 8;" | bc
devc-ser8250 -u$unit $ioport1,$irq $ioport2,$irq $ioport3,$irq $ioport4,$irq $ioport5,$irq $ioport6,$irq $ioport7,$irq $ioport8,$irq[/code]
I know when I’m running a full installation of QNX, the first file (PCISERIAL) gets parsed by the device enumerator, which in turn calls the second file (8PTPCISER) which invokes the serial driver with the correct info.
I could be wrong, but I dont think device enumeration happens in a custom build image. So how do I manually do this in my build file?