public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/2] am335x_boneblack: Enable fastboot flash support
@ 2018-02-27 21:45 Sam Protsenko
  2018-02-27 21:45 ` [U-Boot] [PATCH 1/2] omap: Fix AM335x build with enabled fastboot flash Sam Protsenko
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Sam Protsenko @ 2018-02-27 21:45 UTC (permalink / raw)
  To: u-boot

Standard and recommended way to upgrade the firmware is DFU. But DFU has
extremely low transmission speed (around 150 KiB/sec), thus it's a bad
fit for flashing big images (like rootfs). Low DFU speed is mostly due to
next reasons (kudos to Ruslan Bilovol for investigation):
 1. DFU works only via EP0, per DFU specification [1]. But AM335x
    doesn't have DMA for EP0, according to AM335x TRM [2]: from
    section 16.2:

      "The CPPI DMA can be used to service Endpoints 1 to 15 not
       Endpoint 0. CPU access method is used to service Endpoint 0
       transactions."

 2. Max transmission packet size via EP0 is 64 bytes, whereas for other
    endpoints max transmission packet size is 512 bytes

fastboot specification [3], on the other hand, says nothing about which
EP should be used (and I see that EP1 is used on BBB board). So let's
enable fastboot flash support on BeagleBone Black board to provide a
better way to flash big images via USB.

[1] www.usb.org/developers/docs/devclass_docs/DFU_1.1.pdf
[2] www.ti.com/lit/ug/spruh73p/spruh73p.pdf
[3] https://android.googlesource.com/platform/system/core/+/master/fastboot/README.md

Sam Protsenko (2):
  omap: Fix AM335x build with enabled fastboot flash
  configs: am335x_boneblack: Enable fastboot flash capability

 arch/arm/mach-omap2/utils.c        | 2 ++
 configs/am335x_boneblack_defconfig | 2 ++
 2 files changed, 4 insertions(+)

-- 
2.16.1

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-03-14 14:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-27 21:45 [U-Boot] [PATCH 0/2] am335x_boneblack: Enable fastboot flash support Sam Protsenko
2018-02-27 21:45 ` [U-Boot] [PATCH 1/2] omap: Fix AM335x build with enabled fastboot flash Sam Protsenko
2018-02-27 21:56   ` Lukasz Majewski
2018-02-27 21:58   ` Tom Rini
2018-03-14 14:10   ` [U-Boot] [U-Boot, " Tom Rini
2018-02-27 21:45 ` [U-Boot] [PATCH 2/2] configs: am335x_boneblack: Enable fastboot flash capability Sam Protsenko
2018-02-27 21:57   ` Lukasz Majewski
2018-02-27 21:58   ` Tom Rini
2018-03-14 14:10   ` [U-Boot] [U-Boot, " Tom Rini
2018-02-27 21:56 ` [U-Boot] [PATCH 0/2] am335x_boneblack: Enable fastboot flash support Lukasz Majewski
2018-02-27 23:38   ` Sam Protsenko
2018-02-27 23:54     ` Lukasz Majewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox