From patchwork Thu Jun 4 14:51:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1331 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id B7F623F0D3 for ; Thu, 4 Jun 2020 16:52:15 +0200 (CEST) Received: by mail-pg1-f197.google.com with SMTP id u76sf5261026pgc.1 for ; Thu, 04 Jun 2020 07:52:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591282334; cv=pass; d=google.com; s=arc-20160816; b=sdHEjIa516VAVs7O3wyLN+ep9OTPA0aVn9TaRFBsYuteM1r43kC8T4otMzTRKaHvlr FY5lo5b2IUiEO5IRc3dOR0p4MK4auxiw0WxOZ5/MWuAcz8rz0M+zO6W80FM9zamCzJCg cL8T02UT1hAq6V8qZGJJhyv+8+YjJ62z/lDMgt2hxC0PZAfuAm7UhENiw2mq72ROHdYM s9doaGRpVYZj+mZcpZd0PIh0xVGBxcUhB3x7XI+iE786RsXJcqT/wAp2KhMAQD8GBdmT 9Ot41xfPkfAcrAcb5zny5g/UKKx2ahv2DiOh80nGCrH9opR35kSHzkeOzma6wH8iowVf Oogg== 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=8BZvhv9mkobiVMTOPd/VtLzL//hybYyo0JjCsTAGs+I=; b=qSH0tv7MQ45aJpGHBJ2pxd1cdf9ircIgtlynAS9cy18uKUVVxPf+FKk7iyUsT77VcD eY58tozcq4tKUaq4cVaJIkRhmDAih8j5kl8ifkSsYQRYUzci/XqhUxkkmz05fogBMEin Idwtr/UfaHfsAIwhEUbIBivJ1Z9rjkd6s/NfeRlyyc1aOuLfaxGDFoc4FdyFyMnLXvFu 9Xl31wb0WNB0a/Pick8jrVbQvTZ4pS3VFbT1lZk97CGjMhO+dR3KIxLTggqDtu6dyJp1 PwLfJCl+ioeAtHF3i3V2TFVkDNpZXmwLtqRTV2dJhUZDtTQzHZjG9Jenvrc75sMsxQlh uAhw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MubIdiGo; 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=8BZvhv9mkobiVMTOPd/VtLzL//hybYyo0JjCsTAGs+I=; b=ChHmpqF8lzTTokaRUrLDVOrgMKAnLDDSNW8KSd7ZNJ8GHOBVF8Tw6Z6jkwu/pAx+SZ DeTa9Eff75hhp/7LOZJ7AoizlDggAmzsCWHz3qNnuGP1KQv8L5MTVbuudvysqefgYCMS Ifb6ZKQLSUyP2vSISVo+MXaqQrqPFrIElG9/A= 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=8BZvhv9mkobiVMTOPd/VtLzL//hybYyo0JjCsTAGs+I=; b=OjJlrYaXmsk6OB9Bz0bgpGtKCVLvwz8u566DflWXzV29bS9OqTtt1f+E/o+ndVaaXl 18DDXJzlvy1K4PjCIpM/78cVRNN3cPZZnE3CsnbhcJ+6y4DJU8S4s1py01gzoKDr5RRb 3oz05OUr35QppzsWvmxS6PvNPZuGSRUJBNj8VUmnjGNLmRHXU7cZQyUWsGD0V3B6sRS0 AINWrBsWCZprJZ7puSKq7GywJfYNqyDbL2j5WOrA2M1cI/do5/Gkbiy4NnijoiBXuAmr I6Fw4zN+9RMfMfv7IvLev60wWjoiRxwHlMm6isFdzp1ptxTOQlaZjf03scQUJzcpZaTQ 105g== X-Gm-Message-State: AOAM530wR/Ag/I4XGEKFVa0tZLFw5x85+7bX9P8S35Lw4l1lKP5nUsA7 KtGvbfGRuTs7nMYEhX2/snUKVOOx X-Google-Smtp-Source: ABdhPJw+HSDjzuFUxFDpEqUadA9S7JHzh9p/Ao9rbtqxactykWsqaNAzIEIDyt9o0YL7pAdn+FchGw== X-Received: by 2002:a17:90a:dc0f:: with SMTP id i15mr6300152pjv.221.1591282333727; Thu, 04 Jun 2020 07:52:13 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:8f3a:: with SMTP id y26ls1931448pfr.3.gmail; Thu, 04 Jun 2020 07:52:13 -0700 (PDT) X-Received: by 2002:a65:40c3:: with SMTP id u3mr4948381pgp.305.1591282333263; Thu, 04 Jun 2020 07:52:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591282333; cv=none; d=google.com; s=arc-20160816; b=mvYgwpm0fPiVlnhUTOMsfCemWUxvULkvd4h/q4+1NnCi/tWQFdHhZlHirGfYVLvw9q 2C0KEEmgMqqZ08TpWrtbwr47C+MhPt3EGfilBDDmoAma0OJO/KdraXQb7oq1b9MRxqCP BhTEV2iiLXzX086e2yCQDYCV+fhZbj9ZbyY/PoEBEiStALCDVb+yCzveYMKzYvkwaEV5 sLQvkhEr43Q66txKVDcHRYmHPEiwCdLz6qaPxFAluk/xbmBtupcBTMpu6Aud6GIkPnpb 8y/8wv+e80Wd3tbxesY0+AHo8x5urpQv01r0GutW5LsUiYlGohtgGyna+uk0dX7Xgq2C pJ+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=WvJNmzTnVxPq+QWwl/Pd6hA/X47IzOU+sT0DHl8s04Q=; b=LvUvP29CaQSIDAl6MAFnR2eyAegwGIUDpj3eVsif/rULn5twXyRNOjppkJCj91URFk 3v6lcXCJ/SMSaiXbcz5KcwL3P7u5HWbCMvX9wpMc+x0ZYJ6/96wlSqG59V8R0wjflSmi eime2vSkMvEVK0yTrKpS+Co4v2DnT+N3Zh+OfAy03KG+DU+/TjnTIxq2Z35YXWGZX66K ZZOBBRMu9m7OBL1I3GyjkbUDGLCMXMwtql/lOWpLosppvQv1bcLbHsNToYuOee2wK149 QMh/mmPpxo9eyW2CpAkJsTNoarB+6HBgmBlbSNwNLSqIZL6heqC5LhDbrqZwA4r1iTby JF7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MubIdiGo; 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 z8sor5645227pjr.36.2020.06.04.07.52.13 for (Google Transport Security); Thu, 04 Jun 2020 07:52:13 -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:90a:ea05:: with SMTP id w5mr6727767pjy.37.1591282332982; Thu, 04 Jun 2020 07:52:12 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:41f4:94a8:1af3:a574]) by smtp.gmail.com with ESMTPSA id 2sm4831283pfz.39.2020.06.04.07.52.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2020 07:52:11 -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 v3 4/4] doc: rockchip: Document SPI flash program steps Date: Thu, 4 Jun 2020 20:21:41 +0530 Message-Id: <20200604145141.356702-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200604145141.356702-1-jagan@amarulasolutions.com> References: <20200604145141.356702-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=MubIdiGo; 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 --- Changes for v3: - none 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