From patchwork Fri Dec 1 07:20:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eddie Cai X-Patchwork-Id: 843381 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Ubh4iNu/"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3yp5N85bLfz9tBX for ; Fri, 1 Dec 2017 18:23:20 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 64F18C21F98; Fri, 1 Dec 2017 07:22:30 +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_BLOCKED, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 0C1BEC21FA1; Fri, 1 Dec 2017 07:21:35 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 11BB7C21F48; Fri, 1 Dec 2017 07:21:09 +0000 (UTC) Received: from mail-pl0-f68.google.com (mail-pl0-f68.google.com [209.85.160.68]) by lists.denx.de (Postfix) with ESMTPS id A540AC21F3D for ; Fri, 1 Dec 2017 07:21:08 +0000 (UTC) Received: by mail-pl0-f68.google.com with SMTP id bd8so5814022plb.9 for ; Thu, 30 Nov 2017 23:21:08 -0800 (PST) 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=apfwmnXangTcRiwh52DID0goEomuDdLJT+S88/F0AEs=; b=Ubh4iNu/WFRH0VUGLjg5BOYe8zIAtJlyEkz2E/yGHlAp3w7thmlUFqC/29arkSIF2N a7I37e/5nVL4s7roJ0+8L6NJL2piqjrTfh9ek3CEYsTBeZaot02KpuptntyYDD3kZwYT O+Vs6waj9rfWPjlczaWENVkTQuYwMmZ4UW9crLz64HfXuAGBv9l9V7+wpJfR7xjb/L7q NS/Rst5r4m1d+jHqtMAVzQyFAQqhPbAZ4RHyo7HCIZBQcNIpVHxi0Rz1BLRkO3uFiKlu 7GYOmIB9Ff0nNfxDnIV/SoSAqE201PaxJirnNgP6Z2ClQUvjbZn6Wa9RpHzcX+nQxwc2 np7Q== 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=apfwmnXangTcRiwh52DID0goEomuDdLJT+S88/F0AEs=; b=cdiXDPM4qCOpFSUPRNdQ4vj87ZqTZgNQd/I1r/7HtH5MBrCHmocJ8xwzKl2EpaAMxY +R4mvsiDQre6CBwqYuCrbc7S5pLKGgWXy0d4rhUYOgS1iZXso39zeECcuKztSTdSgj7B iY0kHanM+BtZIl2a0zVHRjIji/Dvdw7233WoaOV5F4kt737qobh3Dqtx4yPZSeeDfzUT EBbhdR6/vuyqlVGYu5DBT5dm3cOdBXrbZ6yBytNddoB+qde43T0+Pr+tqwvLUWVqYHiV z1pf7CmmziE5butzKpXne9kq5JosTWcwqGY6EIRYRpFEqcLFvaRKCrRz++qzV0Ob4Sfj U0bA== X-Gm-Message-State: AJaThX5lC1MBrIW1rewsWn8mpcBlTMMs9fzpnOboepLX+JnSB5gxzLhX t3Pj+mmJkhqwDc9hNnLmNZE= X-Google-Smtp-Source: AGs4zMY/04A8paCcbYcDIUyzTTbJB7rJCy12A9E2kyloayOGHxTsYSfoS3ULEl8Av5+TIr1XAsvIXA== X-Received: by 10.84.224.139 with SMTP id s11mr5407221plj.3.1512112867322; Thu, 30 Nov 2017 23:21:07 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id a87sm11929003pfg.159.2017.11.30.23.21.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Nov 2017 23:21:06 -0800 (PST) From: Eddie Cai To: lukma@denx.de, sjg@chromium.org, marex@denx.de, 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: Fri, 1 Dec 2017 15:20:30 +0800 Message-Id: <1512112831-26759-4-git-send-email-eddie.cai.linux@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1512112831-26759-1-git-send-email-eddie.cai.linux@gmail.com> References: <1512112831-26759-1-git-send-email-eddie.cai.linux@gmail.com> Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH V11 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 v11: -add to MAINTAINER Changes in v10: -none Changes in v9: -none Changes in v8: -none Changes in v7: -none Changes in v6: -none Changes in v5: -none Changes in v4: -add some blank line to make it look better Changes in v3: -fix checkpatch error --- MAINTAINERS | 1 + doc/README.rockusb | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 doc/README.rockusb diff --git a/MAINTAINERS b/MAINTAINERS index c7db583..4bef71f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -457,6 +457,7 @@ M: Eddie Cai S: Maintained F: drivers/usb/gadget/f_rockusb.c F: cmd/rockusb.c +F: doc/README.rockusb VIDEO M: Anatolij Gustschin diff --git a/doc/README.rockusb b/doc/README.rockusb new file mode 100644 index 0000000..5405dc4 --- /dev/null +++ b/doc/README.rockusb @@ -0,0 +1,51 @@ +Rockusb (Rockchip USB protocol) +===================================================== + +Overview +-------- + +Rockusb protocol is widely used by Rockchip SoC based 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