[U-Boot] [PATCH v2 4/7] cmd: Add 'ab_select' command

2018-12-12 Thread Ruslan Trofymenko
from commit [1] with one modification: the separator for specifying the name of metadata partition was changed from ';' to '#', because ';' is used for commands separation. [1] https://android-review.googlesource.com/c/platform/external/u-boot/+/729880/2 Signed-off-by:

[U-Boot] [PATCH v2 7/7] env: am57xx: Implement A/B boot process

2018-12-12 Thread Ruslan Trofymenko
em (and A/B boot is enabled), boot up process will be terminated and next message will be shown: "boot_a(b) partition not found" [1] https://source.android.com/devices/tech/ota/ab [2] https://source.android.com/devices/tech/ota/ab/ab_implement#kernel Signed-off-by: Ruslan Trofymen

[U-Boot] [PATCH v2 6/7] doc: android: Add simple guide for A/B updates

2018-12-12 Thread Ruslan Trofymenko
Add a short documentation for A/B enablement and 'ab_select' command usage. Signed-off-by: Ruslan Trofymenko Reviewed-by: Alistair Strachan Reviewed-by: Sam Protsenko --- Changes in v2: * Сhanges related to command renaming (android_ab_select -> ab_select) doc/README.an

[U-Boot] [PATCH v2 2/7] disk: part: Extend API to get partition info

2018-12-12 Thread Ruslan Trofymenko
[1] https://android-review.googlesource.com/c/platform/external/u-boot/+/729880/2 Signed-off-by: Ruslan Trofymenko Reviewed-by: Alistair Strachan Reviewed-by: Sam Protsenko --- Changes in v2: * Error codes are changed to -EINVAL instead of -1

[U-Boot] [PATCH v2 3/7] common: Implement A/B metadata

2018-12-12 Thread Ruslan Trofymenko
-by: Ruslan Trofymenko Reviewed-by: Sam Protsenko --- Changes in v2: * Function return codes are clarified * Some types and constants are renamed (for compactness) * android_bootloader_message.h is renamed to android_bl_msg.h * 'debug' calls are changed to 'log_debug'

[U-Boot] [PATCH v2 5/7] test/py: Add base test case for A/B updates

2018-12-12 Thread Ruslan Trofymenko
Add sandbox test for 'ab_select' command. Test: ./test/py/test.py --bd sandbox --build -k test_ab Signed-off-by: Ruslan Trofymenko Reviewed-by: Alistair Strachan Reviewed-by: Sam Protsenko --- Changes in v2: * Сhanges related to command renaming * Assertion condition was clari

[U-Boot] [PATCH v2 0/7] android: Implement A/B boot process

2018-12-12 Thread Ruslan Trofymenko
des are clarified (errno using) * Some types constants and files are renamed * Assertion condition is clarified in test case * 'debug' calls are changed to 'log_debug' * The Guide is clarified by the results of changes [1] https://source.android.com/devices/tech/ota/ab

[U-Boot] [PATCH v2 1/7] cmd: part: Add 'number' sub-command

2018-12-12 Thread Ruslan Trofymenko
This sub-command serves for getting the partition index from partition name. Also it can be used to test the existence of specified partition. Signed-off-by: Ruslan Trofymenko Reviewed-by: Alistair Strachan Reviewed-by: Sam Protsenko Reviewed-by: Simon Glass --- Changes in v2: None cmd

Re: [U-Boot] [PATCH 6/7] doc: android: Add simple guide for A/B updates

2018-12-10 Thread Ruslan Trofymenko
Hi Simon, On Thu, 6 Dec 2018 at 03:31, Simon Glass wrote: > > Hi, > > On Tue, 27 Nov 2018 at 12:57, Ruslan Trofymenko > wrote: > > > > Add a short documentation for A/B enablement and 'android_ab_select' > > command usage. > > >

[U-Boot] [PATCH 6/7] doc: android: Add simple guide for A/B updates

2018-11-27 Thread Ruslan Trofymenko
Add a short documentation for A/B enablement and 'android_ab_select' command usage. Signed-off-by: Ruslan Trofymenko --- doc/README.android-ab | 67 +++ 1 file changed, 67 insertions(+) create mode 100644 doc/README.android-ab diff -

[U-Boot] [PATCH 4/7] cmd: Add 'android_ab_select' command

2018-11-27 Thread Ruslan Trofymenko
acted from commit [1] with one modification: the separator for specifying the name of metadata partition was changed from ';' to '#', because ';' is used for commands separation. [1] https://android-review.googlesource.com/c/platform/external/u-boot/+/729880/2

[U-Boot] [PATCH 5/7] test/py: Add base test case for A/B updates

2018-11-27 Thread Ruslan Trofymenko
Add sandbox test for 'android_ab_select' command. Test: ./test/py/test.py --bd sandbox --build -k test_ab Signed-off-by: Ruslan Trofymenko --- configs/sandbox_defconfig | 2 ++ test/py/tests/test_ab.py | 74 +++ 2 files changed, 76

[U-Boot] [PATCH 7/7] env: am57xx: Implement A/B boot process

2018-11-27 Thread Ruslan Trofymenko
ons are not present in system (and A/B boot is enabled), boot up process will be terminated and next message will be shown: "boot_a(b) partition not found" [1] https://source.android.com/devices/tech/ota/ab [2] https://source.android.com/devices/t

[U-Boot] [PATCH 2/7] disk: part: Extend API to get partition info

2018-11-27 Thread Ruslan Trofymenko
[1] https://android-review.googlesource.com/c/platform/external/u-boot/+/729880/2 Signed-off-by: Ruslan Trofymenko --- disk/part.c| 68 ++ include/part.h | 21 ++ 2 files changed, 89 insertions(+) diff --git a/disk/part.c

[U-Boot] [PATCH 3/7] common: Implement A/B metadata

2018-11-27 Thread Ruslan Trofymenko
-by: Ruslan Trofymenko --- common/Kconfig | 10 ++ common/Makefile | 1 + common/android_ab.c | 278 +++ include/android_ab.h | 34 + include/android_bootloader_message.h | 164

[U-Boot] [PATCH 0/7] android: Implement A/B boot process

2018-11-27 Thread Ruslan Trofymenko
ch/ota/ab/ab_implement [2] bootable/recovery/bootloader_message/include/bootloader_message/bootloader_message.h [3] https://lists.denx.de/pipermail/u-boot/2017-April/285841.html Ruslan Trofymenko (7): cmd: part: Add 'number' sub-command disk: part: Extend API to get partition info

[U-Boot] [PATCH 1/7] cmd: part: Add 'number' sub-command

2018-11-27 Thread Ruslan Trofymenko
This sub-command serves for getting the partition index from partition name. Also it can be used to test the existence of specified partition. Signed-off-by: Ruslan Trofymenko --- cmd/part.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/cmd/part.c b/cmd