[PATCH 2/2] fastboot: Implement generic fastboot_set_reboot_flag

2020-09-06 Thread Roman Kovalivskyi
, then bcb_set_reboot_reason would simply return error, so it won't introduce any new behaviour for such targets. Signed-off-by: Roman Kovalivskyi --- drivers/fastboot/fb_common.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/fastboot/fb_common.c b/drivers/fastboot

[PATCH 4/7] cmd: bcb: Expose 'bcb_write_reboot_reason' to external callers

2020-09-06 Thread Roman Kovalivskyi
0f9f6 ("recovery: Add "boot-fastboot" command to BCB.") [4] https://android.googlesource.com/platform/system/core/+/5e98b633a748695f ("init: Write the reason in BCB on "reboot recovery"") Signed-off-by: Eugeniu Rosca Signed-off-by: Rom

[PATCH 5/7] cmd: bcb: Add support for processing const string literals in bcb_set()

2020-09-06 Thread Roman Kovalivskyi
(). [1] http://u-boot.10912.n7.nabble.com/PATCH-v2-0-2-Add-bcb-command-to-read-modify-write-Android-BCB-td369934i20.html#a370456 Cc: Simon Glass Signed-off-by: Eugeniu Rosca Signed-off-by: Roman Kovalivskyi --- cmd/bcb.c | 17 - include/bcb.h | 4 ++-- 2 files changed, 14

[PATCH 6/7] Revert "fastboot: Add default fastboot_set_reboot_flag implementation"

2020-09-06 Thread Roman Kovalivskyi
commit introduces new generic implementation of fastboot_set_reboot_flag. Signed-off-by: Roman Kovalivskyi --- drivers/fastboot/Kconfig | 12 -- drivers/fastboot/Makefile | 1 - drivers/fastboot/fb_bcb_impl.c | 43 -- include/fastboot.h

[PATCH 7/7] fastboot: Implement generic fastboot_set_reboot_flag

2020-09-06 Thread Roman Kovalivskyi
, then bcb_set_reboot_reason would simply return error, so it won't introduce any new behaviour for such targets. Signed-off-by: Roman Kovalivskyi --- drivers/fastboot/fb_common.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/fastboot/fb_common.c b/drivers/fastboot

[PATCH 2/7] cmd: bcb: Extract '__bcb_set' from 'do_bcb_set' for internal needs

2020-09-06 Thread Roman Kovalivskyi
/caller-friendly prototype (i.e. do not force the caller to wrap an integer into a string). This second patch makes '__bcb_set' available for internal needs. No functional change intended. Signed-off-by: Eugeniu Rosca Signed-off-by: Roman Kovalivskyi --- cmd/bcb.c | 17 +++-- 1 file

[PATCH 1/2] Revert "fastboot: Add default fastboot_set_reboot_flag implementation"

2020-09-06 Thread Roman Kovalivskyi
commit introduces new generic implementation of fastboot_set_reboot_flag. Signed-off-by: Roman Kovalivskyi --- drivers/fastboot/Kconfig | 12 -- drivers/fastboot/Makefile | 1 - drivers/fastboot/fb_bcb_impl.c | 43 -- include/fastboot.h

[PATCH 3/7] cmd: bcb: Extract '__bcb_store' from 'do_bcb_store' for internal needs

2020-09-06 Thread Roman Kovalivskyi
/caller-friendly prototype (i.e. do not force the caller to wrap an integer into a string). This third patch makes '__bcb_store' available for internal needs. No functional change intended. Signed-off-by: Eugeniu Rosca Signed-off-by: Roman Kovalivskyi --- cmd/bcb.c | 9 +++-- 1 file changed

[PATCH 0/7] Refactor generic fastboot_set_reboot_flag implementation

2020-09-06 Thread Roman Kovalivskyi
cmd: bcb: Expose 'bcb_write_reboot_reason' to external callers cmd: bcb: Add support for processing const string literals in bcb_set() Roman Kovalivskyi (2): Revert "fastboot: Add default fastboot_set_reboot_flag implementation" fastboot: Implement generic fastboot_set_reboot_

[PATCH 1/7] cmd: bcb: Extract '__bcb_load' from 'do_bcb_load' for internal needs

