From patchwork Fri May 17 14:45:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugeniu Rosca X-Patchwork-Id: 1101106 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=de.adit-jv.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 455B220BXTz9s3q for ; Sat, 18 May 2019 00:46:33 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 2E440C21DFD; Fri, 17 May 2019 14:46:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=KHOP_BIG_TO_CC autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 1F31CC21C3F; Fri, 17 May 2019 14:46:26 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E1BFFC21C3F; Fri, 17 May 2019 14:46:23 +0000 (UTC) Received: from smtp1.de.adit-jv.com (smtp1.de.adit-jv.com [93.241.18.167]) by lists.denx.de (Postfix) with ESMTPS id 672E1C21C29 for ; Fri, 17 May 2019 14:46:23 +0000 (UTC) Received: from localhost (smtp1.de.adit-jv.com [127.0.0.1]) by smtp1.de.adit-jv.com (Postfix) with ESMTP id 84D523C00D1; Fri, 17 May 2019 16:46:19 +0200 (CEST) Received: from smtp1.de.adit-jv.com ([127.0.0.1]) by localhost (smtp1.de.adit-jv.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1mfhhnymflXE; Fri, 17 May 2019 16:46:11 +0200 (CEST) Received: from HI2EXCH01.adit-jv.com (hi2exch01.adit-jv.com [10.72.92.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by smtp1.de.adit-jv.com (Postfix) with ESMTPS id CF9D23C00BF; Fri, 17 May 2019 16:46:11 +0200 (CEST) Received: from vmlxhi-102.adit-jv.com (10.72.93.184) by HI2EXCH01.adit-jv.com (10.72.92.24) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 17 May 2019 16:46:11 +0200 From: Eugeniu Rosca To: , Sam Protsenko , Heinrich Schuchardt , AKASHI Takahiro , Igor Opaniuk , Marek Vasut , Simon Glass , Alex Kiernan , Alex Deymo , Praneeth Bajjuri , Alistair Strachan , Joe Hershberger , Michal Simek , Chris Packham , Miquel Raynal , Mario Six , Adam Ford , Stefan Roese , Tom Rini Date: Fri, 17 May 2019 16:45:01 +0200 Message-ID: <20190517144503.3275-1-erosca@de.adit-jv.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-Originating-IP: [10.72.93.184] Cc: Eugeniu Rosca , Eugeniu Rosca Subject: [U-Boot] [PATCH v2 0/2] Add 'bcb' command to read/modify/write Android BCB X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The motivation behind the 'bcb' command is largely explained in the second patch. The other patch performs polishing of https://patchwork.ozlabs.org/patch/1099689/, which is a hard prerequisite for this series. v2: - [Heinrich Schuchardt] Implement sub-commands via U_BOOT_CMD_MKENT. - Polished the code. Ensured no warnings returned by sparse, smatch, `cppcheck --force --enable=all --inconclusive`, make W=1. - Tested on R-Car-H3-ES20 ULCB-KF. v1: - https://patchwork.ozlabs.org/cover/1080393/ Eugeniu Rosca (2): include: android_bootloader_message.h: Minimize the diff to AOSP cmd: Add 'bcb' command to read/modify/write BCB fields cmd/Kconfig | 17 ++ cmd/Makefile | 1 + cmd/bcb.c | 330 +++++++++++++++++++++++++++ include/android_bootloader_message.h | 126 +++++----- 4 files changed, 416 insertions(+), 58 deletions(-) create mode 100644 cmd/bcb.c