wiki3169: Nto640AtmelAt91sam9263EkTrunkReleasenotes (Version 2) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Release Notes for the QNX Neutrino 6.4.0 BSP for Atmel At91sam9263 EK trunk#System requirements#Target system#
Host development system#
System Layout#The tables below depict the memory layout for the image and for the flash.
The interrupt vector table can be found in the buildfile located at src/hardware/startup/boards/at91sam9263ek/build
Getting Started#Step 1: Connect your hardware#1. Connect the serial cable to the terminal debug port of the At91sam9263 EK board and to the first serial port on the host machine (e.g. ser1 on a Neutrino host).Note:If you have a Neutrino host with a serial mouse, you may have to move the mouse to the second serial port on your host, because some terminal programs require the first serial port. 2. Connect an RJ-45 ethernet cable between the ethernet port on the At91sam9263 EK and your local network. 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 using U-Boot#Note: If you don't want to boot your target with U-Boot and you prefer to replace your U-Boot on the board with a native QNX IPL, you can skip this step and go to Step 4.1. On your host machine, start your favorite terminal program with these settings:
2. Start your target. You should see output similar to the following: RomBOOT > U-Boot 1.1.5 (Dec 22 2006 - 10:43:42) DRAM: 64 MB NAND: NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (NAND 256MiB 3,3V 8-bit) 256 MiB DataFlash:AT45DB642 Nb pages: 8192 Page Size: 1056 Size= 8650752 bytes Logical address: 0xC0000000 Area 0: C0000000 to C0003FFF (RO) Area 1: C0004000 to C0007FFF Area 2: C0008000 to C0037FFF (RO) Area 3: C0038000 to C083FFFF In: serial Out: serial Err: serial DM9161A PHY Detected End of Autonegociation Hit any key to stop autoboot: 0 U-Boot> This method requires a raw image, which the buildfile creates by default. On your target, type the following, filling in the appropriate IP addresses and ifs file: => setenv ipaddr 192.168.200.2 => setenv serverip 192.168.200.1 => setenv bootfile ifs-at91sam9263ek.bin => setenv loadaddr 0x20100000 => setenv bootcmd 'tftpboot $loadaddr $bootfile; go $loadaddr' => setenv bootdelay 2 => saveenv 4. Restart your target, You should see output similar to the following: Hit any key to stop autoboot: 0 TFTP from server 10.42.107.173; our IP address is 10.42.105.249 Filename 'at9263.bin'. Load address: 0x20100000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################### done Bytes transferred = 1423692 (15b94c hex) ## Starting application at 0x20100000 ... Dcache: 512x32 WB Icache: 512x32 arm926 rev 5 200MHz Header size=0x0000009c, Total Size=0x00000490, #Cpu=1, Type=4 Section:system_private offset:0x000001d8 size:0x00000068 Section:qtime offset:0x00000148 size:0x00000048 Section:callout offset:0x000000a0 size:0x00000048 Section:cpuinfo offset:0x00000190 size:0x00000020 Section:cacheattr offset:0x00000450 size:0x00000040 Section:meminfo offset:0x00000490 size:0x00000000 Section:asinfo offset:0x00000310 size:0x00000100 Section:hwinfo offset:0x000002c8 size:0x00000048 Section:typed_strings offset:0x00000240 size:0x00000030 Section:strings offset:0x00000270 size:0x00000058 Section:intrinfo offset:0x00000410 size:0x00000040 Section:smp offset:0x00000490 size:0x00000000 Section:pminfo offset:0x00000490 size:0x00000000 Section:mdriver offset:0x00000490 size:0x00000000 Section:boxinfo offset:0x000001b0 size:0x00000028 Section:cpu offset:0x00000128 size:0x00000020 System page at phys:20014000 user:fc404000 kern:fc404000 Starting next program at vfe0203a4 Welcome to QNX Neutrino 6.x on the Atmel AT91SAM9263-EK Board Starting on-board ethernet with TCP/IP stack... # Step 4: Replace the U-Boot with a native QNX IPL and OS image in flash#The Atmel AT91SAM9263 EK (Evaluation Kit) Development board supports booting from a native QNX bootable IPL/OS image in flash.1. Generate a bootable flash image Run the mkflashimage script, inside the /images directory of BSP. The output file from this script is a combined IPL/OS image called ipl-ifs-at91sam9263ek.bin. You need to write this image into a supported Atmel DataFlash Card using the SAM-BA programming tool provided by Atmel. The IPL is padded to 16 KB and will scan for an image at an offset of 16 KB (independently of the DataFlash page mode). The mkflashimage script: #!/bin/sh #Script to build a binary IPL and boot image for ATMEL AT91SAM9263 Evaluation Kit board 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-at91sam9263ek ipl-tmp-at91sam9263ek.bin #Pad BINARY IPL mkrec -s16k -ffull -r ipl-tmp-at91sam9263ek.bin > ipl-at91sam9263ek.bin #Combine the BINARY IPL with the BINARY OS Image cat ./ipl-at91sam9263ek.bin ./ifs-at91sam9263ek.bin > ipl-ifs-at91sam9263ek.bin #Cleaning up temporary files rm -f *tmp* 2. Download the bootable image in flash 1. In a Windows system, install the SAM-BA application provided by Atmel to allow you to program the IPL and IFS on a DataFlash card. 2. Connect the DBGU UART of the board with a COM port of the Windows host computer with a serial cable. Remove the DataFlash card and reset the board. Once you have the RomBOOT prompt, you can insert the DataFlash card. Disconnect any terminal application so SAM-BA can take control of serial port if needed. 3. From the Atmel SAM-BA application, select the proper communication mode (serial or usb) and set the board to AT91SAM9263-EK. Press OK to move to the next screen. 4. From the main application window, select the DataFlash AT45DB/DCB tab located in the middle section of the screen. Execute the Enable ~Dataflash on CS0 script. Select the ipl-ifs-at91sam9263ek.bin file to be sent to the target, and then press Send File. Depending on the size of your file, it will take a few seconds up to a minute. 5. Close the SAM-BA application, reconnect your terminal and reset the board. Now it should boot from the native QNX IPL. You should see output as follows: Dataflah info: Name : AT45DB642D ID : 0x00000028 Density(MB) : 0x00840000 Num Pages : 0x00002000 Page Size : 0x00000420 Page Shift : 0x0000000B Status : 0x00000028 QNX Neutrino Initial Program Loader for ATMEL AT91SAM9263-EK board Commands: Press D for serial download, using the sendnto utility Press F to boot an OS image in flash Scanning Dataflash... found image, calling image setup... image_setup OK, calling image start... Welcome to QNX Neutrino trunk on the Atmel AT91SAM9263-EK Board ... sendnto -d/dev/ser1 -b115200 ifs-at91sam9263ek.bin Step 5: Start working with Neutrino OS#You can now test the OS simply by executing any shell builtin command or any command residing within the OS image (e.g. ls). Once the initial image is running, you can update the OS image using the network and flash drivers. For sample command lines, please see the " Driver Command Summary" section.
Driver Command Summary#The driver command lines below are specific to the Atmel At91sam9263 EKboard. See the online docs for each driver for additional command-line options and other details. NOTE: Some of these 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.
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. Note: Network driver will not work in half-duplex mode when forcing speed and duplex mode. When driver is configured in Auto-negotiation mode, half-duplex will work properly.
Known Issues for this BSP#
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||