📄 readme.ml300
字号:
Xilinx ML300 platform=====================0. Introduction---------------The Xilinx ML300 board is based on the Virtex-II Pro FPGA withintegrated AMCC PowerPC 405 core. The board is normally booted fromSystem ACE CF. U-Boot is then run out of main memory.An FPGA is a configurable and thus very flexible device. Toaccommodate for this flexibility this port of U-Boot includes therequired means to regenerate the drivers and configuration files ifyou decide to change the hardware design. The required steps aredescribed below.1. Requirements---------------To compile and run U-Boot on the Xilinx ML300 platform you need thefollowing items.- A Xilinx ML300 platform (see http://www.xilinx.com/ml300)- EDK and ISE development tools (shipping with ML300)- Parallel4 cable (shipping with ML300)- The EDK reference design for ML300. You can get this as design #6 from http://www.xilinx.com/ise/embedded/edk_examples.htm- A BOOTP/TFTP server2. Quick Start--------------To compile and run U-Boot on ML300 follow the steps below. Make sureto consult the documentation for U-Boot, EDK, and the EDK referencedesign for ML300 if you have any questions.1. Implement the EDK reference design for ML300. You can use any of the project files, for example from a xygwin shell: $ xps -nw system_linux.xmp XPS% run init_bram2. Configure and compile U-Boot. Change into the root directory of U-Boot and run: $ export CROSS_COMPILE=powerpc-eabi- $ make ml300_config $ make3. Set up the ML300, connect the Parallel4 and the serial cable. Start a terminal on your host computer and set the communication parameters to 9600,8N1,no handshake.4. Set up the BOOTP/TFTP server on your host machine. U-Boot is preconfigured to use a fixed HW MAC address of 00:0A:35:00:22:01.5. Download the bitstream to the ML300.6. Use XMD to download and run U-Boot on the ML300: $ xmd XMD% ppcconnect XMD% dow u-boot XMD% runYou can now make an ACE file out of bitstream and U-Boot: $ xmd genace.tcl -jprog -board ml300 -hw \ implementation/download.bit -elf u-boot -ace top.acePut the ACE file onto the MicroDrive, for example into xilinx/myace,and reboot ML300.3. Generating a Custom BSP for U-Boot-------------------------------------If you decide to change the EDK reference design for ML300 or if youbuild a new design from scratch either with the Base System Builder inXPS or all by hand you most likely will change the base addresses forthe Uart and the Ethernet peripheral. If you do so you will have twooptions:1. Edit boards/xilinx/ml300/xparameters.h to reflect the changes you made to your hardware.2. Use the MLD technology provided by Xilinx Platform Studio to make the changes automatically. To do so go to the root directory of the EDK reference design for ML300. Copy the Linux project file and the Linux software configuration file: $ cp system_linux.xmp system_uboot.xmp $ cp system_linux.mss system_uboot.mss Edit system_uboot.xmp and and have it point to system_uboot.mss for the software configuration. Then, copy the sw_services directory in boards/xilinx/ml300/sw_services to the root directory of the EDK reference design for ML300. $ cp -R <uboot dir>/boards/xilinx/ml300/sw_services <edk dir> Modify system_uboot.mss. Look for the Linux library definition and change it to generate a BSP for U-Boot. An example, might look like this: BEGIN LIBRARY PARAMETER LIBRARY_NAME = uboot PARAMETER LIBRARY_VER = 1.00.a PARAMETER CONNECTED_PERIPHS = (opb_uart16550_0,opb_ethernet_0) PARAMETER TARGET_DIR = <uboot dir> END Now, you are ready to generate the Xilinx ML300 BSP for U-Boot: $ xps -nw system_uboot.xmp XPS% run libs If all goes well the new configuration has been copied into the right places within the U-Boot source tree. Recompile U-Boot and run it on the ML300.4. ToDo-------- Add support for all other peripherals on ML300.- Read the MAC address out of the IIC EEPROM.- Store the bootargs in the IIC EEPROM.5. References-------------ML300: http://www.xilinx.com/ml300EDK: http://www.xilinx.com/edkISE: http://www.xilinx.com/iseReference Design: http://www.xilinx.com/ise/embedded/edk_examples.htm
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -