From patchwork Sun Apr 28 09:09:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 306 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 4E1673F08F for ; Sun, 28 Apr 2019 11:09:33 +0200 (CEST) Received: by mail-pf1-f200.google.com with SMTP id d12sf5328881pfn.9 for ; Sun, 28 Apr 2019 02:09:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1556442571; cv=pass; d=google.com; s=arc-20160816; b=q+zmB1IC2NwOQRDfzrvLmCAQo5S+OzfMDD/hQ1NS/pKaC0MvuSSoQeyLOKTrlRiV0n t9fRbYHk6CoMVvkanE4ED1czQufpuaCc5Z3dR0W+BzRl+G4tJCL2GYrTIjr+inEw3A7X K/kKzlomEcFPzyHxDd/WmqK5XQEXsDo4bibUr7S4KJiG61B0jKkTqdjbf32AbQgPdKL/ AqI2qzlRrTeSAyCY1ok+jxvcx0c5FxoruO/TNbZNC4y5+C1bhD7PkylchrSvyYMoFLto ND5MuNjvZuwVgNgR3KZMFdxqWHTaxAkmgHF5Y/CEHd9hGek13Hs1y2JbX3VE3s60D5UX FBWw== 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=axCFGTrwGlC3eDbQzNAiLX8G172OLPD2NTQ8iqnmWsk=; b=yEyro9P3DBKySeCTT7snVCzAwBsWuoNshr/4IrYrLoefjkB2UrtAI/xUkZoVsPgskJ uIQ2ooymt6bkI8+RhL4oYGfu+7cbDyloU0Gy3UHPESM1ugaVzDUifiHN08FLAFRC40hT jRrOSZS4pJ6KY013MOafNU+FJLKFMxxBbndJLp+x/iADtIZPZU0H+CV8U+pR/M+XSfY0 PS1CguHjybJAorJu5McuAp/HJ0TgbdgM4T0LwQBuzTOwEUVLkD92eWKQAUeoBTRO4Y4m A7enaXBXKpE65WhKHDXWexLM7QFNH8tGCckHxCc+R0y3jmOb7TA1MhrPnXb0IMOM6TVL gGHg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Fjm98ubq; 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=axCFGTrwGlC3eDbQzNAiLX8G172OLPD2NTQ8iqnmWsk=; b=LWMgytDTIkyLCAjlEoPd7wAfVf2tbgUZbYYHIfcXbbkn1dL1iXvQyA/9IeDW84WSnW dvgo+SwNw9UsotXS/Qj0rk5cCH2BhbH4Ea6hALFOyZwRONeOnYbkVfw3Z/YwCpDGrfsw xMteLbUKPbeRr6vTeaM7Wb/5NbpIIT11mtw34= 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=axCFGTrwGlC3eDbQzNAiLX8G172OLPD2NTQ8iqnmWsk=; b=Xi9eZY9aH9xIf148oN3anTAdZS00Q4ZBw7rTgXbV+cYd1K+3LeMBLIO0kfR6pJ0N4e OQ+aEDOBKre1TUTH5QourTEF6FYj0z7FSBb+4ly8UdqXpitq1CTB7+ph9j9aaavPGsHw RAJ56NMIS7Sq2TBwDhNFiD3RLINCVYKwNK16EAkpnx6vuSA0I0rPe/DObU7/xVT+Mxmj QJtyYX7/AACiRv3fyK9fhyKfVjkgaHoci6vebo2q2cFpwzBPZvoeh5X3Y5vOdtlvmCUP MdrXwWNMhfhPFGWQBzaf71ja8w+sVo0iJmMh9U1ZoGAbvalNbQpGKB/BchtuHb/WMMKS SzAw== X-Gm-Message-State: APjAAAVX3M7mNk8AOcwa/Kcv/hu0snpFbGaFg6BkYmDIuvuBSnt0Qvp6 LU98eJQPANCIjtx1H+KUeyDP59DW X-Google-Smtp-Source: APXvYqwVls29/KEzXSpoxI+rZ77Spah9akvHtViIvzl6r6IOkzqHgxYqH86S0wy7tHbnlR1gLMQ14w== X-Received: by 2002:a62:b612:: with SMTP id j18mr57753802pff.124.1556442569970; Sun, 28 Apr 2019 02:09:29 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:144:: with SMTP id 62ls7138267plb.8.gmail; Sun, 28 Apr 2019 02:09:29 -0700 (PDT) X-Received: by 2002:a17:902:8f88:: with SMTP id z8mr49236154plo.54.1556442569444; Sun, 28 Apr 2019 02:09:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556442569; cv=none; d=google.com; s=arc-20160816; b=fGD7xpSJfa7GHoqiYwNYR5rc/lw7MVhFnFZg4z+dTcJF/4l5HvlrGWGdSwgr59RLyw FjQqiSCC9GhNSU7yvpkDqFHdz53WGiA5DI4+6Ro120beYb0r0ZVuweoWaeGf3VMb0Jh8 dEMmfZvMtWjlYMh5xuYyNJddJ+VzEOe3pu4EExVik3+5ITT/+iR+3p2UtNopr99YLU+3 keOmKEHK3yP0NRDJAMpq0xKKbWrL7r8q9ERQw9SivwnthNQTuI31wBBGA8+dXMNzGXFz VfEbNwORpBtS8PHP1PFrGjKbtdaNx5CqPHRq7EVqt+Rak3Ipqmo5IaSyaG6zdGEHyICj 6v2A== 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=rUtAG9A1u1/KEgMJUoRzZ0DeHRGOXBTPCcH3s0qyKW4=; b=x6xfcloptAg99gmqAajspEmB8j4W5nGV+U8NGTcUc2PRGQEiRsDi11eePz1IB/pvpC j95sFu95nwAgpZ0rBFHozyjs7diHKECAb6MjAvMGs50gEzjJZTMzViPSytMxcBjuaPgI 8vCEYhf0grlE5Ysz9QgqQgsM5uLb4kYThaJLdtq0ptmOP9HJ6EdtHUIBesxhxhlCsxAi OVvdSNxme2KxgGx+0y4qlQIUbU6QETR+1hu2lgBBZmteDUvULA3AiKtCiDBwyyEkQER0 zZGZBbjq94EX4ZTZFnv+qNNBAuwdPqQqH93waP65d2c6vhnEq4zib59FmxjS6y+MDVju eX3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Fjm98ubq; 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 r18sor5585211pgk.12.2019.04.28.02.09.27 for (Google Transport Security); Sun, 28 Apr 2019 02:09:27 -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:4714:: with SMTP id u20mr44378437pga.316.1556442566042; Sun, 28 Apr 2019 02:09:26 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id k7sm3040338pfk.93.2019.04.28.02.09.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Apr 2019 02:09:25 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , Akash Gajjar , Tom Rini , Manivannan Sadhasivam Cc: Paul Kocialkowski , linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, u-boot@lists.denx.de, Jagan Teki Subject: [PATCH v2 0/9] rk3399: make u-boot-rockchip-with-spl.bin Date: Sun, 28 Apr 2019 14:39:04 +0530 Message-Id: <20190428090913.10568-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=Fjm98ubq; 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 v2 for previous series[1] to create single bootable image using binman for rk3399 platform. This series resolved the travis-ci build issuesi[2] which were listed in previous series. Series introduce BL31 env for exporting bl31.elf, If the builds are not exporting BL31 env, the make_fit_atf.py explicitly create dummy bl31.elf in u-boot root directory. patch 1, 2: clean targets for bl31_*.bin and image.map patch 3: travis.yml for pyelftools patch 4: add BL31 env for bl31.elf patch 5: add BL31 env for bl31.bin, PMUM0 env for rk3399m0.bin patch 6: BUILD_TARGET patch patch 7: create u-boot-spl-rockchip.bin patch 8: order dtb builds based on SoC type patch 9: create u-boot-rockchip-with-spl.bin Changes for v2: - Add few clean target patches - update bl31.elf env handling code, with logging - support puma itb, via BL31 and PMUM0 env - enable BUILD_TARGET for ROCKCHIP_RK3399 - add patch to build rockchip dtbs based on SoC types - update binman patch [1] https://patchwork.ozlabs.org/cover/1091542/ [2] https://travis-ci.org/openedev/u-boot-amarula/builds/525545316 Jagan Teki (9): 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 Makefile.spl: Create u-boot-spl-rockchip.bin for rk3399 dts: Makefile: Build rockchip dtbs based on SoC types rockchip: rk3399: Create single image using BINMAN .travis.yml | 1 + Kconfig | 2 +- Makefile | 16 ++++++- arch/arm/dts/Makefile | 35 ++++++++++---- arch/arm/dts/rk3399-ficus-u-boot.dtsi | 1 + arch/arm/dts/rk3399-rock960-u-boot.dtsi | 1 + arch/arm/dts/rk3399-u-boot.dtsi | 17 +++++++ arch/arm/mach-rockchip/Kconfig | 9 ++++ arch/arm/mach-rockchip/make_fit_atf.py | 11 ++++- .../{fit_spl_atf.its => fit_spl_atf.sh} | 46 ++++++++++++++++--- configs/puma-rk3399_defconfig | 2 +- doc/README.rockchip | 23 ++++------ include/configs/rk3399_common.h | 2 + scripts/Makefile.spl | 21 +++++++++ 14 files changed, 153 insertions(+), 34 deletions(-) rename board/theobroma-systems/puma_rk3399/{fit_spl_atf.its => fit_spl_atf.sh} (50%) mode change 100644 => 100755