11
CONFIDENTIAL
DOC-USR-0097-05
____________________________________________________________________________________
Z3 Technology, LLC
♦
100 N. 8th St. STE 250
♦
Lincoln, NE 68508-1369 USA
♦
+1.402.323.0702
UNTARRING AND BUILDING THE SAMPLE CODE
5.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 build-essential bison flex mtd-utils liblzo2-dev uuid-dev
zlib1g-dev libpcre3-dev autoconf autoconf-archive automake libtool libtool-
doc
libc6-dev lynx xutils-dev libncurses5-dev yodl
In Fedora, the command would be:
sudo yum install bison flex mtd-utils mtd-utils-ubi lzo-devel libuuid-devel
pcre-devel automake autoconf libtool
If you are running a 64-bit OS, it may be necessary to install some 32-bit libraries for the cross-compiling
toolchain. You can determine whether your OS is 64-bit by using the “uname –p” command. A 64-bit OS
will return “x86_64,” while a 32-bit OS will return “i386”, “i586”, or “i686”.
For 64-bit Ubuntu, you can get the necessary libraries by typing:
# sudo apt-get install gcc-multilib
# sudo dpkg –-add-architecture i386
# sudo apt-get update
# sudo apt-get install libc6:i386 libncurses5-dev:i386 +6:i386 zlib1g:i386
For 64-bit Fedora, you can type:
# sudo yum install glibc.i686
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)
5.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-HE1080-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/he1080
Copy the released tar archive to that directory (note: the name may slightly vary).
# cp SW-BH1-00643-01_HE1080-20160608.tar.bz2 /home/z3/he1080
Untar the archive (name of tar file may slightly vary):
# tar -xvjf SW-BH1-00643-01_HE1080-20160608.tar.bz2
*Note:
Untarring takes 5 to 10 minutes.