From patchwork Thu May 23 15:32:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugeniu Rosca X-Patchwork-Id: 1104242 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 458tn31csjz9s3l for ; Fri, 24 May 2019 01:33:11 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id E0752C21E16; Thu, 23 May 2019 15:33:09 +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 15F39C21C2C; Thu, 23 May 2019 15:33:08 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4051FC21C2C; Thu, 23 May 2019 15:33:07 +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 2B64EC21BE5 for ; Thu, 23 May 2019 15:33:06 +0000 (UTC) Received: from localhost (smtp1.de.adit-jv.com [127.0.0.1]) by smtp1.de.adit-jv.com (Postfix) with ESMTP id 56C243C0149; Thu, 23 May 2019 17:33:02 +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 gN6S-fjcEAwo; Thu, 23 May 2019 17:32:54 +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 DF6AF3C013A; Thu, 23 May 2019 17:32:49 +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; Thu, 23 May 2019 17:32:49 +0200 From: Eugeniu Rosca To: , Simon Glass , Sam Protsenko , Heinrich Schuchardt , AKASHI Takahiro , Igor Opaniuk , Marek Vasut , 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: Thu, 23 May 2019 17:32:20 +0200 Message-ID: <20190523153223.18185-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 v3 0/3] 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 explained in the second ("cmd: Add 'bcb' command *") patch. The first patch does the necessary fixing and polishing of include/android_bootloader_message.h and is a hard prerequisite for this series. The third patch relocates the Android README to doc/android and creates a brand new doc/android/bcb.txt covering the purpose/usage of 'bcb'. v3: - [Simon Glass] Lots of review comments handled in cmd/bcb.c. - [Simon Glass, Sam Protsenko] Renamed and enriched android docs. - Placed detailed stats in each patch. 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 (3): include: android_bootloader_message.h: Minimize the diff to AOSP cmd: Add 'bcb' command to read/modify/write BCB fields doc: relocate/rename Android README and add BCB overview cmd/Kconfig | 17 + cmd/Makefile | 1 + cmd/bcb.c | 340 ++++++++++++++++++ doc/{README.avb2 => android/avb2.txt} | 0 doc/android/bcb.txt | 89 +++++ .../fastboot.txt} | 0 include/android_bootloader_message.h | 126 ++++--- 7 files changed, 515 insertions(+), 58 deletions(-) create mode 100644 cmd/bcb.c rename doc/{README.avb2 => android/avb2.txt} (100%) create mode 100644 doc/android/bcb.txt rename doc/{README.android-fastboot => android/fastboot.txt} (100%) Reviewed-by: Sam Protsenko