Skip to content

Commit 6575258

Browse files
committed
feat: Add Debian-specific information to LVGL OOB docs
Presently, the LVGL OOB page is written under the assumption that the user is using Yocto. For Debian, some of the lines have to be changed. Therefore make those changes. Also add the doc in Debian's tree. Signed-off-by: Suhaas Joshi <[email protected]>
1 parent 215865e commit 6575258

File tree

4 files changed

+75
-18
lines changed

4 files changed

+75
-18
lines changed

configs/AM62LX/AM62LX_debian_toc.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ debian/Building_Debian_Packages
77
debian/How_to_Guides/index_How_to_Guides
88
linux/How_to_Guides/Target/How_To_Enable_M2CC3301_in_linux
99
debian/Demo_User_Guides/index_Demos
10+
system/Demo_User_Guides/TI_LVGL_Demo_User_Guide

source/debian/Demo_User_Guides/index_Demos.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ The default Debian image supports the following demo-applications
1010
:maxdepth: 1
1111

1212
/debian/Demo_User_Guides/Chromium_Browser
13-
13+
/system/Demo_User_Guides/TI_LVGL_Demo_User_Guide

source/devices/AM62LX/debian/Getting_Started_Guide.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ In addition to the EVM itself, the following hardware is needed:
2424
6. USB mouse and Keyboard (For controlling the UI)
2525
7. Ethernet cable (For network access)
2626

27+
.. _processor-sdk-debian-create-sd-card:
28+
2729
Create SD Card using balenaEtcher
2830
---------------------------------
2931

source/linux/Demo_User_Guides/TI_LVGL_Demo_User_Guide.rst

Lines changed: 71 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,43 @@ Hardware Prerequisites
6969
Launching the TI LVGL Demo
7070
**************************
7171

72-
The demo will auto launch upon Linux booting on the EVM. Follow the below instructions to flash the SD card:
72+
.. ifconfig:: CONFIG_sdk in ('SITARA')
7373

74-
1. Flash an SD card with the :file:`tisdk-default-image`. User can download the :file:`tisdk-default-image` wic image from |__SDK_DOWNLOAD_URL__|.
74+
The demo will auto launch upon Linux booting on the EVM. Follow the below instructions to flash the SD card:
75+
76+
1. Flash an SD card with the :file:`tisdk-default-image`. User can download the :file:`tisdk-default-image` wic image from |__SDK_DOWNLOAD_URL__|.
7577
Please follow the instructions from here to :ref:`Flash an SD card <processor-sdk-linux-create-sd-card>`.
7678

77-
2. Insert the flashed SD card to the board, connect the display, mouse/touch-input, ethernet cable, aux cable, jumper wire and power on the EVM.
78-
The TI LVGL Demo will launch automatically when the device is fully booted.
79+
.. ifconfig:: CONFIG_part_variant not in ('AM62LX')
80+
81+
2. Insert the flashed SD card to the board, connect the display, mouse/touch-input, ethernet cable, aux cable, and power on the EVM.
82+
The TI LVGL Demo will launch automatically when the device is fully booted.
83+
84+
.. ifconfig:: CONFIG_part_variant in ('AM62LX')
85+
86+
2. Insert the flashed SD card to the board, connect the display, mouse/touch-input, ethernet cable, aux cable, jumper wire and power on the EVM.
87+
The TI LVGL Demo will launch automatically when the device is fully booted.
88+
89+
.. ifconfig:: CONFIG_sdk in ('DebianSDK')
90+
91+
Upon booting the EVM, Weston is launched automatically. To launch the LVGL demo, refer the following
92+
instructions:
93+
94+
1. Flash an SD card with the :file:`tisdk-debian-trixie` wic image. User can download the wic image from |__SDK_DOWNLOAD_URL__|.
95+
Please follow the instructions from here to :ref:`Flash an SD card <processor-sdk-debian-create-sd-card>`.
96+
97+
.. ifconfig:: CONFIG_sdk not in ('AM62LX')
98+
99+
2. Insert the flashed SD card to the board, connect the display, mouse/touch-input, ethernet cable, aux cable, jumper wire and power the EVM on.
100+
101+
.. ifconfig:: CONFIG_sdk in ('AM62LX')
102+
103+
2. Insert the flashed SD card to the board, connect the display, mouse/touch-input, ethernet cable, aux cable, jumper wire and power the EVM on.
104+
105+
3. Weston is launched on boot. Shut it down with `systemctl stop weston`.
106+
107+
4. Launch the demo by typing `/usr/bin/lvglsim` into the UART command prompt.
108+
79109

