wiki:Boards/Zynq - Zedboard
Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

Version 1 (modified by Chris Johns, on 02/08/17 at 05:41:44) (diff)

Start a Zed abd Microzed page.

Zedboard

The page details how to run RTEMS on a Zedboard and Microzed board.

Boot Mode

RTEMS can be run on the Zedboard and the Microzed board a number of ways. You select the boot mode you need based on what you are wanting to do. For example, if you are developer writing an RTEMS application you may use JTAG, while production may boot from QSPI flash.

JTAG Debugging

JTAG can used to reset and initialise the hardware, load software and debug applications. There are a range of JTAG debugging solutions with varying prices available that integrate with RTEMS.

JTAG lets you debug low level software such as boot loaders, exception handlers as well as support hardware watch points to help find difficult run time bugs.

Lauterbach

The Lauterbach debugger with trace support works with the Zedboard and Microzed. The Lauterbach support a range of real-time trace options.

Flyswatter2

The Flyswatter2 pod from Tincan Tools combines with OpenOCD to provide an effective JTAG debugging solutions. Trace is not supported.

PS7 Initialisation

The Xilinx tools generate a set of files based on the System Z configuration call ps7_init. The Xilinx SDK embeds the ps7_init.c file in the First Stage Boot Loader (FSBL) to configure the Zynq hardware. Xilinx also creates a TCL version called ps7_init.tcl and it is used by Xilinx's XDM software to initialise the hardware before loading code.

The PS7 Initialisation page details how to do this.

Zedboard Jumpers

TDB

Microzed Jumpers

The jumpers to boot in JTAG mode are:

JP3 JP2 JP1
X X X
X X X

QSPI Flash

TDB

SD Card

The SD card mode boots from a DOSFS MBR partition. The Zynq's ROM code searches for the file BOOT.BIN in the root directory of a DOSFS partition and loads it. The BOOT.BIN file conforms the FSBL format documented in the Zynq TRM.

Be-careful updating the SD card on a host operating system that supports Long File Names (LNF). If you happen to rename a file that is a LFN format name to BOOT.BIN the directory entry in the root directory on the DOSFS may still be in the LFN format and the Zynq'c ROM code will not see it.

Microzed Jumpers

The jumpers to boot in QSPI flash mode are:

JP3 JP2 JP1
X
X X X
X X

U-Boot

The U-Boot boot loader supports the Zed and Microzed boards.

I do not used the Xilinx version of u-boot and I do not use any binary builds available for download.

Building U-Boot

Get the source code:

$ git clone git://git.denx.de/u-boot.git

My last working build is b615267633996a9410a88b54a55965d8b021f6f8.

You need a suitable arm-none-eabi tool set for your development host.

FreeBSD

$ pkg info arm-none-eabi*
arm-none-eabi-binutils-2.25.1_3,1
arm-none-eabi-gcc-5.3.0