ZephyrOS (2.099) 在ubuntu19.04下的安装及运行第一个hello world
去ubuntu官网下载ubuntu19.04
我的实验环境是ubuntu19.04 + vmware15 且没有实验其他环境
安装完VMware15和ubuntu后
打开ubuntu的终端,进入root模式。在安装ubuntu的过程中如果没有设置过root的密码可以使用su password命令设置root密码
这个版本的ubuntu自带python3.7,不用安装
进入root后 执行apt-get install python3-pip安装pip3
之后依次执行以下命令
apt-get update
apt-get upgrade
apt-get install --no-install-recommends git cmake ninja-build gperf
ccache dfu-util device-tree-compiler wget
python3-pip python3-setuptools python3-tk python3-wheel xz-utils file
make gcc gcc-multilib
接下来使用cmake --version命令来确保cmake版本在3.13.1及以上
如果cmake版本不够3.13.1,使用pip3 install cmake更新
接下来使用dtc–version命令来确保dtc版本在1.4.6及以上
其实使用ubuntu19.04就保证了cmake和dtc一定是符合要求的。
下载Zephyr S