From patchwork Wed May 3 06:50:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eddie Cai X-Patchwork-Id: 757871 X-Patchwork-Delegate: l.majewski@samsung.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3wHpk70Clsz9s7n for ; Wed, 3 May 2017 16:52:14 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="pVUqgWre"; dkim-atps=neutral Received: by lists.denx.de (Postfix, from userid 105) id A1285C21C48; Wed, 3 May 2017 06:52:01 +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=FREEMAIL_FROM, KHOP_BIG_TO_CC, RCVD_IN_DNSWL_NONE, 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 6A6BDC21C5E; Wed, 3 May 2017 06:50:58 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1E575C21C78; Wed, 3 May 2017 06:50:51 +0000 (UTC) Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by lists.denx.de (Postfix) with ESMTPS id 406EAC21C70 for ; Wed, 3 May 2017 06:50:50 +0000 (UTC) Received: by mail-pf0-f196.google.com with SMTP id v14so2897853pfd.3 for ; Tue, 02 May 2017 23:50:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vYA/KJZU+e8s5Acx/iJ8+ZaOKSoovQGc3nxyGDD2Ac8=; b=pVUqgWrea7rugcPQn4Ur8ewOATFtKp4TDexeuKTNNYEFqndMYB9oEXySVWOijVj6Ui GM1m1/PiksMOU1Vic57UhybAkfOE/u4cGd7JL9QUXfDaQ3E4YadhIqk3eTgC8EsDaadz ktEtsyB+7EYGE0CArFR7ZNkVIDbPhY9vqmTj6sJdVr7eE15NEdzvBcsia3cbMtR87G0W EOmXplwt4eyK031QvJm5EjrQjuuX2GBgHhtHWqdNDkTOkTgvDiYGjnxA9E1oo5qrvweN uink2/z/WV/99Dgo3f5lTiev4jYrWUoV5kFJbCM57MKSiz5iZ+4JFvEWe7mkodkFYo6U k1PQ== 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:in-reply-to :references; bh=vYA/KJZU+e8s5Acx/iJ8+ZaOKSoovQGc3nxyGDD2Ac8=; b=RzWmGH96b9Eo/84RUueJ30jTcWUZ6hWEubPMS21omXekKoxB1pRVOdOxydZPD/+bS0 J2jEK5/Si8pieYqaw8UC8KjTl9oa00RuNLqrvOHh5dgiGdhVJ/OgAhRT9kGBr+ERC0Ke Y0nhyys6LSf97i6uQ8DmbBUuBjeGqH8mKv1zS4hGO6ojH/XuLKF/7QZVnkC8fVP45cPN Me5RrZUzmiArVGi9BBVfFr5AKI2I6TwZjHjq9mAqoPFJQFOu8qNFbo0W5HB70w5JULWi QCKVzL0Vk5LHl0zjeXN+m/Q9+1SGlVIBA3BWaLewukho+dsgMyQXXCtbm9uvIf9CCEDR oFlA== X-Gm-Message-State: AN3rC/4F2XT5aBwTVzDuFaEIVokLj9xgJVi+I3lLLoEqiS0UYAz12TjF xJjGE95LWJnxsg== X-Received: by 10.99.160.1 with SMTP id r1mr36788403pge.37.1493794248918; Tue, 02 May 2017 23:50:48 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id d83sm2547510pfe.40.2017.05.02.23.50.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 May 2017 23:50:47 -0700 (PDT) From: Eddie Cai To: sjg@chromium.org, lukma@denx.de, marex@denx.de, william.wu@rock-chips.com, trini@konsulko.com, yamada.masahiro@socionext.com, maxime.ripard@free-electrons.com, agraf@suse.de, bmeng.cn@gmail.com, yanmiaobest@gmail.com, dinguyen@kernel.org, boris.brezillon@free-electrons.com, sr@denx.de, uri.mashiach@compulab.co.il, michal.simek@xilinx.com Date: Wed, 3 May 2017 14:50:01 +0800 Message-Id: <1493794202-18441-4-git-send-email-eddie.cai.linux@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1493794202-18441-1-git-send-email-eddie.cai.linux@gmail.com> References: <1493794202-18441-1-git-send-email-eddie.cai.linux@gmail.com> Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH V4 3/4] rockchip:usb: add a simple readme for rockusb 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: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" add a simple readme to introduce rockusb and tell people how to use it Signed-off-by: Eddie Cai Reviewed-by: Simon Glass Changes in v4: -add some blank line to make it look better Changes in v3: -fix checkpatch error --- doc/README.rockusb | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 doc/README.rockusb diff --git a/doc/README.rockusb b/doc/README.rockusb new file mode 100644 index 0000000..272e4f3 --- /dev/null +++ b/doc/README.rockusb @@ -0,0 +1,52 @@ +Rockusb (Rockchip USB protocol) +===================================================== + +Overview +-------- + +Rockusb protocol is widely used with Rockchip devices. +It can read/write info, image to/from devices. This +document briefly describes how to use Rockusb for upgrading +firmware (e.g. kernel, u-boot, rootfs, etc.). + +Tools +-------- +There are many tools can support Rockusb protocol. rkdeveloptool +(https://github.com/rockchip-linux/rkdeveloptool) is open source, +It is maintained by Rockchip. People don't want to build from source +can download from here +(https://github.com/rockchip-linux/rkbin/blob/master/tools/rkdeveloptool) + +Usage +-------- +The Usage of Rockusb command is: + +rockusb + +e.g. rockusb 0 mmc 0 + +On your U-Boot console, type this command to enter rockusb mode. +On your host PC. use lsusb command. you should see a usb device +using 0x2207 as its USB verdor id. + +for more detail about the rkdeveloptool. please read the usage. + +rkdeveloptool -h + +use rkdeveloptool wl command to write lba. BeginSec is the lba on device +you want to write. + +sudo rkdeveloptool wl + +to flash U-Boot image use below command. U-Boot binary is made by mkimage. +see doc/README.rockchip for more detail about how to get U-Boot binary. + +sudo rkdeveloptool wl 64 + +There are plenty of Rockusb command. but wl(write lba) and +rd(reboot) command. These two command can let people flash +image to device. + +To do +----- +* Fully support Rockusb protocol