You are on page 1of 25

ADVANTECH

Advantech QNX-6.5.0 SOP


For UNO/TPC Products
V1.00
2012-2-22
Contents
Contents ............................................................................................................................................ 1
1. About......................................................................................................................................... 2
2. Support Device .......................................................................................................................... 2
3. Prepare ...................................................................................................................................... 2
4. QNX Installation ........................................................................................................................ 2
5. Device Configuration ................................................................................................................. 3
5.1 UNO-1170A ................................................................................................................... 3
5.2 UNO-1172A ................................................................................................................... 3
5.3 UNO-2174A ................................................................................................................... 5
5.4 UNO-2178A ................................................................................................................... 7
5.5 UNO-3072A/3074A ....................................................................................................... 9
5.6 UNO-3082/3084 .......................................................................................................... 11
5.7 UNO-4673A ................................................................................................................. 12
5.8 TPC-651 ....................................................................................................................... 13
5.9 TPC-1571 ..................................................................................................................... 15
6. Peripheral driver installation and Configuration ..................................................................... 17
6.1 unodio ......................................................................................................................... 17
6.2 advcan ......................................................................................................................... 18
6.3 adv950 ......................................................................................................................... 18
6.4 advwdt ........................................................................................................................ 19
6.5 advsram ....................................................................................................................... 19
6.6 Penmount touch screen .............................................................................................. 20
6.7 Native COM ................................................................................................................. 21
6.8 LAN .............................................................................................................................. 21
6.9 Display ......................................................................................................................... 23
7. Congratulations ....................................................................................................................... 24

1
1. About
This manual is a SOP. It introduces how to install the QNX-6.5.0 on Advantech UNO and TPC
devices and how to install the relegated driver in QNX-6.5.0.

2. Support Device
UNO-1170A, UNO-1172A, UNO-2174A, UNO-2178A, UNO-3072A/3074A, UNO-3082/3084,
UNO-4673A, TPC-651, TPC-1571

3. Prepare
CF: >=2G;
QNX-6.5.0 with valid license;
USB CDROM;
Advantech UNO or TPC device: QNX-6.5.0 will be installed on it;
Display (TPC do not need it);
Keyboard and mouse;
Host Computer with QNX-6.5.0 OS and CF card reader (may be need);

4. QNX Installation
First, you should install the QNX-6.5.0 on you UNO or TPC device follow these steps.
Insert CF card no less than 2G to you UNO or TPC device;
Connect display (ignore for TPC);
Connect keyboard and mouse;
Connect USB CDROM to device;
Connect power to device.
Insert QNX-6.5.0 CD to USB CDROM
Power on the device.
Press Del key on keyboard to enter BIOS.
Configure device boot up from USB CDROM and reboot.
Install the QNX-6.5.0 to device according to the QNX-6.5.0 installer guilder.

2
5. Device Configuration
After complete the QNX6.5.0 installation, the device may be cannot boot up successfully by
default and may be lack of some drivers, you should modify the QNX-6.5.0 configuration file and
install extra drivers as follows. Please choose the corresponding section to read according to you
hardware device.

5.1 UNO-1170A

After finishing the installation,


Power on and boot the OS in UNO-1170A.
It will be boot up successfully.

Install driver
Although the QNX boot up successfully, some Peripherals are still not wok. We need to
install the corresponding driver for them.
UNO-1170A need to install the watchdog (83627 watchdog chip) driver, sram(512k) driver

COM1~COM3 is Native COM, they can be supported by build-in driver, the port name are
ser1~ser3.
LAN1 and LAN2 also can be support by build-in driver.

To install driver, first we should copy the driver to UNO-1170A device.

Watchdog driver Install


Please refer to watchdog driver installation section.
UNO-1170A watchdog chip is 83627. After installing the driver, a device node named advwdt
will be generated in /dev/, you can refer to watchdog example in watchdog driver package to
develop you application and control the watchdog device.

sram driver install


Please refer to sram driver installation section. After installing the driver, a device node
named advsram will be generated in /dev/, you can refer to example and README file in sram
driver package to use the sram device.

Unresolved problem
Audio cannot work.

5.2 UNO-1172A

Problem:
After finishing the installation, it cannot boot up successfully because of the display drivers error.
3
We need to modify the display driver configuration file to make it work well.
The QNX OS cannot boot up, How to modify the configuration file?

Boot up solution:
The QNX OS cannot boot up, so we cannot modify the configuration file in UNO-1172A directly.
We should pull out the CF cards from UNO-1172A and mount the CF to other OS.
Although QNXs file system cannot be recognized by windows or Linux OS, we need to install
another QNX system in other computer or virtual machine, and then mount the UNO-1172As CF
card to that QNX OS.