2020-09-06 Thread Roman Kovalivskyi
/caller-friendly prototype (i.e. do not force the caller to wrap an integer into a string). This first patch makes '__bcb_load' available for internal needs. No functional change, except for a tiny update in error handling. Signed-off-by: Eugeniu Rosca Signed-off-by: Roman Kovalivskyi --- cmd

[PATCH 0/1] Add support for booting into userspace fastboot

2020-05-27 Thread Roman Kovalivskyi
Android 10 adds support for dynamic partitions and in order to support them userspace fastboot must be used[1]. New tool called fastbootd is included into recovery image. Userspace fastboot works from recovery and is launched if: 1) - Dynamic partitioning is enabled 2) - Boot control block has

[PATCH 1/1] fastboot: add support for 'reboot fastboot' command

2020-05-27 Thread Roman Kovalivskyi
/bootloader/fastbootd#unified_fastboot_and_recovery [3] - https://source.android.com/devices/bootloader/fastbootd#modifications_to_the_bootloader Signed-off-by: Roman Kovalivskyi Signed-off-by: Roman Stratiienko Change-Id: I9d2bdc9a6f6f31ea98572fe155e1cc8341e9af76 --- drivers/fastboot/fb_command.c

Re: [PATCH 1/1] fastboot: add support for 'reboot fastboot' command

2020-06-01 Thread Roman Kovalivskyi
On 27.05.20 15:56, Alex Kiernan wrote: > On Wed, May 27, 2020 at 12:14 PM Roman Kovalivskyi > wrote: >> From: Roman Stratiienko >> >> Android 10 adds support for dynamic partitions and in order to support >> them userspace fastboot must be used[1]. New

[RESEND 7/7] fastboot: Implement generic fastboot_set_reboot_flag

2020-10-23 Thread Roman Kovalivskyi
, then bcb_set_reboot_reason would simply return error, so it won't introduce any new behaviour for such targets. Signed-off-by: Roman Kovalivskyi --- drivers/fastboot/fb_common.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/fastboot/fb_common.c b/drivers/fastboot

[RESEND 5/7] cmd: bcb: Add support for processing const string literals in bcb_set()

2020-10-23 Thread Roman Kovalivskyi
(). [1] http://u-boot.10912.n7.nabble.com/PATCH-v2-0-2-Add-bcb-command-to-read-modify-write-Android-BCB-td369934i20.html#a370456 Cc: Simon Glass Signed-off-by: Eugeniu Rosca Signed-off-by: Roman Kovalivskyi --- cmd/bcb.c | 17 - include/bcb.h | 4 ++-- 2 files changed, 14

[RESEND 4/7] cmd: bcb: Expose 'bcb_write_reboot_reason' to external callers

2020-10-23 Thread Roman Kovalivskyi
0f9f6 ("recovery: Add "boot-fastboot" command to BCB.") [4] https://android.googlesource.com/platform/system/core/+/5e98b633a748695f ("init: Write the reason in BCB on "reboot recovery"") Signed-off-by: Eugeniu Rosca Signed-off-by: Rom

[RESEND 1/7] cmd: bcb: Extract '__bcb_load' from 'do_bcb_load' for internal needs

2020-10-23 Thread Roman Kovalivskyi
/caller-friendly prototype (i.e. do not force the caller to wrap an integer into a string). This first patch makes '__bcb_load' available for internal needs. No functional change, except for a tiny update in error handling. Signed-off-by: Eugeniu Rosca Signed-off-by: Roman Kovalivskyi --- cmd

[RESEND 6/7] Revert "fastboot: Add default fastboot_set_reboot_flag implementation"

2020-10-23 Thread Roman Kovalivskyi
commit introduces new generic implementation of fastboot_set_reboot_flag. Signed-off-by: Roman Kovalivskyi --- drivers/fastboot/Kconfig | 12 -- drivers/fastboot/Makefile | 1 - drivers/fastboot/fb_bcb_impl.c | 43 -- include/fastboot.h

[RESEND 3/7] cmd: bcb: Extract '__bcb_store' from 'do_bcb_store' for internal needs

