OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 1672|回复: 3

编译 OP-TEE 源码(MP135)

[复制链接]

3

主题

4

帖子

0

精华

新手上路

积分
30
金钱
30
注册时间
2019-12-16
在线时间
7 小时
发表于 2023-6-6 15:02:38 | 显示全部楼层 |阅读模式
1金钱
STM32MP135开发板, 我按照教程,编译 OP-TEE 源码会出错:
  GEN     /home/book/stm32mp135/system/optee/optee-os-stm32mp-3.16.0-stm32mp1-r1/../build/stm32mp135d-atk/core/ta_pub_key.c
Traceback (most recent call last):
  File "scripts/pem_to_pub_c.py", line 71, in <module>
    main()
  File "scripts/pem_to_pub_c.py", line 24, in main
    from cryptography.hazmat.backends import default_backend
ImportError: No module named 'cryptography'
mk/subdir.mk:181: recipe for target '/home/book/stm32mp135/system/optee/optee-os-stm32mp-3.16.0-stm32mp1-r1/../build/stm32mp135d-atk/core/ta_pub_key.c' failed


百度后,又是升级python,又是去升级处理pip以及cryptography,一天操作下来,全都没有效果,麻烦各位帮我诊断一下。。。
另外编译“TF-A”以及“uboot”均一切正常!!!就是op-tee有问题!!!


下面的是我目前升级了电脑上的几种软件的版本号(因为编译有问题,然后才将python从2.7升级上来的,升级后还是不行,看来问题也不是这里):
~/stm32mp135/system/optee/optee-os-stm32mp-3.16.0-stm32mp1-r1$ python --version
Python 3.7.5


~/stm32mp135/system/optee/optee-os-stm32mp-3.16.0-stm32mp1-r1$ pip --version
pip 23.1.2 from /usr/local/lib/python3.7/dist-packages/pip (python 3.7)


~/stm32mp135/system/optee/optee-os-stm32mp-3.16.0-stm32mp1-r1$ pip show Cryptography
WARNING: The directory '/home/book/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Name: cryptography
Version: 3.4.8
Summary: cryptography is a package which provides cryptographic recipes and primitives to Python developers.
Home-page: https://github.com/pyca/cryptography
Author: The Python Cryptographic Authority and individual contributors
Author-email: cryptography-dev@python.org
License: BSD or Apache License, Version 2.0
Location: /home/book/.local/lib/python3.7/site-packages
Requires: cffi
Required-by:




正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

6

主题

200

帖子

0

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
1063
金钱
1063
注册时间
2019-9-19
在线时间
194 小时
发表于 2023-6-12 10:41:36 | 显示全部楼层
执行命令安装库:python -m pip install cryptography
回复

使用道具 举报

6

主题

200

帖子

0

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
1063
金钱
1063
注册时间
2019-9-19
在线时间
194 小时
发表于 2023-6-12 10:48:52 | 显示全部楼层
估计你的python环境有问题,你的pip show指令会提示warning。看看下面正常的:
1.jpg
=======================
出征,嗒嗒嗒——
快点上车!
=======================
回复

使用道具 举报

6

主题

200

帖子

0

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
1063
金钱
1063
注册时间
2019-9-19
在线时间
194 小时
发表于 2023-6-12 10:53:06 | 显示全部楼层
也可以下载资料配套的虚拟机来使用看看:
2.jpg
=======================
出征,嗒嗒嗒——
快点上车!
=======================
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-6-10 13:26

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表