After Installing QNX-6.5.0 in other computer or virtual machine, Boot up that QNX OS and mount
the UNO-1172As CF card to that QNX-6.5.0 OS by CF card reader. Normally, the /fs/usb0 is the
mount point of UNO-1172As CF card.

Here we assume the CF mount point is /fs/usb0.


Edit the devices file
We need to modify the display configuration files as follows:
#vi /fs/usb0/etc/system/enum/devices/graphics
Add the lines formatted in red font to this file as follows;

device(pci, ven=8086, dev=2e12) # Intel Media Mobile 4 Q45
device(pci, ven=8086, dev=2e42) # Intel Media Mobile 4
start/wait( dispconf -i "0x$(ven),0x$(dev),$(index)" -d svga -d i830 -d vesabios )
requires/wait( $(IODISPLAY_CMD), )
mount(-Tio-display "vid=0x$(ven),did=0x$(dev),deviceindex=$(index)" )

device(pci, ven=8086, dev=a001) # Intel a001


start/wait( dispconf -i "0x$(ven),0x$(dev),$(index)" -d vesabios)
requires/wait( $(IODISPLAY_CMD), )
mount(-Tio-display "vid=0x$(ven),did=0x$(dev),deviceindex=$(index)" )

device(pci, ven=8086, dev=3582, index=0) # Intel 82852/82855


device(pci, ven=8086, dev=358e, index=0) # Intel 82854
device(pci, ven=8086, dev=2572) # Intel 82865
device(pci, ven=8086, dev=a002) # Intel a002
start/wait( dispconf -i "0x$(ven),0x$(dev),$(index)" -d svga -d extreme2 -d i830 -d
vesabios )
requires/wait( $(IODISPLAY_CMD), )
mount(-Tio-display "vid=0x$(ven),did=0x$(dev),deviceindex=$(index)" )

Power on and boot the OS.


Un-mount the CF and insert the CF to UNO-1172A.
Power on and boot the OS.

4
It will be boot up successfully.

Install driver
Although the QNX boot up successfully, some Peripherals are still not wok. We need to
install the corresponding driver for them.
UNO-1172A need to install the watchdog (multi-level watchdog chip) driver, sram(1M) driver
and unodio driver
COM1~COM2 is Native COM, they can be supported by build-in driver, the port name are
ser1~ser2.
LAN1, LAN2 and LAN3 also can be support by build-in driver.

To install driver, first we should copy the driver to UNO-1172A device.

Watchdog driver Install


UNO-1172A watchdog chip is Multi-level watchdog. The watchdog driver is in development,
will be release in about 03/30/2102.

Sram driver install


Please refer to sram driver installation section. After installing the driver, a device node
named advsram will be generated in /dev/, you can refer to example and README file in sram
driver package to use the sram device.

Unodio driver install


Please refer to unodio driver installation section.
UNO-1172A has DIO function. After installing the driver, a device node named unodio will be
generated in /dev/, you can refer to unodio example and user manual in driver package to
develop you application.

Unresolved problem
Audio cannot work.
Multi-level watchdog has no driver now.

5.3 UNO-2174A

Problem:
After finishing the installation, it cannot boot up successfully because of the display drivers error.
We need to modify the display driver configuration file to make it work well.
The QNX OS cannot boot up, how to modify the configuration file?

Boot up solution:
The QNX OS cannot boot up, so we cannot modify the configuration file in UNO-2174A directly.
We should pull out the CF cards from UNO-2174A and mount the CF to other OS.
Although QNXs file system cannot be recognized by windows or Linux OS, we need to install
another QNX system in other computer or virtual machine, and then mount the UNO-2174As CF
5
card to that QNX OS.

After installing QNX-6.5.0 in other computer or virtual machine, boot up that QNX OS and mount
the UNO-2174As CF card to that QNX-6.5.0 OS by CF card reader. Normally, the /fs/usb0 is the
mount point of UNO-2174As CF card with QNX OS.

Here we assume the CF mount point is /fs/usb0.

Edit the devices file


Then we need to modify the display configuration files as follows:
#vi /fs/usb0/etc/system/enum/devices/graphics
Add the lines formatted in red font to this file as follows;

device(pci, ven=8086, dev=2e12) # Intel Media Mobile 4 Q45
device(pci, ven=8086, dev=2e42) # Intel Media Mobile 4
start/wait( dispconf -i "0x$(ven),0x$(dev),$(index)" -d svga -d i830 -d vesabios )
requires/wait( $(IODISPLAY_CMD), )
mount(-Tio-display "vid=0x$(ven),did=0x$(dev),deviceindex=$(index)" )