2020-10-23 Thread Roman Kovalivskyi
/caller-friendly prototype (i.e. do not force the caller to wrap an integer into a string). This third patch makes '__bcb_store' available for internal needs. No functional change intended. Signed-off-by: Eugeniu Rosca Signed-off-by: Roman Kovalivskyi --- cmd/bcb.c | 9 +++-- 1 file changed

[RESEND 2/7] cmd: bcb: Extract '__bcb_set' from 'do_bcb_set' for internal needs

2020-10-23 Thread Roman Kovalivskyi
/caller-friendly prototype (i.e. do not force the caller to wrap an integer into a string). This second patch makes '__bcb_set' available for internal needs. No functional change intended. Signed-off-by: Eugeniu Rosca Signed-off-by: Roman Kovalivskyi --- cmd/bcb.c | 17 +++-- 1 file

[RESEND 0/7] Refactor generic fastboot_set_reboot_flag implementation

2020-10-23 Thread Roman Kovalivskyi
cmd: bcb: Expose 'bcb_write_reboot_reason' to external callers cmd: bcb: Add support for processing const string literals in bcb_set() Roman Kovalivskyi (2): Revert "fastboot: Add default fastboot_set_reboot_flag implementation" fastboot: Implement generic fastboot_set_reboot_

[PATCH v4 0/3] Add support for booting into userspace fastboot

2020-06-22 Thread Roman Kovalivskyi
...@globallogic.com/ [5] - http://patchwork.ozlabs.org/project/uboot/cover/cover.1591254465.git.roman.kovalivs...@globallogic.com/ [6] - http://patchwork.ozlabs.org/project/uboot/cover/cover.1591806433.git.roman.kovalivs...@globallogic.com/ Roman Kovalivskyi (3): fastboot: Extend

[PATCH v4 2/3] fastboot: Add support for 'reboot fastboot' command

2020-06-22 Thread Roman Kovalivskyi
] - https://source.android.com/devices/bootloader/fastbootd [2] - https://source.android.com/devices/bootloader/fastbootd#unified_fastboot_and_recovery [3] - https://source.android.com/devices/bootloader/fastbootd#modifications_to_the_bootloader Signed-off-by: Roman Kovalivskyi Signed-off-by: Roman

[PATCH v4 3/3] fastboot: Add default fastboot_set_reboot_flag implementation

2020-06-22 Thread Roman Kovalivskyi
lease note that FASTBOOT_USE_BCB_SET_REBOOT_FLAG is mutually exclusive with some platforms which already have their own implementation of this function. Signed-off-by: Roman Kovalivskyi --- drivers/fastboot/Kconfig | 12 + drivers/fastboot/Makefile | 1 + drivers/fastboot/fb_bcb_i

[PATCH v4 1/3] fastboot: Extend fastboot_set_reboot_flag with reboot reason

2020-06-22 Thread Roman Kovalivskyi
Extend fastboot_set_reboot_flag arguments with reboot reason so that it could handle different reboot cases in future. Signed-off-by: Roman Kovalivskyi --- arch/arm/mach-meson/board-common.c | 6 +- arch/arm/mach-rockchip/board.c | 6 +- board/amazon/kc1/kc1.c | 6

[PATCH v3 0/3] Add support for booting into userspace fastboot

2020-06-10 Thread Roman Kovalivskyi
#modifications_to_the_bootloader [4] - http://patchwork.ozlabs.org/project/uboot/cover/cover.1590539734.git.roman.kovalivs...@globallogic.com/ [5] - http://patchwork.ozlabs.org/project/uboot/cover/cover.1591254465.git.roman.kovalivs...@globallogic.com/ Roman Kovalivskyi (3): fastboot: Extend

[PATCH v3 1/3] fastboot: Extend fastboot_set_reboot_flag with reboot reason

2020-06-10 Thread Roman Kovalivskyi
Extend fastboot_set_reboot_flag arguments with reboot reason so that it could handle different reboot cases in future. Signed-off-by: Roman Kovalivskyi --- arch/arm/mach-meson/board-common.c | 6 +- arch/arm/mach-rockchip/board.c | 6 +- board/amazon/kc1/kc1.c | 6

[PATCH v3 2/3] fastboot: Add support for 'reboot fastboot' command

