Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1FDD7EB64DC for ; Tue, 27 Jun 2023 19:11:41 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 35A87865B3; Tue, 27 Jun 2023 21:11:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kwiboo.se header.i=@kwiboo.se header.b="JzMnMTil"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 004A9865F4; Tue, 27 Jun 2023 21:10:46 +0200 (CEST) Received: from s.wrqvwxzv.outbound-mail.sendgrid.net (s.wrqvwxzv.outbound-mail.sendgrid.net [149.72.154.232]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9EAFD865FA for ; Tue, 27 Jun 2023 21:10:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bounces+31435339-7456-u-boot=lists.denx.de@em2124.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=from:subject:in-reply-to:references:mime-version:to:cc: content-transfer-encoding:content-type:cc:content-type:from:subject:to; s=s1; bh=52K4bTtsykcVTjiy3Z+6FJTSmsw1fTOF8C6OsPvVHPU=; b=JzMnMTilleoi+VZpwzg1UjzO5jjRG0laSyP/GA04Te/xY2WwJduHypWVt8fUU0OnoH41 QMr/TCRmHLgnZxiONKLe1SUwSZja85dXkMbQjTvUtRp3a8Y0yFCpwWT8hxOaFoDHUB/NbO 6ul3G+pAyxEBOAWqoPyRbuKKYA0qQZgqIdoI1Dd4xUPEBFemC9PymEhx45ZLscpE1kAZ7k 2ThHILNyDgl8KDpy4htkcJCWZibn1wHnL01aoUJS8iOcgQu3PmFGthL4lxTHKIUAK5VGUS VZTubC+BUhpmXhgKwyjkkHKNNRo1PcTc5dObTRyZcDv6DGByK5A7NdIJGhl6T1bw== Received: by filterdrecv-8684c58db7-5mfx8 with SMTP id filterdrecv-8684c58db7-5mfx8-1-649B342E-1B 2023-06-27 19:10:38.466908997 +0000 UTC m=+4131145.868319364 Received: from bionic.localdomain (unknown) by geopod-ismtpd-9 (SG) with ESMTP id LGupCSTNTK2scivowBQ1Cg Tue, 27 Jun 2023 19:10:38.170 +0000 (UTC) From: Jonas Karlman Subject: [PATCH 5/5] doc: rockchip: Update SPI flashing instruction Date: Tue, 27 Jun 2023 19:10:38 +0000 (UTC) Message-ID: <20230627191034.2093823-6-jonas@kwiboo.se> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230627191034.2093823-1-jonas@kwiboo.se> References: <20230627191034.2093823-1-jonas@kwiboo.se> MIME-Version: 1.0 X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0hyz8LZnvikl9XLZPj?= =?us-ascii?Q?fxgL2d8WjTy=2FqvYr87GWD1OQOod5Qw8lyNVWUF9?= =?us-ascii?Q?rHmjadoqA6j9d=2FXxS8ZXSg7O44hoyGF6NgkOOEm?= =?us-ascii?Q?LwnVB7P3Pgldh3eI4nWpoXOB=2F4Ca5etn1K4ydH4?= =?us-ascii?Q?zwfWmWPD+t2l8u=2FgXQQsw86+aWq=2FUMPiVvE2BV?= To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Peter Robinson , u-boot@lists.denx.de, Jonas Karlman X-Entity-ID: P7KYpSJvGCELWjBME/J5tg== Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Update documentation on how to write a bootable u-boot-rockchip-spi.bin image into SPI flash. This removes the reference to a hardcoded and now obsolete 0x60000 payload offset. Also remove an obsolete reference to pad_cat. Signed-off-by: Jonas Karlman --- doc/board/rockchip/rockchip.rst | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst index 99376fb54c90..5471bb928205 100644 --- a/doc/board/rockchip/rockchip.rst +++ b/doc/board/rockchip/rockchip.rst @@ -211,7 +211,7 @@ SD Card ^^^^^^^ All Rockchip platforms (except rk3128 which doesn't use SPL) are now -supporting a single boot image using binman and pad_cat. +supporting a single boot image using binman. To write an image that boots from a SD card (assumed to be /dev/sda): @@ -262,31 +262,15 @@ is u-boot-dtb.img SPI ^^^ -The SPI boot method requires the generation of idbloader.img with help of the mkimage tool. +Write u-boot-rockchip-spi.bin to offset 0 of SPI flash. -SPL-alone SPI boot image: - -.. code-block:: bash - - ./tools/mkimage -n rk3399 -T rkspi -d spl/u-boot-spl.bin idbloader.img - -TPL+SPL SPI boot image: - -.. code-block:: bash - - ./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: +Copy u-boot-rockchip-spi.bin into SD card and boot from SD: .. code-block:: bash 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} + load mmc 1:1 $kernel_addr_r u-boot-rockchip-spi.bin + sf update $fileaddr 0 $filesize 2. Package the image with Rockchip miniloader --------------------------------------------- -- 2.41.0