device(pci, ven=8086, dev=a011) # Intel a011


start/wait( dispconf -i "0x$(ven),0x$(dev),$(index)" -d vesabios)
requires/wait( $(IODISPLAY_CMD), )
mount(-Tio-display "vid=0x$(ven),did=0x$(dev),deviceindex=$(index)" )

device(pci, ven=8086, dev=3582, index=0) # Intel 82852/82855


device(pci, ven=8086, dev=358e, index=0) # Intel 82854
device(pci, ven=8086, dev=2572) # Intel 82865
device(pci, ven=8086, dev=a002) # Intel a002
start/wait( dispconf -i "0x$(ven),0x$(dev),$(index)" -d svga -d extreme2 -d i830 -d
vesabios )
requires/wait( $(IODISPLAY_CMD), )
mount(-Tio-display "vid=0x$(ven),did=0x$(dev),deviceindex=$(index)" )

Power on and boot the OS.


Un-mount the CF and insert the CF to UNO-2174A.
Power on and boot the OS.
It will be boot up successfully.

Install driver
Although the QNX boot up successfully, some Peripherals are still not wok. We need to
install the corresponding driver for them.
UNO-2174A need to install the watchdog (SCH311X watchdog chip) driver and adv950 serial
(COMA,COMB) driver

6
COM1~COM2 is Native COM, they can be supported by build-in driver, the port name are
ser1~ser2.
LAN1 and LAN2 also can be support by build-in driver.

To install driver, first we should copy the driver to UNO-2174A device.

Watchdog driver Install


Please refer to watchdog driver installation section.
UNO-2174A watchdog chip is SCH311x. After installing the driver, a device node named
advwdt will be generated in /dev/, you can refer to watchdog example in watchdog driver
package to develop you application and control the watchdog device.

adv950 driver install


Please refer to adv950 driver installation section. After installing the driver, 2 device node
(ttyAP1, ttyAP2) will be generated in /dev/, ttyAP1 is COM A, ttyAP2 is COM B, you can also refer
to README file in driver package. The way for advantech adv950 serial port program is as same
as for native COM port.

Unresolved problem
Audio cannot work.

5.4 UNO-2178A

Problem:
After finishing the installation, it cannot boot up successfully because of the display drivers error.
We need to modify the display driver configuration file to make it work well.
The QNX OS cannot boot up, How to modify the configuration file?

Boot up solution:
The QNX OS cannot boot up, so we cannot modify the configuration file in UNO-2178A directly.
We should pull out the CF cards from UNO-2178A and mount the CF to other OS.
Although QNXs file system cannot be recognized by windows or Linux OS, we need to install
another QNX system in other computer or virtual machine, and then mount the UNO-2178As CF
card to that QNX OS.

After Installing QNX-6.5.0 in other computer or virtual machine, Boot up that QNX OS and mount
the UNO-2178As CF card to that QNX-6.5.0 OS by CF card reader. Normally, the /fs/usb0 is the
mount point of UNO-2178As CF card with QNX OS.

Here we assume the CF mount point is /fs/usb0.

Edit the devices file


Then we need to modify the display configuration files as follows:
#vi /fs/usb0/etc/system/enum/devices//graphics
7
Add the lines formatted in red font to this file as follows;

device(pci, ven=8086, dev=2e12) # Intel Media Mobile 4 Q45
device(pci, ven=8086, dev=2e42) # Intel Media Mobile 4
start/wait( dispconf -i "0x$(ven),0x$(dev),$(index)" -d svga -d i830 -d vesabios )
requires/wait( $(IODISPLAY_CMD), )
mount(-Tio-display "vid=0x$(ven),did=0x$(dev),deviceindex=$(index)" )

device(pci, ven=8086, dev=a001) # Intel a001


start/wait( dispconf -i "0x$(ven),0x$(dev),$(index)" -d vesabios)
requires/wait( $(IODISPLAY_CMD), )
mount(-Tio-display "vid=0x$(ven),did=0x$(dev),deviceindex=$(index)" )

device(pci, ven=8086, dev=3582, index=0) # Intel 82852/82855


device(pci, ven=8086, dev=358e, index=0) # Intel 82854
device(pci, ven=8086, dev=2572) # Intel 82865
device(pci, ven=8086, dev=a002) # Intel a002
start/wait( dispconf -i "0x$(ven),0x$(dev),$(index)" -d svga -d extreme2 -d i830 -d
vesabios )
requires/wait( $(IODISPLAY_CMD), )
mount(-Tio-display "vid=0x$(ven),did=0x$(dev),deviceindex=$(index)" )

