博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
poky raspbian安装
阅读量:6036 次
发布时间:2019-06-20

本文共 2272 字,大约阅读时间需要 7 分钟。

安基本包

Ubuntu and Debian

$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \ build-essential chrpath socat libsdl1.2-dev xterm

Fedora

$ sudo dnf install gawk make wget tar bzip2 gzip python3 unzip perl patch \ diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath \ ccache perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue perl-bignum socat \ findutils which SDL-devel xterm

OpenSUSE

$ sudo zypper install python gcc gcc-c++ git chrpath make wget python-xml \ diffstat makeinfo python-curses patch socat libSDL-devel xterm

CentOS

$ sudo yum install gawk make wget tar bzip2 gzip python unzip perl patch \ diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath socat \ perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue SDL-devel xterm

同步poky源代码

git clone https://git.yoctoproject.org/git/poky

进入poky目录同步树莓派代码

git clone https://git.yoctoproject.org/git/meta-raspberrypi

初始化环境

source oe-init-build-env raspberrypi

说明:指定目录raspberrypi

编辑配置文件

vim ./conf/local.conf

MACHINE ??= "raspberrypi2"

注释

#PACKAGECONFIG_append_pn-qemu-native = " sdl"#PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"#ASSUME_PROVIDED += "libsdl-native"

文件末尾增加

GPU_MEN = "16"

说明:16为CPU核数

vim ./conf/bblayers.conf

修改成以下

BBLAYERS ?= " \  /home/gsta/liang/poky/meta \  /home/gsta/liang/poky/meta-yocto \  /home/gsta/liang/poky/meta-yocto-bsp \  /home/gsta/liang/poky/meta-raspberrypi \  "##增加树莓派目录BBLAYERS_NON_REMOVABLE ?= " \  /home/gsta/liang/poky/meta \  /home/gsta/liang/poky/meta-yocto \  "

生成

bitbake rpi-basic-image

注意:同步过程很漫长,同步过程中一定要开启git代理和终端代理

整个同步下来大概有18G

错误处理

bitbake complains if run as rootroot@eb4b9143265d:/work/build-test01# bitbake -k core-image-satoERROR:  OE-core's config sanity checker detected a potential misconfiguration.    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).    Following is the list of potential problems / advisories:    Do not use Bitbake as root.ERROR: Execution of event handler 'check_sanity_eventhandler' failedERROR: Command execution failed: Exited with 1Summary: There were 3 ERROR messages shown, returning a non-zero exit code.root@eb4b9143265d:/work/build-test01#Workaround:$ touch conf/sanity.conf

转载于:https://www.cnblogs.com/QUSIR/p/6337377.html

你可能感兴趣的文章
mac gentoo-prefix安装git svn
查看>>
浅尝异步IO
查看>>
C - Train Problem II——(HDU 1023 Catalan 数)
查看>>
Speak loudly
查看>>
iOS-在项目中引入RSA算法
查看>>
[译] 听说你想学 React.js ?
查看>>
gulp压缩合并js与css
查看>>
块级、内联、内联块级
查看>>
Predicate
查看>>
[面试题记录01]实现一个function sum达到一下目的
查看>>
这个季节的忧伤,点到为止
查看>>
mysql通过配置文件进行优化
查看>>
省级网站群建设关注点
查看>>
工作第四天之采集资源
查看>>
我的友情链接
查看>>
H3CS-WLAN、H3CSE-Security认证考试
查看>>
5.0中redis-cli的集群管理测试
查看>>
TFS 2012研发管理能力(5)
查看>>
四种LaunchMode及其使用场景
查看>>
通过vbs脚本备份数据-本地到异地
查看>>