Using 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
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.
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
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.
|Leave a Comment:|