Skip to content

Commit 4ea5433

Browse files
task-jptronical
authored andcommitted
docs: Update Torizon section in embedded.mdx to match latest changes
- Update prerequisites to Torizon OS 6.0 or later - Remove requirement for Weston container (runs directly on linux/kms) - Update demo variants to show imx8/am62/imx95 GPU-accelerated builds - Remove deprecated Vivante and ARM32 support - Change default demo from printerdemo to energy-monitor - Update docker run commands with new flags and structure - Add descriptions for all available demos
1 parent fc2c13c commit 4ea5433

File tree

1 file changed

+38
-20
lines changed

1 file changed

+38
-20
lines changed

docs/astro/src/content/docs/guide/platforms/embedded.mdx

Lines changed: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,50 +29,68 @@ For C++ applications see [meta-slint](https://github.com/slint-ui/meta-slint) fo
2929
Rust applications work out of the box with Yocto's Rust support.
3030
</TabItem>
3131
<TabItem label="Torizon">
32-
Toradex provides [TorizonCore](https://developer.toradex.com/torizon/), a Linux based platform for its embedded devices that packages applications in docker containers.
32+
Toradex provides [Torizon OS](https://developer.toradex.com/torizon/), a Linux based platform for its embedded devices that packages applications in docker containers.
3333

34-
We provide our demos compiled for Toradex as docker containers.
34+
We provide our demos compiled for Toradex as docker containers with and without GPU acceleration support.
3535

3636
#### Prerequisites
3737

38-
- A device running Torizon
39-
- A running [weston container](https://developer.toradex.com/torizon/5.0/provided-containers/working-with-weston-on-torizoncore)
38+
- A device running Torizon OS 6.0 or later
4039
- SSH access to the Torizon device
40+
- Docker installed on the device
41+
42+
**Note**: The Slint demos run directly on the linux/kms and do not require a Weston container.
4143

4244
#### Running
4345

44-
Our pre-compiled demos are available in four different variants:
46+
Our pre-compiled demos are available in multiple variants optimized for different hardware platforms:
4547

46-
1. Compiled for ARM 32-bit as `armhf` and compiled for ARM 64-bit as `arm64`
47-
2. Compiled with Linux DRI or with support for Vivante GPUs (`-vivante` suffix)
48+
1. **Standard ARM64 without GPU build** (`torizon-demos-arm64`) - Uses software rendering
49+
2. **i.MX8 GPU build** (`torizon-demos-arm64-imx8`) - Optimized for i.MX8 series with GPU acceleration
50+
3. **AM62 GPU build** (`torizon-demos-arm64-am62`) - Optimized for AM62 series with GPU acceleration
51+
4. **i.MX95 GPU build** (`torizon-demos-arm64-imx95`) - Optimized for i.MX95 series with GPU acceleration
4852

4953
A complete list of all containers can be found at
5054

5155
https://github.com/orgs/slint-ui/packages?q=torizon&tab=packages&q=torizon
5256

53-
For example, to run the container on an i.MX8 board with Vivante GPU, use the following command line:
57+
For example, to run the container on an i.MX8 board with GPU, use the following command line:
5458

5559
```
56-
docker run --user=torizon -v /dev:/dev -v /tmp:/tmp --device-cgroup-rule='c 199:* rmw' --device-cgroup-rule='c 226:* rmw' ghcr.io/slint-ui/slint/torizon-demos-arm64-vivante
60+
sudo docker run --rm --privileged \
61+
--user=torizon \
62+
-v /dev:/dev \
63+
-v /tmp:/tmp \
64+
-v /run/udev:/run/udev \
65+
--device-cgroup-rule='c 199:* rmw' \
66+
--device-cgroup-rule='c 226:* rmw' \
67+
--device-cgroup-rule='c 13:* rmw' \
68+
--device-cgroup-rule='c 4:* rmw' \
69+
ghcr.io/slint-ui/slint/torizon-demos-arm64-imx8
5770
```
5871

5972
#### Selecting Demos
6073

61-
By default, the printer demo from /usr/bin is run. The containers however package multiple demos:
74+
By default, the **energy-monitor** demo is run. The containers package multiple demo applications:
6275

63-
* printerdemo
64-
* slide_puzzle
65-
* gallery
66-
* opengl_underlay
67-
* carousel
68-
* todo
69-
* energy-monitor
70-
* home-automation
76+
* **energy-monitor** (default) - Energy monitoring dashboard
77+
* **printerdemo** - 3D printer control interface
78+
* **gallery** - Image gallery with touch navigation
79+
* **slide_puzzle** - Interactive sliding puzzle game
80+
* **opengl_underlay** - OpenGL rendering demonstration
81+
* **carousel** - 3D carousel interface
82+
* **todo** - Task management application
83+
* **weather-demo** - Weather information display (requires API key)
84+
* **home-automation** - Smart home control panel
7185

72-
Run then by specifying them as parameter to `docker run`, for example:
86+
Run a specific demo by specifying it as a parameter to `docker run`, for example:
7387

7488
```
75-
docker run --user=torizon -v /dev:/dev -v /tmp:/tmp --device-cgroup-rule='c 199:* rmw' --device-cgroup-rule='c 226:* rmw' ghcr.io/slint-ui/slint/torizon-demos-arm64-vivante opengl_underlay
89+
sudo docker run --rm --privileged --user=torizon \
90+
-v /dev:/dev -v /tmp:/tmp -v /run/udev:/run/udev \
91+
--device-cgroup-rule='c 199:* rmw' --device-cgroup-rule='c 226:* rmw' \
92+
--device-cgroup-rule='c 13:* rmw' --device-cgroup-rule='c 4:* rmw' \
93+
ghcr.io/slint-ui/slint/torizon-demos-arm64-imx8 printerdemo
7694
```
7795
</TabItem>
7896
</Tabs>

0 commit comments

Comments
 (0)