From patchwork Tue Sep 3 16:29:02 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: 1157120 X-Patchwork-Delegate: ykai007@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; 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="rAbGs8Yg"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46NC9R6zhHz9sRX for ; Wed, 4 Sep 2019 02:30:19 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 5DB04C21DB3; Tue, 3 Sep 2019 16:29:38 +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 085B7C21DF9; Tue, 3 Sep 2019 16:29:21 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2C5ECC21C50; Tue, 3 Sep 2019 16:29:19 +0000 (UTC) Received: from mail-lj1-f196.google.com (mail-lj1-f196.google.com [209.85.208.196]) by lists.denx.de (Postfix) with ESMTPS id A31DDC21C50 for ; Tue, 3 Sep 2019 16:29:18 +0000 (UTC) Received: by mail-lj1-f196.google.com with SMTP id z17so16717988ljz.0 for ; Tue, 03 Sep 2019 09:29:18 -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=6xPsILASpyuuhcNF4aqh/YYnC4Hce9f+hhzr5GCkC4g=; b=rAbGs8YgZobR2kSTKZQmF7K6VatEox/LroeZNqINMWWWibZNu3AUJyjnjicbanKo69 3kF0UO/+Ps1r9IVf0YJIvDJSoavKuQ3luuukNah3ySYUPvBF9mlgv5o+bL+u2RwzSGVU OYCbKsUj0QWTpyneMlwtxDojls6svvNH+wYuongI68j44Wkkqm4rx+1Ycfx5IgprHLbc HF3N/aV/JCr8oENSXCDNDG+R7+upyfFhlVUFL/yWxxRCFA6V3OmIRqCv0DwDnluEhNF2 tGGBa9t7ST3z+VfRlIEMoNSc+zfulmRUaToAHLhZsSo7j+zrC/Kqk+b3yu8uXOoaFifv bnOg== 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=6xPsILASpyuuhcNF4aqh/YYnC4Hce9f+hhzr5GCkC4g=; b=d5a+yh6JtZ/MrZHiJSsB+vmi/y2r34YOGZHL8LxbjYp3IZQoRR+3rpCiSnf3Ga0Otq cjhmUAToAH10h5GPdJ0KGAL6eJkbWmkf+6kYuaCAAQL5t9aewG/GJD7dkkx74tcbyGpQ EcId2gJ9oge3UPWyfKGYKP1ZNDsmpOmawyInOwXtNANdlJqS3ZGhArOYL9dX6vKZioyu sugeFS8trFT6o2VGnTsfEpim7tYhCncIdA8eByFnk1Rc92bRKfNFk1UNEYMA4jaUIUat MvLwJUw8HoO9pBV4jH8rT4prH0kWdzutjw05dQsDQ8efux5YteeMuhOs3FLiKNlDMTTX blwQ== X-Gm-Message-State: APjAAAWT+adQmXlAOVu5W7U6XlLtdiAQRmrKfpfbVqM6qLr2upU7Anfx lBgGMrtJK3IE+bsn/ZmkkK0= X-Google-Smtp-Source: APXvYqxCYDy29IS/bNGZFP5MwGSiLHJ0eNGwBQKAZYYFvrVN/YzmIPKCBSOCeVbXQFxkZJScGAQBFQ== X-Received: by 2002:a2e:87c4:: with SMTP id v4mr8127227ljj.234.1567528157898; Tue, 03 Sep 2019 09:29:17 -0700 (PDT) Received: from oak.local ([92.243.181.209]) by smtp.gmail.com with ESMTPSA id z128sm3006967lfa.1.2019.09.03.09.29.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Sep 2019 09:29:17 -0700 (PDT) From: "Matwey V. Kornilov" To: kever.yang@rock-chips.com, Jagan Teki , Philipp Tomsich , Simon Glass , "Matwey V. Kornilov" , Chris Webb Date: Tue, 3 Sep 2019 19:29:02 +0300 Message-Id: <20190903162903.4778-3-matwey.kornilov@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190903162903.4778-1-matwey.kornilov@gmail.com> References: <20190903162903.4778-1-matwey.kornilov@gmail.com> Cc: open list Subject: [U-Boot] [PATCH v2 2/3] doc: rockchip: use idbloader.img for rk3288, rk3328, rk3399 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" Makefile now produces ready-to-deploy idbloader.img file. Signed-off-by: Matwey V. Kornilov Reviewed-by: Kever Yang --- doc/README.rockchip | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/doc/README.rockchip b/doc/README.rockchip index 7d4dc1b33b..6007f3321e 100644 --- a/doc/README.rockchip +++ b/doc/README.rockchip @@ -276,9 +276,7 @@ As of now TPL is added on Vyasa-RK3288 board. To write an image that boots from an SD card (assumed to be /dev/mmcblk0): - ./tools/mkimage -n rk3288 -T rksd -d ./tpl/u-boot-tpl.bin out && - cat ./spl/u-boot-spl-dtb.bin >> out && - sudo dd if=out of=/dev/mmcblk0 seek=64 && + sudo dd if=idbloader.img of=/dev/mmcblk0 seek=64 && sudo dd if=u-boot-dtb.img of=/dev/mmcblk0 seek=16384 Booting from an SD card on RK3188 @@ -311,11 +309,6 @@ 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. - - Create TPL/SPL image - - => tools/mkimage -n rk3328 -T rksd -d tpl/u-boot-tpl.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 @@ -474,19 +467,9 @@ Hit any key to stop autoboot: 0 Option 3: Package the image with TPL: - - Prefix rk3399 header to TPL image - - => cd /path/to/u-boot - => ./tools/mkimage -n rk3399 -T rksd -d tpl/u-boot-tpl-dtb.bin out - - - Concatinate tpl with spl - - => cd /path/to/u-boot - => cat ./spl/u-boot-spl-dtb.bin >> out - - Write tpl+spl at 64th sector - => sudo dd if=out of=/dev/sdc seek=64 + => sudo dd if=idbloader.img of=/dev/sdc seek=64 - Write U-Boot proper at 16384 sector