wiki2978: Nto640FreescaleMgt5200b1.0.0Releasenotes (Version 17) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Release Notes for the QNX Neutrino 6.4.0 BSP for Freescale Lite5200B and Media5200 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
Flash layout for Lite5200B (U-Boot view)
Flash layout for Lite5200B (IPL view)
Flash layout for Media5200 (U-Boot or IPL view)
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 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
On your host machine, start your favourite terminal program with these settings:
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: Transfer the OS image to the target using the ROM monitor
You should now see the QNX Neutrino welcome message on your terminal screen: Welcome to QNX Neutrino 6.4 on the Freescale Lite5200B / Media5200 You can 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 "Summary of driver commands" section. Starting the flash driver
Putting the IPL and OS image on the flash (Lite5200B)#
Note: The OS image will be put in flash at the offset 16.5 MB (i.e. 0xff080000). We reserve the first 512 KB of the second 16 MB flash bank for the IPL. * Unprotect the flash banks: protect off all * Erase the flash from the offset 16.5 MB to the offset 21 MB: erase 0xff080000 0xff4fffff Note: In this example, we assume that the OS image size is smaller than 4.5 MB. * Copy the OS image from RAM (0x20000) to flash (0xff080000): cp.l 0x20000 0xff080000 0x00120000 Note: 0x0120000 is a long (4 bytes). So 4 x 0x0120000 is 4.5 MBytes. 3. Transfer the IPL to the target memory and burn it into flash: From the U-Boot prompt, type the following commands: * Setup the file to transfer to RAM: setenv bootfile /full_path_to_ipl/ipl.bin Note: o When compiling using the command line, the /full_path_to_ipl is /BSP_root_dir/install/ppcbe/boot/sys/. o When compiling using the IDE, the /full_path_to_ipl is by default /Workspace_root_dir/bsp-freescale-mgt5200b_ipl-mgt5200_ml/mgt5200b/ppc/be/. * Transfer the IPL to RAM: tftpboot 0x20000 The IPL will be put in flash at the offset 16 MB (0xff000000): * Erase the flash for 512 KB: erase 0xff000000 0xff07ffff * Copy the IPL from RAM (0x20000) to flash (0xff000000): cp.l 0x20000 0xff000000 0x00020000 Note: o In this example, we copy 512 KB of data from RAM to flash. This is fine as long as the IPL is smaller than 512 KB. o If anything bad happens during the copy of the IPL into the Lite5200B, you can always switch J10 to use the backup flash to boot. (Lite5200B only) When booting from the backup U-boot the main flash will be erased and U-boot will copied automatically to it. Once completed, switch J10 back to its original position and try again the steps 1 and 2. 4. Move the switch HI/LO from the SW1 switch bank to LO in order to boot from IPL. 5. Reset the board. You should now see output similar to the following: Welcome to QNX Neutrino 6.3 on the Freescale Lite5200B / Media5200 Starting on-board ethernet with large stack and cache... #
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||