Skip to content

Commit e07f5b4

Browse files
author
Mattijs Korpershoek
committed
feat(android): Move ota guide to Foundational_Components
This guide is very generic. Only the BOARD variable is different. To avoid duplicating the guide, move it to the common android project, under Foundational_Components. Signed-off-by: Mattijs Korpershoek <[email protected]>
1 parent 1e48bca commit e07f5b4

File tree

5 files changed

+28
-160
lines changed

5 files changed

+28
-160
lines changed

configs/AM62PX/AM62PX_android_toc.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ devices/AM62PX/android/Application_Notes_Android_Bootloader_SD_Card
88
devices/AM62PX/android/Application_Notes_Android_SD_CARD
99
devices/AM62PX/android/Application_Notes_Android_Dual_Screen
1010
devices/AM62PX/android/Application_Notes_Android_Low_Power
11-
devices/AM62PX/android/Application_Notes_OTA
1211
devices/AM62PX/android/Application_Notes_Camera
1312
devices/AM62PX/android/Application_Notes_Android_Multimedia_Video
1413
devices/AM62PX/android/Application_Notes_Sample_Maps_App
@@ -22,3 +21,4 @@ android/Overview_Flashing
2221
android/Foundational_Components
2322
android/Foundational_Components_Kernel
2423
android/Foundational_Components_Bootloaders
24+
android/Foundational_Components_OTA

configs/AM62X/AM62X_android_toc.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ devices/AM62X/android/Application_Notes_Android_Bootloader_SD_Card
99
devices/AM62X/android/Application_Notes_Android_SD_CARD
1010
devices/AM62X/android/Application_Notes_Android_Dual_Screen
1111
devices/AM62X/android/Application_Notes_Android_Low_Power
12-
devices/AM62X/android/Application_Notes_OTA
1312
devices/AM62X/android/Application_Notes_Camera
1413
devices/AM62X/android/Application_Notes_Simple_UI_App
1514
devices/AM62X/android/Application_Notes_BeaglePlay
@@ -23,3 +22,4 @@ android/Overview_Flashing
2322
android/Foundational_Components
2423
android/Foundational_Components_Kernel
2524
android/Foundational_Components_Bootloaders
25+
android/Foundational_Components_OTA

source/android/Foundational_Components.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ Foundational Components
77

88
Foundational_Components_Kernel
99
Foundational_Components_Bootloaders
10+
Foundational_Components_OTA

source/devices/AM62PX/android/Application_Notes_OTA.rst renamed to source/android/Foundational_Components_OTA.rst

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,23 @@ OTA via ``adb sideload``
3232

3333
#. Reboot to recovery and apply OTA
3434

35+
.. ifconfig:: CONFIG_part_variant in ('AM62X')
36+
37+
.. code-block:: console
38+
39+
$ BOARD=am62x
40+
41+
.. ifconfig:: CONFIG_part_variant in ('AM62PX')
42+
43+
.. code-block:: console
44+
45+
$ BOARD=am62p
46+
3547
.. code-block:: console
3648
3749
$ adb reboot sideload
3850
$ adb wait-for-sideload
39-
$ adb sideload $DIST_DIR/am62p-ota-${USER}.zip
51+
$ adb sideload $DIST_DIR/${BOARD}-ota-${USER}.zip
4052
$ adb reboot
4153
4254
@@ -70,12 +82,23 @@ OTA via Update Engine
7082
7183
#. Update the ota config file. Feel free to change ``$DIST_DIR`` to match your developer environment.
7284

85+
.. ifconfig:: CONFIG_part_variant in ('AM62X')
86+
87+
.. code-block:: console
88+
89+
$ BOARD=am62x
90+
91+
.. ifconfig:: CONFIG_part_variant in ('AM62PX')
92+
93+
.. code-block:: console
94+
95+
$ BOARD=am62p
96+
7397
.. code-block:: console
7498
7599
$ source build/envsetup.sh
76100
$ lunch <BUILD_TARGET>
77101
$ DIST_DIR=dist_output
78-
$ BOARD=am62p
79102
$ bootable/recovery/updater_sample/tools/gen_update_config.py --ab_install NON_STREAMING $DIST_DIR/$BOARD-ota-${USER}.zip $DIST_DIR/$BOARD-ota-${USER}.json file:///data/user/0/com.example.android.systemupdatersample/files/packages/$BOARD-ota-${USER}.zip
80103
81104
.. warning::

source/devices/AM62X/android/Application_Notes_OTA.rst

Lines changed: 0 additions & 156 deletions
This file was deleted.

0 commit comments

Comments
 (0)