From patchwork Mon Jun 1 20:42:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1326 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A17B93F1D9 for ; Mon, 1 Jun 2020 22:42:53 +0200 (CEST) Received: by mail-pl1-f199.google.com with SMTP id be7sf838398plb.21 for ; Mon, 01 Jun 2020 13:42:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591044172; cv=pass; d=google.com; s=arc-20160816; b=CUHcUkcyD63VhBixsL2OX4kHtygWQxrraafBotSBdoq3/172mkVLuFby0iXLZVY+Gw xvLsQisjHnWwD8fKfNhor7ZJz0y8faa3IKkWzKyl15pNHg5HQPkygNUCaB92e2LYZ8Kw EzLDVyBb0UNI6cSZ5bCSqoBtfq6XTyySg3StEXzMC8ckxcH8JEl1cGVSjhvvv/FdjLJF 5Yopr5+r0+SuRSyy3S6AfO1KxPU1JHplnkpYRRlPj5fjZPMUmolqN/urvP0Uj3cCYMNM oMV8mQFUXd+zdtJmMQNpSoH0oTlnVOoopKO+5oU5gUPrJOU/lxqNDwe9n/NdQJfapiQt PR8w== 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=H6baRyNalHeb42a5eTng9oWkPmK2zEft1x8nWq8+LJs=; b=YZoW28wZotZ9tZzSAOYNUUu0EyjsLYi+FTyqEY3wXxTLQWrtR3AB9Vs6YNfIovolMG lFOuiIw6/dF8urotP9ivmx9FGrQKpmmlt21JBRLQ7kMOOBHRokcInNOcr7Y1JWfkDAQS 0Qb3Q+L/AGaDdN+rwuTvUg/+qUfjQK2OuhFfDrY2oSx7kZwz5lmTQk5Vsh7x33PJ0JW6 LUN6OBn9jlkT3v+1SbX86dMMwZgnUfyuBdZJZAa9Gqm0JjuSKMWUpJQAJYJ+HFzVyTnc 9/PPjbECuTzamKHKkWApIpdW3pnQaBCb69A3m2uLLiO/w9ZarWuRPyBQvFoK4fyAEfCR uJLQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dG9IOu+U; 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=H6baRyNalHeb42a5eTng9oWkPmK2zEft1x8nWq8+LJs=; b=ExtKW8ZF3x426OCHTV7KywC+3p4sBgwocfMgaQ9g09Hw5aV/mK0mQjA7G2AEwNobxc 82AxSiBJduwUvbm5Xnu8pM9bsAVCl3gLv3XgTvG+xjvCLLR5o2rXGiieN4X0rwZX31dq fdsNUeO3cN2JMoGvlmkC8DK/BX/B3DEG6/D1g= 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=H6baRyNalHeb42a5eTng9oWkPmK2zEft1x8nWq8+LJs=; b=gU06PO8r+rmKtK21IdG6RbWwu/L9cw9+rOM03GmmShyvzuM+D5tbjN+qEdsDDu/HFK JZK3+AX4T3lYQqWJsCeGdpQNo14rBDUcUBRVMBxsnHst8GuRHaWrSZnBZrqsyJtWee7X LD1rh2whovCCAtrkIYfjwDMpBPPPIPNB9CeHiTqf3vgucYNpLmD4rXV7a7x3syi5y1XL l16I/ES6ZdTGRfSptngeObNT9KtfaQvV22/sjJDehL/lw05OCoSF5tMT//MK+laObI0n YNa2OYN8av9k9IIBVSbh8lc8IW6GayP972L4EOSUpUx+IsdPy2ozw38q6f09T0BjpCJF NYFQ== X-Gm-Message-State: AOAM533MBSQpfAHHBVfkdvW4Kc5KUfXKQFo/8APg94V8hxCc8/yTcGzf aFd5nvuU/gjKnvdCQnk0MEnT2mZv X-Google-Smtp-Source: ABdhPJyfZ6LBSkK6Vk5Ma7bgeVsJ1srx8zOBOKi2E6J5YBBOxEi8lc1og06tlI0WzIHyQtj7h1ZggQ== X-Received: by 2002:a62:148f:: with SMTP id 137mr21380797pfu.130.1591044172437; Mon, 01 Jun 2020 13:42:52 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:bf05:: with SMTP id bi5ls4995059plb.5.gmail; Mon, 01 Jun 2020 13:42:52 -0700 (PDT) X-Received: by 2002:a17:90a:2070:: with SMTP id n103mr1328087pjc.109.1591044171976; Mon, 01 Jun 2020 13:42:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591044171; cv=none; d=google.com; s=arc-20160816; b=lKZj7tLQS9MzAUOfB3eaNW4FKaE4wyPxJPZ9spiELHiRXqajcenNlx7G2H7cWLrq/F w770m73DU3ddvU+Ds7ClzLLMP756gqPtN203BlREO3fezWIGCr5F+UrNWr0XXQK9PBdS NSzOV59wieJr6QA2md7NKXBmJOAp/Bwou3E9nG8N+wm1st7q6eqQ76VpI2r0sPMlYVd0 IkowztQtmK/fZy+IwKmrdAG4h9Q+Mc/SwLEwBdWSsb7MuwAL3guXOZdQ/0b5E2sDIatB yoJFkJApaBQ4iZtSCbllsruAWs9DkDlUU/sdqstSOsILGonhKvb68Kjt7Si4s+kar0yH ZE/g== 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=HH7Sg1d2KszYZfdSHi2ym0vvLWaCRPg8r9+mwlDQliw=; b=DYke29a6k18sT8DRiMzKeiSl9q71kqfM5k+IR2kxfGvsq8f3nCtcbKaHpC2wccIrxk sF9ZTIgFmZCvQDUfPaYGBMZsDZdIOCqn1wLS9cfPBkvnikKbXVGr6ySQyw7HAwV81C+t cooBfJTfdOAUEdZqFF9lAu9b4isi8uTEPgfwZYMZUjFu733DrgKJlWU3YHd3+QPm3cto vyptxW/zSTGwDjHDuIXLAOYcjAShxakW/UWhTcqcCNS9mm4idaaed6vB+gPgiHy4Wk9t q9yk5CALgmmGz31RNusnHjjkscMaPhcYd7Dg6kBNcQit+Nufw64HS8LagD6Bs4eaqcEg v/Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dG9IOu+U; 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 y16sor331971pjp.37.2020.06.01.13.42.51 for (Google Transport Security); Mon, 01 Jun 2020 13:42:51 -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:a17:90b:4d06:: with SMTP id mw6mr1397351pjb.190.1591044171668; Mon, 01 Jun 2020 13:42:51 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:658b:ecbc:7ea4:1996]) by smtp.gmail.com with ESMTPSA id k7sm283581pga.87.2020.06.01.13.42.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 13:42:50 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass , Hugh Cole-Baker Cc: Suniel Mahesh , U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki Subject: [PATCH v2 4/4] doc: rockchip: Document SPI flash program steps Date: Tue, 2 Jun 2020 02:12:13 +0530 Message-Id: <20200601204213.466120-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200601204213.466120-1-jagan@amarulasolutions.com> References: <20200601204213.466120-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=dG9IOu+U; 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: , Document SPI flash program steps for rockchip platforms. Suggested-by: Hugh Cole-Baker Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- doc/board/rockchip/rockchip.rst | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst index 7b72fab496..76b228a046 100644 --- a/doc/board/rockchip/rockchip.rst +++ b/doc/board/rockchip/rockchip.rst @@ -162,6 +162,30 @@ Program the flash:: Note: for rockchip 32-bit platforms the U-Boot proper image is u-boot-dtb.img +SPI +^^^ + +Generating idbloader for SPI boot would require to input a multi image +image format to mkimage tool instead of concerting (like for MMC boot). + +SPL-alone SPI boot image:: + + ./tools/mkimage -n rk3399 -T rkspi -d spl/u-boot-spl.bin idbloader.img + +TPL+SPL SPI boot image:: + + ./tools/mkimage -n rk3399 -T rkspi -d tpl/u-boot-tpl.bin:spl/u-boot-spl.bin idbloader.img + +Copy SPI boot images into SD card and boot from SD:: + + sf probe + load mmc 1:1 $kernel_addr_r idbloader.img + sf erase 0 +$filesize + sf write $kernel_addr_r 0 ${filesize} + load mmc 1:1 ${kernel_addr_r} u-boot.itb + sf erase 0x60000 +$filesize + sf write $kernel_addr_r 0x60000 ${filesize} + TODO ---- @@ -171,4 +195,4 @@ TODO - Add missing SoC's with it boards list .. Jagan Teki -.. Sunday 24 May 2020 10:08:41 PM IST +.. Tuesday 02 June 2020 12:18:57 AM IST