ARMV8 Fast Models Installation Sierratee__arm

Source: Internet
Author: User
Tags bz2 install openssl openssl
I. Preparation prior to installation

Software Resources:
1.sierratee:open Virtualication Official website provides support arm V8 tee frame, download path for http://openvirtualization.org/downloadsoftware.html.
Note: This software resource needs to be registered for use, but registration will not be checked, you can fill out at random.

2.SierraVisor: Ditto, for this official website provides support arm V8 virtualization function, the installation path follows http://openvirtualization.org/downloadsoftware.html, the concrete compression package is:
1.sdk_sep25_2014_tee.tar.gz TEE and Visor source code
2.TOOLCHAIN_SEP_25_2014.TAR.BZ2 Installation and Use tool
3.rootfs.bz2
4.Linux Linaro 3.14
http://releases.linaro.org/14.03/components/kernel/linux-linaro/linux-linaro-3.14-rc7-2014.03.tar.bz2
5.ROOTFS.TAR.BZ2 Installation Path
http://www.openvirtualization.org/Sep25_2014/rootfs.bz2
6.GCC Linaro aarch64 linux GNU 4.9-2014.07 Linux
Http://releases.linaro.org/14.07/components/toolchain/binaries

Basic Operation File Decompression
Unzip the SDK_Sep25_2014_TEE.tar.gz to a convenient place to operate.

#tar-ZXVF SDK_Sep25_2014_TEE.tar.gz
Two. Compiling the kernel

1.normal Kernel
Move the Linux Linaro 3.14 compression pack to the/trustzone/otz_linux path and unzip

#cp linux-linaro-3.14-rc7-2014.03 trustzone/otz_linux
#tar –xvf linux-linaro-3.14-rc7-2014.03

Rename this decompression file

#mv trustzone/otz_linux/linux-linaro-3.14-rc7-2014.03 Stzone/otz_linux/linux

Move the compressed package rootfs.bz2 and extract it to the Trustzone/otz_linux path:
Note: This compression package I have encountered problems in decompression, you can manually extract, and then use the following command

#tar-XVF Rootfs.tar

Startup script

#sh setup.sh

Setting environment variables

#export Cross_compile=<toolchain installed directory>/bin/aarch64-linux-gnu-
#export path= $PATH: < Toolchain installed directory>/bin/

Go to the/trustzone/otz_linux path to compile

#cd Trustzone/otz_linux
#make

2.secure Kernel
IBID. Setting Environment variables:

#export Cross_compile=<toolchain installed directory>/bin/aarch64-linux-gnu-
#export path= $PATH: < Toolchain installed directory>/bin/

Go to the/TRUSTZONE/TZONE_SDK path, clean up the last compiled file, and then compile:

#cd trustzone/tzone_sdk
#make clean
#make
three. Installation of related software tools

1. Download and install OpenSSL package

Get OpenSSL support, the author installs the version for openssl1.0.1
Installation path: http://www.openssl.org/source/openssl-1.0.1c.tar.gz

Modify the related properties of the makefile in the TZONE_SDK directory, and modify Enable_libcrypt values and Crypto_build values to Y.

Modify the related properties of the Config.package file in the Trustzone/package directory Config_crypto to Y.

Configure environment variables to point cross_compile_newlib and path to available paths

#export cross_compile_newlib=<supplied toolchain installed directory>/bin/arm-none-eabi-
#export PATH=$ PATH: <supplied toolchain installed Directory>/sierra_toolchain/bin

Compiling for otz_linux_32 and TZONE_SDK
Note: The otz_linux_32 does not contain the Linux kernel compression package required in the makefile file, it needs to be downloaded, and the author uses the kernel version linux-2.6.38.7.tar.bz2 set in Makefile. The download path for Linux kernel is as follows:
https://www.kernel.org/pub/linux/kernel/v2.6/

#cd trustzone/otz_linux_32
#make
#cd trustzone/tzone_sdk
#make

2. Install FFmpeg

First download the installation of the compression package, the author is using Ffmpeg.10.1.tar, which is the sierratee with the patch file with the most matching ffmpeg version.

