wiki2818: NtotrunkFreescaleMpc85x0AdsTrunkReleasenotes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Release Notes of the QNX 6.4.1 BSP with Signal Processing Engine (SPE) support for Freescale MPC85x0 ADS Trunk#System requirements#Target system
Host development system
System Layout#The tables below depict the memory layout for the image and for the flash.
Getting Started#Starting Neutrino#Step 1: Build the BSP Step 2: Connect your hardware This BSP is set up for a PCI clock frequency of 33MHz. If you're using this setup, then the clock rates should be: CPU: 825 MHz CCB: 330 MHz DDR: 165 MHz LBC: 82 MHz Note: To change the PCI frequency for the Freescale MPC8540 ADS board to 66 MHz: 1. Change the jumper settings as described in the hardware manual. 2. Compile the ROM monitor to use a frequency of 66 MHz. 3. Add the -t66000000 option to the startup command line in your buildfile and rebuild your OS image. 2. Connect one end of the serial cable to the P35 serial port 1. 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). 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. 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: U-Boot 1.1.0(pq3-20040423-r1) (Sep 29 2004 - 08:10:20) Freescale PowerPC Core: E500, Version: 2.0, (0x80200020) System: 8540, Version: 2.0, (0x80300020) Clocks: CPU: 825 MHz, CCB: 330 MHz, DDR: 165 MHz, LBC: 82 MHz L1 D-cache 32KB, L1 I-cache 32KB enabled. Board: ADS I2C: ready DRAM: SDRAM: 64 MB 128 MB FLASH: 16 MB L2 cache enabled: 256KB *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: MOTO ENET0: PHY is Marvell 88E1011S (1410c62) MOTO ENET1: PHY is Marvell 88E1011S (1410c62) MOTO ENET2: PHY is Davicom DM9161E (181b881) MOTO ENET0, MOTO ENET1, MOTO ENET2 Hit any key to stop autoboot: 10 MPC8540ADS=> setenv ipaddr 192.168.200.2 Note: The version number for U-Boot is displayed as 1.1.0, but it's really 1.1.2. Step 3: Setup the environment On your target, type the following, filling in the appropriate IP addresses and ifs file: MPC8540ADS=> setenv ipaddr 192.168.200.2 MPC8540ADS=> setenv serverip 192.168.200.1 MPC8540ADS=> setenv bootfile ifs-85x0ads.8540.spe.raw MPC8540ADS=> setenv loadaddr 0x100000 MPC8540ADS=> setenv bootcmd 'tftpboot $loadaddr $bootfile; go $loadaddr' MPC8540ADS=> setenv bootdelay 2 MPC8540ADS=> saveenv Saving Environment to Flash... Un-Protected 1 sectors Erasing Flash... flash erase done Erased 1 sectors Writing to Flash... done Protected 1 sectors Step 4: Boot the IFS image You can use TFTP download (the default) or serial download to transfer the image from your host to the target: Step 4A: TFTP download This method requires a raw image, which the buildfile creates by default. Once the above setup is complete, you can run the load command at the ~MPC8540ADS=> prompt to download the image: MPC8540ADS=> boot At this point you should see the ROM monitor download the boot image, indicated by a series of number signs. You'll also see output similar to this when it completes downloading: Speed: 100, full duplex Using MOTO ENET0 device TFTP from server 192.168.200.1; our IP address is 192.168.200.2 Filename 'ifs-85x0ads.8540.spe.raw' Load address: 0x100000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ########################################################## done done Bytes transferred = 3956736 (3c6000 hex) ## Starting application at 0x00100000 ... Step 4B: Serial download This method requires an SREC image. You have to modify the buildfile to create this format. Change this: [virtual=ppcbe,raw] to this: [virtual=ppcbe,srec] Rebuild the image. On your target, type: MPC8540ADS=> setenv loads_echo 0 MPC8540ADS=> saveenv MPC8540ADS=> loads On your host, copy the image to the serial port that's connected to the board. For example, on a Neutrino host: cp ifs-85x0ads.8540.spe.srec /dev/ser1 On a Windows host, you can use Hyperterminal's transfer feature to copy the image as a text file. Note: The serial line shouldn't already be in use. At this point, you should see the ROM monitor download the boot image, indicated by a series of dots. You'll also see output similar to this when it finishes downloading: ## First Load Addr = 0x00100000 ## Last Load Addr = 0x0023955B ## Total Size = 0x0013955C = 1283420 Bytes ## Start Addr = 0x00101E38 MPC8540ADS=> Note: The start_addr is the startup entry point address. You can find this address from the mkifs utility (you'll need to use the __{{-v}}__ option to get this information from the mkifs utility; the __{{-v}}__ option is not a default option). For example: mkifs -v -r../install 85x0ads.8540.spe.build ifs-85x0ads.8540.spe.srec Offset Size Entry Ramoff Target=Host 100000 100 0 --- /usr/qnx641/target/qnx6/ppcbe/boot/sys/raw.boot 100100 100 ---- --- Startup-header 100200 10108 102b7c --- /tmp/DAA848168 ... In this example, 102b7c is the address to use. You should now see the QNX Neutrino welcome message on your terminal screen: System page at phys:0000c000 user:0000c000 kern:0000c000 Starting next program at v00133af4 Welcome to QNX Neutrino trunk on the PPC 8540ADS board # 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. Creating a flash partition#1. Enter the following command to start the flash filesystem driver:devf-generic -s0xff000000,16M 2. To prepare the area for the partition. Caution: Do not erase the last 8M -- it contains the ROM monitor. Use the -l (length) option to avoid these areas. To create a 1 MB partition, enter the following command: flashctl -p/dev/fs0 -l1M -ve 3. Format the partition: flashctl -p/dev/fs0p0 -l1M -vf 4. Slay, then restart the driver: slay devf-generic & devf-generic -s0xff000000,16M & You should now have a /fs0p0 directory which you can copy files to.
Driver Command Summary#The following table summarizes the commands to launch the various drivers.
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. Network:#without encryption: with encryption in software: with encryption in hardware:
Note:
The latest sources for devnp-mpc85xx.so and devnp-mpcsec.so are available from the networking project.
Known Issues#
Workarounds: There are a few workarounds: In the source file init.c, change line 84: write_8250(port[REG_IE], 0x0f); to write_8250(port[REG_IE], 0x0b); This results in an unfortunate side effect: breaks, framing errors, parity errors, overrun errors, data ready interrupts Rx FIFO errors, Tx empty, Tx holding register empty will not generate Line Status interrupts. However, the LSR is also read with every character received, so processing of line status changes will not be completely disabled, just delayed until a character is received.
Appendix: CPM memory layout#The following information applies to the Freescale 8x60 (MPC8260 and MPC8560) processors, which contain the Communications Processor Module (CPM). Neutrino supports various devices found within these processors, namely the SMC channels on the 8260 CPM, as well as the SCC and FCC channels found on both the 8260 and 8560 CPM. The 8x60 CPM module contains 32K of dual-port RAM, which is divided up as follows:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() | Versions | ![]() | Associations | ![]() | Attachments | ![]() | Back Links | ![]() |
||