80110
**********************
81111
Using the TI LVGL Demo
@@ -176,16 +206,29 @@ To launch the Smart Home HMI demo, click on the `Smart Home` widget in the apps
176206
177207
.. note::
178208

179-
By default CC33xx is configured at boot, so here are the steps that can be followed to enable it:
209+
By default CC33xx is configured at boot, so here are the steps that can be followed to enable it:
210+
211+
.. ifconfig:: CONFIG_sdk in ('SITARA')
212+
213+
.. code-block:: console
214+
215+
root@<machine>:~ systemctl stop ti-lvgl-demo
216+
root@<machine>:~ cd /usr/share/cc33xx
217+
root@<machine>:~ ./sta_start.sh
218+
root@<machine>:~ ./sta_connect.sh -s WPA-PSK -n <SSID> -p <PASSWORD>
219+
root@<machine>:~ udhcpc -i wlan0
220+
root@<machine>:~ systemctl start ti-lvgl-demo
180221
181-
.. code-block:: console
222+
.. ifconfig:: CONFIG_sdk in ('DebianSDK')
182223

183-
$ systemctl stop ti-lvgl-demo
184-
$ cd /usr/share/cc33xx
185-
$ ./sta_start.sh
186-
$ ./sta_connect.sh -s WPA-PSK -n <SSID> -p <PASSWORD>
187-
$ udhcpc -i wlan0
188-
$ systemctl start ti-lvgl-demo
224+
.. code-block:: console
225+
226+
root@<machine>:~ systemctl stop ti-lvgl-demo
227+
root@<machine>:~ cd /usr/share/cc33xx
228+
root@<machine>:~ bash ./sta_start.sh
229+
root@<machine>:~ bash ./sta_connect.sh -s WPA-PSK -n <SSID> -p <PASSWORD>
230+
root@<machine>:~ udhcpc -i wlan0
231+
root@<machine>:~ systemctl start ti-lvgl-demo
189232
190233
For more details on how to enable CC33xx and connect to WiFi, visit :ref:`How to Enable M.2-CC33x1 in Linux <enable_m2cc3301>`
191234

@@ -290,11 +333,22 @@ This widget contains a slide-show on Application Processor Security for AM6X dev
290333
Building the TI LVGL Demo from Sources
291334
**************************************
292335

293-
The TI LVGL Demo is enabled in :file:`tisdk-default-image` yocto filesystem for |__PART_FAMILY_DEVICE_NAMES__| by default. Note, that
294-
the binary itself does not have asset images and slides built in it. :file:`tisdk-default-image` contains the required assets within
295-
:file:`/usr/share/ti-lvgl-demo/*`. Place any additional assets here while making any modifications. Yocto recipe for
296-
building this demo can be found at
297-
`github: ti-lvgl-demo.bb <https://github.com/TexasInstruments/meta-tisdk/blob/scarthgap/recipes-demos/ti-lvgl-demo/ti-lvgl-demo.bb>`__
336+
.. ifconfig:: CONFIG_sdk in ('SITARA')
337+
338+
The TI LVGL Demo is enabled in :file:`tisdk-default-image` yocto filesystem for |__PART_FAMILY_DEVICE_NAMES__| by default. Note, that
339+
the binary itself does not have asset images and slides built in it. :file:`tisdk-default-image` contains the required assets within
340+
:file:`/usr/share/ti-lvgl-demo/`. Place any additional assets here while making any modifications. Yocto recipe for
341+
building this demo can be found at
342+
`github: ti-lvgl-demo.bb <https://github.com/TexasInstruments/meta-tisdk/blob/scarthgap/recipes-demos/ti-lvgl-demo/ti-lvgl-demo.bb>`__
343+
344+
.. ifconfig:: CONFIG_sdk in ('DebianSDK')
345+
346+
The TI LVGL Demo is packaged in :file:`tisdk-debian-trixie` wic image for |__PART_FAMILY_DEVICE_NAMES__| by default. Note, that
347+
the binary itself does not have asset images and slides built in it. :file:`tisdk-debian-trixie` contains the required assets within
348+
:file:`/usr/share/ti-lvgl-demo/`. Place any additional assets here while making any modifications. Debian package
349+
files for building this demo can be found at
350+
`github: ti-lvgl-demo debian package <https://github.com/TexasInstruments/debian-repos/blob/master/ti-lvgl-demo/suite/trixie/debian/>`__
351+
298352

299353
The source code is available at `TI LVGL Demo <https://github.com/TexasInstruments/ti-lvgl-demo.git/>`__ and can be re-compiled with the
300354
following steps:

0 commit comments

Comments
 (0)