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 CBFA0C0015E for ; Fri, 28 Jul 2023 11:39:43 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8563D868F3; Fri, 28 Jul 2023 13:39:19 +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="YUg4NyNZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CD385868AE; Fri, 28 Jul 2023 13:38:44 +0200 (CEST) Received: from s.wrqvtbkv.outbound-mail.sendgrid.net (s.wrqvtbkv.outbound-mail.sendgrid.net [149.72.123.24]) (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 43166868CF for ; Fri, 28 Jul 2023 13:38:41 +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=QyAP28tHLvhOQtZSGHnPZt8G0JtopNDo6AAtQhT9ZyU=; b=YUg4NyNZUmT3t3hRzlbj9sUDue3lnUdE7gETvXCZLujiQTH9wdhxE/6K6k7nlVMGE8ns rZvUHbu/kB2hAeA5UgfGer5DpwRDVhOmlBc+4Lp5GdMF4YJ2j85UiEyYtdd7ub2y5FvhQ8 p+h7oJvmaJ2+sZs6sOOLZqgGemqkoNp4CaQGgJhELpregkNZgKHW423+1GT0wBp+oPSpCb rb32Z1e/TsFrDf/AJkZxKCiBOSgElqL4n8HSqxKWxQhPfJ5Prt8GsA4a5wOaWb8c2lTtdW kBKc39xK4dx4u+9mM0MP8GYtDkzjDfWvWh+/54QsfhSRAdaN1rCgrtRKhvI03fVg== Received: by filterdrecv-65f68489c8-nnkmk with SMTP id filterdrecv-65f68489c8-nnkmk-1-64C3A8BF-15 2023-07-28 11:38:39.835206345 +0000 UTC m=+6782561.771339382 Received: from bionic.localdomain (unknown) by geopod-ismtpd-10 (SG) with ESMTP id U7mg_uuHQOaehIVap9Acww Fri, 28 Jul 2023 11:38:39.615 +0000 (UTC) From: Jonas Karlman Subject: [PATCH v2 5/5] doc: rockchip: Update SPI flashing instruction Date: Fri, 28 Jul 2023 11:38:40 +0000 (UTC) Message-ID: <20230728113830.1731793-6-jonas@kwiboo.se> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230728113830.1731793-1-jonas@kwiboo.se> References: <20230728113830.1731793-1-jonas@kwiboo.se> MIME-Version: 1.0 X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0h2wSKUQfQbS8HC9x3?= =?us-ascii?Q?J=2F1ta+dCViQrWeb7G=2FtDdtYfthsMuj3ErsAlWll?= =?us-ascii?Q?Q21XxCHeDKt9XTNRXaKPGLp61U2UMs5lgE51RzC?= =?us-ascii?Q?VMVg1tFBXSdPPTo3cPsMMJ5YLYPQB77xx3fH4xL?= =?us-ascii?Q?NpEmOQzL0q9KX1G73prpyPr9NbomtzlETKT1K5?= To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Peter Robinson , Quentin Schulz , 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 Reviewed-by: Quentin Schulz --- v2: - Rebase on u-boot-rockchip/master - Collect r-b tags 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 dfbc27a86d69..2a535f83fb1e 100644 --- a/doc/board/rockchip/rockchip.rst +++ b/doc/board/rockchip/rockchip.rst @@ -213,7 +213,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): @@ -264,31 +264,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