Power on and boot the OS.


Un-mount the CF and insert the CF to UNO-2178A.
Power on and boot the OS.
It will be boot up successfully.
You can change the display configuration according to you requirement against.

Install driver
Although the QNX boot up successfully, some Peripherals are still not wok. We need to
install the corresponding driver for them.
UNO-2178A need to install the watchdog (SCH311X watchdog chip) driver and adv950 serial
(COMA,COMB) driver
COM1~COM6 is Native COM, they can be supported by build-in driver, the port name are
ser1~ser6.
LAN1 and LAN2 also can be support by build-in driver.

To install driver, first we should copy the driver to UNO-2178A device.

watchdog driver Install


Please refer to watchdog driver installation section.
UNO-2178A watchdog chip is SCH311x. After installing the driver, a device node named
advwdt will be generated in /dev/, you can refer to watchdog example in watchdog driver

8
package to develop you application and control the watchdog device.

adv950 driver install


Please refer to adv950 driver installation section. After installing the driver, 2 device node
(ttyAP1, ttyAP2) will be generated in /dev/, ttyAP1 is COM A, ttyAP2 is COM B, you can also refer
to README file in driver package. The way for advantech adv950 serial port program is as same
as for native COM port.

Unresolved problem
Audio cannot work.

5.5 UNO-3072A/3074A

Problem:
After finishing the installation, it cannot boot up successfully because of the display drivers error.
We need to modify the display driver configuration file to make it work well.
The QNX OS cannot boot up, How to modify the configuration file?

Boot up solution:
The QNX OS cannot boot up, so we cannot modify the configuration file in UNO-3072A/3074A
directly. We should pull out the CF cards from UNO-3072A/3074A and mount the CF to other OS.
Although QNXs file system cannot be recognized by windows or Linux OS, we need to install
another QNX system in other computer or virtual machine, and then mount the
UNO-3072A/3074As CF card to that QNX OS.

After installing QNX-6.5.0 in other computer or virtual machine, boot up that QNX OS and mount
the UNO-3072A/3074As CF card to that QNX-6.5.0 OS by CF card reader. Normally, the /fs/usb0 is
the mount point of UNO-3072A/3074As CF card with QNX OS.

Here we assume the CF mount point is /fs/usb0.

Edit the devices file


Then we need to modify the display configuration files as follows:
#vi /fs/usb0/etc/system/enum/devices/graphics
Add the lines formatted in red font to this file as follows;

device(pci, ven=8086, dev=2e12) # Intel Media Mobile 4 Q45
device(pci, ven=8086, dev=2e42) # Intel Media Mobile 4
start/wait( dispconf -i "0x$(ven),0x$(dev),$(index)" -d svga -d i830 -d vesabios )
requires/wait( $(IODISPLAY_CMD), )
mount(-Tio-display "vid=0x$(ven),did=0x$(dev),deviceindex=$(index)" )

device(pci, ven=8086, dev=a001) # Intel a001


start/wait( dispconf -i "0x$(ven),0x$(dev),$(index)" -d vesabios)
9
requires/wait( $(IODISPLAY_CMD), )
mount(-Tio-display "vid=0x$(ven),did=0x$(dev),deviceindex=$(index)" )

device(pci, ven=8086, dev=3582, index=0) # Intel 82852/82855


device(pci, ven=8086, dev=358e, index=0) # Intel 82854
device(pci, ven=8086, dev=2572) # Intel 82865
device(pci, ven=8086, dev=a002) # Intel a002
start/wait( dispconf -i "0x$(ven),0x$(dev),$(index)" -d svga -d extreme2 -d i830 -d
vesabios )
requires/wait( $(IODISPLAY_CMD), )
mount(-Tio-display "vid=0x$(ven),did=0x$(dev),deviceindex=$(index)" )

Power on and boot the OS.


Un-mount the CF and insert the CF to UNO-3072A/3074A.
Power on and boot the OS.
It will be boot up successfully.

Install driver
Although the QNX boot up successfully, some Peripherals are still not wok. We need to
install the corresponding driver for them.
UNO-3072A/3074As need to install the watchdog (627 watchdog chip) driver, sram
sram(512k) driver , unodio driver and adv950 serial (COM1,COM2) driver
UNO-3072A/3074As has no Native COM.
LAN1 and LAN2 also can be support by build-in driver.

To install driver, first we should copy the driver to UNO-3072A/3074A device.

Watchdog driver Install