2020-06-10 Thread Roman Kovalivskyi
] - https://source.android.com/devices/bootloader/fastbootd [2] - https://source.android.com/devices/bootloader/fastbootd#unified_fastboot_and_recovery [3] - https://source.android.com/devices/bootloader/fastbootd#modifications_to_the_bootloader Signed-off-by: Roman Kovalivskyi Signed-off-by: Roman

[PATCH v3 3/3] fastboot: Add default fastboot_set_reboot_flag implementation

2020-06-10 Thread Roman Kovalivskyi
lease note that FASTBOOT_USE_BCB_SET_REBOOT_FLAG is mutually exclusive with some platforms which already have their own implementation of this function. Signed-off-by: Roman Kovalivskyi --- drivers/fastboot/Kconfig | 9 +++ drivers/fastboot/Makefile | 1 + drivers/fastboot/fb_bcb_i

[PATCH v2 1/2] fastboot: add support for 'reboot fastboot' command

2020-06-04 Thread Roman Kovalivskyi
into recovery mode. [1] - https://source.android.com/devices/bootloader/fastbootd [2] - https://source.android.com/devices/bootloader/fastbootd#unified_fastboot_and_recovery [3] - https://source.android.com/devices/bootloader/fastbootd#modifications_to_the_bootloader Signed-off-by: Roman

[PATCH v2 0/2] Add support for booting into userspace fastboot

2020-06-04 Thread Roman Kovalivskyi
/cover/cover.1590539734.git.roman.kovalivs...@globallogic.com/ Roman Kovalivskyi (1): fastboot: add default fastboot_set_reboot_flag implementation Roman Stratiienko (1): fastboot: add support for 'reboot fastboot' command arch/arm/mach-meson/board-common.c | 7 - arch/arm/mach-rockchip

[PATCH v2 2/2] fastboot: add default fastboot_set_reboot_flag implementation

2020-06-04 Thread Roman Kovalivskyi
lease note that FASTBOOT_USE_BCB_SET_REBOOT_FLAG is mutually exclusive with some platforms which already have their own implementation of this function. Signed-off-by: Roman Kovalivskyi --- drivers/fastboot/Kconfig | 9 + drivers/fastboot/fb_common.c | 36 +++

[PATCH v5 0/3] Add support for booting into userspace fastboot

2020-07-28 Thread Roman Kovalivskyi
/project/uboot/cover/cover.1591254465.git.roman.kovalivs...@globallogic.com/ [6] - http://patchwork.ozlabs.org/project/uboot/cover/cover.1591806433.git.roman.kovalivs...@globallogic.com/ [7] - http://patchwork.ozlabs.org/project/uboot/cover/cover.1592871839.git.roman.kovalivs...@globallogic.com/ Roman

[PATCH v5 1/3] fastboot: Extend fastboot_set_reboot_flag with reboot reason

2020-07-28 Thread Roman Kovalivskyi
Extend fastboot_set_reboot_flag arguments with reboot reason so that it could handle different reboot cases in future. Signed-off-by: Roman Kovalivskyi --- arch/arm/mach-meson/board-common.c | 6 +- arch/arm/mach-rockchip/board.c | 6 +- board/amazon/kc1/kc1.c | 6

[PATCH v5 2/3] fastboot: Add support for 'reboot fastboot' command

2020-07-28 Thread Roman Kovalivskyi
] - https://source.android.com/devices/bootloader/fastbootd [2] - https://source.android.com/devices/bootloader/fastbootd#unified_fastboot_and_recovery [3] - https://source.android.com/devices/bootloader/fastbootd#modifications_to_the_bootloader Signed-off-by: Roman Kovalivskyi Signed-off-by: Roman

[PATCH v5 3/3] fastboot: Add default fastboot_set_reboot_flag implementation

2020-07-28 Thread Roman Kovalivskyi
lease note that FASTBOOT_USE_BCB_SET_REBOOT_FLAG is mutually exclusive with some platforms which already have their own implementation of this function. Signed-off-by: Roman Kovalivskyi --- drivers/fastboot/Kconfig | 12 ++ drivers/fastboot/Makefile | 1 + drivers/fastboot/fb_bcb_i

