

Once we’ve saved that file, let’s configure u-boot to build for our target by entering :

I got u-boot to work with and without this change but I’ll add it in here since we need to keep this in mind when we try to get the Linux debug console to work.

We need to add this because the peripheral clock on the Zybo is 50Mhz, on the Zedboard it’s 33.3Mhz. #define CONFIG_ZYNQ_PS_CLK_FREQ 50000000UL Let’s edit this file for zybo, all we have to do is add the following line: Let’s take a look at the config files, in include/configs we should see a file called zynq_zed.h, this file is how u-boot knows how to configure the system. Let’s fetch the source:īash> git clone git:///Xilinx/u-boot-xlnx.git I’ll go over it modifying the Zedboard config. I’ve been able to configure u-boot from both the Zed board config and the generic one. I only had to change one piece of source code to get it to work. It’s gear towards the Zed board which is okay because the Zybo is very similar. The Xilinx wiki on u-boot is a great resource to get us started. We are now ready to configure u-boot from source for Zybo. Take a look back at the Xilinx wiki to make sure you’ve exported bothe CROSS_COMPILER variable and your modified PATH variable. If we see this error then everything is setup and we are ready to download U-boot, if not then you’ve probably forgot to add the toolchain location to your PATH variable. On the command line and get an error saying no input files specified.

After completing the toolchain install and adding the xilinx tools into our PATH variables we should be able to type We’ll be building u-boot, linux and xenomai all from the command line. Follow the steps on the Xilinx wiki follow the steps to download and install the command line tools. Once we’ve got those tools installed it’s time to get our toolchain from Xilinx. To install Linux on Ubuntu, go to the terminal and type in: Next make sure you have git installed, we’ll need to use git to download the sources needed to build u-boot and later Linux and Xenomai. This link will show you what commands to use based on the flavour of Linux you’ve chosen. First, if you have a 64-bit system you’ll have to install the 32-bit libraries for your Linux distro before we can use the code sorcery toolchain. Once you have a virtual machine running Linux or a system running Linux we’ll need to install a couple items before we can start getting and building u-boot. It does look like you can build u-boot on windows using the Xilinx SDK software but I used Linux, maybe building u-boot with Windows will be another blog post. If you’ve been working on a windows machine you’ll need to switch to a Linux machine for these next steps. So in the previous steps we’ve built the bitstream and the first stage bootloader now all we need is to build u-boot and we’ll have something to run on our Zybo.
