Skip to content

ikwzm/FPGA-SoC-U-Boot-ZYBO-Z7

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

FPGA-SoC-U-Boot-ZYBO-Z7

Overview

Introduction

This Repository provides a U-Boot Image for ZYBO-Z7.

Features

  • U-Boot v2017.11 (customized)
    • Build for ZYBO-Z7
    • Customized boot by uEnv.txt
    • Customized boot by boot.scr
    • Enable bootmenu

Build U-boot for ZYBO-Z7

There are two ways

  1. run scripts/build-u-boot-2017.11-zynq-zybo-z7.sh (easy)
  2. run this chapter step-by-step (annoying)

Download U-boot Source

Clone from git.denx.de/u-boot.git

shell$ git clone git://git.denx.de/u-boot.git u-boot-2017.11-zynq-zybo-z7

Checkout v2017.11

shell$ cd u-boot-2017.11-zynq-zybo-z7
shell$ git checkout -b u-boot-2017.11-zynq-zybo-z7 refs/tags/v2017.11

Patch for zynq-zybo-z7

shell$ patch -p1 < ../files/u-boot-2017.11-zynq-preboot.diff
shell$ git add --update
shell$ git commit -m "[update] for zynq to import uEnv.txt at PREBOOT and to use bootmenu"
shell$ patch -p1 < ../files/u-boot-2017.11-zynq-spi-mac-addr.diff
shell$ git add --update
shell$ git commit -m "[update] for zynq to read mac address from spi"
shell$ patch -p1 < ../files/u-boot-2017.11-zynq-zybo-z7.diff
shell$ git add --update
shell$ git add arch/arm/dts/zynq-zybo-z7.dts
shell$ git add board/xilinx/zynq/zynq-zybo-z7/*
shell$ git add configs/zynq_zybo_z7_defconfig
shell$ git add include/configs/zynq_zybo_z7.h
shell$ git commit -m "[patch] for zynq-zybo-z7"
shell$ git tag -a v2017.11-zynq-zybo-z7-1 -m "Release v2017.11-1 for zynq-zybo-z7"

Setup for Build

shell$ cd u-boot-2017.11-zynq-zybo-z7
shell$ export ARCH=arm
shell$ export CROSS_COMPILE=arm-linux-gnueabihf-
shell$ make zynq_zybo_z7_defconfig

Build u-boot

shell$ make

Copy u-boot.img, u-boot.elf and u-boot-spl.sfp to root directory

shell$ cp spl/boot.bin  ../boot.bin
shell$ cp u-boot.img    ../u-boot.img
shell$ cp u-boot        ../u-boot.elf

About

U-Boot image for ZYBO-Z7

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages