RZ-G/Chromium: Difference between revisions

From Renesas.info
mNo edit summary
mNo edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:


This page contains information about builds and using Chromium with the Renesas BSP.
This page contains information about building and using Chromium with the Renesas BSP.


== How to build RZ/G2L,G2LC + VLP/Gv3.0.3 + Chromium104.0.5112.101 ==
You can choose between two versions: Chromium v116 and Chromium v109.
* (1) Follow the Release Note and run up to the point before Bitbake. <u>(Release Noteに従い、Bitbake手前まで実行する)</u>
** Please run 3.1 through 3.1(5) of the [https://www.renesas.com/jp/ja/document/rln/rzg-verified-linux-package-v303-release-note-0?r=1467981の3.1から3.1(5)まで実行する https://www.renesas.com/jp/ja/document/rln/rzg-verified-linux-package-v303-release-note-0?r=1467981]. <u>([https://www.renesas.com/jp/ja/document/rln/rzg-verified-linux-package-v303-release-note-0?r=1467981の3.1から3.1(5)まで実行する https://www.renesas.com/jp/ja/document/rln/rzg-verified-linux-package-v303-release-note-0?r=1467981] の3.1から3.1(5)まで実行する)</u>


* (2) Perform the following steps to prepare the recipe for the Chromium build. <u>(以下手順を実行してChromiumビルド用レシピを準備)</u>
Please bare in mind that <u>only Chromium v109 supports GPU Acceleration.</u>
** <code>$ git clone <nowiki>https://github.com/kraj/meta-clang</nowiki> -b clang12</code>
** <code>$ git clone <nowiki>https://github.com/OSSystems/meta-browser.git</nowiki></code>
** <code>$ cd meta-browser</code>
** <code>$ git checkout b8e658b5a4da60a0d297fb7c2cdb7c7c251ec8bf</code>


* (3) Add Chromium build settings to the conf file. <u>(confファイルにChromiumのビルド設定を追記)</u>
==How to build Chromium 116.0.5845.187 for RZ/G2L,LC + VLP/Gv3.0.5==
** <code>$ cd ../build</code>
*(1) Follow "3. Build Instructions"  described in the Release Note until 3.1(5) . 
** <code>$ bitbake-layers add-layer ../meta-clang</code>
** [https://www.renesas.com/us/en/document/rln/rzg-verified-linux-package-v303-release-note-0?r=1467981 RZ/G Verified Linux Package V3.0.3 Release Note (renesas.com)]
** <code>$ bitbake-layers add-layer ../meta-browser/meta-chromium</code>
** <code>$ bitbake-layers add-layer ../meta-openembedded/meta-networking</code>


* (4)Add the following to local.conf.  <u>(local.conf に以下を追記)</u>
*(2) Perform the following steps to prepare the recipe for the Chromium build.
** <code>IMAGE_INSTALL_append = " chromium-ozone-wayland"</code>
<pre style="margin-left: 40px;">
** <code>IMAGE_INSTALL_append = " ntp"</code>
$ git clone https://github.com/kraj/meta-clang -b dunfell-clang14
** <code>IMAGE_INSTALL_append = " ttf-sazanami-gothic ttf-sazanami-mincho "</code>  
$ git clone <nowiki>https://github.com/OSSystems/meta-browser.git</nowiki>
$ cd meta-browser
$ git checkout e75da7cc83393b174220b808d96f8f05ab7ad4d2
$ cd ../
$ rm -rf meta-openembedded/
$ git clone https://github.com/openembedded/meta-openembedded
$ cd meta-openembedded
$ git checkout 116bfe8d5e5851e7fc5424f40da8691a19c5b5ee
</pre>


* (5) bitbake
*(3) Perform the following steps to add Chromium build settings to the configuration file.
** <code>$ MACHINE=smarc-rzg2l bitbake core-image-weston</code>
<pre style="margin-left: 40px;">
$ cd ../build
$ bitbake-layers add-layer ../meta-clang
$ bitbake-layers add-layer ../meta-browser/meta-chromium
$ bitbake-layers add-layer ../meta-openembedded/meta-networking
</pre>


* Chromium startup command
*(4) Add the following lines to local.conf(build/conf/local.conf) manually.
** <code>chromium --no-sandbox --in-process-gpu -kiosk <nowiki>https://XXXXX</nowiki></code>
<pre style="margin-left: 40px;">
IMAGE_INSTALL_append = " chromium-ozone-wayland"
IMAGE_INSTALL_append = " ntp"
IMAGE_INSTALL_append = " ttf-sazanami-gothic ttf-sazanami-mincho "
PREFERRED_VERSION_nodejs-native = "14.%"
</pre>  


Note:Currently, HW codec is not supported and RZ/G2L has limited video playback.
*(5) Run bitbake
<u>(注意:現在、HWcodecが対応しておらず、RZ/G2Lにおいても動画再生に制限があります。)</u>
<pre style="margin-left: 40px;">
$ MACHINE=smarc-rzg2l bitbake core-image-weston
</pre>
 
*Chromium startup command
:: '''⚠️ Note:''' You '''must''' have an input device (USB mouse or touchscreen) plugged in before you start the browser. If you do not, you will get a "Segmentation fault"
<pre style="margin-left: 40px;">
chromium --no-sandbox --in-process-gpu --use-gl=desktop <nowiki>https://XXXXX</nowiki>
</pre>
Note: Currently, the HW codec and the GPU features has not been supported yet.
 
==How to build Chromium 109.0.5414.74 for RZ/G2L,LC VLP/G v3.0.5 update3==
*(1) Follow "2. Build Instructions"  described in Linux Start-up Guide until 2.1(5). Please make sure you have added the required layers: Graphics (RZ/G2L & RZ/G2LC), Video Codec (RZ/G2L).
**[https://www.renesas.com/us/en/document/gde/smarc-evk-rzg2l-rzg2lc-rzg2ul-linux-start-guide-rev101 SMARC EVK of RZ/G2L, RZ/G2LC, RZ/G2UL Linux Start-up Guide Rev.1.01]
 
*(2) Perform the following steps to prepare the recipe for the Chromium build.
<pre style="margin-left: 40px;">
$ git clone https://github.com/kraj/meta-clang -b dunfell-clang12
$ git clone https://github.com/OSSystems/meta-browser.git
$ cd meta-browser
$ cd ..
$ git checkout f2d5539552b54099893a7339cbb2ab46b42ee754
</pre>
 
*(3) Perform the following steps to add Chromium build settings to the configuration file.
<pre style="margin-left: 40px;">
$ cd ../build
$ bitbake-layers add-layer ../meta-clang
$ bitbake-layers add-layer ../meta-browser/meta-chromium
$ bitbake-layers add-layer ../meta-openembedded/meta-networking
</pre>
 
*(4) Add the following lines to local.conf (build/conf/local.conf) manually
<pre style="margin-left: 40px;">
IMAGE_INSTALL_append = " chromium-ozone-wayland"
IMAGE_INSTALL_append = " ntp"
IMAGE_INSTALL_append = " ttf-sazanami-gothic ttf-sazanami-mincho "
PREFERRED_VERSION_nodejs-native = "14.%"
</pre>
For RZ/G2L add these lines, too
<pre style="margin-left: 40px;">
DISTRO_FEATURES_append = " h264enc_lib"
PACKAGECONFIG_pn-chromium-ozone-wayland =" proprietary-codecs"
</pre>
 
*(5) Run bitbake
<pre style="margin-left: 40px;">
$ MACHINE=smarc-rzg2l bitbake core-image-weston
</pre>
 
*Chromium startup command
::'''⚠️ Note:''' You '''must''' have an input device (USB mouse or touchscreen) plugged in before you start the browser. If you do not, you will get a "Segmentation fault"
<pre style="margin-left: 40px;">
chromium --no-sandbox --in-process-gpu --use-gl=desktop <nowiki>https://XXXXX</nowiki>
</pre>

Latest revision as of 13:40, 22 February 2024

This page contains information about building and using Chromium with the Renesas BSP.

You can choose between two versions: Chromium v116 and Chromium v109.

Please bare in mind that only Chromium v109 supports GPU Acceleration.

How to build Chromium 116.0.5845.187 for RZ/G2L,LC + VLP/Gv3.0.5

  • (2) Perform the following steps to prepare the recipe for the Chromium build.
$ git clone https://github.com/kraj/meta-clang -b dunfell-clang14
$ git clone https://github.com/OSSystems/meta-browser.git
$ cd meta-browser
$ git checkout e75da7cc83393b174220b808d96f8f05ab7ad4d2
$ cd ../
$ rm -rf meta-openembedded/
$ git clone https://github.com/openembedded/meta-openembedded
$ cd meta-openembedded
$ git checkout 116bfe8d5e5851e7fc5424f40da8691a19c5b5ee
  • (3) Perform the following steps to add Chromium build settings to the configuration file.
$ cd ../build
$ bitbake-layers add-layer ../meta-clang
$ bitbake-layers add-layer ../meta-browser/meta-chromium
$ bitbake-layers add-layer ../meta-openembedded/meta-networking
  • (4) Add the following lines to local.conf(build/conf/local.conf) manually.
IMAGE_INSTALL_append = " chromium-ozone-wayland"
IMAGE_INSTALL_append = " ntp"
IMAGE_INSTALL_append = " ttf-sazanami-gothic ttf-sazanami-mincho "
PREFERRED_VERSION_nodejs-native = "14.%"
  • (5) Run bitbake
$ MACHINE=smarc-rzg2l bitbake core-image-weston
  • Chromium startup command
⚠️ Note: You must have an input device (USB mouse or touchscreen) plugged in before you start the browser. If you do not, you will get a "Segmentation fault"
chromium --no-sandbox --in-process-gpu --use-gl=desktop https://XXXXX

Note: Currently, the HW codec and the GPU features has not been supported yet.

How to build Chromium 109.0.5414.74 for RZ/G2L,LC VLP/G v3.0.5 update3

  • (2) Perform the following steps to prepare the recipe for the Chromium build.
$ git clone https://github.com/kraj/meta-clang -b dunfell-clang12
$ git clone https://github.com/OSSystems/meta-browser.git
$ cd meta-browser
$ cd ..
$ git checkout f2d5539552b54099893a7339cbb2ab46b42ee754
  • (3) Perform the following steps to add Chromium build settings to the configuration file.
$ cd ../build
$ bitbake-layers add-layer ../meta-clang
$ bitbake-layers add-layer ../meta-browser/meta-chromium
$ bitbake-layers add-layer ../meta-openembedded/meta-networking
  • (4) Add the following lines to local.conf (build/conf/local.conf) manually
IMAGE_INSTALL_append = " chromium-ozone-wayland"
IMAGE_INSTALL_append = " ntp"
IMAGE_INSTALL_append = " ttf-sazanami-gothic ttf-sazanami-mincho "
PREFERRED_VERSION_nodejs-native = "14.%"

For RZ/G2L add these lines, too

DISTRO_FEATURES_append = " h264enc_lib"
PACKAGECONFIG_pn-chromium-ozone-wayland =" proprietary-codecs"
  • (5) Run bitbake
$ MACHINE=smarc-rzg2l bitbake core-image-weston
  • Chromium startup command
⚠️ Note: You must have an input device (USB mouse or touchscreen) plugged in before you start the browser. If you do not, you will get a "Segmentation fault"
chromium --no-sandbox --in-process-gpu --use-gl=desktop https://XXXXX