Skip to content

Implement fastboot multiresponce

Svyatoslav Ryhel u-boot 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest7 patches 4 repliesIn review
  2. v66 patches 12 repliesSuperseded
  3. v55 patches 1 replySuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v45 patches2 repliesSuperseded
v35 patches3 repliesSuperseded
v25 patches6 repliesSuperseded
v15 patches10 repliesSuperseded

Changes in v7 from the cover letter

- fix hush/dollar bugs introduced in u-boot/next

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7fastboot: multiresponse supportdrivers/fastboot/fb_command.c drivers/usb/gadget/f_fastboot.c include/fastboot.h +1 more+80 -60 replies
2/7fastboot: implement "getvar all"doc/android/fastboot-protocol.rst drivers/fastboot/fb_command.c drivers/fastboot/fb_getvar.c +1 more+77 -130 replies
3/7common: console: introduce console_record_isempty helpercommon/console.c include/console.h+18 -00 replies
4/7common: console: record console from the beginningcommon/console.c+3 -00 replies
5/7lib: membuff: fix readline not returning line in case of overflowboot/bootmeth_extlinux.c common/console.c include/membuff.h +1 more+7 -60 replies
6/7fastboot: add oem console command supportdoc/android/fastboot.rst drivers/fastboot/Kconfig drivers/fastboot/fb_command.c +1 more+48 -00 replies
7/7test: hush: dollar: fix bagous behaviortest/hush/dollar.c+3 -203 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchMattijs KorpershoekSimon Glass
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b R-b
6/7R-b
7/7T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH v7 0/7] Implement fastboot multiresponce

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 in v7:
- fix hush/dollar bugs introduced in u-boot/next

Changes in v6:
- remove prev console changes
- add console_record_isempty helper
- set record flag on init

Changes in v5:
- restored membuff_readline behavior changed in v4

Changes in v4:
- adjust membuff_readline behavior with overflow

Changes in v3:
- fix missing function calls if CONFIG_CONSOLE_RECORD is not enabled

Changes in v2:
- changed variables to static
- fixed multiresponce for udp
- documented use of "MORE"
- converted #if to if (...)
---

Ion Agorria (7):
fastboot: multiresponse support
fastboot: implement "getvar all"
common: console: introduce console_record_isempty helper
common: console: record console from the beginning
lib: membuff: fix readline not returning line in case of overflow
fastboot: add oem console command support
test: hush: dollar: fix bagous behavior

 boot/bootmeth_extlinux.c          |  2 +-
 common/console.c                  | 10 +++-
 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                 | 13 ++++++
 include/fastboot-internal.h       |  7 +++
 include/fastboot.h                | 19 ++++++++
 include/membuff.h                 |  5 +-
 lib/membuff.c                     |  4 +-
 net/fastboot_udp.c                | 29 +++++++++---
 test/hush/dollar.c                | 23 ++-------
 15 files changed, 236 insertions(+), 45 deletions(-)
Signature · 1 line
2.40.1