Project Home
Project Home
Wiki
Wiki
Project Information
Project Info
wiki3125: AtmelAT91SAM9RL64EKEvaluationBoard (Version 3)


Release Notes for the QNX Neutrino 6.4.0 BSP for Atmel AT91SAM9Rl64-EK Board#

System requirements#

Target system#

  • QNX Neutrino RTOS 6.4.0
  • Board: Atmel at91sam9rl64-EK Evaluation Board
  • Data-Flash: AT45DB642D (64 MB)
  • SDRAM: 16-bit Micron MT48LC16M16A2 (256 MB) SDRAM
  • NAND Flash: Micron MT29F2G08AAC NAND Flash

Host development system#

  • QNX Momentics 6.4.0, one of the following host systems:
    • QNX Neutrino 6.4.0
    • Microsoft Windows Vista, XP SP2 or SP3, 2000 SP4
    • Linux Red Hat 8 or 9, Linux Red Hat Enterprise Workstation 3 or 4, Red Hat Fedora Core 3 or 4, or SUSE 10
  • Terminal emulation program (Qtalk, Momentics IDE Terminal, tip, HyperTerminal, etc.)
  • RS-232 serial port
  • NULL-modem serial cable

Getting Started#

Step 1: Connect your hardware#

Connect the serial cable to the first serial port of the AT91SAM9RL64 board to the first serial port of your windows machine having SAM-BA installed.

Step 2: Build the BSP#

You can build a BSP OS image from the source code or the binary components contained in a BSP package. For instructions about building a BSP OS image, please refer to the chapter Working with a BSP in the Building Embedded Systems manual.

Step 3: Transfer the OS image to the target#

On your host machine, start your favorite terminal program with these settings:
  • Baud: 115200
  • Bits: 8
  • Stop bits: 1
  • Parity: none
  • Flow control: none

Step 4: Loading the OS image from QNX IPL into flash.#

The Atmel AT91SAM9RL62 board supports booting from a native QNX bootable IPL/OS image in flash.

Step 4A: Generate a bootable flash image#

Inside the images directory of BSP, Run the script mkflashimage. This script will create a combined IPL/OS image called ipl-ifs-at91sam9rl64.bin. This image needs to be write onto the DataFlash present on the board. To write this image into DataFlash you have to use SAM-BA programming tool provided by Atmel. This SAM-BA tool also helps to execute TCL scripts on the AT91SAM9RL64 board. Make sure that the jumper J12 and J13 are removed in AT91SAM9RL64 board.

The mkflashimage script:
#!/bin/sh
# script to build a binary IPL and boot image for ATMEL AT91SAM9XX Evaluation Kit board
# NOTE the image (ipl-ifs-at91sam9xx.bin) must be built as binary, i.e. [virtual=armle,binary] in the buildfile 
set -v

#	Convert IPL into BINARY format
${QNX_HOST}/usr/bin/ntoarm-objcopy --input-format=elf32-littlearm --output-format=binary -R.data ../install/armle/boot/sys/ipl-at91sam9xx-at91sam9rl64 ipl-tmp-at91sam9rl64.bin

#	Pad BINARY IPL
mkrec -s16k -ffull -r ipl-tmp-at91sam9rl64.bin > ipl-at91sam9rl64.bin

#	Combine the BINARY IPL with the BINARY OS Image
cat ./ipl-at91sam9rl64.bin ./ifs-at91sam9rl64.bin > ipl-ifs-at91sam9rl64.bin

#	Cleaning up temporary files
rm -f *tmp*

Step 4B: Download the Bootable OS image in DataFLash#

*In your Windows host machine installed SAM-BA application will help you to write the IPL and IFS on DataFlash.
*Connect the board's serial of DBGU with your windows host machine's COM Port.
*You can use Term Tera VT100 which also offers the ability to connect to SSH2 hosts.
*You need to Remove the Jumper J12 and J13 first and reset the Board.
*Now you will see >RomBOOT prompt.
*From the SAM-BA application, Select the communication mode(usb/serial) and set the board to AT91SAM9RL64-EK, Press ok.
*From the ASM-BA application window, select the DataFlash AT45DB/DCB tab. Execute the Enable Dataflash on CS0 script.
*Select the ipl-ifs-at91sam9rl64.bin file to be sent to the target, and then press Send File. It will take a few seconds up to a minute.
*Now on your terminal you will see output as follows:

>RomBOOT
>
QNX/Neutrino IPL for ATMEL AT91SAM9xx Board :
Commands:
  d: download image to SDRAM using DBGU (serial) port
  f: scan Dataflash for image
 ipl>

*Option d will download the image.
*Option f will to boot an OS image in Flash.

After giving that options you will see the outputs:

Welcome to QNX Neutrino 6.4 on the Atmel AT91SAM9RL64 Board 


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

Summary of driver commands#

The driver command lines below are specific to the Atmel AT91SAM9RL64 board. See the online docs for each driver for additional command-line options and other details.

