Ubuntu 16 arm32 on PetaLinux with custom hdf

Basically I needed to load Ubuntu 16.04 on a SBC ARMv7. I listed down the pages I used for references.

Links for custom hdf for fpgma

Links for kernel configuration

Links that I used to troubleshoot:

axi timer bug

Booti issue

PetaLinux 2019.1 Installation Steps on Ubuntu 18.04 64-bit

Xilinx’s PetaLinux installation guide doesn’t give a simple one liner to install all of its dependencies. So I wrote down what I did.

Tried and tested on Ubuntu 18.04 LTS 64-bit (under non-root user)

Key Notes:

  1. Installation takes about 15 minutes on a ssd due to the extraction and copying of data
  2. Takes up about 5 GB of space.
  3. Remember to use a non root user or else the installer will not continue and you have to restart from scratch

Dependencies:

sudo apt-get install gcc-multilib build-essential libsdl1.2-dev libglib2.0-dev python2.7 tofrodos gawk xvfb gcc-4.8 g++-4.8 git make net-tools libncurses5-dev tftpd zlib1g-dev libssl-dev flex bison libselinux1 gpg wget diffstat chrpath socat xterm autoconf libtool tar unzip texinfo zlib1g:i386 libsdl1.2-dev libglib2.0-dev

Installation:

mkdir -p /opt/pkg/petalinux/2019.1
sudo chmod 755 -R /opt
sudo chown admin:admin -R /opt
./petalinux-v2019.1-final-installer.run /opt/pkg/petalinux/2019.1
export PATH="/opt/pkg/petalinux/2019.1/tools/common/petalinux/bin/:$PATH"
source /opt/pkg/petalinux/2019.1/settings.sh

References: