| Message ID | 20190426133430.17802-1-jagan@amarulasolutions.com |
|---|---|
| Headers |
Return-Path: <linux-amarula+bncBD7MFH7A7EEBB5ERRTTAKGQEEKSQHIQ@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 129F93F033 for <linux-amarula@patchwork.amarulasolutions.com>; Fri, 26 Apr 2019 15:34:46 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id r13sf2101025pga.13 for <linux-amarula@patchwork.amarulasolutions.com>; Fri, 26 Apr 2019 06:34:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1556285684; cv=pass; d=google.com; s=arc-20160816; b=czOJA52/S4FtrjXoAktgOrPoltdPfVqzI4R/FqO5Dc0uyoO4gOfHbFQsGhP61DZEYl WImzTc1EJKH8w4VGG3g1cmKK2RuwzRIg/8qEeTOK23F5TcsfeW4M9nf93LSky8I7DI6B YkF1mkZZwsxZXOHnAEJL7vuPypJANmgMZd5pmg021MODuQzEXWQObev6kD0b8CFRP8Tx YLvrjqGQCl4efl1ZmVjrxkuPzEBxPFgSB7M7Ou67Yo5QxOX7rEmwOqH1R45EoFAySCUj EmL/NnsSsw8JHHfwQ+YNo4CvbBMKtt8KSBTbpT1upD3DK+jRDd8tmIX928gyiD0TVEWy xWgQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=cQtzTVKwL3YYq4RNm+jBIDPZs/4GWufIVCpkoLD94Vo=; b=X0iyuTo08k3dBvCqgFTnaGD3nTYzTLPu5/MPddOXACTKyJKtYFRTSPtfM7iU7bNjFk +dlFfBLbC3pBhUrskT/aeHOgULgEAF30I9k5G5w4gPJ0/QlApjEiVeySzn//3pHsYXuT yGriFjWtpFRfw+Xzi/SVdNr/uZd4Wjhgk58xNohW7VWMmdDIftCGc3cXcSFGjARtVGX0 HNJawkLXAdNTeLT9Al+ZwDQAinj3EQ7f5JabdlLC6vX2NEx28Ucam0usTDBXB1Nh43VY 7R2uyFDB33eOO7IiMO8lNyQNJVYBwnwtGkx2R4h73o2Z+6rgijGSo9mQNi/oz1u7JCVd ttBw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="mzxaI/cm"; 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:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=cQtzTVKwL3YYq4RNm+jBIDPZs/4GWufIVCpkoLD94Vo=; b=WnhDwpiOT/N52UU3nyIO7EDydNqRg1Tck2uNdd+qzBRu2/8CUPl7Dm0uuTY6r9LAcM P9FA815zd1PslH6XH+w5DR07lFXVIp1ubRRV/QMKtZ0GCGzdBDM5U5686FOq8Q2N9HcI q+nxMYzzjmz775dO6K4I1PktOq+w/VFFMzB4w= 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: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=cQtzTVKwL3YYq4RNm+jBIDPZs/4GWufIVCpkoLD94Vo=; b=iEsuymmEaxMlr3tGX98keuRSoZ+uFaobKauFlihSnwaclkixe+4Jxcb00GPc8z7P+m 6BjYj+ofsKTFvESOJDr6EQfK4m32ajGHp0ZSQ47F1FfpxGVUS4hjxVvUDMpO+ok7dphX MalS1uRJHnRci/czuogigApFR4g6zSF8S4uboGjYkV36M3PQYgP2LZ/2gQKoHyzcIXoX w90ohDUAbNU8Cx2uhcn1nQPnV0sQOpnFeoA+a2FZSsbXy95B9twhsAhaTY50f7RHZYbY 4WkrACjHAsRX6THRwkP861nck7E51UMq874kIaf6KdOVLzKwOETX235x0XD+e9aX6Zbq Yz3A== X-Gm-Message-State: APjAAAVzvlsdbylXk6XRW6RWiAh5PI8umTtOBRuBBjlbRaKiPveraU3m 4u2RrsCop+6nV9zPYfvJ0lTCalyU X-Google-Smtp-Source: APXvYqwQrrZmmPB8jsSheoaZYGM9wNGItF4MjLW9PJ7mBeklgfZujFJsVqgxlTrWlNdZPfWOUcQnMw== X-Received: by 2002:a62:2a44:: with SMTP id q65mr14581521pfq.226.1556285684289; Fri, 26 Apr 2019 06:34:44 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:b60a:: with SMTP id j10ls7851066pff.6.gmail; Fri, 26 Apr 2019 06:34:43 -0700 (PDT) X-Received: by 2002:a63:2943:: with SMTP id p64mr40946163pgp.151.1556285683691; Fri, 26 Apr 2019 06:34:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556285683; cv=none; d=google.com; s=arc-20160816; b=lswv2H6WwKK/Ie6r20j+CfnIaZP2fCfCxQH1Lsnw2h/UM7sEowvy8ObR4V+Br+GhU1 PPn7gOnR7QQhoUhYKMAT1x/dxApb1ezwHy7QqUtXlThzae9oC66jquyMdAd5cqUHpL4f KvitWHcRlumiD3ldFbBpCAkkzTfoN9fCulHA4y7LXsu9e/QxsJ0VgeAaJNSLk4WK2gpF C34ebmAh7Lkt3fSQgnwau/dyk6jlBGy0PzzYSUIS40qw1CdNnrAtf8gklyf5FhHPHElf 1uOgLSXnSWvzX7hCYRndwwtT27YfwAoTVimRNFhVN9GvncOthmyTrTagtPEs/TU+0xY/ ezgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=7Fd3bZULM35Zg9UziIQdvQyEJ4GZ0VkpsPmi/Mc9U7Y=; b=XzZXNKeHW0Yxy6hldclGihAG3X00L6dnaYlPiZ4+23WgIRHW78mrhOM2ofw38aYzr7 15ccWW5WZyJKmfmv3CRmRVRuKXN//S+Z6HcgoA9kpReDiA27J/LfyWRnGXOECzUaT+4g RUTEIeh14urTnx7jskeRHwMUoARiEo95L2LUdokBl1CXhZ5otJJ5xswJOIQ2/eg5rvDD 6WF8ndhEi6ORS8ntwEmrcayJFYiRsvS6gmxspluVCTfTiBWmSsj7F/fUFfau7+syZ2l5 7K+1db2pZr4JvXJQybL5KVn/5ttw+ejIIt3r/2dkJl12ef5+QEbTit/R+FDHHkHJOplW tjPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="mzxaI/cm"; 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 j13sor566705pgq.53.2019.04.26.06.34.43 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Fri, 26 Apr 2019 06:34:43 -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:1b11:: with SMTP id b17mr4522582pgb.207.1556285682117; Fri, 26 Apr 2019 06:34:42 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id y19sm36946770pfn.164.2019.04.26.06.34.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Apr 2019 06:34:41 -0700 (PDT) From: Jagan Teki <jagan@amarulasolutions.com> To: Simon Glass <sjg@chromium.org>, Philipp Tomsich <philipp.tomsich@theobroma-systems.com>, Kever Yang <kever.yang@rock-chips.com>, Akash Gajjar <akash@openedev.com>, Tom Rini <trini@konsulko.com>, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Cc: Paul Kocialkowski <paul.kocialkowski@bootlin.com>, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, u-boot@lists.denx.de, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH 0/5] rk3399: make u-boot-rockchip-with-spl.bin Date: Fri, 26 Apr 2019 19:04:25 +0530 Message-Id: <20190426133430.17802-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 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="mzxaI/cm"; 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: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
| Series |
rk3399: make u-boot-rockchip-with-spl.bin
|
|
Message
Jagan Teki
April 26, 2019, 1:34 p.m. UTC
This series will create single bootable image 'u-boot-rockchip-with-spl.bin' for rk3399 platform with single make command instead of building u-boot separately for u-boot.itb and burn them separately for SPL and U-Boot proper. This series has dependecy with[1] travis-ci issue: - need to include 'python-pyelftools' package, tried but can't succeed - right now build failed if BL31 is not exported, but this would manage to create dummy arm64 elf but any help on this would appreciate. [1] https://patchwork.ozlabs.org/cover/1091008/ Any inputs? Jagan. Jagan Teki (5): arm64: rockchip: dts: rk3399: Create -u-boot.dtsi files rockchip: rk3399: Get bl31.elf via BL31 env Kconfig: Add u-boot.itb BUILD_TARGET for Rockchip Makefile.spl: Create u-boot-spl-rockchip.bin for rk3399 rockchip: rk3399: Create single image using BINMAN Kconfig | 2 +- Makefile | 13 +++++++++++++ arch/arm/dts/rk3399-evb-u-boot.dtsi | 7 +++++++ arch/arm/dts/rk3399-evb.dts | 2 -- arch/arm/dts/rk3399-ficus-u-boot.dtsi | 7 +++++++ arch/arm/dts/rk3399-ficus.dts | 1 - arch/arm/dts/rk3399-firefly-u-boot.dtsi | 7 +++++++ arch/arm/dts/rk3399-firefly.dts | 2 -- arch/arm/dts/rk3399-gru-bob-u-boot.dtsi | 7 +++++++ arch/arm/dts/rk3399-gru-bob.dts | 1 - arch/arm/dts/rk3399-gru.dtsi | 1 - arch/arm/dts/rk3399-puma-ddr1600.dts | 2 +- arch/arm/dts/rk3399-puma.dtsi | 3 --- arch/arm/dts/rk3399-rock960-u-boot.dtsi | 7 +++++++ arch/arm/dts/rk3399-rock960.dts | 1 - arch/arm/dts/rk3399-u-boot.dtsi | 21 +++++++++++++++++++++ arch/arm/mach-rockchip/Kconfig | 9 +++++++++ arch/arm/mach-rockchip/make_fit_atf.py | 5 ++++- doc/README.rockchip | 15 ++++----------- include/configs/rk3399_common.h | 2 ++ scripts/Makefile.spl | 21 +++++++++++++++++++++ 21 files changed, 111 insertions(+), 25 deletions(-) create mode 100644 arch/arm/dts/rk3399-evb-u-boot.dtsi create mode 100644 arch/arm/dts/rk3399-ficus-u-boot.dtsi create mode 100644 arch/arm/dts/rk3399-firefly-u-boot.dtsi create mode 100644 arch/arm/dts/rk3399-gru-bob-u-boot.dtsi create mode 100644 arch/arm/dts/rk3399-rock960-u-boot.dtsi
Comments
Hi Tom and Simon, On Fri, Apr 26, 2019 at 7:04 PM Jagan Teki <jagan@amarulasolutions.com> wrote: > > This series will create single bootable image 'u-boot-rockchip-with-spl.bin' > for rk3399 platform with single make command instead of building u-boot > separately for u-boot.itb and burn them separately for SPL and U-Boot proper. > > This series has dependecy with[1] > > travis-ci issue: > - need to include 'python-pyelftools' package, tried but can't succeed > - right now build failed if BL31 is not exported, but this would manage to > create dummy arm64 elf but any help on this would appreciate. Any inputs on this?
Le vendredi 26 avril 2019 à 23:22 +0530, Jagan Teki a écrit : > Hi Tom and Simon, > > On Fri, Apr 26, 2019 at 7:04 PM Jagan Teki <jagan@amarulasolutions.com> wrote: > > This series will create single bootable image 'u-boot-rockchip-with-spl.bin' > > for rk3399 platform with single make command instead of building u-boot > > separately for u-boot.itb and burn them separately for SPL and U-Boot proper. > > > > This series has dependecy with[1] > > > > travis-ci issue: > > - need to include 'python-pyelftools' package, tried but can't succeed > > - right now build failed if BL31 is not exported, but this would manage to > > create dummy arm64 elf but any help on this would appreciate. > > Any inputs on this? I think we have the same issue regarding BL31 for ARM64 sunxi boards don't we? It would be great to have a solution to this, and even better if it could scale to most ARM64 platforms too! Cheers, Paul
On Fri, Apr 26, 2019 at 07:55:40PM +0200, Paul Kocialkowski wrote: > Le vendredi 26 avril 2019 à 23:22 +0530, Jagan Teki a écrit : > > Hi Tom and Simon, > > > > On Fri, Apr 26, 2019 at 7:04 PM Jagan Teki <jagan@amarulasolutions.com> wrote: > > > This series will create single bootable image 'u-boot-rockchip-with-spl.bin' > > > for rk3399 platform with single make command instead of building u-boot > > > separately for u-boot.itb and burn them separately for SPL and U-Boot proper. > > > > > > This series has dependecy with[1] > > > > > > travis-ci issue: > > > - need to include 'python-pyelftools' package, tried but can't succeed > > > - right now build failed if BL31 is not exported, but this would manage to > > > create dummy arm64 elf but any help on this would appreciate. > > > > Any inputs on this? > > I think we have the same issue regarding BL31 for ARM64 sunxi boards > don't we? > > It would be great to have a solution to this, and even better if it > could scale to most ARM64 platforms too! As I said in another thread, yes, we really should look at how to make binman take care of this as every arm64 platform has the same problem and similar but not quite the same solution.
On Fri, Apr 26, 2019 at 11:25 PM Paul Kocialkowski <paul.kocialkowski@bootlin.com> wrote: > > Le vendredi 26 avril 2019 à 23:22 +0530, Jagan Teki a écrit : > > Hi Tom and Simon, > > > > On Fri, Apr 26, 2019 at 7:04 PM Jagan Teki <jagan@amarulasolutions.com> wrote: > > > This series will create single bootable image 'u-boot-rockchip-with-spl.bin' > > > for rk3399 platform with single make command instead of building u-boot > > > separately for u-boot.itb and burn them separately for SPL and U-Boot proper. > > > > > > This series has dependecy with[1] > > > > > > travis-ci issue: > > > - need to include 'python-pyelftools' package, tried but can't succeed > > > - right now build failed if BL31 is not exported, but this would manage to > > > create dummy arm64 elf but any help on this would appreciate. > > > > Any inputs on this? > > I think we have the same issue regarding BL31 for ARM64 sunxi boards > don't we? > > It would be great to have a solution to this, and even better if it > could scale to most ARM64 platforms too! I thought it would be specific with tools here, I have created some dummy bl31.elf if BL31 is not set but the arch/arm/mach-rockchip/make_fit_atf.py can't make the build. on the other hand I have compiled main(){} and created bl31.elf it is succeeding. But for sunxi the build is going as normal by setting /dev/null if BL31 unset. [ -z "$BL31" ] && BL31="bl31.bin" if [ ! -f $BL31 ]; then echo "WARNING: BL31 file $BL31 NOT found, resulting binary is non-functional" >&2 echo "Please read the section on ARM Trusted Firmware (ATF) in board/sunxi/README.sunxi64" >&2 BL31=/dev/null echo $BL31 fi