Release Notes for the QNX Neutrino 6.4.0 BSP for Freescale i.MX25 3DS PDK 1.0.0#

System requirements#

Target system

Host development system

System Layout#

The tables below depict the memory layout for the image and for the flash.

Memory layout

OS image loaded at0x00100000

The interrupt vector table can be found in the buildfile located at src/hardware/startup/boards/3dsmx25/build

Getting Started#

Starting Neutrino#

Step 1: Build the BSP
You can build a BSP OS image from the source code. For instructions about building a BSP OS image, please refer to the chapter Working with a BSP in the Building Embedded Systems manual.

Copy or transfer the IFS image into your tftp server's directory.

Step 2: Connect your hardware

  1. Set up the board to 3-Stack mode. Refer to the manual for the correct default jumper settings to use for the Personality and Debug boards.
  2. Connect one end of the serial cable to the CON4 (UART-DCE) serial port on the debug board.
  3. Connect the other end of the serial cable to the first available serial port of your host machine (e.g. ser1 on a Neutrino host).
  4. Connect one end of RJ-45 Ethernet cable to the FEC Ethernet RJ45 Connector (J16 on the Personality board).
  5. Connect the other end of the Ethernet cable to the Ethernet network where a TFTP server (which you'll use to transfer the boot image) exists.

On your host machine, start your favorite terminal program with these settings:

Then, apply power to the target. You should see output similar to the following:

++NAND: RCSR=64000150
Searching for BBT table in the flash ...
Found version 1 Bbt0 at block 8191 (0x7ffc0000)
Total bad blocks: 0
... Read from 0x03ec0000-0x03f00000 at 0x000c0000: ..
... Read from 0x03eb3000-0x03eb4000 at 0x000ff000: .
Turning on PMIC regulators: 1,2,3,4,5

LAN92xx Driver version 1.1
SMSC LAN9217: ID = 0x117a REV = 0x0
[Warning] FEC not connect right PHY: ID=5c8000
FEC: [ HALF_DUPLEX ] [ disconnected ] [ 10M bps ]:
Ethernet eth0: MAC address 00:04:9f:00:a5:16
IP:, Gateway:
Default server:
hardware reset by POR

Clock input is 24 MHz
Booting from [NAND flash]
[0x80000000 bytes]: 8192 blocks of 128 pages of 2048 bytes each.

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Non-certified release, version FSL 200910 - built 08:59:52, Mar  2 2009

Platform: MX25 3-Stack (Freescale i.MX25 based) PASS 1.1 [x32 DDR]
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited

RAM: 0x00000000-0x03f00000, [0x000953e8-0x03eb1000] available
FLASH: 0x00000000 - 0x80000000, 8192 blocks of 0x00040000 bytes each.

Step 3: Setup the environment

At the RedBoot prompt, issue the fconfig command to change the current environment.

The current configurations will be displayed; change the configuration if you want.

Run script at boot: false
Use BOOTP for network configuration: false
Gateway IP address:
Local IP address:
Local IP address mask:
Default server IP address:
Board specifics: 0
Console baud rate: 115200
Set eth0 network hardware address [MAC]: false
Set FEC network hardware address [MAC]: false
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false
Default network device: mxc_fec

Note: If you set the default network device as lan92xx_eth0 by ifconfig, then you should connect the Ethenet cable to J1 Ethernet Connector on the debug board to download the OS image. Once the OS image is running, you have to switch the Ethernet cable to J16 FEC Ethernet Connector on the personality board for the network connection, because the QNX Ethernet driver only support the FEC interface on the personality board.

Step 4: Boot the IFS image

Once the above setup is complete, reset the board and you can run the load command at the RedBoot prompt to download the image: load -r -b 0x00100000 -h /tftpboot/ifs-3dsmx25.bin

Replace with the IP address of your TFTP server and /tftpboot/ifs-3dsmx25.bin with the path of the image on the TFTP server.

RedBoot will display the follow message and start downloading the boot image:

Using default protocol (TFTP)

If the image is successfully loaded RedBoot will display:

Raw file loaded 0x00100000-0x002aae8b, assumed entry at 0x00100000

Type run to jump to startup and boot the IFS image. You should see QNX Neutrino boot, followed by the welcome message on your terminal screen:

load entry_address=0x100000
CPU0: Dcache: 512x32 WB
CPU0: Icache: 512x32
CPU0: 41069264: arm926 rev 4 396MHz

System page at phys:80010000 user:fc404000 kern:fc404000
Starting next program at vfe03c830
cpu_startnext: cpu0 -> fe03c830
Welcome to QNX Neutrino 6.4.0 on the Freescale MX25 3DS Board (ARM 926 core)

You can test the OS simply by executing any shell builtin command or any command residing within the OS image (e.g. ls).

Step 5: Replace the ~Redboot bootloader with a native QNX IPL and OS image in flash

At some point, you may wish to replace the ~Redboot bootloader with the native QNX IPL code. This may be desirable once you've tweaked the OS image exactly the way you want it, and you want the board to boot the image automatically, immediately on power up.

To replace the ~Redboot bootloader:

1. Modify your buildfile to generate a binary image.
2. Run the script, inside the images directory of the BSP. The output file from this script is a binary ROM image of the IPL called image.rom.

The script will convert the IPL image to binary and prefix it with a 16k pad.

Here is the script:

# Script to build a binary IPL for the i.MX25 3DS Board that can be programmed
# into NAND flash at the beginning of block 0
# Example usage: ./ arm/le/ipl-3dsmx25

if [ "$1" == "" ]; then

echo "Converting $filename"

# Convert the IPL into binary format
${QNX_HOST}/usr/bin/ntoarm-objcopy --input-format=elf32-littlearm --output-format=binary $filename ./tmp-ipl.bin

# Pad the result to 16K (this will ensure the assumptions within the IPL are correct)
mkrec -s16k -ffull -r tmp-ipl.bin > image.rom

# Clean up after ourselves
rm -f tmp-*

echo "You can now program image.rom to NAND block 0"

3. Burn image.rom to the board's NAND using the Advanced Toolkit. The Advanced Toolkit can be found on Freescale's i.MX25 Product Development Kit download page

Set the Personality Board switches to the following settings:


Set the Debug Board to the following settings:



Install the tool on a Windows host and connect it to the i.MX25 via the USB OTG connector on the Personality Board. Power up the board and install the Windows drivers as specified in the Advanced Toolkit installation notes.

Launch Advanced Toolkit and select the following options:

i.MX CPU: i.MX25_TO1.1
Device memory: DDR2
Communication Channel: USB

Click Next, then click Flash Tool. You can now program the image.rom file to NAND block 0. You should also program it to NAND block 1 when done development as it will be used by the boot ROM as the backup boot block.

To boot from NAND, first power off the board, disconnect the USB cable from the OTG port and set the Personality Board switches to the following settings:


Set the Debug Board to the following settings:



Powering on will now boot the IPL.

Driver Command Summary#

The following table summarizes the commands to launch the various drivers.

ComponentBuildfile CommandRequired BinariesRequired LibrariesSource Location
Serialdevc-sermx1 -e -F -b115200 -c66500000 0x43f90000,45  devc-sermx1.src/hardware/devc/sermx1
I2Ci2c-mx21 -p0x43f80000, -i3 i2c-mx21.src/hardware/i2c/mx21
SPIspi-master -d mx35spi-masterspi-mx35.sosrc/hardware/spi/mx35
FEC Networkio-pkt-v4 -d mcimx25 ioport=0x50038000,irq=57,mac=0000456789ab,verbose io-pkt-v4
USB Hostio-usb -d ehci-mx31 ioport=0x53ff4500,irq=35,verbose=4
io-usb -d ehci-mx31 ioport=0x53ff4100,irq=37,verbose=4
class drivers
prebuilt only
USB Devicedevb-ram
mkdosfs /dev/hdX
io-usb-dcd -d usbumass-mx25ads-ci ioport=0x53ff4000,irq=37
devu-umass_client-block -l lun=0,fname=/dev/hdX
ulink_ctrl -l1
prebuilt only
NANDfs-etfs-3dsmx35_2048 -m /fs/etfsfs-etfs-3dsmx35_2048
Audioi2c-mx21 -p0x43f80000, -i3
io-audio -d mx-3dsmx25 ssibase=0x50034000,tevt=29,tchn=3,revt=28,rchn=4
Graphicsio-display -dvid=0,did=0
(Touch Screen Controller)
devi-mxSenna -P touch -i46 -a0x50030000 -c0x53f80000 -e abs -S150 devi-mxSennasrc/hardware/devi/mxSenna
CANdev-can-mx35 can1 dev-can-mx35
RTCrtc hw rtc
WDTwdtkick wdtkick.src/hardware/suppot/wdtkick

Some of the drivers are commented out in the default buildfile. To use the drivers in the target hardware, you'll need to uncomment them in your buildfile, rebuild the image, and load the image into the board.

Startup, USB, and Graphics have additional details:


startup-3dsmx25 [startup-options]

Some modules aren't enabled after boot up, so you need to use command line options to startup to enable them. These options must be passed before any other startup options.

To enableUse this optionComment
WDT-wEnable WatchDogTimer
USB Host-UConfigure USB host pins


dev-can-mx35 can1

Note: there is only one CAN interface on the i.mx25 PDK/ADS board.

About Graphics#

The graphics driver provides support for the Liquid Crystal Display Controller (LCDC). The default LCD is the Chunghwa Picture Tubes CLAA057VA01CW TFT LCD that comes with the MX25 3DS reference board. Other LCDs may be supported through the driver configuration file - imx25.conf.

The LCDC has a requirement that a displayable surface not cross a 4MB memory boundary. To prevent this it is recommended that memory be reserved for graphics on a 4MB from start-up (using -r option) and then this memory area provided to the driver using the vbase and vsize options in imx25.conf. (see imx25.conf for details on these options)

Known Issues for This BSP#