Re: [RESEND 6/7] Revert "fastboot: Add default fastboot_set_reboot_flag implementation"

2021-01-25 Thread Roman Kovalivskyi
it reverts that implementtion in order to bring a new cleaner one. Next commit introduces new generic implementation of fastboot_set_reboot_flag. Signed-off-by: Roman Kovalivskyi --- drivers/fastboot/Kconfig | 12 -- drivers/fastboot/Makefile | 1 - drivers/fastboot

[PATCH v2 1/7] cmd: bcb: Extract '__bcb_load' from 'do_bcb_load' for internal needs

2021-01-26 Thread Roman Kovalivskyi
/caller-friendly prototype (i.e. do not force the caller to wrap an integer into a string). This first patch makes '__bcb_load' available for internal needs. No functional change, except for a tiny update in error handling. Signed-off-by: Eugeniu Rosca Signed-off-by: Roman Kovalivskyi --- cmd

[PATCH v2 3/7] cmd: bcb: Extract '__bcb_store' from 'do_bcb_store' for internal needs

2021-01-26 Thread Roman Kovalivskyi
/caller-friendly prototype (i.e. do not force the caller to wrap an integer into a string). This third patch makes '__bcb_store' available for internal needs. No functional change intended. Signed-off-by: Eugeniu Rosca Signed-off-by: Roman Kovalivskyi --- cmd/bcb.c | 9 +++-- 1 file changed

[PATCH v2 0/7] Refactor generic fastboot_set_reboot_flag implementation

2021-01-26 Thread Roman Kovalivskyi
'do_bcb_store' for internal needs cmd: bcb: Expose 'bcb_write_reboot_reason' to external callers cmd: bcb: Add support for processing const string literals in bcb_set() Roman Kovalivskyi (2): Revert "fastboot: Add default fastboot_set_reboot_flag implementation" fastboot:

[PATCH v2 2/7] cmd: bcb: Extract '__bcb_set' from 'do_bcb_set' for internal needs

2021-01-26 Thread Roman Kovalivskyi
/caller-friendly prototype (i.e. do not force the caller to wrap an integer into a string). This second patch makes '__bcb_set' available for internal needs. No functional change intended. Signed-off-by: Eugeniu Rosca Signed-off-by: Roman Kovalivskyi --- cmd/bcb.c | 17 +++-- 1 file

[PATCH v2 4/7] cmd: bcb: Expose 'bcb_write_reboot_reason' to external callers

2021-01-26 Thread Roman Kovalivskyi
0f9f6 ("recovery: Add "boot-fastboot" command to BCB.") [4] https://android.googlesource.com/platform/system/core/+/5e98b633a748695f ("init: Write the reason in BCB on "reboot recovery"") Signed-off-by: Eugeniu Rosca Signed-off-by: Rom

[PATCH v2 7/7] fastboot: Implement generic fastboot_set_reboot_flag

2021-01-26 Thread Roman Kovalivskyi
, then bcb_set_reboot_reason would simply return error, so it won't introduce any new behaviour for such targets. Signed-off-by: Roman Kovalivskyi --- drivers/fastboot/fb_common.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/fastboot/fb_common.c b/drivers/fastboot

[PATCH v2 6/7] Revert "fastboot: Add default fastboot_set_reboot_flag implementation"

2021-01-26 Thread Roman Kovalivskyi
commit introduces new generic implementation of fastboot_set_reboot_flag. Signed-off-by: Roman Kovalivskyi --- drivers/fastboot/Kconfig | 12 -- drivers/fastboot/Makefile | 1 - drivers/fastboot/fb_bcb_impl.c | 43 -- include/fastboot.h

[PATCH v2 5/7] cmd: bcb: Add support for processing const string literals in bcb_set()

2021-01-26 Thread Roman Kovalivskyi
(). [1] http://u-boot.10912.n7.nabble.com/PATCH-v2-0-2-Add-bcb-command-to-read-modify-write-Android-BCB-td369934i20.html#a370456 Cc: Simon Glass Signed-off-by: Eugeniu Rosca Signed-off-by: Roman Kovalivskyi --- cmd/bcb.c | 17 - include/bcb.h | 4 ++-- 2 files changed, 14