target.nr
资源名称:ixp425BSP.rar [点击查看]
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:23k
源码类别:
VxWorks
开发平台:
C/C++
- '" t
- .so wrs.an
- ." ixdp425/target.nr - target-specific documentation
- ."
- ." Copyright 2002 Wind River Systems, Inc.
- ."
- ." modification history
- ." --------------------
- ." 01a,14nov02,jb3 SPR 84009
- ." 01a,29oct02,jb Add note that polled mode is not supported
- ." 01a,25oct02,jb Misc changes
- ." 01a,23oct02,jb Updating to explicity document dependencies on CSR library
- ." 01a,07oct02,jb Adding to Flash burn instructions
- ." 01a,18sep02,jb Adding instructions for setting MAC and IP addresses in
- ." eeprom
- ." 01a,15aug02,jb Updating for Beta release
- ." 01a,30jul02,jb Updating for Alpha release
- ." 01a,26jun02,jb Fixing flash name
- ." 01d,25jun02,jb Continue modification to ixdp425
- ." 01c,16Apr02,dh Initial version for the IXDP425 board
- ." 01b,21MAR02,dh added information relating to base board for IXP425
- ." 01a,12Oct01,pjb created, derived from integrator940t
- ."
- .TH IXDP425 Reference T "Intel IXDP425" "Rev: 21 Mar 02" "TORNADO REFERENCE: VXWORKS"
- .SH "NAME"
- .aX "Intel IXDP425"
- .SH "INTRODUCTION"
- This manual entry provides board-specific information necessary to run
- VxWorks for the IXDP425 BSP. The IXDP425
- BSP release requires an Intel BIXMB425AD-IXMB425 board. This is the only board
- currently supported by the BSP. Before running VxWorks verify that the
- board has been baselined and runs in the default configuration.
- IXDP425 Specification:
- .CS
- Processor: IXP425 with Intel XScale core.
- Running at ratios of x2, x3, and x4 the system clock
- rate of 133MHz.
- Memory
- SDRAM: 133MHz SDRAM, 256 Mbytes total (2 Banks, 4 chips, 512Mbit)
- I2C EEPROM: 512 x 8-bit I2C EEPROM (software controlled)
- FLASH: 16 Mbytes Intel 16Mbyte StrataFlash
- I/O
- Ethernet -2 ports: LXT971A 10/100BaseT PHY connected to MII port
- LXT971A 10/100BaseT PHY connected to MII port
- Serial -2 ports: RS232, 115.2K (TX, RX, CTS, RTS) console UART
- RS232, 921.6K (TX, RX, CTS, RTS) 'fast' UART
- GPIO: 16 GPIOs programmable as either inputs or outputs.
- In addition, two GPIOs can be programmed to source
- clocks suitable for running the PCI bus and Expansion
- Bus. All GPIOs are capable of driving LEDs.
- PCI: Four 32-bit PCI slots supporting LAN or WAN PHYs
- USB: USB 1.1 Device Controller supporting full-speed
- (12 Mbit/s) data rate
- Debug Support: XScale JTAG ICE connector
- Other: 7-Segment Display
- .CE
- .SS "IXDP425 BSP DETAILS"
- .SS Options
- By default this BSP does not support the on board network processing "engines".
- This support requires the Intel CSR Access library, libIxp425.a, be installed.
- To enable the on board network "engines" follow the steps below:
- 1. Install the Intel CSR Access library, libIxp425.a
- 2. Modify the Makefile, uncomment MACH_EXTRA and LIB_EXTRA.
- 3. Modify config.h to define INCLUDE_IXETHACCEND.
- 4. Declare Environment Variable TOOLENV=arm
- 5. Declare Environment Variable 'CSR_BASE', which points to
- the top level directory of Intel's Access Software Library.
- e.g.: CSR_BASE=/Intel/ixp425/AccLib
- 6. Rebuild the bsp.
- .SS "Boot ROMs"
- The boot image provided with this BSP includes a mechanism for loading
- a standard VxWorks image over the fei driver on the included 82559 card.
- The bootrom image has been tested running from flash.
- .CS
- make bootrom.hex
- .CE
- This builds the file 'bootrom.hex' which can be burned into flash using
- a dedicated flash burner or by using visionClick.
- The board uses this image to boot and load VxWorks images developed
- from the BSP over the network.
- .IP "1)"
- Copy the register files "ixdp425*.reg" to the ESTIIRegfilesXscale
- directory. Start visionClick and configure the visionCLICK project:
- In the 'Welcome To visionCLICK' window, click on the 'Configure' button,
- this invokes the 'PROJECTS/LOAD' window. In this window, click the '+'
- left to 'PowerPC_C_Demo@0x00040400.prj'. This displays the project configuration.
- Right-click the 'Emulator Register Configuration File' and cause it to
- point to the ESTIIRegfilesXscaleixdp425_burnrom.reg that was just
- installed.
- Right-click the 'Microprocessors' option and choose your CPU type, for
- example: 'XSCALE->IXP425'. Verify that the 'Target Control' option
- points to 'visionPROBE' for visionPROBE I/II or 'visionICE' for visionICE
- I/II. Also, click the 'Communications' tab and verify that the
- 'Normal Port/Rate' and 'Download Port/Rate' are accurate for your connection,
- for example: 'LPT1' for visionPROBE II. Click the 'Save' button at the
- bottom of the window, then click the 'Activate' button.
- .IP "2)"
- Get into Background Mode:
- Execute the 'IN' command to reset the board and initialize it with the
- register setting.
- .IP "3)"
- Generating the visionCLICK compatible flash image:
- In visionCLICK, select 'Convert Object Modules' from the Tools pull-down
- menu. This invokes the 'CONVERT BINARY AND SYMBOL OBJs' window:
- 1. In the 'Select Input Object Module to Convert' slot, enter the
- full path of, or browse to, the 'bootrom.hex' image.
- 2. Check the 'Create Flat BIN File For Flash Programming' box.
- 3. Set the 'Range Of' field to 0x0, and the 'Range To' field
- to 0x00300000. This allows up to a 3 MB image to be processed. Larger
- images require an equivalently larger 'Range To' value.
- 4. Click the 'Convert' button to initiate the conversion.
- 5. The 'bootrom.bin' image will be generated in the same location
- as the source 'bootrom.hex' image.
- .IP "4)"
- Programming the ixdp425 flash:
- In visionCLICK, select 'Program Flash Devices' from the Tools pull-down
- menu. This invokes the 'TF FLASH PROGRAMMING' window:
- 1. In the 'Flash Card or PC Host File Name and Path' group,
- enter the full path to the location of the bootrom.bin in the edit box,
- or use the 'Select' button to browse to the file location. Make sure
- the 'Bias' address is 0 by entering 0 in the
- '+/- Bias' edit box in the 'CHOOSE A FILE FROM HOST PC' dialog box.
- 2. In the 'Programming Algorithm' group, in the edit box, click the
- 'Select' button and select the following flash device:
- For the 16 MB on-board flash: 'INTEL 28F128Jx (8192 x 16) 1 Device'
- 3. Set the base address of the flash to 00000000, check the 'Erase to 0x'
- radio button setting the 'Erase to' value to 2fffff. This allows for a
- 3 MB image. Larger images require an equivalently larger 'Erase to' value.
- 4. Set the 'Available RAM Workspace' setting to 10300000. Set the
- 'Bytes Of Target RAM Required' to 65360.
- 5. Press the 'Erase Only' button. Wait until the 'Done' response appears
- in the visionClick Terminal window.
- 6. Press the 'Program Only' button. This process can take a
- few minutes. The process is complete when the 'OK' prompt appears.
- .IP "5)"
- Running the VxWorks Boot ROM program:
- The flash memory is now programmed with the new boot program. To execute
- the new boot program, turn the board off and on.
- .LP
- .SS "Setting MAC and IP addresses"
- This BSP uses the I2C EEPROM to store the ethernet interface's MAC and
- IP addresses. If it is necessary to modify the MAC or IP addresses from
- the delivered values then the following procedure should be followed:
- .IP "1)"
- Verify the board has a 8594 I2C EEPROM in position U23. This bsp will not
- work with any other version of the I2C EEPROM.
- .IP "2)"
- Boot vxWorks.st
- .IP "3)"
- At the '->' prompt type 'ixdp425IfConfig' and answer the questions. An
- example session is as follows:
- .CS
- -> ixdp425IfConfig
- ixe0 MAC address: 00:02:b3:3c:16:95
- ixe1 MAC address: 00:02:b3:3c:16:96
- ixe0 IP address: 192.168.50.1
- ixe1 IP address: 192.168.60.1
- fei0 IP address: 192.168.10.1
- fei1 IP address: 192.168.20.1
- fei2 IP address: 192.168.30.1
- fei3 IP address: 192.168.40.1
- Any Changes (y/n)> y
- Change a MAC address (y/n)> y
- ixe0 MAC address: 00:02:b3:3c:16:95 00:02:b3:3c:16:95
- ixe1 MAC address: 00:02:b3:3c:16:96 00:02:b3:3c:16:96
- Change ixe IP address (y/n)> y
- ixe0 IP address: 128.224.195.146 128.224.195.148
- ixe1 IP address: 128.224.145.147 128.224.195.149
- Change fei IP address (y/n)> n
- Any Changes (y/n)> n
- Writing interface data to non-volatile storage...
- New configuration written, changes will take effect after a reboot
- value = 0 = 0x0
- -> Ctl-X
- .CE
- .IP "4)"
- Reboot the board
- .LP
- .SS "Make Targets"
- Supported targets are: bootrom, vxWorks, vxWorks.st, vxWorks_rom,
- , vxWorks.st_rom, and these files associated .hex files. Any of
- the .hex files may be substituted for bootrom.hex for programing
- into Flash.
- .SS "Libraries"
- This BSP release requires three directories which contain object
- files for the XScale microarchitecture:
- .CS
- target/lib/objXScalegnubevx
- target/lib/objXScalegnubevxwv
- target/lib/objXScalegnubetest
- .CE
- These object files are built into the following architecture libraries:
- .CS
- target/lib/libXScalegnubevx.a
- target/lib/libXScalegnubewv.a
- target/lib/libXScalegnubegcc.a
- target/lib/libXScalegnubetest.a
- .CE
- Additionally, the Intel Access library $(CSR_BASE)/lib/$(TOOLENV)objs/libIxp425.a
- is required to support the Intel Network Processor based Ethernet ports.
- These files, along with the BSP, are used to construct a VxWorks image
- designed to run on the IXDP425 evaluation board. Please refer to the
- .I "Tornado BSP Developer's Kit for VxWorks User's Guide"
- for more information on building the various VxWorks images.
- .SS "Flash memory as NVRAM"
- This BSP does not support Flash memory as NVRAM. Please see 'I2C EEPROM' for equivalent functionality.
- .SS "I2C EEPROM"
- This BSP is configured with INCLUDE_EEPROM defined and you have read and
- write access to the I2C EEPROM on the board using a software emulated
- I2C bus protocol. USE_EEPROM_STORAGE is also defined and the vxWorks bootline
- is stored in EEPROM.
- The diagram below shows the EEPROM when used as NVRAM storage:
- .bS
- +----+ Top of 512byte EEPROM.
- | |
- | | MAC address storage.
- |____|_ EEPROM + 256 Bytes -- NV_GENERIC_STORAGE_AREA
- | |
- | | Boot Line Storage
- | |
- +----+ Bottom of EEPORM -- sysNvRamGet/sysNvRamGet
- .bE
- Please refer to the .I "Tornado User's Guide" for more information on booting VxWorks.
- .SS "SDRAM"
- The IXDP425 board is equipped with 133MHz SDRAM - 256 Mbytes total (2 Banks, 4 chips,
- 512Mbit) The devices used shall be Micron MT48LC16M16A2TG-7E16Meg x 16bits.143Mhz Grade,
- Cas Latency (Read) = 3. www.micronsemi.com/datasheets/sdramds.html
- .SS "Interrupts"
- All interrupts are handled via the internal interrupt controller module.
- Interrupt connections, enabling, and disabling are performed using the
- standard intArchLib routines. The interrupt controller driver is
- provided in ixp425IntrCtl.c.
- .SS "IXDP425 Memory Map"
- .CS
- Resource Base Address
- =====================================================================
- SDRAM 0x00000000*
- SDRAM Alias 1 0x10000000
- SDRAM Alias 2 0x20000000
- SDRAM Alias 3 0x30000000
- PCI space 0x48000000
- Flash/Expansion Bus 0x50000000*
- Queue Manager 0x60000000
- PCI controller 0xc0000000
- Expansion Bus Config 0xc4000000
- UART1 0xc8000000
- UART2 0xc8001000
- PMU 0xc8002000
- Interrupt Controller 0xc8003000
- GPIO 0xc8004000
- Timer 0xc8005000
- WAN/HSS 0xc8006000
- Ethernet A 0xc8007000
- Ethernet B 0xc8008000
- Ethernet MAC A LXT971A (port1) 0xc8009000
- Ethernet MAC B LXT971A (port2) 0xc800a000
- USB Controller 0xc800b000
- SDRAM Controller 0xcc000000
- .CE
- *Note: Flash initially resides at 0x00000000 and moves up to 0x50000000
- after bootup.
- .SS "Serial Configuration"
- There are two serial ports on the IXDP425 evaluation board.
- The default configuration is 9600 baud, 8 data bits, no parity, 1 stop
- bit. By default UART 1 is used as the VxWorks console port, and UART 0 is
- used as the serial debug port for the WDB agent, or is available to the
- application if SERIAL_DEBUG is not defined.
- UART 1 is capable of supporting rates as high as 231K baud, while UART
- 0 (High Speed Uart) is capable of supporting rates as high as 926.1K baud.
- .SS "SCSI Configuration"
- The IXDP425 development board does not have any on-card SCSI devices.
- This BSP does not support SCSI.
- .SS "Network Configuration"
- The IXDP425 evaluation board provides two high speed ethernet ports.
- The two high speed ethernet ports are LXT791A PHYS connected
- to two MII ports and run at 10/100Mbit/s each.
- Each PHY has two LEDs on its RJ-45 connector. The first LED indicates link status
- and activity. This LED is illuminated (solid) when valid link pulses are received
- and no other activity is present. The LED flashes when a valid link exists and data
- is being received or transmitted. The 2nd LED indicates the link speed as determined
- during auto-negotiation (or link pulse inspection).
- .SS "VME Access"
- The IXP425 development board does not have VME bus support.
- .SS "PCI Access"
- PCI v2.2 bus: 32-bit Address/Data bus. Capable of running at 33 and 66MHz.
- A built-in arbiter supports up to 4 external bus masters.
- The IXDP425 BSP supports, and has been tested with PCI Ethernet cards
- containing the Intel 8255X Ethernet network device. This is a fast Ethernet
- controller capable of operating at 10Base-T and 100Base-T.
- .SS "7-Segment Hex Display"
- The Seven segment display is used to track boot progress. The displayed values have
- the following meanings
- .CS
- 0001 - Cold Boot entry
- 0002 - Debug uart initialized
- 0003 - reserved
- 0004 - reserved
- 0005 - reserved
- 0006 - reserved
- 0007 - Initializing SDRAM
- 0008 - reserved
- 0009 - SDRAM Initialization complete
- Starting basic hw config
- 000C - warm start entry point, relocate flash
- 000D - optionally enable MMU - Not needed.
- 000E - Starting vxWorks boot
- 0010 - Starting sysHwInit0
- 0011 - Finished cachelibinit, starting mmu init
- 0012 - Finished mmuinit, starting autosize init
- 0013 - finished autosize and sysHwInit0
- 0014 - starting sysHwInit
- 0015 - finished disabling interrupts,starting sysSerialHwInit
- 0016 - Finished sysSerialHwInit, starting sysPciInit (if PCI is enabled)
- 0017 - finished sysPciInit, starting sysPciAssignAddrs
- 0018 - finished sysPciAssignAddrs, starting sysEnableIRQMasks
- 0019 - finished sysEnableIRQMasks, and finished sysHwInit
- 0020 - sysHwInit2 begin, intLibInit started
- 0021 - intLibInit returned, starting ixp425IntDevInit
- 0022 - ixp425IntDevInit finished, starting sysSerialHwInit2
- 0023 - finished sysSerialHwInit2, starting sysPciIntConnect
- 0024 - finished sysPciIntConnect, starting sysPciIntEnable
- 0025 - finished sysPciIntEnable, starting sysLanPciInit
- 0026 - finished sysLanPciInit, starting ixdp425EthEndMuxInit (if supported)
- 0027 - finished all of sysHwInit2
- .CE
- .SS "BOOT DEVICES"
- Supported boot devices are:
- .CS
- 'fei' - 10/100BaseT PCI Ethernet
- 'ixe' - 10/100BaseT Intel in chip Ethernet
- .CE
- .SH "SPECIAL CONSIDERATIONS"
- .SS "Cache/MMU considerations"
- The extra state VM_STATE_CACHEABLE_MINICACHE is available on the
- IXP425. Setting pages to this state using
- vmStateSet() will result in those pages being cached in the
- mini-cache, and not in the main data cache. Calling
- cacheInvalidate(DATA_CACHE, ENTIRE_CACHE) will also invalidate the
- mini-cache, but in all other aspects, no support is provided for
- the mini-cache, and the user is entirely responsible for ensuring
- cache coherency.
- .SS "Timestamp support"
- The IXDP425 BSP supports a system clock timer through hardware
- timer 1. The timestamp clock is supported through the free running
- up-timer.
- .bS
- _______ _____________
- hardware TIMER 1 UP-TIMER
- clock _______ _____________
- | |
- interface -----------------------------------------------------
- | |
- | |
- software _______ _____________
- clock(s) sysClk timeStampClk
- _______ _____________
- .bE
- .SS "CPU Speed/Timers"
- The IXDP425 BSP does not support an auxillary clock.
- .SS "Divide by Zero Exception"
- The ARM architecture does not provide for an integer divide by zero
- exception. Consequently, no exception is generated when an integer
- divide by zero operation is performed programmatically.
- .SS "Known limitations/problems"
- Console Shell (INCLUDE_SHELL) doesn't restart when telenet session disconnects.
- (Target Shell still works)
- Reset switch does not work if visionProbe is connected and visionClick has been running.
- Intel Ethernet devices do not provide support for polled mode. This means WDB will
- not work with the system suspended.
- .SS "BOARD LAYOUT"
- The diagram below shows the board layout for the IXDP425 Development Board
- containing the peripherals.
- .bS
- _______________________________________________________________________________
- | |
- | +-------------------------------+ |
- | | ---------- PCI SLOT --------- | |
- | +---+ +---+ +-------------------------------+ |
- | +-------------- | | | | J |
- | | | | | | | :P +-------------------------------+ |
- | | | | | | | 5 | ---------- PCI SLOT --------- | |
- | | | +---+ +---+ +-------------------------------+ |
- | | IXP425 | SDRAM 5 |
- | | | +---+ +---+ +-------------------------------+ |
- | | | | | | | | ---------- PCI SLOT --------- | |
- | | | | | | | +-------------------------------+ |
- | +--------------+ | | | | |
- | ._. . . +---+ +---+ +-------------------------------+ |
- | G._. G. . JP9 | ---------- PCI SLOT --------- | |
- | P._. P. . JP10 : J11 +-------------------------------+ |
- | I._. I. . : +- # # :|: _.. JP3 : |
- | O._. O. . G+- 1.-.2 +--------------------------+ |
- | ._. . . # P+- # # .-. | | |
- | H._. H. . +-----------+ 1+- . . | | |
- | E._. E. . | | 5+- # # . . | | |
- | A._. A. . | | +- . . | | |
- | D._. D. . | FLASH | +- # # J . . | | |
- | E._. E. . | | +- 8 . . | | |
- | R._. R. . | | # # . . | | |
- | ._. . . +-----------+ +- . . | | |
- | A._. B. . JP11 G+- # # . . | | |
- | ._. .._ P+- . . | | |
- | ._. JP12 0+- # # 23. .24| | |
- | _.. 7+- | | |
- | +- # # 1.-.2 | ++ POWER | |
- | +- .-. | || MODULE | |
- | +- .-. | || | |
- | . . | || | |
- |+___________________+ +-------+ . . | || | |
- || | | LED | . . | || | |
- || | |12 - 15| +--+ . . | || | |
- || +---------------+ | +-------+ |J | . . | || | |
- || | | | |T |+--+ . . | || | |
- || +---------------+ | +-------+ |A ||B | J . . | || | |
- || | | LED | |G ||S | 9 . . | || | |
- || U +------+ | | 8 - 11| | ||C | . . | || | |
- || T | | | +-------+ |I ||A | . . | ++ | |
- || O +------+ | |C ||N | . . | | |
- || P | +-------+ |E |+--+ . . | | |
- || I | | LED | +--+ . . | | |
- || A | | 4 - 7 | . . | | |
- || | +-------+ . . | | |
- || 2 | . . | | |
- || | +-------+ JP4 . . | | |
- || M | | LED | : . . | | |
- || O | | 0 - 3 | 43. .44| | |
- || D | +-------+ +--------------------------+ |
- || U | : JP7 |
- || L |+---------------------++---------------------+ vxWorks|
- || E || || | Console|
- || || +-----------------+ || +-----------------+ | ______|
- || : JP13 || | | || | | | P| SLOW |
- || || +-----------------+ || +-----------------+ | 1|SERIAL|
- || || || | | PORT |
- || || E || E | : |______|
- || || T || T | J |
- || || H || H | P ______|
- || || E || E | 2 | FAST |
- || || R || R | P|SERIAL|
- || || N || N | 2| PORT |
- || || E || E | |______|
- || || T || T | |
- || || || | # |
- || || 0 || 1 | # |
- || || || | # |
- || || || | # |
- || || || | +-----+ # |
- || || || | | USB | # |
- || || || | | PORT| R |
- ||___________________||_____________________||_____________________|_|_____|____|
- .bE
- .SH "See Also"
- .tG "Getting Started,"
- .pG "Configuration."
- .SH "BIBLIOGRAPHY"
- .I "Intel IXP425 I/O Companion Chip Developer's Manual",
- .I "Intel IXP425 I/O Companion Chip Datasheet",
- .I "Intel XScale Microarchitecture, Programmers Reference Manual",
- .I "GNUPro Toolkit Documentation",