Please refer to watchdog driver installation section.
UNO-3072A/3074A watchdog chip is 83627. After installing the driver, a device node named
advwdt will be generated in /dev/, you can refer to watchdog example in watchdog driver
package to develop you application and control the watchdog device.

adv950 driver install


Please refer to adv950 driver installation section. After installing the driver, 2 device node
(ttyAP1, ttyAP2) will be generated in /dev/, ttyAP1 is COM 1, ttyAP2 is COM 2, you can also refer
to README file in driver package. The way for advantech adv950 serial port program is as same
as for native COM port.

Unodio driver install


Please refer to unodio driver installation section.
UNO-3072A/3074A has DIO function. After installing the driver, a device node named
unodio will be generated in /dev/, you can refer to unodio example and user manual in driver

10
package to develop you application

sram driver install


Please refer to sram driver installation section. UNO-3072A/3074A has 512k sram, After
installing the driver, a device node named advsram will be generated in /dev/, you can refer to
example and README file in sram driver package to use the sram device.

Unresolved problem
Audio cannot work.

5.6 UNO-3082/3084

After finishing the installation,


Power on and boot the OS in UNO-3082/3084.
It will be boot up successfully.

Install driver
Although the QNX boot up successfully, some Peripherals are still not wok. We need to
install the corresponding driver for them.
UNO-3082/3084s need to install the watchdog (F7511R watchdog chip) driver, sram(512k)
driver , unodio driver and adv950 serial (COM1,COM2) driver
UNO-3082/3084s has no Native COM.
LAN1 and LAN2 also can be support by build-in driver.
Audio also can be support by build-in driver.

To install driver, first we should copy the driver to UNO-3072A/3074A device.

Watchdog driver Install


Please refer to watchdog driver installation section.
UNO-3082/3084 watchdog chip is F7511R. After installing the driver, a device node named
advwdt will be generated in /dev/, you can refer to watchdog example in watchdog driver
package to develop you application and control the watchdog device.

adv950 driver install


Please refer to adv950 driver installation section. After installing the driver, 2 device node
(ttyAP1, ttyAP2) will be generated in /dev/, ttyAP1 is COM 1, ttyAP2 is COM 2, you can also refer
to README file in driver package. The way for advantech adv950 serial port program is as same
as for native COM port.

Unodio driver install


Please refer to unodio driver installation section.
UNO-3082/3084 has DIO function. After installing the driver, a device node named unodio
will be generated in /dev/, you can refer to unodio example and user manual in driver package to
develop you application.
11
sram driver install
Please refer to sram driver installation section. UNO-3082/3084 has 512k sram, after
installing the driver, a device node named advsram will be generated in /dev/, you can refer to
example and README file in sram driver package to use the sram device.

5.7 UNO-4673A

Problem:
After finishing the installation, it cannot boot up successfully because of the display drivers error.
We need to modify the display driver configuration file to make it work well.
The QNX OS cannot boot up, How to modify the configuration file?

Boot up Solution:
The QNX OS cannot boot up, so we cannot modify the configuration file in UNO-4673A directly.
We should pull out the CF cards from UNO-4673A and mount the CF to other OS.
Although QNXs file system cannot be recognized by windows or Linux OS, we need to install
another QNX system in other computer or virtual machine, and then mount the UNO-4673As CF
card to that QNX OS.

After Installing QNX-6.5.0 in other computer or virtual machine, Boot up that QNX OS and mount
the UNO-4673As CF card to that QNX-6.5.0 OS by CF card reader. Normally, the /fs/usb0 is the
mount point of UNO-4673As CF card with QNX OS.

Here we assume the CF mount point is /fs/usb0.

Edit the devices file


Then we need to modify the display configuration files as follows:
#vi /fs/usb0/etc/system/enum/devices/graphics
Add the lines formatted in red font to this file as follows;

device(pci, ven=8086, dev=2e12) # Intel Media Mobile 4 Q45
device(pci, ven=8086, dev=2e42) # Intel Media Mobile 4
start/wait( dispconf -i "0x$(ven),0x$(dev),$(index)" -d svga -d i830 -d vesabios )
requires/wait( $(IODISPLAY_CMD), )
mount(-Tio-display "vid=0x$(ven),did=0x$(dev),deviceindex=$(index)" )

device(pci, ven=8086, dev=a001) # Intel a001


start/wait( dispconf -i "0x$(ven),0x$(dev),$(index)" -d vesabios)
requires/wait( $(IODISPLAY_CMD), )
mount(-Tio-display "vid=0x$(ven),did=0x$(dev),deviceindex=$(index)" )

device(pci, ven=8086, dev=3582, index=0) # Intel 82852/82855


