From patchwork Fri Jul 24 10:51:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1583 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id B16E23F053 for ; Fri, 24 Jul 2020 12:51:56 +0200 (CEST) Received: by mail-pj1-f72.google.com with SMTP id j17sf5742524pjy.8 for ; Fri, 24 Jul 2020 03:51:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1595587915; cv=pass; d=google.com; s=arc-20160816; b=j7uRuToc97DYgA+cFSc0MKvLnh7U3oAXuptZmg6CXySP5iINufBGC/kBdZieGNWYd8 vs7DLPfs9d3tQo6m3iLFk5MQIAcQ8HqrpC1sK/KkPquZgDwk6qUnq0hHoQcEhdwVKoL2 FRGYlBvxb6/MQFg5aRlh1W4JJ1HdyhguztZEkgy36D8LFLTUmCw8Mnjjyb8wel8oWwHa ly+erLoZHIIV+kasmzWawpev/7hf6BWf/VbWt2bG6T2eWSBjPuW1vk9m8pgYiL3NkQwf xzgaN5xBKpUJRXxH99hgw3adaV+Kr75QqzKZbHMB4jmhth/+xngaIVWft62b72kAqjUR Y1Qg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=YBf/wgnj576mNNL4VipBArtaOnQKR9K9S/OeZYcKAbI=; b=b03ktcPCL1gzcf88Kr8rZDjLAYH5jijKw5vYPQ+2FYB1GxMMST75jvDvlBmDeERlkS Loii/hcQZOv/39TQvMRY4W3/nC4GYh9igd+YT/OZ4dt9s6tnkHGoBbBSgRl9dqy/XYuA 3Gxg8ypMYTrmEvhPdykgsHU7xg8thrb9N3mD3pAiF+UOQPCQcjWNk59e3VlcowstfQ5w +XPirH8dNW5Drqw3cOUWWtfFY2OybDOpQg7n844otGxKgUQojAWnZAYNnhd6Ve5Owbdv gHuOAxbWW4NCVNkItPJ2981cPuZDn1uc8m992ghHm2nVVABNyq0TJNpYR4y5u0c2V6Ql 3UpQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mjMEsUJ1; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=YBf/wgnj576mNNL4VipBArtaOnQKR9K9S/OeZYcKAbI=; b=dpIBP7oDP90Nwbxc2Rfm0cV4LWk26hItbf+/ZPIoi/5+XfcQ2o5ZxoB/2fwnbWIy7E wYjzIS2/HKLAKHhk31ugAyaxVCnDDkbd1E1dXpy1OR67U3m1Wfe/Nhb0N8tcisYR/Jyw Zs+uGruF3z5Y7vAGCWElyzYyPAJksearJAdtY= 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:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=YBf/wgnj576mNNL4VipBArtaOnQKR9K9S/OeZYcKAbI=; b=s0jtCPzumnnnt3Guiq/Qp/XQgbjn9YJMlaAcadpfDQT8S39eGi5sWud7e1mP8lACHb VUkY/JuXrMaUSLlj3QvxRWLzCPxZvEAAsN0Kj+tNWJJaK1Z8L2gDnQxD3vJ7ZyJ7pj0G 50hEjeCrSDmpSTeGnv09hgTwTcHCtwnjXVEGBgW4w9Npyoq8BsCVsxl74bdrHxjvfbPP P3H68fJTwfat/5T9nqLe3MTKuc1JeHrEWuDZD+pApiH7gSTXxNkcQb40ySJVEeEus42n xq8yrfZrb7EOCLc136CerS/+ZA0zQnKnJ7N6mY97bLbG6r8M/cVbJWDe0FgJ7hGlfGNi SWhA== X-Gm-Message-State: AOAM533sEV8r9aE9KGwIo33Dy9ETs1rTF6h/Dg8tbWwx3KScOZwdtHMo 7CizSm/914ZAAArXyk2/fIqPajyI X-Google-Smtp-Source: ABdhPJxvyAkkaOlRwzZSUyFMQT/DaQtm5y+q69jRk70Rma9wXk1XaN1oCR2zrYP1bhJ/oEYMdD/gEQ== X-Received: by 2002:a63:b18:: with SMTP id 24mr8354758pgl.406.1595587915495; Fri, 24 Jul 2020 03:51:55 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:8306:: with SMTP id h6ls2676232pfe.1.gmail; Fri, 24 Jul 2020 03:51:55 -0700 (PDT) X-Received: by 2002:a62:8045:: with SMTP id j66mr8181862pfd.162.1595587915023; Fri, 24 Jul 2020 03:51:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595587915; cv=none; d=google.com; s=arc-20160816; b=SJsu8CjgQMJgDu6si89gRZ/+08TmPpmwT3FBBs9IzWMP/1SWGiPliJjhI36JrAN8qe 4A7FhcXndeZPMLP6ODY+MEvzJ1OHR+Pfa9Kk/CcwADIEuAleMP//vKwCF/niy/+k6djK MtAhGiw2z36DEo10AqZmF9iDZU9rCD/LAo6RUp9Utw5X/WRX/H1INtD4EOonQxxbyPjf 9AvzBYN/r1G0tOGyMs1/V8xUcME0CGR5ZlXIklv1Sf+/Xy9BGYxZwuvHlJb5GxUjj2Ps sgvYoQPHX4YC/zxxTXq+qrSL2IfdWeRvHOuMqxytczx0E3ix8Zg5K2ugWQ+Td2dPufxf zoQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=sk5ZJKxKyssjzqNzAnZ/okb3UqvqoYsHK8ZxNdUNWZY=; b=dAzGr06L76oZVktgUeZbeHlSD+xa3leuJFeVe9cnTswdlwQz4r+2LZ5tOZPcZCSCXQ +mYPJyb+vsORIfFbS+hQV2rJMgjza6gDe3w2M2OGKQifvx95aHHY8lXxUu7LUktnGqOy yga/boY+48hZBIO0xPCFh1SmpRt81wlnqb1yLNOVqPI/Up+edhiwvLCtpTeqV53Bi9iZ ajXCk1uf7AaL/fNiu6DExKdewK7V+qNXOSY3YlxDsvKdx/3d0zOLFw5NhRU873hB8ih3 mT3LX3PNT62NAqRGiPKJqjU1f7/akThomSSTtlBgT3ovCBoBOSRXjmuwNz4Makw8bJBQ k3kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mjMEsUJ1; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id d5sor6602853pfd.78.2020.07.24.03.51.55 for (Google Transport Security); Fri, 24 Jul 2020 03:51:55 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a62:15d1:: with SMTP id 200mr7989200pfv.227.1595587914641; Fri, 24 Jul 2020 03:51:54 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:cd2a:efcb:83c4:4e50]) by smtp.gmail.com with ESMTPSA id g22sm5595498pgb.82.2020.07.24.03.51.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2020 03:51:53 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass Cc: Suniel Mahesh , U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki Subject: [PATCH 7/7] doc: rockchip: Document Rockchip miniloader flashing Date: Fri, 24 Jul 2020 16:21:19 +0530 Message-Id: <20200724105119.13123-8-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200724105119.13123-1-jagan@amarulasolutions.com> References: <20200724105119.13123-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mjMEsUJ1; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This would be useful and recommended boot flow for new boards which has doesn't have the DDR support yet in mainline. Sometimes it is very useful for debugging mainline DDR support. Documen it for px30 boot flow. Signed-off-by: Jagan Teki --- doc/board/rockchip/rockchip.rst | 40 ++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst index 8c92de0c92..ea061ad171 100644 --- a/doc/board/rockchip/rockchip.rst +++ b/doc/board/rockchip/rockchip.rst @@ -123,6 +123,9 @@ To build rk3399 boards:: Flashing -------- +1. Package the image with U-Boot TPL/SPL +----------------------------------------- + SD Card ^^^^^^^ @@ -187,6 +190,39 @@ Copy SPI boot images into SD card and boot from SD:: sf erase 0x60000 +$filesize sf write $kernel_addr_r 0x60000 ${filesize} +2. Package the image with Rockchip miniloader +--------------------------------------------- + +Image package with Rockchip miniloader requires robin [1]. + +Create idbloader.img + +.. code-block:: none + + cd u-boot + ./tools/mkimage -n px30 -T rksd -d rkbin/bin/rk33/px30_ddr_333MHz_v1.15.bin idbloader.img + cat rkbin/bin/rk33/px30_miniloader_v1.22.bin >> idbloader.img + sudo dd if=idbloader.img of=/dev/sda seek=64 + +Create trust.img + +.. code-block:: none + + cd rkbin + ./tools/trust_merger RKTRUST/PX30TRUST.ini + sudo dd if=trust.img of=/dev/sda seek=24576 + +Create uboot.img + +.. code-block:: none + + rbink/tools/loaderimage --pack --uboot u-boot-dtb.bin uboot.img 0x200000 + sudo dd if=uboot.img of=/dev/sda seek=16384 + +Note: +1. 0x200000 is load address and it's an optional in some platforms. +2. rkbin binaries are kept on updating, so would recommend to use the latest versions. + TODO ---- @@ -195,5 +231,7 @@ TODO - Document SPI flash boot - Add missing SoC's with it boards list +[1] https://github.com/rockchip-linux/rkbin + .. Jagan Teki -.. Tuesday 02 June 2020 12:18:57 AM IST +.. Thursday 23 July 2020 04:50:22 PM IST