From patchwork Mon Jun 8 18:17:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1344 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 84C163F1D2 for ; Mon, 8 Jun 2020 20:17:42 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id v16sf4389424pfm.15 for ; Mon, 08 Jun 2020 11:17:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591640261; cv=pass; d=google.com; s=arc-20160816; b=rYTbTuw6SPlMlskBzQNrSwBCu5H5Cp5dfa2a4lMoVe32ItshxITnuyY83zomxk68vX CPngr6XrY7bcw2kBDdW2TjL7xf/csbis1zBW01DY4cmlXqfRb9JiZNhYbthPXkcO8Taa Us/tLnreHwz23tLs8mscXUm7fpJykdejudBcJZhmD4Jlw1I74INrJC4acwUGrTZyGe23 AFcw5waQiKklc6KFdo0kq3CVGGna304qHw4m+T4PP0SyT9H4nHtupwZhM9vWzxxchfnS jWiizsgdhY7/xfPpd7R/l7DxFyxTOpXTunb05XW7y+1aO0dxS4xICjFJ5XB+X7kGiK5R Goog== 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=5zeCqfNPDL6v8yLloSnYeuRxaUC5GA5v1+isxdfYDpI=; b=aztkEjpKQmhKG/oKwdNTfyxh0QQ2HuNJmpVbuu2iJ4dul8BLg9k0+RzRovEleuPqp1 5n7gLYu55VPapyJnq2piGFEy0iQBw9YlO9A6HApJVN/7z5cyT0uB94yZY4TDBWbnIfRO 1RldbICciAVn5hrGqPZT25XTi8+2AnyGTv6JuXvxLrPOTZBmXL++7yH8hFyfd5ezAcpk 1WlBGyJQw3w0vQVa9NjdA11ogFzd/ziY+4e+FqQ0MABMH6OGNwzApW8hDDMW7MHCtIKV RK4C/Huz2QMG+YQcZcLqiekY/GGk8efegrr7IgCvxcHQO2ZHBzL824a0G3pmD/IVGnD2 10uA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=qKYhoLFy; 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=5zeCqfNPDL6v8yLloSnYeuRxaUC5GA5v1+isxdfYDpI=; b=oyCE+yv5U5E+VlamaLb5nnDNXJNytO7XkZ0Mm6BvVZBtEA8AfO4Ps8tX/5KWfA03W8 u8in5zjAQ+XurxLAmbC9T8Ai6LaExPVRoSD2d02MVaDGAWoVsBTS6LC/44nvBPjLKzaF IO0nSRejVU74GcpHnLshe+q6AilX5NqK7z7lo= 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=5zeCqfNPDL6v8yLloSnYeuRxaUC5GA5v1+isxdfYDpI=; b=lsJ7K0/YINPsfiF2zeCF9zRwybdhS0bJz5LNp4/eEEs5x4lesoDLbo5p5XokCDJIxk Kk43WmczQDGc9vB6wbKgQoRP3rgRxhjA76j9nHWCXHebQ8G1nV9X9EflHs4wjoehg1gy jOoFbtEcrWY3hlavUgKv4CapqNcRV/FOgrz7SwHDVvJh5JMzr7Wamhevw3iKi5bxbw7i fELMyDqRD8OvR3staMEe7bLwxMtWieNwVRuICRdmKuiFaD3d0YGPp0vwPYiY5BHKRLHH RxA2ryQIG6KuNpDqadQWiRFIRL62LKro+PAHgOBtvc1cfN2BjcKFA7Z6yoYyu/WFI6BU T7Ww== X-Gm-Message-State: AOAM531nQvQcL+mXaN+h+wj4KIlj3IQEY4N5jjLraE5dVO73CU46Hi/j T3E0ZZ8cilcYrjNSTAgt3jQgBXw6 X-Google-Smtp-Source: ABdhPJxDq75oRgGLNcLaKl7ZOHqfYmn80+a81JB5+hnBWj2iskOhMILjQO55UybvqqwCXQScAgafMg== X-Received: by 2002:a17:90a:db90:: with SMTP id h16mr549142pjv.119.1591640261216; Mon, 08 Jun 2020 11:17:41 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:b702:: with SMTP id d2ls6432801pls.6.gmail; Mon, 08 Jun 2020 11:17:40 -0700 (PDT) X-Received: by 2002:a17:90a:7806:: with SMTP id w6mr535460pjk.24.1591640260712; Mon, 08 Jun 2020 11:17:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591640260; cv=none; d=google.com; s=arc-20160816; b=ccy6Y1Vq1ND4dJAxHAnCOVTkIr2CzbOMgm0VDhTVXDnGBnAenpOM/oc18M507ty7FD qa1huJgaKS2oqukC1WZw6zgoaR+y0HbjCvmFYARyBJaW3sHh+YQFp7CjnOnHMrXi3YI/ PhwuBsER+8/bFUVk3IMQ9ushW9dOgkn+xAU8Hka6N6PoDgdw7pL6w+GXvzaUoOQRILQx Lu7131LVsxhekMJLuXtVIZGLESPbnVZjh9RTXdhVmbTZcD4uPNvTUxixcLmOL/k49yyk CD54iInN2uDaL9y3UOIpQnt9WfUbcXYHHBMZJagOJEb4HyUmQLlQbnIqfL+60Rj10GV8 TJcg== 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=6LipOeR35UNlq6/T17OBC7BQS9hPC5+ORvdL4ZZQyaY=; b=ujRsiMpiJY+SBU3ZptUiYKBdsh1C9WpqErV4k9ZBIzFwJw00ncYb9hD4aSmYiOMhLT gFfOx52ApiW8m6V6S7ojjZ5zWSkpz0Y10ivUf3YcWqqXsMXSz3U4OT/wyTDIkQCf/jIc SrmxfJdBDqQA5oARn1Hw5Lkcd2JDzSdZAEnMt+TRiKmsD5z7v0VuN1FPsZpC3Qsp3NAe YB4yp7c+qTB+9pjtB0Ki1eRjmWOZjpwxKnBtQNYIcWyPKFJgHMMPEj33rIGmElSVzcFi 3xK858134R4m4teBLi7iP9Qis8HnEi0Rija1SWnEg9j1PB8iipL9e406rQx/o2rePdtN x7wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=qKYhoLFy; 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 gl12sor494735pjb.18.2020.06.08.11.17.40 for (Google Transport Security); Mon, 08 Jun 2020 11:17:40 -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:9292:: with SMTP id n18mr537029pjo.3.1591640260445; Mon, 08 Jun 2020 11:17:40 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:9043:af95:b7b4:3ade]) by smtp.gmail.com with ESMTPSA id t7sm180213pju.42.2020.06.08.11.17.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jun 2020 11:17:39 -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 , Hugh Cole-Baker Subject: [PATCH v4 4/4] doc: rockchip: Document SPI flash program steps Date: Mon, 8 Jun 2020 14:17:08 -0400 Message-Id: <20200608181708.17842-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200608181708.17842-1-jagan@amarulasolutions.com> References: <20200608181708.17842-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=qKYhoLFy; 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 v4: - 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