From patchwork Sat Jun 1 14:47:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matwey V. Kornilov" X-Patchwork-Id: 1108793 X-Patchwork-Delegate: philipp.tomsich@theobroma-systems.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; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="AUEMojct"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45GPQD4C8Gz9sNf for ; Sun, 2 Jun 2019 00:51:00 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 323A4C21D8E; Sat, 1 Jun 2019 14:49:26 +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, 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 4E23EC21DED; Sat, 1 Jun 2019 14:48:34 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 96CE8C21E02; Sat, 1 Jun 2019 14:48:27 +0000 (UTC) Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) by lists.denx.de (Postfix) with ESMTPS id 09BB1C21DA6 for ; Sat, 1 Jun 2019 14:48:24 +0000 (UTC) Received: by mail-lj1-f195.google.com with SMTP id z5so12289172lji.10 for ; Sat, 01 Jun 2019 07:48:24 -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=L4K/omSKhrrAj0kxEIV5tAhNuwktgxtg6ajTQ0Mksbg=; b=AUEMojctuAUBgIy9AkjR1H/wGBPhrwfJ9sger8dGh053s0oAgdJf82ZGubRYrejYo1 +7M0JvIuPi47XklYXBQpz8iQZKBCsEMGHQd+YqtdFp6QHjMyA2yaIji6L4Za77DEQvXw DDGd3cj4bxHp6d5t3eS7wPrhZYXBbccS3TUYnozaRQt6t/++Djl9VfQpthUPnyRfghUZ VaMp4vtTKZ8lZwIZFg7+1YqhJ3m9AFLzd+loiA5PF+Wdfqk7DYKjetPHFk3zDKX4C8XM /RU01+2LxD76UGWv9z+JXJDwGEhZq25sLsV1xNRlzSfR8jW5lqGC3G49Pggp1CNgk+MU e11A== 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=L4K/omSKhrrAj0kxEIV5tAhNuwktgxtg6ajTQ0Mksbg=; b=TFfWZnMEcZB2GBVt/AFSa9hhL663GKGJn6jNBzf8EE43Mky2bU6K71xAladcGb75Td U3FgQ3zqACjHBTczbuqistTRP8gFCwm+yOZLiSFIbEPL2ssXD3VIGZoFZUKBrsXQInzj pqWonFzf7yKObzBWeWzRU2gWsWn1aMx5bMAmz0Sxig5UoTfu0qVoXkhRmUgPVQfljYA8 Y/utp4gqQ81cisf+CyM5bzLcMB+5/d6+dQ5WAcHsGv/5ZsWRypr7JE/Sl2EPS0eQBiUL NDljaNAMe64AITUlsJNr9E8b08FqEm7xejyyW1ipuMtJH5ETgYFr9zyAwpfzsh4YtZYA 5bgA== X-Gm-Message-State: APjAAAXYoxWSqTe/7WcKPqo9UWOfltwKWEzsLaKgoS0mrQgy261mEtYR Qwott3xxojHvlAQAirntfsY= X-Google-Smtp-Source: APXvYqy64vC5ZjEI8cM0r0p8qndFdFMs7Zvc4q5MRtFZmrwSsPgWlAiIgxx29QXaPYKLLKIPCjlbVg== X-Received: by 2002:a2e:9e4c:: with SMTP id g12mr1426146ljk.3.1559400503403; Sat, 01 Jun 2019 07:48:23 -0700 (PDT) Received: from oak.local ([92.243.181.209]) by smtp.gmail.com with ESMTPSA id e19sm1843812ljj.62.2019.06.01.07.48.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Jun 2019 07:48:22 -0700 (PDT) From: "Matwey V. Kornilov" To: sjg@chromium.org, philipp.tomsich@theobroma-systems.com, kever.yang@rock-chips.com Date: Sat, 1 Jun 2019 17:47:36 +0300 Message-Id: <20190601144736.8580-7-matwey.kornilov@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190601144736.8580-1-matwey.kornilov@gmail.com> References: <20190519121020.13866-1-matwey.kornilov@gmail.com> <20190601144736.8580-1-matwey.kornilov@gmail.com> Cc: vagrant@debian.org, u-boot@lists.denx.de, "Matwey V. Kornilov" Subject: [U-Boot] [PATCH v3 6/6] doc: rockchip: Add note for Pine64 Rock64 board 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 build notes for Pine64 Rock64 board. Signed-off-by: Matwey V. Kornilov Reviewed-by: Kever Yang --- doc/README.rockchip | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/doc/README.rockchip b/doc/README.rockchip index ca4d6473b0..eacedbddf4 100644 --- a/doc/README.rockchip +++ b/doc/README.rockchip @@ -48,9 +48,10 @@ Two RK3036 boards are supported: - EVB RK3036 - use evb-rk3036 configuration - Kylin - use kylin_rk3036 configuration -One RK3328 board is supported: +Two RK3328 board are supported: - - EVB RK3328 + - EVB RK3328 - use evb-rk3328_defconfig + - Pine64 Rock64 board - use rock64-rk3328_defconfig Size RK3399 boards are supported (aarch64): @@ -307,6 +308,31 @@ tools/mkimage -n rk3188 -T rksd -d spl/u-boot-spl.bin out truncate -s %2048 u-boot.bin cat u-boot.bin | split -b 512 --filter='openssl rc4 -K 7C4E0304550509072D2C7B38170D1711' >> out +Booting from an SD card on Pine64 Rock64 (RK3328) +================================================= + +For Rock64 rk3328 board the following three parts are required: +TPL, SPL, and the u-boot image tree blob. While u-boot-spl.bin and +u-boot.itb are to be compiled as usual, TPL is currently not +implemented in u-boot, so you need to pick one from rkbin: + + - Get the rkbin + + => git clone https://github.com/rockchip-linux/rkbin.git + + - Create TPL/SPL image + + => tools/mkimage -n rk3328 -T rksd -d rkbin/bin/rk33/rk3328_ddr_333MHz_v1.16.bin idbloader.img + => cat spl/u-boot-spl.bin >> idbloader.img + + - Write TPL/SPL image at 64 sector + + => sudo dd if=idbloader.img of=/dev/mmcblk0 seek=64 + + - Write u-boot image tree blob at 16384 sector + + => sudo dd if=u-boot.itb of=/dev/mmcblk0 seek=16384 + Booting from an SD card on RK3399 =================================