[PATCH v4 0/5] Implement fastboot multiresponce
Svyatoslav Ryhel
clamor95 at gmail.com
Thu Nov 23 12:02:17 CET 2023
Currently u-boot fastboot can only send one message back to host,
so if there is a need to print more than one line messages must be
kept sending until all the required data is obtained. This behavior
can be adjusted using multiresponce ability (getting multiple lines
of response) proposed in this patch set.
Implementation of multiresponce leads to ability to dump content of
console buffer which, with use of "oem run", allows to entirely avoid
need in UART.
---
Changes from v3:
- adjust membuff_readline behavior with overflow
Changes from v2:
- fix missing function calls if CONFIG_CONSOLE_RECORD is not enabled
Changes from v1:
- changed variables to static
- fixed multiresponce for udp
- documented use of "MORE"
- converted #if to if (...)
---
Ion Agorria (5):
fastboot: multiresponse support
fastboot: implement "getvar all"
common: console: introduce overflow and isempty calls
lib: membuff: fix readline not returning line in case of overflow
fastboot: add oem console command support
common/console.c | 15 ++++--
doc/android/fastboot-protocol.rst | 3 ++
doc/android/fastboot.rst | 1 +
drivers/fastboot/Kconfig | 7 +++
drivers/fastboot/fb_command.c | 52 +++++++++++++++++++++
drivers/fastboot/fb_getvar.c | 77 +++++++++++++++++++++++++------
drivers/usb/gadget/f_fastboot.c | 29 ++++++++++++
include/console.h | 26 +++++++++++
include/fastboot-internal.h | 7 +++
include/fastboot.h | 19 ++++++++
lib/membuff.c | 10 ----
net/fastboot_udp.c | 29 +++++++++---
test/ut.c | 9 ++--
13 files changed, 247 insertions(+), 37 deletions(-)
--
2.40.1
More information about the U-Boot
mailing list