From patchwork Tue Feb 27 21:45:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 129868 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp296160lja; Tue, 27 Feb 2018 13:45:14 -0800 (PST) X-Google-Smtp-Source: AH8x225W+VTDcYNiYrg6PQWYt0xo2JJLQl/NqxyplJQRbGnepH5jNCDJwfge26y/hPY8+J1SCxp5 X-Received: by 10.80.152.80 with SMTP id h16mr20188772edb.113.1519767914837; Tue, 27 Feb 2018 13:45:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519767914; cv=none; d=google.com; s=arc-20160816; b=DNtBs+q+WqAZkS073F/X+x0dteCtXnI4spjYr30+btyQsJcu1EEE0QihBv9mQTRyO3 H7PsOJ6iyr/1livepHqOHk/98tpC4fKsq3DULKOZMbMy3e9zEo14+dPn2Vs7flmujr5H S68Rt/8H8f4t6mxuS5x0iVxXTBMBTul52n7u2zhrENyd1tow5BY9uegCLtKs34isY9Q0 1k3el92qQIoMsGhHhZKx75ePHp0lYoLOwPFHunx1VqJm4K0scOHtX3TALArOPOhFUeXc G146zoxir8VRjUO9ahvAUJM4BnS5xWP1VCqS3SGNevbV90e8YSjzkqc3S/ITJWUeNLcM 2RLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:message-id:date:to:from:dkim-signature :arc-authentication-results; bh=2qWaF3cprKbiFol+WmYrZziqQ+jV5gYBe+QN3QcZOwY=; b=EvaHwKoBn5Kv5aq+zjMB6JU/RMfwcfEGuSdZjWI6bSjFsmCC/vB9Wg+rDUBuCL13L0 SNWjhnNtHDBF9Qpvp8c3BC9Ymtvw2JK7XZbPXCGjj9aKCjBMkVCFjRKTpjfuM/Uae9v9 hOwalNRdqSmIySM6Xr8Dt2FrdPjHGWP+6Qb4UqMprNwnUyRxEDhCQD6vAQR+NSPCXgYV d05IPnKekc5/VbkIicNn4ipDhCEacKvaYxh1TWvt/XnOEzo4qa2kkkm/RWyTWUvZB7W3 156wO0ZWeWnb5IJVfiX0l0vGuJbbReKOoQHeJSWwFKujr/zaeqSRnPE554Ljgfhr7JUl 7SnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=RGxSaf3a; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id w14si330194edk.539.2018.02.27.13.45.14; Tue, 27 Feb 2018 13:45:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=RGxSaf3a; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id F3996C221DF; Tue, 27 Feb 2018 21:45:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 28DD4C21E45; Tue, 27 Feb 2018 21:45:10 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E2C85C21E45; Tue, 27 Feb 2018 21:45:08 +0000 (UTC) Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by lists.denx.de (Postfix) with ESMTPS id CFDE1C21DCA for ; Tue, 27 Feb 2018 21:45:07 +0000 (UTC) Received: by mail-wr0-f193.google.com with SMTP id l43so310202wrc.2 for ; Tue, 27 Feb 2018 13:45:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=y2BYRC7a2Jl75zWV5E42QhSVN4+7AvpDp0H5kQVZYcQ=; b=RGxSaf3aWbshE8gVvcwe5dwg1TYoLuraOTk2QGBDAJPjNQJmI9GTJLlUnZt2rpEXlM aKAv+bHMDMt1mvmcbhHId/HTXxza6i2II/mAVtyVZjfWZe6uCfdOxPW7DTrgVQxioZZX PbZGCj9LXa0kx4wTLfsEmq7IrDeFEEXg3JJjQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=y2BYRC7a2Jl75zWV5E42QhSVN4+7AvpDp0H5kQVZYcQ=; b=frncHvPc3BpOSCW6f/qCFDlPY8Fn4cxzLlPIZh1kc0giODvxJCNWZHKmYNm/ICAJig /7gEYP7MJlSF0xP+DJX2jB5E/GBo3Ij6Re9vXf+zhSt640Ly5e8hMpv7Dbp5HURXzSEE OWfQXS/uvTmTQOCs3+BlohoyBNAhJsw2z0r1AP7QHpPBYKabFjt6ODza8YSUkUOy+WKV 7KsT1MErp3Gvm4Shbt0d2tF+c51gagZq5GBCBvpUdSF9++6+hNd6Fgh/czVW3PeNsB8k yEU+Mbo9lJsB4UpL/NnYzxn9KAKKwZpESmNO36S76ODnoeL0MmJ3/113xD5U8bZK/bVd rAdQ== X-Gm-Message-State: APf1xPC3fk+uT+nrO0R9PXm2QpPWCiTkuJ9CrHzw+bHC1EKiDtOJhhxo w4mZzfOEkXvO+lYLOs/Eah7ERRCFzCs= X-Received: by 10.223.150.41 with SMTP id b38mr13920310wra.229.1519767906783; Tue, 27 Feb 2018 13:45:06 -0800 (PST) Received: from localhost ([195.238.92.76]) by smtp.gmail.com with ESMTPSA id d63sm559761wmh.16.2018.02.27.13.45.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Feb 2018 13:45:05 -0800 (PST) From: Sam Protsenko To: u-boot@lists.denx.de Date: Tue, 27 Feb 2018 23:45:02 +0200 Message-Id: <20180227214504.32572-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.16.1 MIME-Version: 1.0 Cc: Marek Vasut , Tom Rini , Ruslan Bilovol Subject: [U-Boot] [PATCH 0/2] am335x_boneblack: Enable fastboot flash support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "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(+)