From patchwork Thu Jun 20 10:07:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 671 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 2A4A53F086 for ; Thu, 20 Jun 2019 12:08:04 +0200 (CEST) Received: by mail-pf1-f197.google.com with SMTP id x18sf1694103pfj.4 for ; Thu, 20 Jun 2019 03:08:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1561025282; cv=pass; d=google.com; s=arc-20160816; b=Q4DSSwd2DbVHAVj8gq38oChmheJ8TfpOdbLkNTY0lB+Em4oH55JZCMBIIUNXk5r83L HaTBXWLrKKNSAIOmTM9lZrQHRgmU4v1s5NLTjp/I7Monnda0riIX2ErrUL3PtZ/OkZtP 4fDUdMo79HLuPG8wJUsNL/Yx1bXg1b9qTi9tLhM9U071vJhTIMU5JBPST+uKd8N59Kc/ UzJ5qEOBHHDoib18hHeGr1lvCwxMiiWa/sQ5VfFNYY76hueJ/pa+ioZgw7RJRzDsMrZ5 lKPGEsHyjKYisCtZrtsRuAMLMb6+PUFSqj35ZUJMbPqcptC7kbIZFtkUzH8I4POaBsCy vsjw== 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=YbpxICTb4IyDEZ5vjlMHn3fChd4h64pEP4rV49Zai6w=; b=p/3Z7b7KgDJWMiOjHoBMpyjlGJUTm21FYMB9uisk2R862r7S6wfarv/hgiJMjN9MTv Kwo377aw6HIOCSjXBz1efhnmcZV2RxNprT+n6xs9Sh2kwRr2qNgImrnKSI2KKt4NyRXE 9Oud3F85PNRLv2tJ/bwtHDQj0PwfzVYN3gj2NAvWLLCgeR+crkgvKxiMvVpFdlgcv/2C qHGgK1lIRbF5FU9so3WPu5uTpJjn2MSeaF/WzCB5SPyoQULaV2T7tGqLiYO/mlL5/I4a 6S8WOS7iwtTU9XMevA+8lKI4ecBaT4l6U0VFl3tiKZ2G0AqqZkCza4frOsrS5ImQmv7q 82Aw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VK1Ej0mS; 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=YbpxICTb4IyDEZ5vjlMHn3fChd4h64pEP4rV49Zai6w=; b=pI8P26B+HnTjuM5HOnFcMZWB/FA5uDMXA3IQ9ThkACB02RCgdpWitNo7bhlVx2wwNK gS2pVOdPBxBabFxIbZ32v7pOFYbz3s5sVyiqZImVM5g6jtXRVNSKwwR3FOXRAOM86Hrz iWAvZZiVTRtlS1Nh4HR3EMhohyhcKXkqmh78U= 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=YbpxICTb4IyDEZ5vjlMHn3fChd4h64pEP4rV49Zai6w=; b=aZcrLMMzh191chn8s+0qtlUzJRAW/OXXXTwEgs35obmheJgLq9eyjk00fHF/bApZS9 qiwiBFIcPtCBIj+eUyAVjGbB/37iPhkcbmVgbTdx3N7bGKbRuHLSCaIWe7Y3obFzVvIz +dbYDXFdVLsNH85PDV5Rxx3YbMVP7pwFa77EYM/1qlH52NKlFmuxee9cjQMjy/RLU4rw Zkh/IhqmKHpBQroIUr0J51fsbp3M+CYzSQE9bv1cZTBRbgcBcaNFKKb9cDYus6HcHsX7 BZ7K6Aufgfex03PRsK+CYQu/ED0twEEP6uwX1M2a4j5L08zA5jmKNBhYRH/o7MD4MdVw lhvw== X-Gm-Message-State: APjAAAW70vV+gZ81rCiylQmsOyfMH1ttsLcUb7QjOimGvosAzJ/TRLJQ HNV6vp/nqa1rEEkDjkVhKC1bxM2M X-Google-Smtp-Source: APXvYqykvaC7gljC9Gz63yNTxObsG+bJ+/9fWTRwHYOCOePcra66zm6nVis439yg0TBvNBDPmB3u2w== X-Received: by 2002:a62:cec1:: with SMTP id y184mr5984253pfg.96.1561025282068; Thu, 20 Jun 2019 03:08:02 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:1e8:: with SMTP id b95ls1269197plb.10.gmail; Thu, 20 Jun 2019 03:08:01 -0700 (PDT) X-Received: by 2002:a17:90a:9b88:: with SMTP id g8mr2298231pjp.100.1561025281686; Thu, 20 Jun 2019 03:08:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561025281; cv=none; d=google.com; s=arc-20160816; b=xKNglEz7gWid2gaCr63HXvJ7CO1yap9ipY0VB4GNs0ovmieY9+oB1U98Fuv/71hkaR PivL2jInbH/+Ek4G3qsLUd05g5SRDge0xBSPTAIfmctHTKEYObx6ZV5xVIQGAyJvQ3tc u0RF3b7l7AMoSDGGtE3w5249YKo41STxI5NI55mCI8dTO2YltV9sc36cwQzIbDh+Os+6 K5EOSezYV4tfUbIpv6BwSBKplnZfg/WFHdxRM4iKs2h1Yfawc0ws5wJ49G6DhVIGjZgx h8OnXyXxNDaBH/8dKJrMaIU9SQRI7MbfcK7hDSVkLcxAGMbOU4rEzlVGHvxl8+byulnr BVNA== 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=rZvIWwbAz7/BqDkKgdNF1018+J+Q0PcAcnpRSnvg9QM=; b=iqE1a17NIymgtoVp3AcCF0A/JvHUv8Vt17645jl7gMhNEggq+h02x+MtH0QUieOUiY qWl+wQqJ93w1hLTqq16kakdNbnceE5SnRagc00suZQoHKuxwEwwKmiIBZ3EOke7PsHEU QDdy0pYpNSRnMUy6mqrrS0jAYqSZyvhOCy7qSDr+pNok9NDv+G+x1Ae8RkhQVOcPdWsv i1rVEwNz1h6Y4jmEO7JRr6Do0n+FiqkhBywru/kZxyFGLAEMYyfUTK7ckuh6orYJopKz aGesQmo9gtV3AhWLe5B4gOPNv8VFzECnD2BiB1wBfVRl1FFnGpMWyXWy58k2Bdsl7Cf+ Oy1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VK1Ej0mS; 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 x6sor20510039pfa.60.2019.06.20.03.08.00 for (Google Transport Security); Thu, 20 Jun 2019 03:08:00 -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:f342:: with SMTP id t2mr11432320pgj.83.1561025280082; Thu, 20 Jun 2019 03:08:00 -0700 (PDT) Received: from localhost.localdomain ([183.82.229.140]) by smtp.gmail.com with ESMTPSA id x129sm21731387pfb.29.2019.06.20.03.07.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 03:07:59 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , u-boot@lists.denx.de Cc: linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v4 0/6] rockchip: rk3399: Make u-boot.itb as BUILD_TARGET Date: Thu, 20 Jun 2019 15:37:34 +0530 Message-Id: <20190620100740.6560-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=VK1Ej0mS; 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: , This is v4 set for supporting u-boot.itb build target image for rk3399. here is the previous version changes[1] Changes for v4: - rebase on master - support u-boot.itb build even if bl31.elf available in PWD like what is doing right now. this would keep the backward compatible. - update board README changes Changes for v3: - skip binman changes - rebase on u-boot-rockchip/master Note: While creating dummy bl31.elf (neither it available in PWD nor it as part of BL31 env), the build system is creating u-boot.its without firmware entry which indeed expected. but the resulting u-boot.itb seems booting on rk3399, which I'm not sure - any input would help on this regard. Travis-CI: https://travis-ci.org/openedev/u-boot-amarula/builds/548123247 [1] https://patchwork.ozlabs.org/cover/1096499/ Any inputs? Jagan. Jagan Teki (6): Makefile: clean image.map Makefile: clean bl31_*.bin travis.yml: Add pyelftools install entry rockchip: rk3399: Get bl31.elf via BL31 board: puma: Get bl31.bin via BL31 and rk3399m0.bin via PMUM0 Kconfig: Add u-boot.itb BUILD_TARGET for Rockchip .travis.yml | 1 + Kconfig | 2 +- Makefile | 3 +- arch/arm/mach-rockchip/make_fit_atf.py | 20 +++- board/theobroma-systems/puma_rk3399/README | 2 +- .../puma_rk3399/fit_spl_atf.its | 58 ------------ .../puma_rk3399/fit_spl_atf.sh | 94 +++++++++++++++++++ board/vamrs/rock960_rk3399/README | 1 - configs/puma-rk3399_defconfig | 2 +- doc/README.rockchip | 14 ++- 10 files changed, 124 insertions(+), 73 deletions(-) delete mode 100644 board/theobroma-systems/puma_rk3399/fit_spl_atf.its create mode 100755 board/theobroma-systems/puma_rk3399/fit_spl_atf.sh