https://elinux.org/index.php?title=R-Car/Boards/Yocto-Gen3/Docker&feed=atom&action=history
R-Car/Boards/Yocto-Gen3/Docker - Revision history
2024-03-29T15:08:16Z
Revision history for this page on the wiki
MediaWiki 1.31.0
https://elinux.org/index.php?title=R-Car/Boards/Yocto-Gen3/Docker&diff=525081&oldid=prev
Y.H.: Fix syntax highlight error
2020-09-01T07:43:40Z
<p>Fix syntax highlight error</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 07:43, 1 September 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l70" >Line 70:</td>
<td colspan="2" class="diff-lineno">Line 70:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></syntaxhighlight><br></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></syntaxhighlight><br></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>#: Add the following lines to linux-renesas_4.14.bb.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>#: Add the following lines to linux-renesas_4.14.bb.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>#: <syntaxhighlight></div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>#: <syntaxhighlight <ins class="diffchange diffchange-inline">lang="bash"</ins>></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>SRC_URI_append = " \</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>SRC_URI_append = " \</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>     file://docker-config.cfg \</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>     file://docker-config.cfg \</div></td></tr>
</table>
Y.H.
https://elinux.org/index.php?title=R-Car/Boards/Yocto-Gen3/Docker&diff=525066&oldid=prev
Tkomagata: Created page with "{{Template:R-Car-Gen3-Navbox}} {{TOC right}} Category:R-Car == Introduction == This page contains information to use the Docker engine with Yocto on: * R-Car/Boards/H3S..."
2020-08-31T14:54:19Z
<p>Created page with "{{Template:R-Car-Gen3-Navbox}} {{TOC right}} <a href="/Category:R-Car" title="Category:R-Car">Category:R-Car</a> == Introduction == This page contains information to use the Docker engine with Yocto on: * R-Car/Boards/H3S..."</p>
<p><b>New page</b></p><div>{{Template:R-Car-Gen3-Navbox}}<br />
{{TOC right}}<br />
[[Category:R-Car]]<br />
<br />
== Introduction ==<br />
This page contains information to use the Docker engine with Yocto on:<br />
* [[R-Car/Boards/H3SK | Renesas R-Car-H3 Starter Kit Premier]] (unofficial name - H3ULCB), https://www.renesas.com/us/en/solutions/automotive/adas/solution-kits/r-car-starter-kit.html<br />
* [[R-Car/Boards/M3SK | Renesas R-Car-M3 Starter Kit Pro]] (unofficial name - M3ULCB), https://www.renesas.com/us/en/solutions/automotive/adas/solution-kits/r-car-starter-kit.html<br />
<br />
== Yocto versions ==<br />
[http://git.yoctoproject.org/cgit/cgit.cgi/poky/tag/?id=yocto-2.4.3 Poky-2.4.3] is supported with Yocto v3.21.0.<br/><br />
Specific commits of meta-openembedded and meta-virtualization are required.<br />
<br />
== Host PC ==<br />
Ubuntu 16.04 LTS (64bit) is recommended as OS. 32bit version is not supported. <br/><br />
<br />
== Required packages ==<br />
# Install required packages<br />
#: '''Ubuntu and Debian'''<br />
#:: <syntaxhighlight lang="bash"><br />
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \<br />
build-essential chrpath socat libsdl1.2-dev xterm python-crypto cpio python python3 \<br />
python3-pip python3-pexpect xz-utils debianutils iputils-ping libssl-dev<br />
</syntaxhighlight><br />
#: '''Fedora'''<br />
#:: <syntaxhighlight lang="bash"><br />
sudo yum install gawk make wget tar bzip2 gzip python unzip perl patch \<br />
diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath \<br />
ccache perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue socat \<br />
SDL-devel xterm python-crypto cpio python python3 python3-pip python3-pexpect \<br />
ghc-lzma-conduit iputils openssl<br />
</syntaxhighlight><br />
#: Refer to [http://www.yoctoproject.org/docs/current/yocto-project-qs/yocto-project-qs.html#packages Yocto Project Quick Start] for more information.<br />
<br />
== Building the image for Renesas H3 Starter Kit, M3 Starter Kit ==<br />
=== Build using manual steps ===<br />
# Create a directory and switch to it<br />
#: Warning! Yocto builds require a lot of disk space (up to 100 GB). Make sure you have got enough before starting the build.<br />
#: <syntaxhighlight lang="bash"><br />
mkdir build<br />
cd build<br />
export WORK=`pwd`<br />
</syntaxhighlight><br />
# Clone basic Yocto layers:<br />
#: <syntaxhighlight lang="bash">cd $WORK<br />
git clone git://git.yoctoproject.org/poky<br />
git clone git://git.openembedded.org/meta-openembedded<br />
git clone git://git.linaro.org/openembedded/meta-linaro.git<br />
git clone git://github.com/renesas-rcar/meta-renesas<br />
git clone git://git.yoctoproject.org/meta-virtualization<br />
</syntaxhighlight><br />
# Switch to proper branches/commits<br />
#: <syntaxhighlight lang="bash"><br />
cd $WORK/poky<br />
git checkout -b tmp 7e7ee662f5dea4d090293045f7498093322802cc<br />
cd $WORK/meta-openembedded<br />
git checkout -b tmp 352531015014d1957d6444d114f4451e241c4d23<br />
cd $WORK/meta-linaro<br />
git checkout -b tmp 75dfb67bbb14a70cd47afda9726e2e1c76731885<br />
cd $WORK/meta-renesas<br />
git checkout -b tmp 70d47c56f04a7ee78597770b88de68a59c56a4aa<br />
cd $WORK/meta-virtualization<br />
git checkout -b tmp b704c689b67639214b9568a3d62e82df27e9434f<br />
</syntaxhighlight><br />
# Prepare Kernel configuration files.<br />
#: Download [[File:docker-config_R-Car_v3.21.0.txt]] and copy it into meta-renesas (with renaming *.txt to *.cfg).<br />
#: <syntaxhighlight lang="bash"><br />
cp docker-config_R-Car_v3.21.0.txt $WORK/meta-renesas/meta-rcar-gen3/recipes-kernel/linux/linux-renesas/docker-config.cfg<br />
vi $WORK/meta-renesas/meta-rcar-gen3/recipes-kernel/linux/linux-renesas_4.14.bb<br />
</syntaxhighlight><br><br />
#: Add the following lines to linux-renesas_4.14.bb.<br />
#: <syntaxhighlight><br />
SRC_URI_append = " \<br />
file://docker-config.cfg \<br />
"<br />
</syntaxhighlight><br />
# Setup build environment<br />
#: <syntaxhighlight lang="bash"><br />
cd $WORK<br />
source poky/oe-init-build-env $WORK/build<br />
</syntaxhighlight><br />
# Prepare default configuration files.<br />
#: <syntaxhighlight lang="bash"><br />
cp $WORK/meta-renesas/meta-rcar-gen3/docs/sample/conf/<h3ulcb|m3ulcb>/poky-gcc/bsp/*.conf ./conf/<br />
cd $WORK/build<br />
</syntaxhighlight><br />
# Edit local.conf for the docker requirements:<br />
#: <syntaxhighlight lang="bash"><br />
# Docker presumes systemd<br />
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"<br />
VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"<br />
<br />
# add docker to the image<br />
# connman to manage the networking<br />
IMAGE_INSTALL_append = " docker docker-contrib connman connman-client"<br />
CORE_IMAGE_EXTRA_INSTALL_append = " kernel-modules"<br />
</syntaxhighlight><br />
# Add meta-virtualization layer and dependent layers to bblayers.conf<br />
#: <syntaxhighlight lang="bash"><br />
bitbake-layers add-layer ../meta-openembedded/meta-python<br />
bitbake-layers add-layer ../meta-openembedded/meta-networking<br />
bitbake-layers add-layer ../meta-openembedded/meta-filesystems<br />
bitbake-layers add-layer ../meta-virtualization<br />
</syntaxhighlight><br />
# Start the build<br />
#: <syntaxhighlight lang="bash"><br />
bitbake core-image-minimal<br />
</syntaxhighlight><br />
# Building image can take up to a few hours depending on your host system performance.<br>After the build has been completed successfully, you should see the output similar to:<br />
#: <syntaxhighlight lang="bash"><br />
NOTE: Tasks Summary: Attempted 3801 tasks of which 31 didn't need to be rerun and all succeeded.<br />
</syntaxhighlight><br />
#: and the command prompt should return.<br />
# Bitbake has generated all the necessary files in ./tmp/deploy/images directory. <br/>You can verify its content:<br />
#: <syntaxhighlight lang="bash"><br />
$ ls -1 `find ./tmp/deploy/images/h3ulcb/ -maxdepth 1 -type l -print`<br />
./tmp/deploy/images/h3ulcb/core-image-minimal-h3ulcb.cpio.gz<br />
./tmp/deploy/images/h3ulcb/core-image-minimal-h3ulcb.ext4<br />
./tmp/deploy/images/h3ulcb/core-image-minimal-h3ulcb.manifest<br />
./tmp/deploy/images/h3ulcb/core-image-minimal-h3ulcb.tar.bz2<br />
./tmp/deploy/images/h3ulcb/Image<br />
./tmp/deploy/images/h3ulcb/Image-h3ulcb.bin<br />
./tmp/deploy/images/h3ulcb/Image-r8a7795-es1-h3ulcb.dtb<br />
./tmp/deploy/images/h3ulcb/Image-r8a7795-h3ulcb-4x2g.dtb<br />
./tmp/deploy/images/h3ulcb/Image-r8a7795-h3ulcb.dtb<br />
./tmp/deploy/images/h3ulcb/modules-h3ulcb.tgz<br />
./tmp/deploy/images/h3ulcb/u-boot.bin<br />
./tmp/deploy/images/h3ulcb/u-boot-elf-h3ulcb.srec<br />
./tmp/deploy/images/h3ulcb/u-boot-elf.srec<br />
./tmp/deploy/images/h3ulcb/u-boot-h3ulcb.bin<br />
</syntaxhighlight><br />
#: '''Image''' is a Kernel image, '''*.dtb''' is a blob file, '''core-image-minimal-h3ulcb.tar.bz2''' is the rootfs, '''modules-h3ulcb.tgz''' are kernel modules.<br />
# You can now proceed with [[ R-Car/Boards/Yocto-Gen3/v3.21.0#Running_Yocto_images | "Running Yocto images"]]</div>
Tkomagata