【问题标题】:Implementation of optee trust os on raspberry pi 3在树莓派 3 上实现 optee 信任操作系统
【发布时间】:2018-03-28 06:00:42
【问题描述】:

我正在尝试使用 Raspbian 操作系统在 Raspberry Pi 3 上实现 OP-TEE 信任操作系统。 OP-TEE 网站提到它同时支持 32 位和 64 位架构,但是当我尝试实现时,它会自动运行与我的 32 位 Raspbian 操作系统不兼容的 aarch64 make 文件。 无论如何要强制 OP-TEE 运行 aarch32 make 文件?

【问题讨论】:

    标签: linux raspberry-pi trust-zone


    【解决方案1】:

    我只尝试为 Juno 板构建 OP-TEE 操作系统,但我相信您的 Makefile 有一个地方可以像我的 Makefile 一样定义交叉编译器:

    class Compiler():
    
        __aa32 = None
        __aa64 = None
    
        def AArch32():
            if not Compiler.__aa32:
                fn = "gcc-linaro-"+AARCH32_COMPILER_VSN+"-x86_64_arm-linux-gnueabihf.tar.xz"
                Compiler.__aa32 = Resource\
                (
                    name="AArch32 compiler",
                    baseurl="http://releases.linaro.org/components/toolchain/"\
                        +"binaries/"+COMPILER_RELEASE+"/arm-linux-gnueabihf/",
                    filename=fn,
                    dstdir="tools/gcc/",
                    md5file=fn+".asc",
                )
            return Compiler.__aa32
    
        def AArch64():
            if not Compiler.__aa64:
                fn = "gcc-linaro-"+AARCH64_COMPILER_VSN+"-x86_64_aarch64-linux-gnu.tar.xz"
                Compiler.__aa64 = Resource\
                (
                    name="AArch64 compiler",
                    baseurl="http://releases.linaro.org/components/toolchain/"\
                        +"binaries/"+COMPILER_RELEASE+"/aarch64-linux-gnu/",
                    filename=fn,
                    dstdir="tools/gcc/",
                    md5file=fn+".asc",
                )
            return Compiler.__aa64
    

    尝试使用 AARCH32 而不是 AARCH64。

    【讨论】:

      最近更新 更多