Jump to content

Zynq: Difference between revisions

From HW wiki
Pisa (talk | contribs)
No edit summary
Pisa (talk | contribs)
No edit summary
Line 30: Line 30:
Install Debian ARMhf distribution to the media on x86 host with use of chroot and qemu
Install Debian ARMhf distribution to the media on x86 host with use of chroot and qemu


Preparation of FPGA configuration files
Preparation of FPGA configuration files for direct FPGA configuration by Linux or U-boot requires to prepare <code>system.bif</code>:
 
all:
{
system.bit
}
 
then <code>bootgen</code> is used to prepare binary file


  bootgen -image system.bif -w -process_bitstream bin
  bootgen -image system.bif -w -process_bitstream bin

Revision as of 11:07, 20 May 2016

  • Toolchain for Debian or Ubuntu
echo "deb http://debian.pengutronix.de/debian/ sid main contrib non-free" >/etc/apt/sources.list.d/pengutronix.list
aptitude update
aptitude install oselas.toolchain-2014.12.2-arm-cortexa8-linux-gnueabihf-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized

Build kernel

mkdir zynq
git clone git://rtime.felk.cvut.cz/zynq/linux-build.git
cd linux-build
git submodule update --init

Check that toolchain location matches CROSS_COMPILE variable in build/xlnx_4.0.8-rt6/linux/GNUmakefile. Then invoke

cd build/xlnx_4.0.8-rt6/linux/
make

U-boot arguments for MicroZed board

bootargs=root=/dev/mmcblk0p2 rw console=ttyPS1,115200 earlyprintk

Install Debian ARMhf distribution to the media on x86 host with use of chroot and qemu

Preparation of FPGA configuration files for direct FPGA configuration by Linux or U-boot requires to prepare system.bif:

all:
{
system.bit
}

then bootgen is used to prepare binary file

bootgen -image system.bif -w -process_bitstream bin

Runtime FPGA reconfiguration

cat system.bit.bin > /dev/xdevcfg