From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 06651C43217 for ; Mon, 28 Nov 2022 09:44:06 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E387384508; Mon, 28 Nov 2022 10:44:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20210112.gappssmtp.com header.i=@baylibre-com.20210112.gappssmtp.com header.b="cptwtTjF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D32FC84913; Mon, 28 Nov 2022 10:44:02 +0100 (CET) Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C936984494 for ; Mon, 28 Nov 2022 10:43:59 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mkorpershoek@baylibre.com Received: by mail-wm1-x32a.google.com with SMTP id 5so8020337wmo.1 for ; Mon, 28 Nov 2022 01:43:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=FGHapgc/l3iw4qSNEWyMh7uFCtFDi+hljqitCbKraqE=; b=cptwtTjFA5FAnEJ1PzEImHPz4LfQ3hxjOgKmU5qqVw1u2K5KjzCJkYo1pvRMVP/2o0 rNfQnQk09idj8PA/zPFs91S9RshIDA1CI0cMWFLA1PAGCm31OrUoFcuQ0Uew5Oqecw66 K1n7VljBQhCgSGoTrQ4BwXZb3L7Qmim0Ofpink6ql5hQtjNIq+3PDbjBJXGWIEqYQL2H cr1FXKRK8oDZzCHRtoirjX1JBekSmfhjHcarKa2DOddvz2FwqMRacvMsDGefbTfSr5PD dMo9bzY2KRQqja1nlZzW8EmQar9zxTHWqTcO0FJkB+3PuYBe/hXH1DckeyuOciMzGaj8 weBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FGHapgc/l3iw4qSNEWyMh7uFCtFDi+hljqitCbKraqE=; b=2H9gnGHy1pDAivuAN6SmsSfrRhWLpTjGMHsLLDvk9GFkIRwBSOKeESQY6FQaLPa3Fl XJ4bSqGw/u8QMD0mBS5oQPvFa26pbo3qMuhPIqFyGBYntJdTOPviQfcUysweksO1WfwP RtQHVslQtoShls8UFNztD2Xf73BWDW5UlrSX9NW9jJPT7+QoDOUynN6mqtQ42x7gkzbk DPh8DxogZeIY+ilQnjl6PM9JKMXZEEYtVb+icwNyBYr7lFKu40pQPkMiUUQs7ZEzEmkP 0OvkivfJ7odL5yasoZefZiw6MU4oED+NMPwzJ8TU2I3J8likjcxCgez0NNGAAjvtucKi ClPA== X-Gm-Message-State: ANoB5pl3sRQYqUKmyfoVATCBmjqSzMS3h5tawM8OlGu3aCQ+dhrBriSB F9y78bI/WLhlKDWYLPAHKnrR7A== X-Google-Smtp-Source: AA0mqf4MZH1YDLQK9MFGxsZg/wM1QlGrkdSA959HtRVtw+cLDkwv4rnABXG4wmHc6Qmpk13KO83LhA== X-Received: by 2002:a1c:7701:0:b0:3cf:7556:a592 with SMTP id t1-20020a1c7701000000b003cf7556a592mr30559798wmi.199.1669628639348; Mon, 28 Nov 2022 01:43:59 -0800 (PST) Received: from localhost ([2a01:cb19:85e6:1900:2bf7:7388:731d:c4e1]) by smtp.gmail.com with ESMTPSA id hg27-20020a05600c539b00b003a3170a7af9sm14853069wmb.4.2022.11.28.01.43.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 01:43:58 -0800 (PST) From: Mattijs Korpershoek To: Safae Ouajih , sjg@chromium.org Cc: u-boot@lists.denx.de, sean.anderson@seco.com, r.stratiienko@gmail.com, glaroque@baylibre.com, khilman@baylibre.com Subject: Re: [PATCH 00/17] Support android boot image v3/v4 In-Reply-To: <20221126165931.197607-1-souajih@baylibre.com> References: <20221126165931.197607-1-souajih@baylibre.com> Date: Mon, 28 Nov 2022 10:43:46 +0100 Message-ID: <87h6yj9zxp.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On Sat, Nov 26, 2022 at 17:59, Safae Ouajih wrote: > Hello everyone, > > * This is based on Roman Stratiienko's work to support boot image header version 3 and 4. > > * This supports the new boot image headers v3, v4 and bootconfig feature. > https://source.android.com/docs/core/architecture/bootloader/boot-image-header > https://source.android.com/docs/core/architecture/bootloader/implementing-bootconfig > > - Tested on Amlogic Khadas vim3l, a reference board for Android Open Source Project > https://www.khadas.com/vim3l > > And on AM625 Texas Instruments board with 5.10 linux kernel > > Main changes : > - New partition : vendor boot, with a specific vendor ramdisk > - DTB is stored in the vendor boot partition > - The generic ramdisk is placed after the vendor ramdisk > - Bootconfig feature support > > > Here is a link to see the related android boot flow changes on KHADAS vim3l as an example: > https://gitlab.baylibre.com/baylibre/amlogic/atv/u-boot/-/commits/souajih/BootImagev4/ Tested the whole series on Khadas vim3l board with boot header v2. Tested-by: Mattijs Korpershoek > > Safae Ouajih (17): > android: boot: rename andr_img_hdr -> andr_boot_img_hdr_v0_v1_v2 > android: boot: support vendor boot image in abootimg > android: boot: replace android_image_check_header > android: boot: add boot image header v3 and v4 structures > android: boot: add documentation for boot image header v3/v4 structure > android: boot: kcomp: support andr_image_data > android: boot: move to andr_image_data structure > android: boot: content print is not supported for v3,v4 header version > android: boot: boot image header v3,v4 do not support recovery DTBO > android: boot: add vendor boot image to prepare for v3,v4 support > android: boot: update android_image_get_data to support v3,v4 > android: boot: ramdisk: support vendor ramdisk > android: boot: support extra command line > drivers: fastboot: zImage flashing is not supported for v3,v4 > android: boot: support boot image header version 3 and 4 > lib: support libxbc > android: boot: support bootconfig > > boot/bootm.c | 29 ++- > boot/image-android.c | 367 ++++++++++++++++++++++++++++++-------- > boot/image-board.c | 15 +- > boot/image-fdt.c | 5 +- > cmd/abootimg.c | 66 ++++--- > drivers/fastboot/fb_mmc.c | 19 +- > include/android_image.h | 220 ++++++++++++++++++++++- > include/image.h | 37 ++-- > include/xbc.h | 1 + > lib/Kconfig | 12 ++ > lib/Makefile | 1 + > lib/libxbc/Makefile | 1 + > lib/libxbc/libxbc.c | 112 ++++++++++++ > lib/libxbc/libxbc.h | 54 ++++++ > 14 files changed, 806 insertions(+), 133 deletions(-) > create mode 100644 include/xbc.h > create mode 100644 lib/libxbc/Makefile > create mode 100644 lib/libxbc/libxbc.c > create mode 100644 lib/libxbc/libxbc.h > > -- > 2.25.1