From patchwork Thu Jun 8 06:44:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kever Yang X-Patchwork-Id: 772833 X-Patchwork-Delegate: philipp.tomsich@theobroma-systems.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 3wjwsF3SWrz9s3s for ; Thu, 8 Jun 2017 16:45:04 +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="TM/mDU+X"; dkim-atps=neutral Received: by lists.denx.de (Postfix, from userid 105) id 491EDC21D0B; Thu, 8 Jun 2017 06:44:58 +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_NONE, 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 B50C3C21C2C; Thu, 8 Jun 2017 06:44:54 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 434F7C21C2C; Thu, 8 Jun 2017 06:44:53 +0000 (UTC) Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by lists.denx.de (Postfix) with ESMTPS id 4A52EC21C26 for ; Thu, 8 Jun 2017 06:44:51 +0000 (UTC) Received: by mail-pg0-f67.google.com with SMTP id v18so3621037pgb.3 for ; Wed, 07 Jun 2017 23:44:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=laasAa5qhBqDi1bUHqWllZoSiKedWICrV19mBbpw3+g=; b=TM/mDU+XdAjvnzKoPB6gXTmmZKVmPduDNWj5VWHUcefBoHwvrxVCk5R8yxnRkzVyP+ wmYTfq9IzUxiLhM/gnUiddjSsIe2n882KoZKvykYonWDffypRomMNetVr9b6WjYP7Chg IHFYbd+ZOSJi6NdKzP1B0+9cOhaU3EafwQi3hhDsMeTHIpvL+dNLT+fVihknUge+c/jW mJgMxfRDk0CdCpOqqvPlGQ7yYpLDxTxZOQpdNblnS9m3OcRgqoQJ2ANvUfA9kBrdbOaN FWS4w5YZDEGmclMuB0xXE9RY/cDYrl2RmdR58K2JDcUoBIz5wjxeYlZeypQ8OI1Dqenw pmZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=laasAa5qhBqDi1bUHqWllZoSiKedWICrV19mBbpw3+g=; b=cJxlGiFYLEy7cyEEiGszZfpX0sByJag4LtgvzSqVWh2Fyj0iGxM6VHMhJl9a4ckY5L OKGrt8qgxtJyc0azu6JFaTSVIEmjQz+ciBx4oXN2R/s3FW5tv+v1hfVoM5J8cl9jO412 TcNPHz97qwgfRLaaoeBD6q4tErr6duZxdBGksZZXhdaWRXEWxVWnEegy5sdc6vKK0r7U DqXLOxbMTzgtTu26j176U50yeOPZ9PgstufHe9LfaM3QKSiHGAwvswC4Euvk+styjXH/ d61QdLmVZlgauSWPQ+sAvdMf1mRk0rAEQzJJjbZihnRypcu39ixo65MMjG94pwtZUDZH eJAw== X-Gm-Message-State: AODbwcB7N5vzz/3qXGlAthqEEcSxWpK6Q4gIELPdJ7ymtpPsdqM+1zZH 7GoGtiMKDPuF7Q== X-Received: by 10.101.90.12 with SMTP id y12mr37307761pgs.226.1496904289512; Wed, 07 Jun 2017 23:44:49 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id f72sm7834719pff.78.2017.06.07.23.44.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Jun 2017 23:44:47 -0700 (PDT) From: Kever Yang To: sjg@chromium.org Date: Thu, 8 Jun 2017 14:44:32 +0800 Message-Id: <1496904272-7700-1-git-send-email-kever.yang@rock-chips.com> X-Mailer: git-send-email 1.9.1 Cc: Jernej Skrabec , Jacob Chen , u-boot@lists.denx.de Subject: [U-Boot] [PATCH v2] rockchip: doc: update latest info to document 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 some rk3399 and rk3328 boards; - use rkdeveloptool; - add link to opensource.rock-chips.com instead of wikidot; - other update. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich --- Changes in v2: - add rkflashtool info back doc/README.rockchip | 48 ++++++++++++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/doc/README.rockchip b/doc/README.rockchip index 2d8cf9f..c24375b 100644 --- a/doc/README.rockchip +++ b/doc/README.rockchip @@ -11,11 +11,8 @@ U-Boot on Rockchip There are several repositories available with versions of U-Boot that support many Rockchip devices [1] [2]. -The current mainline support is experimental only and is not useful for -anything. It should provide a base on which to build. - -So far only support for the RK3288 and RK3036 is provided. - +Document wiki from Rockchip for tools, boot option and other useful development +information is here[0]. Prerequisites ============= @@ -26,17 +23,16 @@ You will need: - Power connection to 5V using the supplied micro-USB power cable - Separate USB serial cable attached to your computer and the Firefly (connect to the micro-USB connector below the logo) - - rkflashtool [3] - - openssl (sudo apt-get install openssl) - - Serial UART connection [4] + - rkflashtool[3] or rkdeveloptool [4] + - Serial UART connection [5] + - loader file[6]. - Suitable ARM cross compiler, e.g.: sudo apt-get install gcc-4.7-arm-linux-gnueabi - Building ======== -At present eight RK3288 boards are supported: +Eight RK3288 boards are supported: - EVB RK3288 - use evb-rk3288 configuration - Fennec RK3288 - use fennec-rk3288 configuration @@ -47,11 +43,20 @@ At present eight RK3288 boards are supported: - Radxa Rock 2 - use rock2 configuration - Tinker RK3288 - use tinker-rk3288 configuration -Two RK3036 board are supported: +Two RK3036 boards are supported: - EVB RK3036 - use evb-rk3036 configuration - Kylin - use kylin_rk3036 configuration +RK3399 boards supported: + - EVB RK3399 - use evb-rk3036 configuration + - Firefly RK3399 - use firefly-rk3399 configuration + - RK3399-Q7 - use puma-rk3399 configuration + +RK3328 boards supported + - EVB RK3328 - use evb-rk3328 configuration + + For example: CROSS_COMPILE=arm-linux-gnueabi- make O=firefly firefly-rk3288_defconfig all @@ -64,6 +69,7 @@ Writing to the board with USB For USB to work you must get your board into ROM boot mode, either by erasing your MMC or (perhaps) holding the recovery button when you boot the board. + To erase your MMC, you can boot into Linux and type (as root) dd if=/dev/zero of=/dev/mmcblk0 bs=1M @@ -72,9 +78,10 @@ Connect your board's OTG port to your computer. To create a suitable image and write it to the board: - ./firefly-rk3288/tools/mkimage -n rk3288 -T rkimage -d \ - ./firefly-rk3288/spl/u-boot-spl-dtb.bin out && \ - cat out | openssl rc4 -K 7c4e0304550509072d2c7b38170d1711 | rkflashtool l + ./firefly-rk3288/tools/mkimage -n rk3288 -T rksd -d \ + ./firefly-rk3288/spl/u-boot-spl-dtb.bin idbspl.img && \ + rkdeveloptool db rkbin/rk32/rk3288_loader_v1.01.232.bin \ + rkdeveloptool wl 64 idbspl.img If all goes well you should something like: @@ -243,8 +250,6 @@ Future work Immediate priorities are: -- USB host -- USB device - Run CPU at full speed (code exists but we only see ~60 DMIPS maximum) - NAND flash - Support for other Rockchip parts @@ -256,10 +261,13 @@ Development Notes There are plenty of patches in the links below to help with this work. +[0] http://opensource.rock-chips.com/ [1] https://github.com/rkchrome/uboot.git -[2] https://github.com/linux-rockchip/u-boot-rockchip.git branch u-boot-rk3288 -[3] https://github.com/linux-rockchip/rkflashtool.git -[4] http://wiki.t-firefly.com/index.php/Firefly-RK3288/Serial_debug/en +[2] https://github.com/rockchip-linux/u-boot.git branch release +[3] https://github.com/rockchip-linux/rkflashtool.git +[4] https://github.com/rockchip-linux/rkdeveloptool.git +[5] http://wiki.t-firefly.com/index.php/Firefly-RK3288/Serial_debug/en +[6] https://github.com/rockchip-linux/rkbin.git rkimage ------- @@ -330,7 +338,7 @@ With this GPT partition layout, uboot can be compatilbe with other components, like miniloader, trusted-os, arm-trust-firmware. There are some documents about partitions in the links below. -http://rockchip.wikidot.com/partitions +http://opensource.rock-chips.com/wiki_Partitions -- Simon Glass