device(pci, ven=8086, dev=358e, index=0) # Intel 82854
12
device(pci, ven=8086, dev=2572) # Intel 82865
device(pci, ven=8086, dev=a002) # Intel a002
start/wait( dispconf -i "0x$(ven),0x$(dev),$(index)" -d svga -d extreme2 -d i830 -d
vesabios )
requires/wait( $(IODISPLAY_CMD), )
mount(-Tio-display "vid=0x$(ven),did=0x$(dev),deviceindex=$(index)" )

Power on and boot the OS.


Un-mount the CF and insert the CF to UNO-4673A.
Power on and boot the OS.
It will be boot up successfully.

Install driver
Although the QNX boot up successfully, some Peripherals are still not wok. We need to
install the corresponding driver for them.
UNO-4673A need to install the watchdog (multi-level watchdog chip) driver and adv950
serial (COM1,COM2) driver
LAN1 and LAN2 also can be support by build-in driver.

To install driver, first we should copy the driver to UNO-4673A device.

watchdog driver Install


UNO-4673A watchdog chip is Multi-level watchdog. The watchdog driver is in development,
will be release in about 03/30/2102.

adv950 driver install


Please refer to adv950 driver installation section. After installing the driver, 2 device node
(ttyAP1, ttyAP2) will be generated in /dev/, ttyAP1 is COM 1, ttyAP2 is COM 2, you can also refer
to README file in driver package. The way for advantech adv950 serial port program is as same
as for native COM port.

Unresolved problem
Audio cannot work.
Multi-level watchdog has no driver now.

5.8 TPC-651

Problem:
After finishing the installation, it cannot boot up successfully because of the display drivers error.
We need to modify the display driver configuration file to make it work well.
The QNX OS cannot boot up, How to modify the configuration file?

Boot up Solution:
13
The QNX OS cannot boot up, so we cannot modify the configuration file in TPC-651 directly. We
should pull out the CF cards from TPC-651 and mount the CF to other OS.
Although QNXs file system cannot be recognized by windows or Linux OS, we need to install
another QNX system in other computer or virtual machine, and then mount the TPC-651s CF
card to that QNX OS.

After Installing QNX-6.5.0 in other computer or virtual machine, Boot up that QNX OS and mount
the TPC651s CF card to that QNX-6.5.0 OS by CF card reader. Normally, the /fs/usb0 is the mount
point of TPC-651s CF card with QNX OS.

Here we assume the CF mount point is /fs/usb0.

Edit the devices file


#vi /fs/usb0/etc/system/enum/devices/graphics

Modify the line from



start/wait( dispconf -i "0x$(ven),0x(dev),&(index)" -d poulsbo -g "xres=800,yres=600" )

To


start/wait( dispconf -i "0x$(ven),0x(dev),&(index)" -d poulsbo )

Delete the display.conf if this file exist.


#rm /fs/usb0/etc/system/config/display.conf

Power on and boot the OS.


Un-mount the CF and insert the CF to TPC-651.
Power on and boot the OS.
It will be boot up successfully.

Install driver
Although the QNX boot up successfully, some Peripherals are still not wok. We need to
install the corresponding driver for them.
TPC-651 need to install the watchdog (SCH311X watchdog chip) driver and Penmount touch
screen driver.
COM1~COM2 is Native COM, they can be supported by build-in driver, the port name are
ser1~ser2.
LAN1 also can be support by build-in driver.

To install driver, first we should copy the driver to TPC-651 device.

14
watchdog driver Install
Please refer to watchdog driver installation section.
TPC-651 watchdog chip is SCH311x. After installing the driver, a device node named advwdt
will be generated in /dev/, you can refer to watchdog example in watchdog driver package to
develop you application and control the watchdog device.

Penmount touch screen driver install


Please refer to Penmount touch screen driver installation section.
The Penmount touch screen is connect by internal COM port (/dev/ser3). The COM port
device (/dev/ser3) will be used in driver installation.

Unresolved problem
Audio cannot work.

5.9 TPC-1571

Problem:
After finishing the installation, it cannot boot up successfully because of the display drivers error.
We need to modify the display driver configuration file to make it work well.
The QNX OS cannot boot up, How to modify the configuration file?

Boot up solution:
The QNX OS cannot boot up, so we cannot modify the configuration file in TPC-1571 directly. We
should pull out the CF cards from TPC-1571 and mount the CF to other OS.
Although QNXs file system cannot be recognized by windows or Linux OS, we need to install
another QNX system in other computer or virtual machine, and then mount the TPC-1571s CF
card to that QNX OS.

