Lines Matching +full:runs +full:- +full:on
1 .. _torizon-os-section:
6 Torizon OS is an open-source software platform that aims to simplify the
9 By using docker containers it allows developers to focus on the application
13 application that can be deployed on any Toradex device running TorizonOS.
16 -------------
19 More information is available on the Toradex `website <https://www.toradex.com/computer-on-modules>…
25 this guide. Also Docker needs to be present on the development host.
31 -----------
34 Follow the official bring-up `guides <https://developer.toradex.com/quickstart/bringup/>`_.
38 Copy the IP address that was assigned to the device by the DHCP server on your network.
44 -------------------------
46 …`VSCode extension <https://developer.toradex.com/torizon/application-development/ide-extension/>`_…
47 and automate the tasks needed to cross-compile applications and build Docker images.
59 .. code-block:: sh
61 docker run --rm -it --privileged torizon/binfmt
62 docker run --rm -it --pull always --platform linux/arm64/v8 debian arch
66 More information on the build environment for Torizon containers is available `here
67 …eloper.toradex.com/torizon/application-development/working-with-containers/configure-build-environ…
74 .. code-block:: sh
76 mkdir -p ~/lvgl_torizon_os/
80 git clone --depth 1 https://github.com/lvgl/lv_port_linux
81 git -C lv_port_linux submodule update --init
93 Now edit the Dockerfile. Copy-paste the block below into the file:
95 .. code-block::
97 ARG CROSS_SDK_BASE_TAG=3.2.1-bookworm
98 ARG BASE_VERSION=3.2.1-bookworm
110 # BUILD ------------------------------------------------------------------------
111 FROM torizon/debian-cross-toolchain-${IMAGE_ARCH}:${CROSS_SDK_BASE_TAG} AS build
116 RUN apt-get -q -y update && \
117 apt-get -q -y install && \
118 apt-get clean && apt-get autoremove && \
119 apt-get install -q -y curl git cmake file && \
120 rm -rf /var/lib/apt/lists/*
126 RUN CC=aarch64-linux-gnu-gcc cmake -S ./lv_port_linux -B build
127 RUN make -j 4 -C ${APP_ROOT}/build
129 # DEPLOY -----------------------------------------------------------------------
130 FROM --platform=linux/${IMAGE_ARCH} torizon/debian:${BASE_VERSION} AS deploy
135 RUN apt-get -y update && apt-get install -y --no-install-recommends \
136 && apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/*
140 COPY --from=build ${APP_ROOT}/lv_port_linux/bin/lvglsim ${APP_ROOT}
148 …downloads the necessary packages to build the simulator using Debian's package manager ``apt-get``.
152 The ``deploy`` image will be deployed on the device.
159 ``docker build . -t lvgl_app``
162 The ``-t`` argument gives a name to the resulting image.
171 -------------------------------------------
173 The image is now ready to be deployed on the device. There are several ways to perform
176 …//developer.toradex.com/torizon/application-development/working-with-containers/deploying-containe…
178 For this guide, we are going to setup a Docker registry container on the development host
179 which will be accessible from any device on your LAN. The Toradex board being on the same network
184 ``docker run -d -p 5000:5000 --name registry registry:2.7``
186 The ``-d`` flag runs the container in detached mode. The ``-p`` argument specifies the port mapping.
187 The registry container will listen on port ``TCP/5000`` and will map to the same port externally.
191 ``docker tag <IMAGE_ID> 127.0.0.1:5000/lvgl-app``
193 ``docker push 127.0.0.1:5000/lvgl-app``
196 running on the device has to be configured to allow fetching images from an 'insecure' repository.
198 Get the IP address of the development host and open a remote shell on the device.
200 .. code-block:: sh
207 "insecure-registries" : ["<IP_ADDR_OF_DEVELOPMENT_HOST>:5000"]
217 docker pull <IP_ADDR_OF_DEVELOPMENT_HOST>:5000/lvgl-app
222 …developer.toradex.com/torizon/application-development/use-cases/peripheral-access/best-practices-w…
226 By using the ``--device`` argument it is possible to map a device to a container.
230 ``docker run --device /dev/fb0:/dev/fb0 <IMAGE_ID>``
233 ----------
245 …article <https://developer.toradex.com/torizon/application-development/application-development-ove…