Installing Linux, XSDK, Vivado, and PetaLinux

512 views
Skip to first unread message

Nick Burkitt

unread,
Jul 1, 2016, 2:46:05 PM7/1/16
to snickerdoodle forum
This is copied directly from my notes. I haven't gone over it to ensure accuracy, so all the usual caveats apply.

Download ubuntu iso

http://old-releases.ubuntu.com/releases/14.04.3/

Create bootable USB installer

Use rufus (https://rufus.akeo.ie/) to create bootable USB drive.

Select ISO image using buttons associated with "Create a bootable disk using" UI element.

Use defaults for everything else.

Create second Administrator user, just in case.

Create user using UI, but use shell to assign password, if you want to avoid the UI's password policy.
$ sudo passwd <username>

Update

$ sudo apt-get update

Install additional packages

  • tofrodos
  • iproute2
  • gawk
  • gcc
  • git
  • make
  • net-tools
  • libncurses5-dev
  • tftp
  • zlib1g-dev
  • libssl-dev
  • flex
  • bison
  • libselinux1
    $ sudo apt-get install tofrodos iproute2 gawk gcc git make net-tools libncurses5-dev tftp zlib1g-dev libssl-dev flex bison libselinux1

    Install 32-bit packages

    • lib32z1
    • lib32ncurses5
    • lib32bz2-1.0 (libbz2-1.0:i386 for ubuntu 16.04)
       $ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0

      Install additional packages

      If petalinux-build fails with the following error:

      "arm-none-eabi-gcc: error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS64," install this package:

      $ sudo apt-get install libstdc++6:i386

      Change default shell from dash to bash

      $ sudo dpkg-reconfigure dash

      Select <No> and press ENTER.

      Install FTP server to copy files to ubuntu machine

      Install package

      $ sudo apt-get install vsftpd

      Edit /etc/vsftpd.conf

      uncomment the line

      #write_enable=YES

      Restart service

      $ sudo service vsftpd restart

       

      Download and install Vivado/SDK

      $ sudo mkdir /opt/Xilinx

      $ cd /opt/Xilinx

      $ sudo bash -c 'gzip -d < ~/Downloads/Xilinx_Vivado_SDK_2016.1_0409_1.tar.gz | tar xvf -'

      $ sudo /opt/Xilinx/Xilinx_Vivado_SDK_2016.1_0409_1/xsetup

      $ source /opt/Xilinx/SDK/2016.1/settings64.sh

      Download and install PetaLinux

      $ sudo chmod +x ~/Downloads/petalinux-v2016.1-final-instller.run

      $ sudo ~/Downloads/petalinux-v2016.1-final-installer.run /opt/Xilinx

      For RDP access, install "xfce" desktop.

      From http://www.tweaking4all.com/software/linux-software/use-xrdp-remote-access-ubuntu-14-04/

      Install packages

      $ sudo apt-get update sudo apt-get install xrdp

      $ sudo apt-get install xfce4

      $ sudo apt-get install xfce4-terminal

      $ sudo apt-get install gnome-icon-theme-full tango-icon-theme

      Edit (create) ~/.xsession

      xfce4-session

      Edit /etc/xrdp/startwm.sh

      #!/bin/sh

      if [ -r /etc/default/locale ]; then  

         . /etc/default/locale

         export LANG LANGUAGE

      fi

      startxfce4

      Restart xrdp service

      $ sudo service xrdp restart

      Hack /etc/xrdp/xrdp.ini to allow reconnecting to a previous RDP session.

      http://c-nergy.be/blog/?p=5357

      Under section [xrdp1], change

      port=-1

      to

      port=any-1

      When you log in, pay careful attention to the small window that opens before the desktop appears. Note the port number! Use that the next time you log in.

       

      Reply all
      Reply to author
      Forward
      0 new messages