Driver Commands

The tables below provide a summary of driver commands.

The tables list any additional libraries and binaries that are required. Default required libraries, such as libc.so and libgcc_s.so.1 aren't listed, but should be included in your buildfile.

Some of the drivers are commented out in the buildfile. To use these drivers on the target hardware, you may need to uncomment them in the buildfile, rebuild the image, and load the image onto the board.

The order that the drivers are started in the provided buildfile is one way to start them. The order that you start the drivers is completely customizable and is often specific to the requirements of your system. For example, if you need an audible sound to play immediately, you must start the audio driver earlier than other drivers. It's important to recognize that the order you choose impacts the boot time.

Note:
Some drivers depend on other drivers, so it's sometimes necessary to start them in a specific order because of these dependencies. For example, in the provided buildfile, the USB driver is started before the mass storage drivers because they rely on it.
  • For more information on best practices for building an embedded system and optimizing boot times for your system, see the Building Embedded Systems and the Boot Optimization guides in the QNX Software Development Platform 8.0 documentation.
  • For more information about the drivers and commands listed here, see the QNX OS Utilities Reference. This chapter provides information about BSP-specific options for any of the commands and drivers that aren't described in the Utilities Reference.

Here's the list of drivers available for this board and the order they appear in the provided buildfile:

Graphics

Device Graphics
Command screen
Required binaries screen and several other binaries. For more information, see the Configure the Screen Graphics Subsystem chapter in this guide.
Required libraries For more information, see the Configure the Screen Graphics Subsystem chapter in this guide.
Required configuration files graphics.conf and for its location in your QNX SDP 8.0 installation, see the Configure the Screen Graphics Subsystem chapter in this guide.
Source location N/A
Note:

Before starting Screen, you must set LD_LIBRARY_PATH environment variable as follows:

LD_LIBRARY_PATH=/proc/boot:/lib:/usr/lib:/lib/dll:/usr/lib/dll:\
                /usr/lib/graphics/am62a

Inter-integrated Circuit (I2C)

The Sitara AM62a SK supports I2C devices on buses 0 and 1. You need to launch an I2C driver instance for each device.

Device I2C
Commands i2c-tda4 -p0x20000000 -i193 -d --u0

i2c-tda4 -p0x20010000 -i194 -d --u1

i2c-tda4 -p0x20020000 -i195 -d --u2

Required binaries i2c-tda4, isendrecv, isend,
Required libraries libsecpol.so
Source location $BSP_ROOT_DIR/src/hardware/i2c

For more information about this driver, see the i2c-tda4 section in the BSP-specific Drivers and Utilities chapter of this guide.

Network

Device Ethernet
Command io-sock -m phy -m usb -d axe -d axge -d cdce -d smsc
Command with CPSW driver io-sock -m phy -m usb -d axe -d axge -d cdce -d smsc -m fdt -d cpsw-am62a
Required binaries io-sock, if_up, dhcpcd, dhcpcd-run-hooks, ifconfig, pfctl, random
Required libraries devs-em.so, devs-ix.so, devs-re.so, devs-axe.so, devs-axge.so, devs-cdce.so, devs-smsc.so, devs-cpsw-am62a.so, libsocket.so, libsecpol.so, libjail.so, mods-phy.so, mods-pci.so, mods-usb.so, mods-fdt.so, mods-phy_fdt.so, libgcc_s.so.1, libc.so.6, qcrypto-openssl-3.so, libtracelog.so, libqcrypto
Source location Prebuilt only

For more information about the devs-axe.so driver, see the devs-axe.so section in the QNX OS Utilities Reference guide of the QNX Software Development Platform 8.0 documentation.

For more information about the devs-cpsw.so driver, see the devs-cpsw-am62a.so section in the BSP-specific Drivers and Utilities chapter of this guide.

Note:
In order to start the CPSW Ethernet driver the Texas Instruments resource managers and shared libraries must be included from the Texas Instruments PSDK and running. See the Build the BSP section of this guide for steps on how to include the Texas Instruments PSDK components into the BSP.

SD/MMC

The Sitara AM62a SK BSP supports all of the following:

  • the eMMC memory

  • the SD_CARD (J22, MMC1) port on the EVM

Device microSD card
Command (microSD card) devb-sdmmc-am65x sdio addr=0x0fa00000,irq=115,bs=sscfg=0x8000:ldo=0x600000^31:trm-icp=2 cam pnp disk name=sd
Command (eMMC) devb-sdmmc-am65x sdio addr=0x0fa10000,irq=165,timing=~hs400,emmc,bs=sscfg=0x8000 disk name=emmc
Required binaries devb-sdmmc-am65x, fdisk, mkdosfs
Required libraries libsecpol.so
Source location $BSP_ROOT_DIR/src/hardware/devb/sdmmc
For more about this driver information, see the devb-sdmmc-* section in the Utilities Reference guide of the QNX Software Development Platform 8.0 documentation.

Serial

Device SERIAL
Command devc-seromap -e -R -F 0x02800000,210
Required binaries devc-seromap
Required libraries libsecpol.so
Source location $BSP_ROOT_DIR/src/hardware/devc/seromap
For more information about the devc-seromap driver, see the devc-seromap section in the BSP-specific Drivers and Utilities chapter of this guide.

Startup

Device STARTUP
Command startup-am62a-evm -u arg -v -r0x90000000,0x10000000,1 -r0xAF000000,0x1000000,1
Required binaries startup-am62a-evm
Required libraries N/A
Source location $BSP_ROOT_DIR/src/hardware/startup/boards/ti/am62xx/am62a

For more about the options for this driver, For more about the options for this driver, see the startup-* options described in the Utilities Reference guide of the QNX Software Development Platform 8.0 documentation.

Note:
The -r option reserves memory regions for use by other cores. Additional memory reservations (carveouts) may be required based on your system configuration. Please refer to section 5.1.1. TI Modifications to the BSP of the Processor SDK QNX AM62a documentation. Please refer to Texas Instruments for access to the AM62a QNX PSDK.

USB Host Mode

Device USB OTG (Host mode)
Command io-usb-otg -d dwc3-xhci ioport=0x31000000,irq=220,ioport=0x31100000,irq=258
Required binaries io-usb-otg, usb, devb-umass, devb-ram
Required libraries devu-hcd-dwc3-xhci.so, libusbdi.so
Source location Prebuilt only

For more information about the io-usb-otg, see the io-usb-otg section in the QNX OS Utilities Reference guide of the QNX SDP 8.0 documentation.

For more information about the devu-hcd-dwc3-xhci.so, see the devu-hcd-dwc3-xhci.so section in the BSP-specific Drivers and Utilities chapter of this guide.

Page updated: