Home
Support

Knowledge Base

BSPs and drivers
Community resources
Product documentation
Questions?
Contact us

How to run USB in QNX4 and access a Flash drive
 
________________________________________________________________________

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.

________________________________________________________________________
NOTE: This entry has been validated against the SDP version listed above. Use caution when considering this advice for any other SDP version. For supported releases, please reach out to QNX Technical Support if you have any questions/concerns.
________________________________________________________________________


Related Attachments
 None Found





Please contact us with your questions or concerns.