【LINUX】STM32MP1笔记2-发行套件

[TOP]

安装

下载安装环境OpenSTLinux distribution

  • 安装repo
PC $> sudo apt-get update
PC $> sudo apt-get install repo
  • 从github同步OpenSTLinux distribution
$ mkdir ~/Distribution-Package
$ cd <working directory path>/Distribution-Package
$ mkdir openstlinux-4.19-thud-mp1-19-10-09 
$ cd openstlinux-4.19-thud-mp1-19-10-09
$ repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-4.19-thud-mp1-19-10-09
$ repo sync

repo init 出现 Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle,由于无法连接谷歌服务器下载源文件(梯子也没用),按照如下方法解决:

sudo mkdir ~/bin
sudo PATH=~/bin:$PATH
sudo git config --global user.name "Your Name"
sudo git config --global user.email "you@example.com"
sudo cd <working directory path>/Distribution-Package/openstlinux-4.19-thud-mp1-19-10-09
sudo git clone https://gerrit-googlesource.lug.ustc.edu.cn/git-repo
sudo cp -r git-repo/repo ~/bin/repo
sudo chmod a+x ~/bin/repo
sudo mkdir .repo
sudo cp -r git-repo .repo/repo
sudo repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-4.19-thud-mp1-19-10-09
sudo repo sync -c -j8

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

安装OpenSTLinux distribution

  • 运行如下代码部署环境,然后同意协议
$ DISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.sh
$ tree
.
└── conf
    ├── bblayers.conf
    ├── conf-notes.txt
    ├── local.conf
    ├── site.conf
    └── templateconf.cfg

1 directory, 5 files

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

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

bison flex//语法分析器生成器
sed // 编辑器
wget curl //下载器
cvs subversion git-core //版本控制
coreutils //shell
unzip //解压zip
texi2html // 转Texinfo  到  HTML 
texinfo //文档系统
docbook-utils //脚本集合
gawk  //awk编程
python-pysqlite2 //SQLite 3的Python接口
diffstat //linux 基础命令
help2man //help --version生成手册页面工具
make //
gcc //
build-essential //提供编译程序必须软件包的列表信息
g++ //
desktop-file-utils //处理桌面信息的程序
chrpath //
libxml2-utils //
xmlto //
docbook //
bsdmainutils //
iputils-ping //
cpio //
python-wand //
python-pycryptopp //
python-crypto //

sudo apt-get install default-jre

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

wget https://github.com/thkukuk/rpcsvc-proto/releases/download/v1.4/rpcsvc-proto-1.4.tar.gz
tar xf rpcsvc-proto-1.4.tar.gz
cd rpcsvc-proto-1.4
./configure
make
make install
  • 生成Starter Package
    glibc库要求glibc2.28-r0
bitbake st-image-weston
  • 按照入门包的安装步骤,将生成的Starter Package,烧写到开发板
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值