System requirements#
Target system
- QNX Neutrino RTOS 6.4.0
- Board version: Lite5200B or Media5200
- MPC5200B processor (based on MPC603e series)
- 32 MB flash on the Lite5200B / 64 MB flash on Media5200
Host development system
- QNX Momentics 6.4.0
- Terminal emulation program (Qtalk, Momentics IDE Terminal, tip, HyperTerminal, etc.)
- RS-232 serial port and serial cable, or a USB-to-serial cable
- Ethernet link
- For other system requirements (e.g. disk, RAM), see the installation notes for QNX Momentics.
System Layout#
The tables below depict the memory layout for the image and for the flash.
Memory layout
Item | Address |
OS image loaded at: | 0x00020000 |
Ethernet base address | 0xf0003000 (IRQ: 69, 140) |
USB base address | 0xf0001000 (IRQ: 70) |
PSC base address (Lite5200B) | 0xf0002000 (IRQ: 65) |
PSC base address (Media5200) | 0xf0002c00 (IRQ: 68) |
Flash layout for Lite5200B (U-Boot view)
Flash layout | Flash start address | Size |
U-Boot | 0xfff00000 | 1 MB |
Empty | 0xff500000 | 10 MB (variable) |
OS Image | 0xff080000 | 4.5 MB (variable) |
IPL | 0xff000000 | 512 KB |
Empty | 0xfe000000 | 16 MB |
Flash layout for Lite5200B (IPL view)
Flash layout | Flash start address | Size |
Empty | 0xff000000 | 16 MB |
U-Boot | 0xfef00000 | 1 MB |
Empty | 0xfe500000 | 10 MB (variable) |
OS Image | 0xfe080000 | 4.5 MB (variable) |
IPL | 0xfe000000 | 512 KB |
Flash layout for Media5200 (U-Boot or IPL view)
Flash layout | Flash start address | Size |
U-Boot | 0xfff00000 | 1 MB |
Empty | 0xfe500000 | 26 MB (variable) |
OS Image | 0xfe080000 | 4.5 MB (variable) |
IPL | 0xfe000000 | 512 KB |
Empty | 0xfc000000 | 32 MB |
The interrupt vector table can be found in the buildfile located at src/hardware/startup/boards/mgt5200B/build
Getting Started#
Starting Neutrino#
Step 1: 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.
Note: This BSP will build a default OS image for the Freescale Media5200 board. If you need to build an OS image for the Freescale Lite5200B, you need to change the buildfile. The buildfile has commented-out sections for the Lite5200B. Simply uncomment them and comment out the Media5200 sections.
Step 2: Connect your hardware
- Setup the board. Refer to the manual for the correct default jumper settings to use.
- Connect one end of the serial NULL-modem cable to the J3 serial port.
- Connect the other end of the serial NULL-modem cable to the first available serial port of your host machine (e.g. ser1 on a Neutrino host).
- Connect an RJ-45 Ethernet cable to J6 (100/10 Mbit Ethernet RJ-45 connector).
- 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 favourite terminal program with these settings:
- Baud: 115200
- Bits: 8
- Stop bits: 1
- Parity: none
Then, apply power to the target board.
You should see output similar to the following if you are using the Lite5200B or Media5200:
U-Boot 1.1.3 (Jul 11 2005 - 16:46:38)
CPU: MPC5200 v2.1 at 462 MHz
Bus 132 MHz, IPB 132 MHz, PCI 33 MHz
Board: Freescale MPC5200 (Lite5200B)
I2C: 85 kHz, ready
DRAM: 256 MB
FLASH: 32 MB
PCI: Bus Dev VenId DevId Class Int
00 1a 1057 5809 0680 00
In: serial
Out: serial
Err: serial
Net: FEC ETHERNET
IDE: Bus 0: OK
Device 0: not available
Device 1: not available
Type "run flash_nfs" to mount root filesystem over NFS
Hit any key to stop autoboot: 0
=>
Step 3: Setup the environment
- At the U-boot prompt, issue the following command to view the current environment:
printenv
- Set the baud rate and follow the instructions:
setenv baudrate 115200
- Set the local IP address (replace x.x.x.x with the desired IP address):
setenv ipaddr x.x.x.x
- Set the IP address for your host TFTP server (replace x.x.x.x with the desired IP address):
setenv serverip x.x.x.x
- Set the gateway address (replace x.x.x.x with the desired IP address):
setenv gatewayip x.x.x.x
- Specify the image or fullpath to the OS image (on the host machine):
setenv bootfile /full_path_to_image/image.raw
- Once the above setup is complete, save the environment to the onboard EEPROM:
saveenv
- Copy the image from your host to the target:
tftpboot loadaddr
At this point you should see the ROM monitor download the boot image, indicated by a series of dots.
- Type:
go loadaddr