Note: Some of the following 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:#

Command:
    startup-at91sam9xx-at91sam9rl64 -r 0x2F7F0000,0x50FFFF,1 -vvvvvvv

Serial:#

Command:
    devc-serusart -F -S -u2 -b115200 -c100000000 0xfffb0000^2,6 
Required binaries:
  • devc-serusart
Command:
    devc-seratdbgu -e -F -S -b115200 -c100000000 0xfffff200,1 
Required binaries:
  • devc-seratdbgu

SPI:#

Command:
    spi-master -d at91sam9xxspi base=0xfffcc000,irq=13 &
Required binaries:
  • spi-master
  • spi-at91sam9xxspi.so

ETFS NAND flash#

Command:
    fs-etfs-at91sam9xx -D addr=0x40000000 -m /fs/etfs
Required binaries:
  • fs-etfs-at91sam9xx
  • etfsctl
Note:
For more information about these commands, see the Neutrino Utilities Reference.

Graphics#

Command:
    io-display -dvid=0x0,did=0x0 
Required binaries:
  • devg-atmel91xx.so
  • libphrender.so
  • libdisputil.so
  • libffb.so
  • libimg.so.1
  • libgf.so.1
Required configuration files:
  • /usr/photon/config/atmel91xx.conf= ${QNX_TARGET}/src/hardware/devg/atmel91xx/atmel91xx.conf
  • /etc/system/config/display.conf= ${QNX_TARGET}/display.conf
Note:
For more information about these commands, see the Neutrino Utilities Reference.


Known issues for this BSP#

Attachments:
Image samba-ipl-ifs-img.JPG [AtmelAT91SAM9RL64EKEvaluationBoard/samba-ipl-ifs-img.JPG]
Image samba-ipl-img.JPG [AtmelAT91SAM9RL64EKEvaluationBoard/samba-ipl-img.JPG]
Image samba-ifs-img.JPG [AtmelAT91SAM9RL64EKEvaluationBoard/samba-ifs-img.JPG]
Image ipl-ifs-img.JPG [AtmelAT91SAM9RL64EKEvaluationBoard/ipl-ifs-img.JPG]
Image ipl-img.JPG [AtmelAT91SAM9RL64EKEvaluationBoard/ipl-img.JPG]
Image ifs-img.JPG [AtmelAT91SAM9RL64EKEvaluationBoard/ifs-img.JPG]
Image img2.JPG [AtmelAT91SAM9RL64EKEvaluationBoard/img2.JPG]
Image img1.JPG [AtmelAT91SAM9RL64EKEvaluationBoard/img1.JPG]
Bitmap img1.bmp [AtmelAT91SAM9RL64EKEvaluationBoard/img1.bmp]



Active Tab Versions Inactive Tab - left sideAssociations Inactive Tab - left sideAttachments (9) Inactive Tab - left sideBack LinksInactive Tab - right side  
    Version From To Version Comment Created By
    Version 30 David Green  -  02/13/2012
    Version 29 fix version Bert Gemin(deleted)  -  04/01/2010
    Version 28 remove trunk updated date Bert Gemin(deleted)  -  03/26/2010
    Version 27 updated date Bert Gemin(deleted)  -  09/18/2009
    Version 26 add link to project download Bert Gemin(deleted)  -  09/18/2009
    Version 25 Add new driver developed in the driver list Amit Garg  -  08/12/2009
    Version 24 Removing ling to project download Nicolas Gagnon(deleted)  -  01/19/2009
    Version 23 Remove links Martin Walter  -  01/19/2009
    Version 22 kanhaiya lal  -  01/14/2009
    Version 21 kanhaiya lal  -  01/14/2009
    Version 20 Added Audio entries for At91sam9rl64 kanhaiya lal  -  01/14/2009
    Version 19 kanhaiya lal  -  01/14/2009
    Version 18 kanhaiya lal  -  01/01/2009
    Version 17 kanhaiya lal  -  01/01/2009
    Version 16 kanhaiya lal  -  01/01/2009
    Version 15 kanhaiya lal  -  12/31/2008
    Version 14 kanhaiya lal  -  12/31/2008
    Version 13 kanhaiya lal  -  12/31/2008
    Version 12 kanhaiya lal  -  12/30/2008
    Version 11 kanhaiya lal  -  12/30/2008
    Version 10 kanhaiya lal  -  12/30/2008
    Version 9 kanhaiya lal  -  12/30/2008
    Version 8 kanhaiya lal  -  12/30/2008
    Version 7 kanhaiya lal  -  12/30/2008
    Version 6 kanhaiya lal  -  12/30/2008
    Version 5 kanhaiya lal  -  12/30/2008
    Version 4 kanhaiya lal  -  12/30/2008
    Version 3 kanhaiya lal  -  12/30/2008
    Version 2 kanhaiya lal  -  12/26/2008
    Version 1 kanhaiya lal  -  12/26/2008