Chromium Browser
IoT Yocto has integrated a patched version of the open source Chromium browser via a fork of the meta-chromium Yocto layer, with GPU and Video Codec acceleration for the following SoCs:
Genio 510
Genio 700
Genio 1200
Genio 520/720
IoT Yocto provides an image recipe, rity-browser-image, which includes the Chromium browser in the image.
The build time of the rity-browser-image recipe is roughly three times longer than rity-demo-image.
Note
For performance evaluation on Genio EVK, we recommend that you download the prebuilt rity-browser-image binaries
from Download due to the long compile times.
Chromium hardware acceleration enablement is a collaboration between MediaTek and Collabora. The required modifications are being contributed to the upstream projects. This process is ongoing, thus IoT Yocto v25.1 uses forked repositories that include necessary patches for hardware acceleration and system integration. The forked open source repositories are developed and hosted by Collabora:
forked meta-chromium for IoT Yocto.
The Yocto layer above contains the patches applied on top of the Chromium 138.0.7204.293 release tarball.
See patches list here.
The following sections show you how to launch and evaluate performance with prebuilt rity-browser-image binaries
and Genio EVK.
Hardware Setup
Chromium browser is a GUI application that requires a keyboard and pointing device to use. To evaluate it, prepare the following hardware:
Genio 510/700/1200/520/720 EVK
USB keyboard
USB mouse
USB-C hub if using Genio 510/700/520/720 EVK
(optional) USB web camera for video conference and encoding scenarios
(optional) external monitor
Connect the keyboard and mouse to Genio EVK, as shown below:
Connect a USB-C hub to the USB-C PD port, and then connect a keyboard and mouse to the board.
Ports of Genio 510/700-EVK main board
Connect a USB-C hub to the USB-C PD port, and then connect a keyboard and mouse to the board.
Ports of Genio 510/700-EVK main board
Connect a keyboard and mouse to the USB A (USB 3.1 Gen 1) ports.
Ports of Genio 1200-EVK main board
Connect a keyboard and mouse, or a USB hub, to Type-C USB 2.0 P1
and/or USB 3.2 P3.
Ports of Genio 520/720/420-EVK main board
To use an external monitor, follow the instructions in Display .
Flash Image
Download rity-browser-image from Download.
Flash the image to Genio EVK following the instructions in Flash Image to Board.
Configure Audio Output and Input
IoT Yocto v25.1 now integrates PipeWire, which allows Chromium to access audio devices from multiple browser tabs. However, PipeWire also needs extra configuration.
Before running tests that involve audio input or output, ensure the right source and sink
are selected for pipewire by using the wpctl command:
wpctl status
wpctl set-default <id>
Stop sysrepo-cfg Service
To improve the accuracy of CPU measurements with sar, stop the sysrepo-cfg systemd service:
su
systemctl stop sysrepo-cfg
Launch Chromium Browser
After flashing the rity-browser-image to Genio EVK, a graphical desktop
should appear on the display. Follow these steps to launch Chromium browser:
Use the mouse and click the terminal icon on the top-left corner of the displayed desktop. This launches the built-in terminal console.
Connect to the internet. Use the terminal console in step 1 and follow the commands inc Ethernet or on-board Wi-Fi module.
Run the following commands in the terminal console:
chromium
Chromium Command Switches
The chromium command is a wrapper. It has pre-defined command switches to enable hardware acceleration, e.g.
--ozone-platform=wayland.
You may need to adjust the command switches for your product. For example, the --no-sandbox flag allows
Chromium to run as the root user, which is the default user configured in rity-browser-image.
In an actual production image, the root user should be disabled,
and normal users do not need to use the --no-sandbox flag.
Chromium Hardware Acceleration Support
To check which hardware-acceleration features have been enabled, type the following URL in the Chromium browser’s address bar:
chrome://gpu
The report indicates if hardware video decode and encode acceleration is enabled and the backend GPU driver version, as shown below:
Chromium Graphics Feature Status on Genio 700 EVK
This modified version of Chromium enables hardware acceleration for the following formats:
Decode
Encode
H.264
V
V
HEVC(H.265)
V
V
VP8
V
Not Supported
VP9
V
Not Supported
To run Chromium without video decoding and encoding acceleration for comparison purposes, run:
chromium --disable-features=AcceleratedVideoDecoder,AcceleratedVideoEncoder
Browser Use Cases
The Chromium integration in IoT Yocto is a POC (Proof-of-Concept) for hardware acceleration. The following browser use cases are known to work on this Chromium integration, but any other use cases have not been validated.
Visiting a Web Site
Visit https://www.google.com and verify that the Google home page loads properly.
Search for “MediaTek” and scroll the page. It should be reasonably responsive.
File Download
Visit https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/
Scroll down and click on the
debian-12.8.0-amd64-netinst.isoentry to start downloading itThe download succeeds and the downloaded
debian-12.8.0-amd64-netinst.isoshould havesha256sumof04396d12b0f377958a070c38a923c227832fa3b3e18ddc013936ecf492e9fbb3.
Video Decoding
Use the YouTube UI to adjust resolution to 4K and skip ads if necessary. The video playback should be smooth on Genio 1200 and Genio 700.
Right-click in the video area and open “Stats for nerds”
The
Codecsrow should start withvp09If the row starts with
av01, expect degraded performance, sinceav01is not hardware accelerated.
Local File Video Playback
Download https://download.blender.org/demo/movies/BBB/bbb_sunflower_2160p_60fps_normal.mp4.zip and unzip it with the following commands:
curl -o ~/bbb.zip "https://download.blender.org/demo/movies/BBB/bbb_sunflower_2160p_60fps_normal.mp4.zip" unzip ~/bbb.zip -d ~/bbb
Start Chromium and play the downloaded video file in full screen kiosk mode:
chromium --kiosk ~/bbb/bbb_sunflower_2160p_60fps_normal.mp4
WebCodecs Decode
Visit https://w3c.github.io/webcodecs/samples/video-decode-display/
For each of: H264, H265, VP8, VP9:
Select the corresponding entry and start playback
Video contents are displayed properly
Video rendering rate should be higher than 150 FPS
WebCodecs Encode and Decode
Connect a USB webcam to the EVK
Visit https://w3c.github.io/webcodecs/samples/encode-decode-worker/index.html
For each of H264, H265:
Select the corresponding codec entry
Set Encoder Hardware Acceleration Preference: Prefer Hardware
Set Decoder Hardware Acceleration Preference: Prefer Hardware
Set Resolution: Full HD - Press Start - Source captured from the webcam should be displayed smoothly under “Video Source” - Decoded video should be displayed smoothly under “Local Video”
To compare performance between hardware acceleration and software implementation, change the Hardware Acceleration Preference options to Prefer Software.
You can use command-line tools such as htop to observe CPU usage,
or use sar 1 10 to record CPU usage.
As a reference, the following table shows the result comparison between hardware and software codecs on Genio 1200-EVK:
Software Codec
Hardware Accelerated
H.264 Decode
283 FPS
339 FPS
H.265 Decode
Not Supported
339 FPS
VP8 Decode
180 FPS
233 FPS
VP9 Decode
259 FPS
335 FPS
H.264 Encode-Decode Latency
72 ~ 317ms
100 ~ 160ms
WebGL
Press
F11to make fullscreen (1200x1920)Select 5000 fish
Read FPS from the meter on the top left
Observe CPU usage with
sar 1 10
As a reference, on Genio 720 EVK, it reads:
FPS: ~60
CPU usage: ~40%
Known Issues and Limitations
The integrated Chromium browser on IoT Yocto has only been tested with basic scenarios to validate hardware acceleration for video and graphics. The list below collects known issues and limitations:
Chromium browser does not support video playback for DRM (digital rights management) protected content.
Genio 350 EVK is not suitable for running the Chromium browser due to DRAM size and CPU/GPU performance.
On Genio 510 EVK, 4K 60 FPS video playback in the browser is not smooth, due to lower DRAM memory bandwidth.