メモ
試したこと
yoctoビルド
i.MX_Yocto_Project_User's_Guide.pdf を参照して、以下でビルドに必要なパッケージをインストール
$ sudo apt install gawk wget git diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev $ sudo apt install xterm sed cvs subversion coreutils texi2html docbook-utils python-pysqlite2 help2man make gcc g++ desktop-file-utils libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff curl lzop asciidoc $ sudo apt install u-boot-tools
- i.MX_Yocto_Project_User's_Guide.pdf を参照して、以下でgit レポジトリの管理ツールを準備し、
$ mkdir ~/bin $ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo $ chmod a+x ~/bin/repo
.bashrc に以下を追記して~/binにパスを通す。
export PATH=~/bin:$PATH
- 以下でビルド(bitbake)までを実施。
$ git config --global user.name "Your Name" $ git config --global user.email "Your Email" $ git config --list $ mkdir imx-yocto-bsp $ cd imx-yocto-bsp $ repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-warrior -m imx-4.19.35-1.1.0.xml $ repo sync $ DISTRO=fsl-imx-wayland MACHINE=imx6ull14x14evk source fsl-setup-release.sh -b build-wayland $ bitbake imx-image-full
上記で実施して以下のコメントが表示されたので気づいたのだけれど、
WARNING: You have included the meta-gnome layer, but 'x11' has not been enabled in your DISTRO_FEATURES. Some bbappend files may not take effect. See the meta-gnome README for details on enabling meta-gnome support.
おそらく実施するのは
$ bitbake imx-image-multimedia
で よかった。ドキュメントに記載があるようにiMX 6UltraLiteLiteはimx-image-fullで作成される機能をサポートしていない。
- 最後に以下でSDカードにイメージをコピーして、SDカードからブートできた。
$ # bunzip2 -dk -f imx-image-full-imx6ull14x14evk.wic.bz2 $ # sudo dd if=./imx-image-full-imx6ull14x14evk.wic of=/dev/sdc bs=1M conv=fsync $ bunzip2 -dk -f imx-image-multimedia-imx6ull14x14evk.wic.bz2 $ sudo dd if=./imx-image-multimedia-imx6ull14x14evk.wic of=/dev/mmcblk0 bs=1M conv=fsync
TODO
- SD Card の作成手順をもう少し詳細を記述する
Yocto環境構築
- https://blog.web.nifty.com/engineer/1040
- https://www.yoctoproject.org/docs/2.3.2/ref-manual/ref-manual.html#ref-features-image
- http://mickey-happygolucky.hatenablog.com/entry/2018/11/27/102308
- https://yoctobbq.lineo.co.jp/?q=node/161
- https://pc.watch.impress.co.jp/docs/column/1month-kouza/672565.html