Installation path: http://ffmpeg.org/releases/

However, you still need to modify the Ffmpeg.patch file directory: Trustzone/package/patchs/ffmpeg.patch, the first time made make will appear with a patch patch file Codec_ Names.h file not found error, this is normal, after selecting No to continue make compilation, will compile normally.
Note: This compilation requires aarch64 compilers and ARM-NONE-EABI-GCC to be used at the same time, I recommend the installation of Gcc-arm-none-eabi, when the GCC options do not match when you can switch, by setting Cross_compile_ Newlib the path to the environment variable.

Modify the FFmpeg version file name set in Makefile.ffmpeg and the version is Ffmpeg.10.1.tar.

Start the installation after the modifications are completed:

1. Place the downloaded compressed package under the directory package/storage/
2. Modify the CONFIG_LIBSDL and Config_ffmpeg options in the Packages/config.package file to Y.
3. Set environment variable: Install OpenSSL similar, no longer tired.
4. Execute the following command:

#cd trustzone/otz_linux_32
#make
#cd trustzone/tzone_sdk
#make

Complete the installation!!
Note: ARMV8 's compiled file makefile.in need Otzon_ ffmepg.elf files, which are not actually used in V8 compilation, can be commented out, otherwise the build monitor.elf and Monitor.bin files will not be compiled properly and the tests will not be loaded further.

Four. Install Sierratee

Before installing sierratee you need to install ARMV8 Fast Models, please refer to the author's previous blog for a specific installation tutorial http://blog.csdn.net/u010071291/article/details/49639625

1. Start the Sgcanvas executable file under the Fastmodeltools/bin directory, and start the command as./sgcanvas, Pvlib_home and maxcore_home errors that may occur after startup, maxcore_ The home environment variable is set to the Fastmodelstool path, the pvlib_home environment variable is set to the Fastmodelsportfolio path, and other errors are shown in the previous blog, starting with the following effect:

2. After the successful launch of the project file, sierratee elf files and matching. bin file specified V8 kernel for aemv8a, so I import fastmodelsportfolio_9.4/examples/fvp_ve/build_ Aemv8a/fvp_ve_aemv8a.sgproj file, the effect of the following figure:

3.GCC version has been set up, please do not change, select the project directory under the launch debugger Model, will pop up the following interface:


The monitor.elf and Monitor.bin file paths compiled by the above steps are filled out under application and parameter files, and the two file paths are:
/tzone_sdk/bin/monitor.elf
/tzone_sdk/bin/monitor.bin
Then click OK, pop-up configure Model Parameters form:

If the Error pop-up box is displayed below:

Then the model debugger set the path error, modify the path method to open the >file>preference pop-up form:

Under Application, you can find that the path defaults to $maxview_home/bin/modeldebugger, and the MAXVIEW_HOME environment variable is not set, so there is an error. Modify Model Debugger path, you can start successfully.

The following error occurred after startup:
**

Error starting Model_shell to get parameters for model '/home/qwm/arm/fastmodelsportfolio_9.4/examples/fvp_ve/build_ Aemv8a/linux64-release-gcc-4.4/cadi_system_linux64-release-gcc-4.4.so '.
Check that Model_shell was in PATH

**
After checking the cadi_system_linux64-release-gcc-4.4.so dynamic library path is correct, it is model_shell problem, but the author after checking that the set path is not wrong, should add Model_shell path to Path, The specific orders are as follows:

#export path= $PATH: <the PATH of Fastmodelstools>/bin

But still not resolved the problem, after the query fast Models Users guide learned that the launch of the Model_shell need gdb more than 6.2 version of support, the author is using Ubuntu 14.04, not installed GDB. The installation method and installation path are as follows:
Installation path: http://ftp.gnu.org/gnu/gdb/
Installation method:
1. Unzip the downloaded compressed package:

Tar jxvf gdb7.6.tar.bz2

2. Initialize and compile:

#./configure--target=arm-linux--prefix=/home/qwm-v
 #make

Where the installation path is set in prefix.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.