Entry: Zynq design from scratch. Part 52. Thursday, September 25, 2014

Using Petalinux 2014.2

Upgrading to newer versions of software is not always an easy task. Upgrading one operating system and three software tools at the same time will not make it easier. This is what we have now:

  • Ubuntu 14.04
  • Vivado 2104.2
  • Xilinx SDK 2104.2
  • Petalinux 2014.2

I will start by rerunning part 23 (Booting Petalinux) to see if things still work. Here is the Petalinux BSP for the ZedBoard.

We will start by loading and booting the pre-built Petalinux image.

--> source /opt/PetaLinux/petalinux-2014.2-final/settings.sh
--> cd ...../Avnet-Digilent-ZedBoard-2014.2
--> petalinux-boot --jtag --prebuilt 3



The FPGA is configured and the image file is downloaded, but the system is not booting. Here is the display on the terminal screen.




After looking around I found this explanation
in the Xilinx forum:  Now i found out that the processor was simply in "stopped" mode. I used XMD to send the JTAG "con" command to continue the execution and everything works fine. I did it with the following commands:



After a few seconds the booting starts and the following is displayed on the terminal screen.



Rebuilding the Petalinux kernel image

Now let's see if we can rebuild the kernel image and boot it on our ZedBoard. We will follow part 25 and repeat all steps. We first run the petalinux-build command to compile the software image.

-> cd <Project Dir>/
Avnet-Digilent-ZedBoard-2014.2
-> source /opt/PetaLinux/
petalinux-v2014.2-final/settings.sh
-> petalinux-build


The build fails showing this error messages. It seems we are missing the file predefs.h in Ubuntu 14.04. A quick fix is to copy the file /usr/include/stdc-predef.h to the directory /usr/include/x86_64-linux-gnu/bits and rename it to predefs.h.This fix may need some more investigation, but for now it works.

Now the build finishes without any errors.



Make a prebuilt package

We will use the command petalinux-package to packages all files into a prebuilt package and then use the command: petalinix-boot --jtag --prebuilt 3 to boot the ZedBoard. See part 25 for more information. After we have made the package we can follow the instructions from the first part of this blog.


->petalinux-package --prebuilt --fpga download.bit

Summary

Upgrading to new software is never a painless experience but with the help from the community there is almost always a solution to be found. Thanks Martin for helping out and a message to Xilinx to fix the bug.


Top   Previous   Next


   0 comments

Leave a Comment:

Name


Homepage (optional)


Comments