Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 912 Bytes

u-boot-zynq-pynqz1.md

File metadata and controls

52 lines (36 loc) · 912 Bytes

Build U-boot for PYNQ-Z1

There are two ways

  1. run scripts/build-u-boot-zynq-pynqz1.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-zynq-pynqz1
Checkout v2016.03
shell$ cd u-boot-zynq-pynqz1
shell$ git checkout -b u-boot-2016.03-zynq-pynqz1 refs/tags/v2016.03

Patch for zynq-zybo

shell$ patch -p0 < ../files/u-boot-2016.03-zynq-pynqz1.diff
shell$ git add --update
shell$ git commit -m "patch for zynq-pynqz1"

Setup for Build

shell$ cd u-boot-zynq-pynqz1
shell$ export ARCH=arm
shell$ export CROSS_COMPILE=arm-linux-gnueabihf-
shell$ make zynq_pynqz1_defconfig

Build u-boot

shell$ make

Copy boot.bin and u-boot.img to boot/

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