From patchwork Thu Jun 4 14:51:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1328 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3AB383F0D3 for ; Thu, 4 Jun 2020 16:52:01 +0200 (CEST) Received: by mail-pl1-f197.google.com with SMTP id d23sf1916391pls.18 for ; Thu, 04 Jun 2020 07:52:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591282320; cv=pass; d=google.com; s=arc-20160816; b=Sez4Q7dVn8/Z4DKwFcZCOOA00O9611JHzj+D53/Ozf1u0//2hAVFI8g2T5xdtNGclk hUl7/4V8z1bZ/jtBEJLG0fVeKw+iJeezgzxUg6AfrV1G5fxCxSpYhgc+M6QxvRF5Dc/i Dz9sbWb/Ja9eUDceVybN0hn1aVj8c3be+mCau0bmSbbQzvqSBPGPDXZ9+aijUO53lOKC ZlkPQsiEjtCngQH1FFsNB3KBB+6qTx0BfMJY6ByAh2x0a2mUyElwZrfwQ57VkUFeEgzq O50rzUf2A80yv4F1kSn+ffrztA3WS+kdBKAoL+9ouQdQ8cZiesb1H22Yt0bUC4ofs+EF DTkA== 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=EFqfBptohTxYtbp2ZA4N81gYe5Xe5lwvalKgNCN8nA4=; b=Kxrn92Phofvf0U7cybLqQBzK/Q01Y7bs5rX7jSvv/7Dqjh/mqW60i6nsgvjjUEjxqp ZGBvD2lRy52A3a9h2O8jFO9y2Qk4EUwuD4QcVMu1LwPguIs5r/1RbzwFHbo5F2De1bWd Sjz1D71sC1tw5wJi9qk7XgtlPnvc3Ffhaj83ihEemH7a3/RCtdT+9RKmc11P7IakMAw7 YrMMNWXPWdcH8AWVgqjTy2zy02HP354zqQHY9Ju8p7cwnvsK/jiXSTsMh1sDsFs0vCv4 ShV5GR2FtQZpCspPvZr+hLYL7Act2NiCbdU+Io2EjZ16Jn8+ozFcN1SlkGf1byIZVHsq 1qTg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oebbuw+M; 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=EFqfBptohTxYtbp2ZA4N81gYe5Xe5lwvalKgNCN8nA4=; b=TP2ozjWVBPF5Kd3qF7qv9WkzJjBDB+PQCanEeD6bSZUQphpdAepfBt5EjOPXejdYK5 UvJxZ0evVqP/CiQxZqLCuUr4XpLiVGAmZL94b2mes5kJHn4HqMJqbMavYZtSCnMuG92Q S9JzKqKl20ik1EirD785044/FcCskexapnt/4= 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=EFqfBptohTxYtbp2ZA4N81gYe5Xe5lwvalKgNCN8nA4=; b=fwOSHWvlLX247I517r0GGl/LX7EVNbxTj3ytCgGAgVJruT84J0pZjcsxX3Xm5inPTk UumquI3jmEWBszxRGKmqn+AULUxO4LDNU+i/91MgqQTOml/Fw4rX2BSnaaXEFsfBua6R ieO4hFTaE7PMoh3GkGHof6qrnil2yG6AQUkn5o6wVXcHxEeHv0dD5SGZXknGSQSx8BCx 4i9uriU/EErSBWcYOb9ASnOl1Z7mXdQfLgb88gandPKyWsOX78U8+PcezzhrM89gH+vQ 9WTvDgx76tkBukgRHqj50as1lJQgNG+5soXV78liyVm9+aBFLdSDT5pKwrU5ZTjLYoGT a1Fw== X-Gm-Message-State: AOAM533bIILES/NIRk5L3OUfcWENUrKY1gO2yezCUjQoI2VSNJDbpsRv FHru6Dck90A8voiZlZAZANTbhVSL X-Google-Smtp-Source: ABdhPJxGuOLQNa5VCj0WscxgZzS0r4VsvFhoHOjGEN9HCdCFb9niAa+b6o2MJJeJD3STIuiflgdatw== X-Received: by 2002:aa7:96e9:: with SMTP id i9mr4788406pfq.232.1591282319644; Thu, 04 Jun 2020 07:51:59 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:2c94:: with SMTP id s142ls820591pfs.4.gmail; Thu, 04 Jun 2020 07:51:59 -0700 (PDT) X-Received: by 2002:a63:368c:: with SMTP id d134mr4754576pga.393.1591282319067; Thu, 04 Jun 2020 07:51:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591282319; cv=none; d=google.com; s=arc-20160816; b=BLGNZiWYNndnv/IUevOTrSu3ssWC0gePc64OSEYoKbn2dndmYeBQKQe1/QLoCxNwPD taR8RHLwOTv9dHBs+bKRXjR4WAL6Ftrx+5QVHzuBxcUHfGvOL366r1pVVKgnziSUSEXX SCyDPLwaaJrb1PHOgTMwU3VbeEztVK/2OZMMXjB7po3UjbwYoJBq5u4tSYHFph35rdop PGmfOLdlBMIr4umPiGMbIcaw+aOwl6bQHzat3b4FlxVfDNPrCWFc/Q5Il3USURPlyd1S 1UxXeTj2Bi0P7Jl8y4vVdG14tP7JQOj6elBXNoLJUsUSXffSA/4x5Jz7BIaCy+2/gkFY s45g== 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=d20ccB6PVQmGHsflN7/kgqqNBLF8lJvbEcLUABZCXrI=; b=zw5rpsQKLy37Xzyj8nBNTSPhZTJfzsJAOpSnOmMtEn5xWnvae1mYGCiT8XULpExKHq DuhFseE02nk967S0MmTFHWPPD5UpXJB0RIrLNb3BLe3g63Ze057TwyMUUfjNTNzjaO7B I9WjMXW9wYloB/On/yy/Z328nfRDsto2bwBzjRY04n2CgRpzOdA93yLivUIRh4vyABmO fvedqUht69mWrzwtXgeXhhY5ao93/AH3mug20kpOo/UTE7vLNT1fs3t8eA50mgYc3ctr tNtyUlyjTlFKIFup/ZCnAn92Fp+HnK6j5+uJrCnrp3thcx5/9zKvL9J/BtzsW+xGoeeh rdMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oebbuw+M; 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 d8sor6674509pgb.87.2020.06.04.07.51.58 for (Google Transport Security); Thu, 04 Jun 2020 07:51:58 -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:a63:5fc8:: with SMTP id t191mr4731889pgb.185.1591282317977; Thu, 04 Jun 2020 07:51:57 -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.51.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2020 07:51:57 -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 1/4] Makefile: Drop to handle rkspi image type Date: Thu, 4 Jun 2020 20:21:38 +0530 Message-Id: <20200604145141.356702-2-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=oebbuw+M; 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: , On rockchip platforms, SPI boot image creation is not straightforward like MMC boot image creation where former requires to specify tpl, spl in multimage format in mkimage, and later simply do a concatenate mkimaged-tpl with spl. On this note, let drop rkspi image type creation via kbuild and let inform via rockchip.rst Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v3: - none Makefile | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 3851dd9fa0..db3b6b9991 100644 --- a/Makefile +++ b/Makefile @@ -1438,22 +1438,15 @@ u-boot-with-spl.bin: $(SPL_IMAGE) $(SPL_PAYLOAD) FORCE ifeq ($(CONFIG_ARCH_ROCKCHIP),y) -# rockchip image type -ifeq ($(CONFIG_SPL_SPI_LOAD),y) -ROCKCHIP_IMG_TYPE := rkspi -else -ROCKCHIP_IMG_TYPE := rksd -endif - # TPL + SPL ifeq ($(CONFIG_SPL)$(CONFIG_TPL),yy) -MKIMAGEFLAGS_u-boot-tpl-rockchip.bin = -n $(CONFIG_SYS_SOC) -T $(ROCKCHIP_IMG_TYPE) +MKIMAGEFLAGS_u-boot-tpl-rockchip.bin = -n $(CONFIG_SYS_SOC) -T rksd tpl/u-boot-tpl-rockchip.bin: tpl/u-boot-tpl.bin FORCE $(call if_changed,mkimage) idbloader.img: tpl/u-boot-tpl-rockchip.bin spl/u-boot-spl.bin FORCE $(call if_changed,cat) else -MKIMAGEFLAGS_idbloader.img = -n $(CONFIG_SYS_SOC) -T $(ROCKCHIP_IMG_TYPE) +MKIMAGEFLAGS_idbloader.img = -n $(CONFIG_SYS_SOC) -T rksd idbloader.img: spl/u-boot-spl.bin FORCE $(call if_changed,mkimage) endif From patchwork Thu Jun 4 14:51:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1329 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id AAFC33F0D3 for ; Thu, 4 Jun 2020 16:52:05 +0200 (CEST) Received: by mail-il1-f199.google.com with SMTP id n2sf4131361ilq.4 for ; Thu, 04 Jun 2020 07:52:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591282324; cv=pass; d=google.com; s=arc-20160816; b=Xn1B736PUUfOoLJPq68cFwdIH+I6IVe/9qP8XEnTOzmjw91uj2vF4JazdqQRyBBoMw ZI22LkKY82O4x/Cv2rHP3watBhNwGnBYzsSGhjihXdAIp5NmeB6swZ9gYSDyGiRLMbqr 3NQfwqQl2uGBnWwfVPdXcuvC1AVQv8Gj9Uq2q7uWx6s16VY7xDUVGa9PTyKKr38GqQCf on/PxeJGOwktuQljHEa5S9aZlFwCutTRI53+7ONtemVOCS8GXpIa2jsphyp+BSih/+fW T7J/EzjzN1J2niYeTxUcWukmQbLpSidaq0qRBR0QYS01C2Ul2fMBiy6NJJnH6MoYcXzP oGOA== 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=Kd4aCMIMItJS7AeuOYVKB0JZuNxu9L5Uzb8ZOkXWzwk=; b=zZwIfYrOu78YGyBxYFpIJzqVpHJb4QbnZBBRA5q4vJu+7zhFhHEC/O41V9Xj3/SQDK IZKmWnuqm12VXI+mL/MnNu3mjJNTY0w1U79jj86eabmBpQCIlqvn4TMaIgnPx49qGPPP yL/NMvRLv27ZBFYLC5gW1HSiLziPUeDa3zQV3YGOyCSNXDHXAfWMJxvIC+mygijdHHhM W8mww2paauR88fLZiK7X9qSyu+oipx+MWKNc1Jp98EOQSALdSHdI1N/Fx3g4dHEQj2Z6 kvGVjqm+SOqC0CrlMoRc3PDu6buuG3VpiWKXfCC4XIZsOne3Wogs5aEhYu1kHS0wqEka cCGQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MBtxAHlP; 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=Kd4aCMIMItJS7AeuOYVKB0JZuNxu9L5Uzb8ZOkXWzwk=; b=Ah3gmNHcdvX/ZHdTBbw01m+j/8eUtbCriYVhmNv5THFfBGzinEJ38GVe91LvV1C2/a 9TzQ3fKXksjc9dbilFvnXvvx3zz87jwBmF/0Spj32EIJXe6UZJFLg3DhC2L98Ifn9sJp ODKvKNz7uUN3z0x/FtUY6Ln9BG4VSwxcyIT34= 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=Kd4aCMIMItJS7AeuOYVKB0JZuNxu9L5Uzb8ZOkXWzwk=; b=fzTNRTBwPllx/VyaiayORUsXrksFAqAh8aMzT5LFePD3QOQ7H0cW+9l8gJCJS+H44n +4OO/tzSgZs+woj63pAViKwyTqYGDXHrHS+OYD2/HlBtRooLiyZ/wgv62RcFQRbp6NLA fiyBhcEpVbuKZtnCDP6Kn3kAtrS8Dl3wMDo7SkxgTGg/hc+rB2gQnSYPUjMBOwoFGrBS eHZGtLyBdPfpOIr/t633zo2K90VVGoYTnGsA7EDmFOc+F+bQaSyDZEwE10Eyv1E389It keSIoZ5yh4SeIs1BpheekecPL8Ey9NItgN7tjCvQOmQ1/SKR9JO26n5H3c9xucQyLpn4 XoDA== X-Gm-Message-State: AOAM533MA4kEmlm7jq+cfmCei7olBhywzCXEg6qmFRYA1Q85YJS9ddYw 5v6Hbc22DLiNTHG1VuMa50+w+6In X-Google-Smtp-Source: ABdhPJxB+UoI/R7jqw/3YgKaMm58AryXEQzQoVoQtN6qHXH8y4PL9X2RaKgpeFe2jm7OLaa2yflxlA== X-Received: by 2002:a92:ab04:: with SMTP id v4mr4278304ilh.186.1591282323995; Thu, 04 Jun 2020 07:52:03 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a92:9108:: with SMTP id t8ls1619825ild.3.gmail; Thu, 04 Jun 2020 07:52:03 -0700 (PDT) X-Received: by 2002:a92:cb91:: with SMTP id z17mr4202818ilo.305.1591282323377; Thu, 04 Jun 2020 07:52:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591282323; cv=none; d=google.com; s=arc-20160816; b=WFvJjwYBoHSkz3fX32kAG+L735lsAVDe+yTAcwJQTYUWZRa3fd6KQQL9y3c5tm2d/S P9lXwewhB/jFmi6mtC5WqvSDr4tS8iAFWYGM9Eid2Q68fOSIPDcMuOIzs9CMD4gPoCd9 0eYC8OSEWptz1zqfoeN98cGM06R9aDYytMkFuFb8i2UZ45Ai3s8VAdj7i0VNc2jY2k1A kFxU+Z+HxmvPzSUwT06wRj8iCKTsMz13qGtNCZ9+odJKqz+zduk2cU2GSzDIy5uZsRu6 vWuvCIp/CIzp0QuqIRh2p6h1hpcpVBGbkKT8iuU3C9JEeYq4+3+GoE4d+vdPL1GVobQY dn8g== 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=xOZD5a5BKPNBvSCMbNYcHacgo1bsu/9VtngWLQjb1VE=; b=MnuoHehXAkCWdhZV1v/HKQhR21on/Wc0WAzEomJaav9LfozQB8AWHu201ajUJHJdVB aEvz/dTCKTEm1utICClnoXMiw4qxdAMDGyiJfFHJFNTmbtZQ9jFdv/rUN60hev+W4XsN xwKOHBggCFHMoQs2JsX4Ar61fA9T9L7pW5KZ11uuxVJGZWlklKkA7ryQxz1fVH87Udvp Y605LCe6PQftHqEtTYTv5aggVWFhzBhtn8YZJbmZ6wo3O43nESf3Qs14uk/gYaHx2VAR EQlBz7sxzVQbiCTpdGIAYaBp4yEUUfMrIT2Cb6Lr4vi5u/z2HNxLPVpWARAO8DvUtIkv BwrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MBtxAHlP; 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 k128sor5075432iof.97.2020.06.04.07.52.03 for (Google Transport Security); Thu, 04 Jun 2020 07:52:03 -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:a63:fb14:: with SMTP id o20mr4863896pgh.144.1591282323037; Thu, 04 Jun 2020 07:52:03 -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.51.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2020 07:52:02 -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 2/4] roc-rk3399-pc: Mark default env from SPI Date: Thu, 4 Jun 2020 20:21:39 +0530 Message-Id: <20200604145141.356702-3-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=MBtxAHlP; 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: , Mark the default U-Boot environment as SPI flash since this is an on board flash device. Updated env offset, size in contrast with default since the U-Boot proper has to start from 384K. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v3: - updated env settings configs/roc-pc-mezzanine-rk3399_defconfig | 6 ++++-- configs/roc-pc-rk3399_defconfig | 6 ++++-- include/configs/roc-pc-rk3399.h | 4 ---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/configs/roc-pc-mezzanine-rk3399_defconfig b/configs/roc-pc-mezzanine-rk3399_defconfig index 1c1539bcb9..3b91c25ff4 100644 --- a/configs/roc-pc-mezzanine-rk3399_defconfig +++ b/configs/roc-pc-mezzanine-rk3399_defconfig @@ -1,7 +1,9 @@ CONFIG_ARM=y CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 -CONFIG_ENV_OFFSET=0x3F8000 +CONFIG_ENV_SIZE=0x6000 +CONFIG_ENV_OFFSET=0x460000 +CONFIG_ENV_SECT_SIZE=0x1000 CONFIG_ROCKCHIP_RK3399=y CONFIG_TARGET_ROC_PC_RK3399=y CONFIG_NR_DRAM_BANKS=1 @@ -25,7 +27,7 @@ CONFIG_CMD_TIME=y CONFIG_SPL_OF_CONTROL=y CONFIG_DEFAULT_DEVICE_TREE="rk3399-roc-pc-mezzanine" CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" -CONFIG_ENV_IS_IN_MMC=y +CONFIG_ENV_IS_IN_SPI_FLASH=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y diff --git a/configs/roc-pc-rk3399_defconfig b/configs/roc-pc-rk3399_defconfig index 76e76c160e..6edd4a8822 100644 --- a/configs/roc-pc-rk3399_defconfig +++ b/configs/roc-pc-rk3399_defconfig @@ -1,7 +1,9 @@ CONFIG_ARM=y CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 -CONFIG_ENV_OFFSET=0x3F8000 +CONFIG_ENV_SIZE=0x6000 +CONFIG_ENV_OFFSET=0x460000 +CONFIG_ENV_SECT_SIZE=0x1000 CONFIG_ROCKCHIP_RK3399=y CONFIG_TARGET_ROC_PC_RK3399=y CONFIG_NR_DRAM_BANKS=1 @@ -24,7 +26,7 @@ CONFIG_CMD_TIME=y CONFIG_SPL_OF_CONTROL=y CONFIG_DEFAULT_DEVICE_TREE="rk3399-roc-pc" CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" -CONFIG_ENV_IS_IN_MMC=y +CONFIG_ENV_IS_IN_SPI_FLASH=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y diff --git a/include/configs/roc-pc-rk3399.h b/include/configs/roc-pc-rk3399.h index d4cbc3532e..59fe22289c 100644 --- a/include/configs/roc-pc-rk3399.h +++ b/include/configs/roc-pc-rk3399.h @@ -13,10 +13,6 @@ #include -#if defined(CONFIG_ENV_IS_IN_MMC) -# define CONFIG_SYS_MMC_ENV_DEV 0 -#endif - #define SDRAM_BANK_SIZE (2UL << 30) #endif From patchwork Thu Jun 4 14:51:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1330 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-il1-f197.google.com (mail-il1-f197.google.com [209.85.166.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 0E1E33F0D3 for ; Thu, 4 Jun 2020 16:52:11 +0200 (CEST) Received: by mail-il1-f197.google.com with SMTP id n2sf4131542ilq.4 for ; Thu, 04 Jun 2020 07:52:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591282330; cv=pass; d=google.com; s=arc-20160816; b=hPjpWOwLSsr0WiuXBdlOCYQov1JTEixhoCq+bYUMFfms9XjoiuAsHqXxp9H6ay9NwS 43sIh4n/XuvS5eiAZPTCv/VkdQlkdMme36yott8EVFbVqQQofZUUiRg5ScI6Yl58gnMO PPU23szoTwFD06NDpUT37Mz/jWxa+IUTPDZWasCqiC1BCMAe+uvAZALA/phfDysdlHSc BWox/BSg0m/GdZKT9Ctca5o08p2Tavy+nkts9/Xbnr/TWWSNVsDVy6I6nEeDB2m70Rl8 t8TYj2qwF2UAqdXxP3UbKJZ0gyZ4yJ2FIv672BEZGaM5ECRA6Rw3+rYx7bGQndVKDqq0 3kRA== 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=UVVK5ixLPWzud0zn6botVpmOeMnv7AFZVGe0ypVgefQ=; b=hTIIxUvaxfajfhqKwbfNy+hY2e/Ox6PNBY4y7eulIuXnAPHH2cAtZ1JDVxmbDt070J +FHL9q5GYXbzsQSd6U8xJ+Aoqwie73a42ajSzhOXu7s+2tsAmBCxHwMkG5Cu2TVETfiG wle4nw8nSne3LHqDvq+kojP45tXFOcjs4siNZ0AJ8WHQo/jGGtF1vUawcW1atlZS5+86 eHWuK6m4qLprJPIIwmA1IlRi4GSl1X1r9DNTmHB+ZE1bdKyXrUbG2Kp7CqseyK4nT4cZ tJ80NRYe2OcwTS+Nwzkfdsjabvk2OJqVH4hVxnH85zUc4/BXhMEX/zvGq1a4Irgsy9yv K2rw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=N5hd4Y4q; 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=UVVK5ixLPWzud0zn6botVpmOeMnv7AFZVGe0ypVgefQ=; b=K/2T5xv+/U258WBRzeDJUSH1arY/6PCWdl5EVt6EI4anT/6tckCLhAJ+cvsadI8F5k YX7s+u4FiimWJ2OMjB3n0FfReLltL/AyjOyuiZkNuOK0gqbleB5+C4bmi5miCoovmRn1 MOt42QAuJ8+lQ8U6MqRjtpiNgK0kzG/VHLNns= 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=UVVK5ixLPWzud0zn6botVpmOeMnv7AFZVGe0ypVgefQ=; b=bAB210AIU9vJtBBvgbot4Lf8QSmk4lK1ld4kiZ8Nwcw9vxpWM3uH/lx1/FJMtNtUFi 85vWlWCYOhAzcVE1OadKrxEVLosrSCE2whpcsdfdXQvQrP/QIHu8C7zyduUk8Sv+VcXz urDkTv9TGmmlWg0ul/txBAaIXAUFPuKXkDz6UI8ha2oH5AGsPK0bVldjxWfRd9awRs2G c+CO+iqlBSRgZw3O+OJy0UC8NKwvBNiQfsASVWgQEWl4KfcPMZTJ4WBtavxa6jDq4mEf lKuDbWaKetC0ifSzCa2smaNz4qOfNLQMGRO8LNPhJ9664H1aLj3Md1mRbMs2M8W0g8Cq xvlg== X-Gm-Message-State: AOAM533fPMFDEiE9xeShbwELHrljKH6SRbmn2ozCt8Ok2Lh8e9eszdWt PS2bJ0/as7PhlHhOmcm/6dCFnjtX X-Google-Smtp-Source: ABdhPJzy7QEncScKAVjM2Z6SAp5UPErZOxT9Xug0wxsEek1I2FlGuJvCrv8RuhwdTv+Y/VZF8J6veQ== X-Received: by 2002:a05:6e02:13a9:: with SMTP id h9mr4361813ilo.20.1591282330055; Thu, 04 Jun 2020 07:52:10 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a6b:1453:: with SMTP id 80ls978888iou.2.gmail; Thu, 04 Jun 2020 07:52:09 -0700 (PDT) X-Received: by 2002:a5d:950d:: with SMTP id d13mr4336145iom.136.1591282328813; Thu, 04 Jun 2020 07:52:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591282328; cv=none; d=google.com; s=arc-20160816; b=YHAMtCnrjInZ9mY8oPi0HJAbGeu8MRI5QjP3zwJtZnkDpW+Et/fOpvm0tKUWBgfnI7 V0/O4nM4E102OZaUVfTUWeWy36DzX3NUq8jsJTQCtb/EWSq6fdlV5vbYmDX4/fHddlmH VhW30RCUKwST5ncsC/1PJCdGzP36rqSQzOsAoNCQCweTelAj/QvAF2k8cBgPzVgrBb4Z bD8dSG3bZMhcPpQFY2jAYNvu3EIoLqFuwH8Du3aeFma3IIMUHeMexWyYcqSXJIdjGkjy 712qEKC25m1ncQMr1gZA92NhmWumNHyyjv1L181a724x+39SDw2IIitlg05x7r9Pu9et KmRg== 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=ajOUqm25QJXTmSvPTEwkjDDkta2sca3MVhwOQCgFpK0=; b=fFELG20l4d/RqEeXiPbS65tMtemnZQcEBrqbNy85LjUUmi+nR0ipNREDUe8IF4wG7E hFbDpNS8BoRmuj127QtP5z+xQUTRbRmV3ib5x6sJKc/nq2NnnYox2PbteXn4RoAokOIL ief8PW+wQW4TDrdV2R6T/S+P8Gk50uTosZ5fQI1RBkySiKV7vAJRqKObI5bZGXqMsP2p dHgIL51jwGsOJ1WFJqiVGYlJhC3VtD/pd8lGn/kSf0bIi+PsSIKU4BeokbyU00mx+N6l hbILk52fYNMmbM8UNfOQ7MJLD5uT2lvsG2Tor5mj+G7RZjiG+xdZcRHaT3sU4kRWnvN8 OJnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=N5hd4Y4q; 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 w87sor2388207ili.39.2020.06.04.07.52.08 for (Google Transport Security); Thu, 04 Jun 2020 07:52:08 -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:a63:1650:: with SMTP id 16mr4935481pgw.23.1591282328404; Thu, 04 Jun 2020 07:52:08 -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.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2020 07:52:07 -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 3/4] roc-rk3399-pc: Add SPI boot Date: Thu, 4 Jun 2020 20:21:40 +0530 Message-Id: <20200604145141.356702-4-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=N5hd4Y4q; 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: , U-Boot TPL 2020.07-rc3-00090-gd4e919f927-dirty (Jun 01 2020 - 23:45:53) Channel 0: LPDDR4, 50MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB Channel 1: LPDDR4, 50MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB 256B stride 256B stride lpddr4_set_rate: change freq to 400000000 mhz 0, 1 lpddr4_set_rate: change freq to 800000000 mhz 1, 0 Trying to boot from BOOTROM Returning to boot ROM... U-Boot SPL 2020.07-rc3-00087-ga21e9fd385 (Jun 02 2020 - 00:09:45 +0530) Trying to boot from MMC1 NOTICE: BL31: v2.2(release): NOTICE: BL31: Built : 15:05:37, May 12 2020 U-Boot 2020.07-rc3-00087-ga21e9fd385 (Jun 02 2020 - 00:09:45 +0530) SoC: Rockchip rk3399 Reset cause: POR Model: Firefly ROC-RK3399-PC Board DRAM: 3.9 GiB PMIC: RK808 MMC: mmc@fe320000: 1, sdhci@fe330000: 0 Loading Environment from SPI Flash... SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Model: Firefly ROC-RK3399-PC Board Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v3: - none arch/arm/dts/rk3399-roc-pc-u-boot.dtsi | 12 +++++++++++- configs/roc-pc-mezzanine-rk3399_defconfig | 3 +++ configs/roc-pc-rk3399_defconfig | 3 +++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/rk3399-roc-pc-u-boot.dtsi b/arch/arm/dts/rk3399-roc-pc-u-boot.dtsi index 141dd0b306..fc155e6903 100644 --- a/arch/arm/dts/rk3399-roc-pc-u-boot.dtsi +++ b/arch/arm/dts/rk3399-roc-pc-u-boot.dtsi @@ -12,7 +12,11 @@ }; chosen { - u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc; + u-boot,spl-boot-order = "same-as-spl", &spi_flash, &sdhci, &sdmmc; + }; + + config { + u-boot,spl-payload-offset = <0x60000>; /* @ 384KB */ }; vcc_hub_en: vcc_hub_en-regulator { @@ -40,6 +44,12 @@ vin-supply = <&vcc_vbus_typec0>; }; +&spi1 { + spi_flash: flash@0 { + u-boot,dm-pre-reloc; + }; +}; + &vdd_log { regulator-min-microvolt = <430000>; regulator-init-microvolt = <950000>; diff --git a/configs/roc-pc-mezzanine-rk3399_defconfig b/configs/roc-pc-mezzanine-rk3399_defconfig index 3b91c25ff4..fd1b85c1e4 100644 --- a/configs/roc-pc-mezzanine-rk3399_defconfig +++ b/configs/roc-pc-mezzanine-rk3399_defconfig @@ -9,12 +9,15 @@ CONFIG_TARGET_ROC_PC_RK3399=y CONFIG_NR_DRAM_BANKS=1 CONFIG_DEBUG_UART_BASE=0xFF1A0000 CONFIG_DEBUG_UART_CLOCK=24000000 +CONFIG_SPL_SPI_FLASH_SUPPORT=y +CONFIG_SPL_SPI_SUPPORT=y CONFIG_DEBUG_UART=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-roc-pc-mezzanine.dtb" CONFIG_DISPLAY_BOARDINFO_LATE=y # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_SPL_STACK_R=y CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x10000 +CONFIG_SPL_SPI_LOAD=y CONFIG_TPL=y CONFIG_TPL_GPIO_SUPPORT=y CONFIG_CMD_BOOTZ=y diff --git a/configs/roc-pc-rk3399_defconfig b/configs/roc-pc-rk3399_defconfig index 6edd4a8822..80e7001481 100644 --- a/configs/roc-pc-rk3399_defconfig +++ b/configs/roc-pc-rk3399_defconfig @@ -9,12 +9,15 @@ CONFIG_TARGET_ROC_PC_RK3399=y CONFIG_NR_DRAM_BANKS=1 CONFIG_DEBUG_UART_BASE=0xFF1A0000 CONFIG_DEBUG_UART_CLOCK=24000000 +CONFIG_SPL_SPI_FLASH_SUPPORT=y +CONFIG_SPL_SPI_SUPPORT=y CONFIG_DEBUG_UART=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-roc-pc.dtb" CONFIG_DISPLAY_BOARDINFO_LATE=y # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_SPL_STACK_R=y CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x10000 +CONFIG_SPL_SPI_LOAD=y CONFIG_TPL=y CONFIG_TPL_GPIO_SUPPORT=y CONFIG_CMD_BOOTZ=y 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