________________________________________________________________________
Applicable Environment
________________________________________________________________________
- Topic: How to run USB in QNX4 and access a Flash drive
- SDP: 4.25
- Target: x86
________________________________________________________________________
Solution________________________________________________________________________
How to run USB drivers in QNX 4
1. Download the USB archive, this can be found in the download
section of the QNX website. Alternatively you can download the latest
installation ISO which includes the binaries already.
2. Starting the driver is fairly simple.
# io-usb &
The above command will start and detect all supported USB host
controllers available on the system. Check the use message for io-usb
for specific options (i.e. detect only EHCI controller).
3. With the stack now running, you will be able to use the 'usb'
command to detect what detected devices are on the bus. This will show
everything that the supported controllers detect.
4. At this point you can now run the driver for the Flash drive.
# Fsys.umass &
This will detect any flash drives on the system and put a entry in /dev for each device detected (e.g. /dev/hd0)
5. Mount the flash drive. First mount the partition table.
mount -p /dev/hdX (where X is the drive number assigned to your flash drive)
With the partition mounted next mount the partition.
For QNX4 filesystems:
# mount /dev/hdXt77 /flash_mount
For DOS filesystems:
# Fatfsys & (mount point will be placed at /dos/drive_name)
At this point you can access the files on the flash drive.