你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

STM32MP1发行套件

[复制链接]
STMCU小助手 发布时间:2022-10-4 17:04
下载安装环境OpenSTLinux distribution
安装repo
  1. PC gt; sudo apt-get update
  2. PC gt; sudo apt-get install repo
复制代码
从github同步OpenSTLinux distribution
  1. $ mkdir ~/Distribution-Package
  2. $ cd <working directory path>/Distribution-Package
  3. $ mkdir openstlinux-4.19-thud-mp1-19-10-09
  4. $ cd openstlinux-4.19-thud-mp1-19-10-09
  5. $ repo init -u  -b refs/tags/openstlinux-4.19-thud-mp1-19-10-09
  6. $ repo sync
复制代码
repo init 出现 Cannot get,由于无法连接谷歌服务器下载源文件(梯子也没用),按照如下方法解决:
  1. sudo mkdir ~/bin
  2. sudo PATH=~/bin:$PATH
  3. sudo git config --global user.name "Your Name"
  4. sudo git config --global user.email "you@example.com"
  5. sudo cd <working directory path>/Distribution-Package/openstlinux-4.19-thud-mp1-19-10-09
  6. sudo git clone
  7. sudo cp -r git-repo/repo ~/bin/repo
  8. sudo chmod a+x ~/bin/repo
  9. sudo mkdir .repo
  10. sudo cp -r git-repo .repo/repo
  11. sudo repo init -u  -b refs/tags/openstlinux-4.19-thud-mp1-19-10-09
  12. sudo repo sync -c -j8
复制代码

此过程时间较长,等待同步完成

安装OpenSTLinux distribution
运行如下代码部署环境,然后同意协议
  1. $ DISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.sh
  2. $ tree
  3. .
  4. └── conf
  5.     ├── bblayers.conf
  6.     ├── conf-notes.txt
  7.     ├── local.conf
  8.     ├── site.conf
  9.     └── templateconf.cfg

  10. 1 directory, 5 files
复制代码

本地配置文件路径build-<distro>-<machine>/conf/local.conf ,包含所有本地用户配置
顶层配置文件路径build-<distro>-<machine>/conf/bblayers.conf ,告知BitBake构建的层

安装g++/make编译环境环境
  1. sudo apt update
  2. sudo apt install chrpath g++ gawk gcc make texinfo rpcgen

  3. bison flex//语法分析器生成器
  4. sed // 编辑器
  5. wget curl //下载器
  6. cvs subversion git-core //版本控制
  7. coreutils //shell
  8. unzip //解压zip
  9. texi2html // 转Texinfo  到  HTML
  10. texinfo //文档系统
  11. docbook-utils //脚本集合
  12. gawk  //awk编程
  13. python-pysqlite2 //SQLite 3的Python接口
  14. diffstat //linux 基础命令
  15. help2man //help --version生成手册页面工具
  16. make //
  17. gcc //
  18. build-essential //提供编译程序必须软件包的列表信息
  19. g++ //
  20. desktop-file-utils //处理桌面信息的程序
  21. chrpath //
  22. libxml2-utils //
  23. xmlto //
  24. docbook //
  25. bsdmainutils //
  26. iputils-ping //
  27. cpio //
  28. python-wand //
  29. python-pycryptopp //
  30. python-crypto //

  31. sudo apt-get install default-jre
复制代码

rpcgen编译工具无法安装,按照以下教程手动安装

  1. wget
  2. tar xf rpcsvc-proto-1.4.tar.gz
  3. cd rpcsvc-proto-1.4
  4. ./configure
  5. make
  6. make install
复制代码

生成Starter Package
glibc库要求glibc2.28-r0
  1. bitbake st-image-weston
复制代码

按照入门包的安装步骤,将生成的Starter Package,烧写到开发板
————————————————
版权声明:IntelligeWither

收藏 评论0 发布时间:2022-10-4 17:04

举报

0个回答

所属标签

相似分享

官网相关资源

关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
STM32N6 AI生态系统
STM32MCU,MPU高性能GUI
ST ACEPACK电源模块
意法半导体生物传感器
STM32Cube扩展软件包
关注我们
st-img 微信公众号
st-img 手机版