After Installing QNX-6.5.0 in other computer or virtual machine, Boot up that QNX OS and mount
the TPC-1571s CF card to that QNX-6.5.0 OS by CF card reader. Normally, the /fs/usb0 is the
mount point of TPC-1571s CF card with QNX OS.

Here we assume the CF mount point is /fs/usb0.

Edit the devices file


Then we need to modify the display configuration files as follows:
#vi /fs/usb0/etc/system/enum/devices/graphics
Add the lines formatted in red font to this file as follows;

device(pci, ven=8086, dev=2e12) # Intel Media Mobile 4 Q45
device(pci, ven=8086, dev=2e42) # Intel Media Mobile 4
start/wait( dispconf -i "0x$(ven),0x$(dev),$(index)" -d svga -d i830 -d vesabios )
requires/wait( $(IODISPLAY_CMD), )
15
mount(-Tio-display "vid=0x$(ven),did=0x$(dev),deviceindex=$(index)" )

device(pci, ven=8086, dev=a001) # Intel a001


start/wait( dispconf -i "0x$(ven),0x$(dev),$(index)" -d vesabios)
requires/wait( $(IODISPLAY_CMD), )
mount(-Tio-display "vid=0x$(ven),did=0x$(dev),deviceindex=$(index)" )

device(pci, ven=8086, dev=3582, index=0) # Intel 82852/82855


device(pci, ven=8086, dev=358e, index=0) # Intel 82854
device(pci, ven=8086, dev=2572) # Intel 82865
device(pci, ven=8086, dev=a002) # Intel a002
start/wait( dispconf -i "0x$(ven),0x$(dev),$(index)" -d svga -d extreme2 -d i830 -d
vesabios )
requires/wait( $(IODISPLAY_CMD), )
mount(-Tio-display "vid=0x$(ven),did=0x$(dev),deviceindex=$(index)" )

Power on and boot the OS.


Un-mount the CF and insert the CF to TPC-1571.
Power on and boot the OS.
It will be boot up successfully.

Install driver
Although the QNX boot up successfully, some Peripherals are still not wok. We need to
install the corresponding driver for them.
TPC-1571 needs to install the watchdog (SCH311X watchdog chip) driver, unodio driver and
Penmount touch screen driver.
COM1~COM3 is Native COM, they can be supported by build-in driver, the port name are
ser2~ser4. ser1 is a internal COM port and used by Penmount touch screen.
LAN1 and LAN2 also can be support by build-in driver.

To install driver, first we should copy the driver to TPC-1571 device.

watchdog driver Install


Please refer to watchdog driver installation section.
TPC-1571 watchdog chip is SCH311x. After installing the driver, a device node named advwdt
will be generated in /dev/, you can refer to watchdog example in watchdog driver package to
develop you application and control the watchdog device.

Unodio driver install


Please refer to unodio driver installation section.
TPC-1571 has DIO function. After installing the driver, a device node named unodio will be
generated in /dev/, you can refer to unodio example and user manual in driver package to
develop you application

16
Penmount touch screen driver install
Please refer to Penmount touch screen driver installation section.
The Penmount touch screen is connect by internal COM port (/dev/ser1). The COM port
device (/dev/ser1) will be used in driver installation.

6. Peripheral driver installation and


Configuration
Here we introduce how to install the Penmount touch screen driver, watchdog driver, sram driver,
DIO driver, COM driver, etc to you device.
First you should copy the driver package to your device.
Prepare a USB disk with fat32 file system.
Copy the all need driver package to USB disk.
Then insert the USB disk to you device.
Copy these driver packages to you devices QNX system, normally, the /fs/usb0 is the mount
point of you USB disk.

6.1 unodio

Login system with "root"


Uncompress the driver package
#tar -xzvf unodio_v1.03.tar.gz

Copy the unodio file folder to /sbin


#cp unodio /sbin

Modify the /etc/rc.d/rc.local to run the unodio driver automatically at system startup

#vi /etc/rc.d/rc.local

Add the following line to the rc.local file.


unodio &

In the first line of rc.local file, add the following line, then save and exit.
pci-bios c

So the text in rc.local file is as follows:


pci-bios c
unodio &

17
User can refer to unodio examples and user manual in driver package to develop their
application.

6.2 advcan

advcan QNX driver is a driver for Advantech CAN device.


Login system with "root"
Uncompress the driver package
#tar -xzvf advcan_v1.03.tar.gz

Copy the advcan file folder to /sbin


#cp advcan /sbin/

Modify the /etc/rc.d/rc.local to run the advcan driver automatically at system startup
#vi /etc/rc.d/rc.local

Add the following line to the rc.local file,


advcan &

