This file is part of Zed Tool, see https://qu1x.org/z2l.
Copyright (c) 2016, 2018 Rouven Spreckels n3vu0r@qu1x.org
Zed Tool is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation on 19 November 2007.
Zed Tool is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with Zed Tool. If not, see https://www.gnu.org/licenses.
Workflow kit managing hardware, firmware, and software development.
- Download stable source distribution tarball.
wget https://qu1x.org/file/z2l-1.0.0.tar.xz
- Extract and enter.
tar -xJf z2l-1.0.0.tar.xz
cd z2l-1.0.0
- Install requirements.
sudo apt install git dh-autoreconf \
g++-arm-linux-gnueabihf libpugixml-dev picocom
sudo apt purge brltty
- Clone repository.
git clone https://github.com/qu1x/z2l.git
- Enter and generate latest source distribution.
cd z2l
./bootstrap
- Configure, build, and install.
./configure --sysconfdir=/etc
make
sudo make install
- Keep to uninstall someday.
sudo make uninstall
- Install requirements.
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install tofrodos iproute2 gawk xvfb git make net-tools rlwrap \
libncurses5-dev tftpd zlib1g-dev zlib1g-dev:i386 libssl-dev flex bison \
libselinux1 gnupg wget diffstat chrpath socat xterm autoconf libtool-bin tar \
unzip texinfo build-essential libglib2.0-dev screen pax gzip
- Fix Xilinx PetaLinux 2018.2 installer by copying below
sed
wrapper to/usr/local/bin
. Remove or rename it after installation otherwise you will encounter errors duringpetalinux-build
. See forum post.
#! /bin/sh
# Remove newlines if called by the buggy Xilinx PetaLinux 2018.2 installer.
if [ "$2" = "s/^.*minimal-\(.*\)-toolchain.*/\1/" ] ; then
/bin/sed "$@" | tr '\n' ' '
else
/bin/sed "$@"
fi
- Finally, install it.
sudo mkdir /opt/Xilinx
sudo chown $USER: /opt/Xilinx
chmod +x petalinux-v2018.2-final-installer.run
mkdir -p /opt/Xilinx/PetaLinux/2018.2
./petalinux-v*-final-installer.run /opt/Xilinx/PetaLinux/2018.2
# Install Vivado 2018.2. Exceptionally, it's straightforward.
# For Zynq products you can get a free license from Xilinx.
mkdir ~/.z2l
echo "path/to/license/file.lic/or/licence/server/url" > ~/.z2l/hw.lic
- Tell Zed Tool how to source it if you chose different installation paths.
echo "/opt/Xilinx/PetaLinux/2018.2/settings.sh" > ~/.z2l/fw.src
echo "/opt/Xilinx/Vivado/2018.2/settings64.sh" > ~/.z2l/hw.src
RTFM.
man z2l
z2l-1.0.0 https://qu1x.org/z2l
GNU Affero General Public License version 3
- Copyright (c) 2016, 2018 Rouven Spreckels n3vu0r@qu1x.org