Kunpeng Boostkit for ARM Native Compilation and Installation Guide (AVD) Contents

Total Page:16

File Type:pdf, Size:1020Kb

Kunpeng Boostkit for ARM Native Compilation and Installation Guide (AVD) Contents Kunpeng BoostKit for ARM Native Compilation and Installation Guide (AVD) Issue 16 Date 2021-08-17 HUAWEI TECHNOLOGIES CO., LTD. Copyright © Huawei Technologies Co., Ltd. 2021. All rights reserved. No part of this document may be reproduced or transmitted in any form or by any means without prior written consent of Huawei Technologies Co., Ltd. Trademarks and Permissions and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd. All other trademarks and trade names mentioned in this document are the property of their respective holders. Notice The purchased products, services and features are stipulated by the contract made between Huawei and the customer. All or part of the products, services and features described in this document may not be within the purchase scope or the usage scope. Unless otherwise specified in the contract, all statements, information, and recommendations in this document are provided "AS IS" without warranties, guarantees or representations of any kind, either express or implied. The information in this document is subject to change without notice. Every effort has been made in the preparation of this document to ensure accuracy of the contents, but all statements, information, and recommendations in this document do not constitute a warranty of any kind, express or implied. Issue 16 (2021-08-17) Copyright © Huawei Technologies Co., Ltd. i Kunpeng BoostKit for ARM Native Compilation and Installation Guide (AVD) Contents Contents 1 AVD Security Description.......................................................................................................1 1.1 Overview.................................................................................................................................................................................... 1 1.2 Security Description................................................................................................................................................................ 1 1.2.1 OS Security Update............................................................................................................................................................. 1 1.2.2 QEMU Security Hardening................................................................................................................................................2 1.2.3 Android Security Update................................................................................................................................................... 2 1.2.4 Security Statement About the VNC and ADB............................................................................................................ 2 2 AVD Compilation Guide......................................................................................................... 3 2.1 Introduction............................................................................................................................................................................... 3 2.2 Usage Statement..................................................................................................................................................................... 4 2.3 Environment Requirements................................................................................................................................................. 4 2.4 Preparing the Kunpeng Compilation Environment and Building Components................................................. 5 2.4.1 Preparing the Compilation Environment..................................................................................................................... 6 2.4.2 Building Components in the android-sdk-linux/tools Directory.......................................................................... 6 2.4.3 Building Components in the android-sdk-linux/platform-tools Directory.....................................................11 2.5 Preparing the x86 Compilation Environment and Building Components......................................................... 11 2.5.1 Preparing the Compilation Environment...................................................................................................................11 2.5.2 Building Components in the android-sdk-linux/platforms Directory.............................................................. 12 2.5.3 Building Components in the android-sdk-linux/system-images Directory.................................................... 14 2.5.3.1 Building the system-images Directory of aosp-7.0.0_r35................................................................................ 14 2.5.3.2 Building the system-images Directory of aosp9.0.0_r10.................................................................................. 16 2.5.4 Building the strace Binary File...................................................................................................................................... 18 2.5.4.1 Obtaining the strace File............................................................................................................................................. 19 2.5.4.2 Replacing the strace File..............................................................................................................................................19 2.5.4.3 Verification....................................................................................................................................................................... 19 2.6 Preparing the Target Arm Running Environment...................................................................................................... 20 2.6.1 Building the AVD Environment on the Kunpeng Server...................................................................................... 20 3 AVD Installation Guide (Ubuntu 18.04).......................................................................... 21 3.1 Introduction............................................................................................................................................................................ 21 3.2 Usage Statement...................................................................................................................................................................21 3.3 Environment Requirements............................................................................................................................................... 22 3.4 Configuring the Installation Environment....................................................................................................................24 Issue 16 (2021-08-17) Copyright © Huawei Technologies Co., Ltd. ii Kunpeng BoostKit for ARM Native Compilation and Installation Guide (AVD) Contents 3.4.1 Modifying the Maximum Number of Files Accessed............................................................................................ 24 3.4.2 Configuring the SSH Service.......................................................................................................................................... 25 3.4.3 Updating the APT.............................................................................................................................................................. 25 3.5 Setting Up Android SDK..................................................................................................................................................... 26 3.6 Running and Verifying the AVD.......................................................................................................................................27 3.6.1 Before You Start (GPU)................................................................................................................................................... 27 3.6.2 Creating and Running AVD Using the CLI................................................................................................................ 27 3.6.2.1 Starting the Desktop Service......................................................................................................................................28 3.6.2.2 Creating an AVD.............................................................................................................................................................30 3.6.2.3 Starting an AVD..............................................................................................................................................................32 3.6.2.4 Improving AVD Performance..................................................................................................................................... 36 3.6.3 Creating and Running AVDs in Batches by Using a Script..................................................................................36 3.6.3.1 Batch Starting AVDs with the start_qemu.sh Script.......................................................................................... 36 3.6.3.2 Changing the AVD Resolution................................................................................................................................... 38 3.6.3.3 Deleting an AVD.............................................................................................................................................................38 4 AVD Installation Guide (CentOS 7.6)............................................................................... 40 4.1 Introduction...........................................................................................................................................................................
Recommended publications
  • Linux from Scratch 版本 R11.0-36-中⽂翻译版 发布于 2021 年 9 ⽉ 21 ⽇
    Linux From Scratch 版本 r11.0-36-中⽂翻译版 发布于 2021 年 9 ⽉ 21 ⽇ 由 Gerard Beekmans 原著 总编辑:Bruce Dubbs Linux From Scratch: 版本 r11.0-36-中⽂翻译版 : 发布于 2021 年 9 ⽉ 21 ⽇ 由 由 Gerard Beekmans 原著和总编辑:Bruce Dubbs 版权所有 © 1999-2021 Gerard Beekmans 版权所有 © 1999-2021, Gerard Beekmans 保留所有权利。 本书依照 Creative Commons License 许可证发布。 从本书中提取的计算机命令依照 MIT License 许可证发布。 Linux® 是Linus Torvalds 的注册商标。 Linux From Scratch - 版本 r11.0-36-中⽂翻译版 ⽬录 序⾔ .................................................................................................................................... viii i. 前⾔ ............................................................................................................................ viii ii. 本书⾯向的读者 ............................................................................................................ viii iii. LFS 的⽬标架构 ............................................................................................................ ix iv. 阅读本书需要的背景知识 ................................................................................................. ix v. LFS 和标准 ..................................................................................................................... x vi. 本书选择软件包的逻辑 .................................................................................................... xi vii. 排版约定 .................................................................................................................... xvi viii. 本书结构 .................................................................................................................
    [Show full text]
  • Project Skeleton for Scientific Software
    Computational Photonics Group Department of Electrical and Computer Engineering Technical University of Munich bertha: Project Skeleton for Scientific Software Michael Riesch , Tien Dat Nguyen , and Christian Jirauschek Department of Electrical and Computer Engineering, Technical University of Munich, Arcisstr. 21, 80333 Munich, Germany [email protected] Received: 10 December 2019 / Accepted: 04 March 2020 / Published: 23 March 2020 * Abstract — Science depends heavily on reliable and easy-to-use software packages, such as mathematical libraries or data analysis tools. Developing such packages requires a lot of effort, which is too often avoided due to the lack of funding or recognition. In order to reduce the efforts required to create sustainable software packages, we present a project skeleton that ensures the best software engineering practices from the start of a project, or serves as reference for existing projects. 1 Introduction In a recent essay in Nature [1], a familiar dilemma in science was addressed. On the one hand, science relies heavily on open-source software packages, such as libraries for mathematical operations, implementations of numerical methods, or data analysis tools. As a consequence, those software packages need to work reliably and should be easy to use. On the other hand, scientific software is notoriously underfunded and the required efforts are achieved as side projects or by the scientists working in their spare time. Indeed, a lot of effort has to be invested beyond the work on the actual implementation – which is typically a formidable challenge on its own. This becomes apparent from literature on software engineering in general (such as the influential “Pragmatic Programmer” [2]), and in scientific contexts in particular (e.g., [3–6]).
    [Show full text]
  • Builder Documentation Release 3.26.0
    Builder Documentation Release 3.26.0 Christian Hergert, et al. Sep 13, 2017 Contents 1 Contents 3 1.1 Installation................................................3 1.1.1 via Flatpak...........................................3 1.1.1.1 Command Line....................................3 1.1.2 Local Flatpak Builds......................................4 1.1.3 via JHBuild...........................................4 1.1.3.1 Command Line....................................4 1.1.4 via Release Tarball.......................................5 1.1.5 Troubleshooting.........................................5 1.2 Exploring the Interface..........................................5 1.2.1 Project Greeter.........................................6 1.2.2 Workbench Window......................................6 1.2.3 Header Bar...........................................7 1.2.4 Switching Perspectives.....................................7 1.2.5 Showing and Hiding Panels...................................7 1.2.6 Build your Project........................................7 1.2.7 Editor..............................................9 1.2.8 Autocompletion......................................... 11 1.2.9 Documentation......................................... 11 1.2.10 Splitting Windows....................................... 12 1.2.11 Searching............................................ 14 1.2.12 Preferences........................................... 15 1.2.13 Command Bar.......................................... 16 1.2.14 Transfers...........................................
    [Show full text]
  • Oracle Communications Policy Management Licensing Information User Manual Release 12.5 Copyright © 2011, 2019, Oracle And/Or Its Affiliates
    Oracle® Communications Policy Management Licensing Information User Manual Release 12.5.1 F16918-02 October 2019 Oracle Communications Policy Management Licensing Information User Manual Release 12.5 Copyright © 2011, 2019, Oracle and/or its affiliates. All rights reserved. This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, then the following notice is applicable: U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are “commercial computer software” pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs.
    [Show full text]
  • Conan Documentation Release 1.3.3
    conan Documentation Release 1.3.3 conan Sep 24, 2021 CONTENTS 1 Upgrading to conan 1.0 3 1.1 Command line changes..........................................3 1.2 Deprecations/removals..........................................3 1.3 Settings and profiles. Gcc/CLang versioning..............................4 1.4 New features...............................................4 2 Introduction 5 2.1 Open Source...............................................5 2.2 Decentralized package manager.....................................5 2.3 Binary management...........................................6 2.4 Cross platform, build system agnostic..................................6 2.5 Stable...................................................7 3 Install 9 3.1 Install with pip (recommended).....................................9 3.2 Install from brew (OSX)......................................... 10 3.3 Install from AUR (Arch Linux)..................................... 10 3.4 Install the binaries............................................ 10 3.5 Initial configuration........................................... 10 3.6 Install from source............................................ 11 4 Getting started 13 4.1 A Timer using POCO libraries...................................... 13 4.2 Installing dependencies......................................... 14 4.3 Building the timer example....................................... 16 4.4 Inspecting dependencies......................................... 16 4.5 Searching packages........................................... 17 4.6 Building
    [Show full text]
  • EPICS How-Tos
    EPICS How-Tos Sep 10, 2021 Contents 1 Installation on Linux/UNIX/DARWIN (Mac)1 1.1 What is EPICS about?..........................................1 1.2 Prepare your system...........................................1 1.3 Install EPICS...............................................1 1.4 Test EPICS................................................2 1.5 Create a demo/test ioc to test ca and pva.................................3 1.6 Add the asyn package..........................................4 1.7 Install StreamDevice (by Dirk Zimoch, PSI)..............................5 2 Packages required for EPICS on Centos 87 2.1 Overview.................................................7 2.2 Packages required to build EPICS base.................................8 2.3 Packages required by the sequencer...................................8 2.4 Packages required by epics-modules/asyn................................8 2.5 Packages required by the Canberra and Amptek support in epics-modules/mca............8 2.6 Packages required by the Linux drivers in epics-modules/measComp.................8 2.7 Packages required by areaDetector/ADSupport/GraphicsMagick....................8 2.8 Packages required by areaDetector/ADEiger..............................9 2.9 Packages required to build aravis 7.0.2 for areaDetector/ADAravis...................9 2.10 Packages required to build areaDetector/ADVimba...........................9 2.11 Packages required to build EDM.....................................9 2.12 Packages required to build MEDM...................................9
    [Show full text]
  • Porting Guide
    Kunpeng BoostKit for Database Porting Guide Issue 05 Date 2021-06-30 HUAWEI TECHNOLOGIES CO., LTD. Copyright © Huawei Technologies Co., Ltd. 2021. All rights reserved. No part of this document may be reproduced or transmitted in any form or by any means without prior written consent of Huawei Technologies Co., Ltd. Trademarks and Permissions and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd. All other trademarks and trade names mentioned in this document are the property of their respective holders. Notice The purchased products, services and features are stipulated by the contract made between Huawei and the customer. All or part of the products, services and features described in this document may not be within the purchase scope or the usage scope. Unless otherwise specified in the contract, all statements, information, and recommendations in this document are provided "AS IS" without warranties, guarantees or representations of any kind, either express or implied. The information in this document is subject to change without notice. Every effort has been made in the preparation of this document to ensure accuracy of the contents, but all statements, information, and recommendations in this document do not constitute a warranty of any kind, express or implied. Issue 05 (2021-06-30) Copyright © Huawei Technologies Co., Ltd. i Kunpeng BoostKit for Database Porting Guide Contents Contents 1 MySQL 5.7.27 Porting Guide................................................................................................
    [Show full text]
  • Gestión Del Proyecto Chromium
    Gestión del proyecto Chromium Grupo 7 Evolución y Gestión de la Configuración (EGC) Tabla de control de versiones y cambios Descripción Nº de Autores Revisado Fecha de versión modificación Creación del documento 1.0 Jesús Díaz Sí 21/11/2013 Inserción del mapa de 1.1 Jesús Díaz Sí 28/11/2013 herramientas y creación de índice Integración de partes en el 1.2 Jesús Díaz No 03/12/2013 documento Integración de partes en el 1.3 Jesús Díaz No 03/12/2013 documento Gestión del código y ejercicios 1.4 David Romero, Sí 18/12/2013 Sergio Trigos Algunas correcciones 1.5 Jesús Díaz Sí 19/12/2013 Integración de partes faltantes 1.6 Daniel Platas Sí 22/12/2013 Finalización para versión 1.7 Daniel Platas Sí 23/12/2013 entregable Incluir hoja de cambios 1.8 Jesús Díaz Sí 21/01/2014 Integración de partes 1.9 Daniel Platas Sí 06/02/2014 corregidas y actualización 2.0 Versión Actual: 1.9 Tabla 1: Control de versiones y cambios del documento de memoria 2 ÍNDICE 1 Resumen ......................................................................................................................................................... 5 2 Introducción .................................................................................................................................................... 6 3 Gestión del código fuente ............................................................................................................................. 8 3.1 Ramas .....................................................................................................................................................
    [Show full text]
  • Third Party Software Notices And/Or Additional Terms and Conditions
    Third Party Software Notices and/or Additional Terms and Conditions F20240-501-0240 2019.12.06 This page and/or pages linked from this page contain Third Party Software Notices and/or Additional Terms and Conditions applicable for each Matrox product that may be updated from time to time. It is the responsibility of the Licensee to verify that the agreements listed are current and applicable. Please note that this list is not exhaustive and was determined according to Matrox’s understanding and to the best of its knowledge. Note: Links using the GIT protocol require the use of a GIT tool. For more information, see https://git-scm.com/. Maevex 5100 Series Software Version Software Package Link License Version License Link Apache v2.2.22 http://archive.apache.org/ Apache 2.0 https://www.apache.org/l dist/httpd icenses/LICENSE-2.0 asoundlib (ALSA) v1.0.24.2 http://software- LGPL (Library 2.1 https://www.gnu.org/lice dl.ti.com/dsps/dsps_public General Public nses/old-licenses/lgpl- _sw/ezsdk/latest/index_FD License) 2.1.en.html S.html AutoMapper v3.1.0 https://www.nuget.org/pac MIT No version https://opensource.org/li kages/AutoMapper/ applicable censes/MIT Avahi v0.6.31 http://www.avahi.org/dow LGPL 2.1 https://www.gnu.org/lice nload nses/old-licenses/lgpl- 2.1.en.html Busybox v1.20.2 http://www.busybox.net/d GPL (General 2.0 https://www.gnu.org/lice ownloads Public License) nses/gpl-2.0.en.html Dropbear v0.51 http://matt.ucc.asn.au/dro MIT No version https://opensource.org/li pbear/releases applicable censes/MIT Glib v2.24.2 https://gstreamer.ti.com/gf
    [Show full text]
  • Sangoma Phone EULA 2021.07.26 END-USER LICENSE AGREEMENT for SANGOMA PHONE SOFTWARE and SANGOMA PHONES
    Sangoma Phone EULA 2021.07.26 END-USER LICENSE AGREEMENT FOR SANGOMA PHONE SOFTWARE AND SANGOMA PHONES July 2021 IMPORTANT – PLEASE READ CAREFULLY 1.1 Definitions Affiliate means an entity which is (a) directly or indirectly controlling Sangoma; or (b) which is directly or indirectly owned or controlled by Sangoma. Original Sangoma Phone Software means the software, sounds (for example, ringtones), interfaces, content, fonts, documentation, and any data that are delivered with Sangoma Phones. Sangoma Phones means Sangoma manufactured and branded phones which are hardware devices (inclusive of the Sangoma Phone Software). Sangoma Phone Software collectively means both the Original Sangoma Phone Software and any Sangoma Phone Software Updates. Sangoma Phone Software Updates means updates or replacements provided by Sangoma for the Original Sangoma Phone Software in the form of feature enhancements, software updates, bug fixes, upgrades, otherwise modified versions of the Original Sangoma Phone Software, or system restore software provided by Sangoma, whether in read only memory or on any other media or in any other form. Sangoma means both Sangoma Technologies, Inc. and Sangoma's Affiliates. You, you or your means collectively the licensee, purchaser, and end user. 1.2 This End-User License Agreement (the "Agreement" or "EULA") is a legal agreement between Sangoma and You regarding the license terms of the Original Sangoma Phone Software, the Sangoma Phone Software Updates and the terms of use for Sangoma Phones. By using a Sangoma Phone or downloading a Sangoma Phone Software Update, as applicable, you are agreeing to be bound by the terms of this Agreement. If you do not agree to the terms of this Agreement you may return the Sangoma Phone, subject to the time limitations, unopened requirement, and other restrictions of Sangoma's then current Warranty, Return, and Shipping Policy.
    [Show full text]
  • Detecting Incorrect Build Rules
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Apollo Detecting Incorrect Build Rules Nandor´ Licker, Andrew Rice Department of Computer Science and Technology University of Cambridge Cambridge, UK fnl364, [email protected] Abstract—Automated build systems are routinely used by graphs. Instead of manually specifying arguments to compiler software engineers to minimize the number of objects that need invocations in the macro languages of tools like GNU Make to be recompiled after incremental changes to the source files of [1] or Ninja [2], developers provide brief definitions to build a project. In order to achieve efficient and correct builds, devel- opers must provide the build tools with dependency information file generators such as CMake [3], Autotools [4], and SCons between the files and modules of a project, usually expressed in [5], describing the high-level structure of a project. Build files a macro language specific to each build tool. Most build systems are generated out of these definitions, along with dependency offer good support for well-known languages and compilers, but information extracted by partially parsing the source code as projects grow larger, engineers tend to include source files of languages known to the build system generator. Such generated using custom tools. In order to guarantee correctness, the authors of these tools are responsible for enumerating all generators also permit the integration of custom tools, but the files whose contents an output depends on. Unfortunately, require developers to manually enumerate dependencies. this is a tedious process and not all dependencies are captured When engineers write build definitions manually or integrate in practice, which leads to incorrect builds.
    [Show full text]
  • LFS-BOOK-10.1.Pdf
    Linux From Scratch Version 10.1 Published March 1st, 2021 Created by Gerard Beekmans Managing Editor: Bruce Dubbs Linux From Scratch: Version 10.1 : Published March 1st, 2021 by Created by Gerard Beekmans and Managing Editor: Bruce Dubbs Copyright © 1999-2021 Gerard Beekmans Copyright © 1999-2021, Gerard Beekmans All rights reserved. This book is licensed under a Creative Commons License. Computer instructions may be extracted from the book under the MIT License. Linux® is a registered trademark of Linus Torvalds. Linux From Scratch - Version 10.1 Table of Contents Preface ......................................................................................................................................................................... viii i. Foreword ............................................................................................................................................................ viii ii. Audience ........................................................................................................................................................... viii iii. LFS Target Architectures .................................................................................................................................. ix iv. Prerequisites ........................................................................................................................................................ x v. LFS and Standards .............................................................................................................................................
    [Show full text]