In the first line of rc.local file, add the following line, then save and exit.
pci-bios c

So the text in rc.local file is as follows:


pci-bios c
advcan &

User can refer to advcan examples in driver package to develop their application.

6.3 adv950

adv950 driver is Advantech serial port driver.


Login system with "root"

Uncompress the driver


# tar zxvf adv950_v1_04.tar.gz
# cd adv950_v1.04

Install the driver


copy the driver devc-seradv950 from ./adv950_v1_04/ to /sbin/
copy devices and include folder from ./etc/ to /etc/system/enum/
#cp devc-seradv950 /sbin/
18
#cp -R ./etc/* /etc/system/enum/

Get serial port type configuration


First, reboot the computer, after reboot, the driver is working.
Run ./getconfig/getconfig to get the RS232/RS422/RS485 serial port number and the
mode setting.

Note, the Advantech 950 COM port device name is ttyAPn. n is 1, 2,3,4,

6.4 advwdt

advwdt is the Advantech QNX watchdog driver. Now the driver package includes 3 watchdog
drivers: 627, sch311x and F7511R. Please read the device configuration section to learn
about which type of watchdog your devices use.

Login system with "root"


Uncompress the driver package
tar -xzvf advwdt_v1.04.tar.gz

Copy the the correct watchdog driver file folder to /sbin,

For example (if you watchdog type is SCH311x):


#cp advwdt311x /sbin/

Modify the /etc/rc.d/rc.local to run the watchdog driver automatically at system startup
#vi /etc/rc.d/rc.local

Add the following line to the end of rc.local file, then save and exit.
For example (if you watchdog type is SCH311x):
advwdt311x&
Save, exit and reboot the system.
The advwdt device will be generated in /dev/

User can refer to watchdog examples (testwdt.c) to develop their application.

6.5 advsram

Login system with "root"


Uncompress the driver package
tar -xzvf advsram_v1.03.tar.gz
Copy the devf-advsram driver file to /sbin
#cp devf-advsram /sbin/

19
Modify the /etc/rc.d/rc.local to run the advsram driver automatically at system startup
#vi /etc/rc.d/rc.local

Add the following line to the rc.local file, then save and exit.
devf-advsram &
In the first line of rc.local file, add the following line, then save and exit.
pci-bios c

So the text in rc.local file is as follows:


pci-bios c
advsram &

Save, exit and reboot the system.


The fs0 device will be generated in /dev/

User can refer to sram examples (testraw.c) to develop their application or use the sram
as a disk. Please read the README file.

6.6 Penmount touch screen

Login system with "root"


Uncompress the driver package
#tar -xvf PenMount-serial-1.1-QNX6.4.1_6.5.tar

Change Permission with root


type
#chmod 775 devi-pmserial

Copy PenMmount driver "devi-pmserial" into the directory named "/usr/photon/bin/".

edit /etc/system/trap/input.${HOSTNAME}
To invoke the devi-pmserial at system startup
#vi /etc/system/trap/input.${HOSTNAME}
Write the following two lines to input.${HOSTNAME} file.
devi-hid mouse kbd touch
devi-pmserial 6000 fd -d/dev/ser1

Note:
Available COM NO. : ser1, ser2, ser3, ser4, etc.
It depends on device.
For examples:
TPC-1571:
devi-hid mouse kbd touch
devi-pmserial 6000 fd -d/dev/ser1
20
TPC-651:
devi-hid mouse kbd touch
devi-pmserial 6000 fd -d/dev/ser3

Save and exit.

Reboot

After reboot, The PenMount can work, you need to do calibration for the first
installation.

Calibration Utilities Installation procedures:


Use system calibration program
# calib
To get more information, type
# use devi-pmserial
or
# use calib

Ps. only support 3 points calibration.

6.7 Native COM

In Advantech UNO or TPC device, There are 2 type COM port, Advantech 950 COM port and
Native COM port, Advantech 950 COM need adv950 driver, Native COM port is supported by
QNX build-in driver, it do not need to install extra COM driver, the Native COM port name are
ser1,ser2,ser3, ser4 etc. in /dev/.

6.8 LAN

The devices LAN can be support by QNX-6.5.0 build-in driver, user does not need to install extra
LAN driver, and user can click the Network menu to configure the LAN.
21
When click network, the following page will popped, user can configure LAN in this page.

User can use ifconfig command to view the LAN information.

22
6.9 Display

When QNX can start up on your device, you click the Display menu to modify your display
configuration.

You can modify Color mode, resolution, refresh, etc.

23
7. Congratulations
QNX-6.5.0 is ready now.

24

You might also like