PetaLinux on MicroBlaze


2012-05-02Publicerad av Sven-Åke Andersson

Introduction


PetaLogic has taken the standard Linux distribution, added a number of new features and packaged it in an easy to use Linux distribution called PetaLinux. PetaLinux SDK contains everything we need to build, develop, test and deploy Embedded Linux on our FPGA project.
 

 

Download and install PetaLinux SDK


We will follow the procedure described in the document PetaLinux SDK Installation Guide. After talking to PetaLogix I received three emails with download links for the following items:
 

  • The license file
  • PetaLinux SDK
  • BSP file for Xilinx SP605 board


Nine months later


Xilinx has bought embedded Linux vendor PetaLogix. Here is the news from EE Times. The PetaLinux Software Development KIt can now be downloaded from the Xilinx web page. Here is a link to the latest documentation about the PetaLinux SDK 12.9.


Download
 

We will download the PetaLinux SDK and the BSP for the SP605 board.



Download a license file
 

We will download a 1 year free evaluation license.
 


We now have two license files (Design Suite and PetaLinux) with the same name .Xilinc.lic. They can easily be merged into one file. From now on the installation process is the same.


PetaLinux BSP installation procedure


PetaLinux includes reference designs for us to to start working with and customise for our own projects. These are provided in the form of installable BSP (Board Support Package) files, and include all necessary design and configuration files, including pre- built and tested hardware and software images, ready for download to our board or for booting in the QEMU system simulation environment.

Goto to the PetaLinux root directory:

--> cd $HOME/PetaLinux/petalinux-v2.1-final-full
--> source settings.sh
--> source /opt/Xilinx/13.4/ISE_DS/settings64.sh



Run the following script:

--> petalinux-install-bsp bsp/Xilinx-SP605-v2.1-final.bsp

 

 

Ubuntu problem


If we the get following error message there is a fix. See PetaLogix support page.

 


Here is the result after installing the BSP.
 

 

Test a pre-built PetaLinux image on hardware


PetaLinux BSPs include pre-built FPGA bitstreams for each reference design, allowing us to quickly boot PetaLinux on our hardware. Here are the steps to test a pre-built PetaLinux image with hardware:
 

  1. Choose the correct board for the reference design (Xilinx-SP605-AXI-full-13.2)
  2. Connect the JTAG port on the board with JTAG cable to our workstation.
  3. Connect the UART USB port to our workstation
  4. Connect the ethernet port on the board to the local network via a network switch
  5. Open a console (GTKterm) on our workstation with the baud rate set to 115200
  6. Source the Xilinx settings file
  7. Source the PetaLinux settings file
  8. Run the petalinux-boot-prebuilt command




 

PetaLinux running


Here is the console output:

 

 

Here is the latest version.
 



 

Accessing the web server
 

The pre-built Linux image contains a web server which we can connect to using a standard web browser. To find the IP address execute the following command:

--> ifconfig
 



Start a default web browser and enter the web address: 192.168.1.121. Here is the web browser display. We are connected to the web server running on the SP605 board.




Conclusion


It can't be easier and after nine month everything looked the same
 

More information


For more information about PetaLinux read my FPGA from scratch blog.