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 DEC5CC636CC for ; Sun, 5 Feb 2023 23:53:57 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2BFC085B7F; Mon, 6 Feb 2023 00:52:02 +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=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20210112.gappssmtp.com header.i=@baylibre-com.20210112.gappssmtp.com header.b="iMIcu2PH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C163B85B87; Mon, 6 Feb 2023 00:51:12 +0100 (CET) Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (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 DDD8985B51 for ; Mon, 6 Feb 2023 00:50:53 +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=souajih@baylibre.com Received: by mail-wr1-x432.google.com with SMTP id h3so1101018wrp.10 for ; Sun, 05 Feb 2023 15:50:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GjaHkveSnVRTYaZRebKzhMvyeUgUdvfqhpVjgJSy+RM=; b=iMIcu2PHFzhlgGHdmbq2HWhne3vYCAkUXPtZaqEYnCTtpQKw6Ekwf+vE1QTZpMFrD6 rA2t4PpRUy29K0Hd2xKnv409mIPa3n70+ffc3VapNgcGIBh5sq+lHV19XIeyc2MsaUux QdJKBW9MUXNQADlj5grnrJm9fEU1ml8qtw3QMHuR2IMQ8FC5fClLHr4uFki+12QlyerJ 8btlFaUkTvF22X3LNk0AOumscxkj1tbmkrVqr1n9LTwO08hkciJY/5wTr9WrV7b/vSDS gRQGO6QTyPGaFUa2orq/zjxhSv1nJdmilMc+Ynm41F8LhOVolkV6rvr4+Yc5pXAqQAKR pSoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GjaHkveSnVRTYaZRebKzhMvyeUgUdvfqhpVjgJSy+RM=; b=gMWVhikXDC0xkIWXG/93g4hSgIHgRQRyP2858viqCkLQ6C3hB0mlZhFrjmHFtLIx0g IH+Yy43PMubotdoAaBpRG2Ikxr+Hbs+JSoyXqP1Aq6P/VZ83N0c7nzIQJWV28Qchg3Xk lHogVxHU3OQW/nEWKSOzYTHJm4Jcq6K8tXibHhEQFhCNiKK6ZJ6kcxBPdR0TXNtBDvY4 5jNzR04r/tqIF/2kf1hw3kPSu8LbfwOsbZJ7sO4TqJDsc+unon1nV51GcEGGU0tAiBnu M5wnK3Oo+VehBXzt5iqVZTsdXEXnctdep9Nk4I4xMCMizbop8bt+MGq8NLY8Q2+ijbZx hXig== X-Gm-Message-State: AO0yUKWT6duWlFh6yuBiWkFkCL7u3fOu33rkrWozZ0CpvvA5JwSn1awN XMd51G8LWbEMfkxHN9bdsZ4eqw== X-Google-Smtp-Source: AK7set9cWTKfKLB9cxVPKgLh9v4ppeT9AK0ydALlXlDepEUQTVLSWAUye63y6b+W05NRZDZo7xfrgA== X-Received: by 2002:a05:6000:188f:b0:2bf:bd69:234b with SMTP id a15-20020a056000188f00b002bfbd69234bmr18091804wri.32.1675641053317; Sun, 05 Feb 2023 15:50:53 -0800 (PST) Received: from safae-ThinkPad-T480.. ([2a04:cec0:11ad:6643:93a:a991:f152:4df7]) by smtp.gmail.com with ESMTPSA id w2-20020a5d6802000000b002bfb1de74absm7430196wru.114.2023.02.05.15.50.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Feb 2023 15:50:53 -0800 (PST) From: Safae Ouajih To: sjg@chromium.org Cc: u-boot@lists.denx.de, sean.anderson@seco.com, r.stratiienko@gmail.com, mkorpershoek@baylibre.com, glaroque@baylibre.com, khilman@baylibre.com Subject: [PATCH v3 17/19] doc: android: add documentation for v3, v4 boot image header Date: Mon, 6 Feb 2023 00:50:19 +0100 Message-Id: <20230205235021.355410-18-souajih@baylibre.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230205235021.355410-1-souajih@baylibre.com> References: <20230205235021.355410-1-souajih@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Update the Android documentation to describe version 3 and 4 of boot image header. Signed-off-by: Safae Ouajih --- doc/android/boot-image.rst | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/android/boot-image.rst b/doc/android/boot-image.rst index 71db02521b..c719b4d711 100644 --- a/doc/android/boot-image.rst +++ b/doc/android/boot-image.rst @@ -27,11 +27,21 @@ next image headers: * v2: used in devices launched with Android 10; adds ``dtb`` field, which references payload containing DTB blobs (either concatenated one after the other, or in Android DTBO image format) +* v3: used in devices launched with Android 11; adds ``vendor_boot`` partition + and removes the second-stage bootloader and recovery image support. The new + ``vendor_boot`` partition holds the device tree blob (DTB) and a vendor ramdisk. + The generic ramdisk in ``boot`` partition is loaded immediately following + the vendor ramdisk. +* v4: used in devices launched with Android 12; provides a boot signature in boot + image header, supports multiple vendor ramdisk fragments in ``vendor_boot`` + partition. This version also adds a bootconfig section at the end of the vendor + boot image, this section contains boot configuration parameters known at build time + (see [9]_ for details). v2, v1 and v0 formats are backward compatible. The Android Boot Image format is represented by -:c:type:`struct andr_img_hdr ` in U-Boot, and can be seen in +:c:type:`struct andr_image_data ` in U-Boot, and can be seen in ``include/android_image.h``. U-Boot supports booting Android Boot Image and also has associated command @@ -153,3 +163,4 @@ References .. [6] :doc:`avb2` .. [7] https://source.android.com/devices/bootloader .. [8] https://connect.linaro.org/resources/san19/san19-217/ +.. [9] https://source.android.com/docs/core/architecture/bootloader/implementing-bootconfig -- 2.34.1