当前位置: 首页 > news >正文

Trusty qemu + android环境搭建详细步骤

下载源码

mkdir trusty
cd trusty
repo init -u https://android.googlesource.com/trusty/manifest -b master
repo sync -j32

编译

./trusty/vendor/google/aosp/scripts/build.py generic-arm64

查看编译结果

ls build-root/build-generic-arm64/lk.bin

安装运行依赖

sudo apt install libpixman-1-dev libstdc+±8-dev pkg-config libglib2.0-dev libusb-1.0-0-dev

构建qemu镜像并做测试

trusty/vendor/google/aosp/scripts/build.py qemu-generic-arm64-test-debug

手动运行一个测试

build-root/build-qemu-generic-arm64-test-debug/run --headless --boot-test “com.android.ipc-unittest.ctrl”

启动时使用内核调试输出运行测试运行程序测试

build-root/build-qemu-generic-arm64-test-debug/run-qemu --boot-test “com.android.ipc-unittest.ctrl” --headless --verbose
注意:ATF 会先停用控制台,然后再返回测试运行程序。如需在本地停用此设置,请注释掉 extern

http://www.lryc.cn/news/374314.html

相关文章:

  • 杀戮尖塔游戏
  • Kubernetes (K8s) 和 Spring Cloud 的区别
  • 定个小目标之刷LeetCode热题(21)
  • Oracle 打开钱包 ORA-28368: cannot auto-create wallet
  • 【麒麟虚拟机】NetworkManager没有运行
  • vue之一键部署的shell脚本和它的点.bat文件、海螺AI、ChatGPT
  • pg和oracle的区别
  • Docker:在DockerHub上创建私有仓库
  • 框架的使用
  • Autosar-DEM诊断事件管理流程
  • LabVIEW输送机动态特性参数监测系统
  • 绿色版DirectoryOpus功能强大且高度可定制的Windows文件管理器
  • Cocos Creator,Youtube 小游戏!
  • 分层解耦
  • GenICam标准(六)
  • JavaFX VBox
  • xss+csrf项目实例
  • 速盾:cdn加速怎么计费?
  • Vue3 中 props 与 emit 用法
  • 【python】如何import 另一个路径下的py文件内容
  • C/C++ Adaline自适应线性神经网络算法详解及源码
  • UniApp+Vue3使用Vant-微信小程序组件
  • python IP 端口 socket tcp 介绍
  • 【动态规划】| 路径问题之最小路径和 力扣64
  • 如何在vector中插入和删除元素?
  • 独具韵味的移动端 UI 风格
  • 【SpringBoot】SpringBoot:构建实时聊天应用
  • 基于Matlab的车牌识别停车场出入库计时计费管理系统(含GUI界面)【W6】
  • 大众点评js逆向过程(未完)
  • web前端如何设置单元格:深入解析与实用技巧