Building The Linux Bsp (Ppc405 Systems Only) - Xilinx ML40 Series User Manual

Edk processor reference design
Hide thumbs Also See for ML40 Series:
Table of Contents

Advertisement

R

Building the Linux BSP (PPC405 Systems Only)

The EDK design comes with MLD/TCL technology to generate a Linux BSP for ML40x
and a script to patch a MontaVista Linux kernel from the ML300 LSP for use with this BSP.
To build a BSP for and to patch the Linux kernel, proceed as follows:
1.
2.
3.
4.
5.
6.
ML40x EDK Processor Reference Design
UG082 (v5.0) June 30, 2006
Start XPS and load the Linux XMP:
$ xps system_linux.xmp
Generate the Linux BSP with Tools→Generate Libraries and BSPs.
The resulting Linux BSP is located in ppc405_0/libsrc/linux_mvl31_v1_00_a/linux.
Quit XPS.
Create a copy of the MontaVista Linux kernel for the ML300 board.
The Linux kernel and the tools to build the Linux kernel are available from MontaVista
(http://www.mvista.com).
For further information about using Linux with EDK, refer to Xilinx XAPP765: Getting
Started with EDK and MontaVista Linux.
Patch the Linux kernel for use with the ML40x board:
$ cd linux
$ ./patch_linux <path to the copy of the MontaVista Linux kernel>
This step copies the .config file from the linux directory to the Linux kernel, patches
the Linux kernel with necessary changes for the ML40x board, and copies the Linux
BSP into the Linux kernel.
Build the Linux kernel.
$ cd <path to the copy of the MontaVista Linux kernel>
$ make oldconfig dep bzImage
The resulting Linux kernel resides in arch/ppc/boot/images/zImage.elf
To build an ACE file consisting of the FPGA bitstream and the Linux kernel, click
Tools→Xygwin shell to run a shell, then type:
$ xmd -tcl genace.tcl -jprog -hw implementation/download.bit -elf
<Linux elf file> -ace implementation/system.ace
www.xilinx.com
Building the Linux BSP (PPC405 Systems Only)
41

Advertisement

Table of Contents
loading

Table of Contents