zl程序教程

您现在的位置是:首页 >  其它

当前栏目

optee3.18.0 qemu_v8的环境搭建篇(ubuntu20.10)

环境 搭建 V8 QEMU
2023-09-27 14:26:31 时间

快速链接:
.
👉👉👉 个人博客笔记导读目录(全部) 👈👈👈

在这里插入图片描述

前提条件

(1)如下这些工具,是否安装了

 sudo apt-get install android-tools-adb android-tools-fastboot autoconf \
        automake bc bison build-essential ccache cscope curl device-tree-compiler \
        expect flex ftp-upload gdisk iasl libattr1-dev libcap-dev \
        libfdt-dev libftdi-dev libglib2.0-dev libgmp-dev libhidapi-dev \
        libmpc-dev libncurses5-dev libpixman-1-dev libssl-dev libtool make \
        mtools netcat ninja-build  python3-crypto  \
        python3-pycryptodome python3-pyelftools  python3-serial \
        rsync unzip uuid-dev xdg-utils xterm xz-utils zlib1g-dev

(2)你的网络一定要OK,终端能够正常访问github

1、拉取代码

repo init -u https://github.com/OP-TEE/manifest.git -m qemu_v8.xml --repo-url=https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -b 3.18.0

repo sync -j4
在这里插入图片描述

2、下载工具链

make -f toolchain.mk toolchains

在这里插入图片描述

在这里插入图片描述

3、编译

make -f qemu_v8.mk all -j8
在这里插入图片描述

4、运行

make -f qemu_v8.mk run-only
在这里插入图片描述

敲击完运行的命令后,记得按c然后按回车键,接下来就会弹出两个窗口,一个是CA(Linux)窗口,一个是TA(tee)串口
在这里插入图片描述

可以看出optee的版本号是3.18已经在运行了
在这里插入图片描述