Skip to content

Instantly share code, notes, and snippets.

@thequbit
Created June 25, 2015 17:06
Show Gist options
  • Save thequbit/397c3a5da0a2483f1bc1 to your computer and use it in GitHub Desktop.
Save thequbit/397c3a5da0a2483f1bc1 to your computer and use it in GitHub Desktop.
#!/bin/sh
# build all the things
export PATH=~/Vivado/SDK/2014.4/gnu/arm/lin/bin:$PATH
export CROSS_COMPILE=arm-xilinx-linux-gnueabi-
cd
#git clone https://github.com/Xilinx/u-boot-xlnx
cd u-boot-xlnx
#git checkout Xilinx-v2014.4
make clean
make zynq_zed_config
make
export PATH=~/u-boot-xlnx/tools:$PATH
cd
#git clone https://github.com/Xilinx/linux-xlnx
cd linux-xlnx
git checkout xilinx-v2014.4
make clean
make mrproper
make ARCH=arm xilinx_zynq_defconfig
make ARCH=arm menuconfig
# < here I just take the default, and save >
make ARCH=arm UIMAGE_LOADADDR=0x8000 uImage
make ARCH=arm dtbs
cd
mkdir release
cd release
cp ~/u-boot-xlnx/u-boot ./u-boot.elf
cp ~/linux-xlnx/arch/arm/boot/uImage ./uImage
cp ~/linux-xlnx/arch/arm/boot/dts/zynq-zed.dtb ./zynq-zed.dtb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment