15
CONFIDENTIAL
DOC-USR-0239-04
____________________________________________________________________________________
Z3 Technology, LLC
♦
100 N. 8th St. STE 250
♦
Lincoln, NE 68508-1369 USA
♦
+1.402.323.0702
10.0
UNTARRING AND BUILDING THE SAMPLE CODE
10.1
Preparing the Linux Environment
Prior to building the Z3 code, certain modules are required. In Ubuntu 16.04 or later, the following
command can be used to get the required modules:
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \
xz-utils debianutils iputils-ping libsdl1.2-dev xterm repo moreutils gettext \
libxml-simple-perl zip
For Ubuntu change shell from dash to bash:
#
sudo dpkg-reconfigure dash
Then select “No” when it asks if “dash” should be the system shell (this will cause /bin/sh to be linked
to “bash”
instead).
10.2
Making the Directories and Running the Make Script
The software provided will allow you to re-create the pre-installed software of the Z3-Q603-RPS starting
from the included code.
On a PC running Linux, create a directory where the released materials are going to be located:
# mkdir /home/z3/q603-rps
Copy the released tar archive to that directory (note: the name may slightly vary).
# cp SW-Q03-01015-01_20201222.tar.bz2 /home/z3/q603-rps
Untar the archive (name of tar file may slightly vary):
# tar -xvjf SW-Q03-01015-01_20201222.tar.bz2
*Note
: Untarring may take up to 10 minutes.
Go into the directory just created and run the build script (directory name may slightly vary):
# cd SW-Q03-01015-01_20201222
# make universe
*Note
: Building can take around 120 minutes.
*Note
: See
Appendix
B
for instructions to speed up the build process.
The outcome of the build process should be newly created image files in the
image’s
directory. You can
confirm this by doing the following:
# cd scripts/z3-img
# ls -alt
The output will look like the following note that filenames, dates, and times will differ. See section 15.0
for installation methods.