From patchwork Mon Sep 2 16:31:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume La Roque X-Patchwork-Id: 1979691 X-Patchwork-Delegate: mkorpershoek@baylibre.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=feJTtYRU; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WyDm94K6bz1ygs for ; Tue, 3 Sep 2024 02:31:37 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 636D488C67; Mon, 2 Sep 2024 18:31:26 +0200 (CEST) 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.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="feJTtYRU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3CE6988860; Mon, 2 Sep 2024 18:31:25 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) (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 4243A88C19 for ; Mon, 2 Sep 2024 18:31:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=glaroque@baylibre.com Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-371ba7e46easo2950039f8f.0 for ; Mon, 02 Sep 2024 09:31:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1725294683; x=1725899483; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=ARdh5aYOLTcf3BASagBANbjeQApO3w9MogUWRNjwICw=; b=feJTtYRUHyaa3m8hU2s13gJnnxObbZLD87cz3jAw/24Lx8faKoHGyqCyf4ZMi4v/gD 1Yh9kbt/ee2Y38xVgpmCHEPme7+PuZ9sGiQvSmhOdohPPbVa+iyRupHtNWpnoFIKcYgt c73XnQrBRiSANzo6KUepwUcLXHlcZDHG4QbVULR2DBOFD55GqByNWY1YDyFNqGgp7v4K wEP/K51/LfMadTXLoPW4GCCq+z65qxiCWD/HW0qwTN0czN8YasjOell/cArmbKMppVLY 7UmJAjJoU6Cmi+9iL8zpTp7eteRog7ui1Uio3Knv7wWb0Ot3WC5ZFfG12Nf7RFC8obd1 VoTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725294683; x=1725899483; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ARdh5aYOLTcf3BASagBANbjeQApO3w9MogUWRNjwICw=; b=KMp9iDFeGZcdgs7KKaBTeepu4/E/GuWMPcHGPNRCPI03TTo/HpK9gQCrglDk8nNMav UnwlXpWKDHOgR5HuZyMXiOLa1t67M5kgHSct9xtZBKl+Cidsl7I4QZ67MHvzJEhZXIMa FT2qJ82WX/SOlBXtBlGyqZ09C8i3RKivep1IT3zOiIHkQx0MPpxX7EJeMQOxX0V3pD+S /TYowF8aR81C5xG1nqSjt9axr6uQEEmDnT4yplePLo2bEESgV5iY4TgHrJP1JewEeFkX gZdVOEDV5JniZvbLa1VoZBEsu+S47pireJ+Kj23th3mv56ibQxQqyY8tXsLkRtZxZ8SF QLIg== X-Gm-Message-State: AOJu0YzQu8sfVW1ftogUrGFv1ioqaCybqWpMxef8jhDLJoXeOJaJWg7T gFXyBs7xVOFZNUktz+8q2X6PPpGgj9DrF/YcrWMDknMQW8NGf8zGzV3tRdUVDrAxZmRrisEhYQE J X-Google-Smtp-Source: AGHT+IE8aEXp9oq81T/cYXFgsP1X+0b7Tz1E4YjEwlP4/SDxtUSVFnK/cJVn4Tzac3ddtIzGHB1vUw== X-Received: by 2002:adf:eacc:0:b0:371:7c71:9ab2 with SMTP id ffacd0b85a97d-374bcff3c36mr5562160f8f.52.1725294682515; Mon, 02 Sep 2024 09:31:22 -0700 (PDT) Received: from [127.0.1.1] ([2a05:6e02:10a5:e010:36ea:3dbe:c83a:7e39]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6e274ccsm145122185e9.37.2024.09.02.09.31.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 09:31:22 -0700 (PDT) From: Guillaume La Roque Date: Mon, 02 Sep 2024 18:31:19 +0200 Subject: [PATCH 1/3] board: ti: am62x_evm: Add android bootflow MIME-Version: 1.0 Message-Id: <20240902-sitaraupstream-v1-1-0c478c33c08b@baylibre.com> References: <20240902-sitaraupstream-v1-0-0c478c33c08b@baylibre.com> In-Reply-To: <20240902-sitaraupstream-v1-0-0c478c33c08b@baylibre.com> To: Bryan Brattlof , Tom Rini , Joe Hershberger , Nishanth Menon , Robert Nelson , Vignesh Raghavendra Cc: u-boot@lists.denx.de, Mattijs Korpershoek , Vishal Mahaveer , Guillaume La Roque X-Mailer: b4 0.14.1 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.8 at phobos.denx.de X-Virus-Status: Clean Add Android bootflow support for AM62X SK EVM board with new android boot method. Co-developed-by: Mattijs Korpershoek Signed-off-by: Mattijs Korpershoek Signed-off-by: Guillaume La Roque --- board/ti/am62x/am62x.env | 5 +++++ configs/am62x_a53_android.config | 34 ++++++++++++++++++++++++++++++++++ doc/board/ti/am62x_sk.rst | 14 ++++++++++++++ include/env/ti/android.env | 31 +++++++++++++++++++++++++++++++ 4 files changed, 84 insertions(+) diff --git a/board/ti/am62x/am62x.env b/board/ti/am62x/am62x.env index 09b9b16a3e58..078cc4b5ac96 100644 --- a/board/ti/am62x/am62x.env +++ b/board/ti/am62x/am62x.env @@ -19,3 +19,8 @@ splashfile=ti_logo_414x97_32bpp.bmp.gz splashimage=0x80200000 splashpos=m,m splashsource=sf + +#if CONFIG_BOOTMETH_ANDROID +#include +adtb_idx=0 +#endif \ No newline at end of file diff --git a/configs/am62x_a53_android.config b/configs/am62x_a53_android.config new file mode 100644 index 000000000000..0be6fdd1620f --- /dev/null +++ b/configs/am62x_a53_android.config @@ -0,0 +1,34 @@ +# Defconfig fragment for enabling Android boot flow +# to apply on top of am62x_evm_a53_defconfig or am62x_lpsk_a53_defconfig +# Enable fastboot +CONFIG_USB_FUNCTION_FASTBOOT=y +CONFIG_FASTBOOT_BUF_ADDR=0xC0000000 +CONFIG_FASTBOOT_BUF_SIZE=0x2F000000 +CONFIG_FASTBOOT_FLASH=y +CONFIG_FASTBOOT_FLASH_MMC_DEV=0 +CONFIG_CMD_GPT=y # Needed for FASTBOOT_CMD_OEM_FORMAT +CONFIG_RANDOM_UUID=y # Needed for FASTBOOT_CMD_OEM_FORMAT +CONFIG_FASTBOOT_CMD_OEM_FORMAT=y +# Enable Android boot flow +CONFIG_BOOTMETH_ANDROID=y +CONFIG_SYS_BOOTM_LEN=0x4000000 +CONFIG_SYS_MALLOC_LEN=0x08000000 +CONFIG_AVB_VERIFY=y +CONFIG_LIBAVB=y +CONFIG_CMD_ADTIMG=y +CONFIG_CMD_ABOOTIMG=y +CONFIG_CMD_AB_SELECT=y +CONFIG_CMD_AVB=y +# Store env in eMMC for dtbo overlays +CONFIG_DEFAULT_ENV_IS_RW=y +CONFIG_ENV_SIZE=0x20000 +CONFIG_ENV_OFFSET=0x100000 +CONFIG_ENV_IS_IN_MMC=y +CONFIG_ENV_IS_NOWHERE=n +CONFIG_SYS_MMC_ENV_PART=1 +CONFIG_SPL_ENV_IS_NOWHERE=y +# Disable splashscreen +CONFIG_SPL_VIDEO=n +CONFIG_VIDEO=n +CONFIG_SPL_BMP=n +CONFIG_BMP=n diff --git a/doc/board/ti/am62x_sk.rst b/doc/board/ti/am62x_sk.rst index b9d35244d446..51dab839ddd9 100644 --- a/doc/board/ti/am62x_sk.rst +++ b/doc/board/ti/am62x_sk.rst @@ -132,6 +132,20 @@ DFU support (and disable storage support) .. include:: ../ti/k3.rst :start-after: .. k3_rst_include_start_build_steps_uboot :end-before: .. k3_rst_include_end_build_steps_uboot + +* 3.2.1 Alternative build of A53 for Android bootflow: + +Since the Android requires many more dependencies, it is disabled by default. +An extra config fragment should be used to enable Android bootflow support. + +.. prompt:: bash $ + + export UBOOT_CFG_CORTEXR="${UBOOT_CFG_CORTEXA} am62x_a53_android.config" + +.. include:: ../ti/k3.rst + :start-after: .. k3_rst_include_start_build_steps_uboot + :end-before: .. k3_rst_include_end_build_steps_uboot + .. am62x_evm_rst_include_end_build_steps Target Images diff --git a/include/env/ti/android.env b/include/env/ti/android.env new file mode 100644 index 000000000000..a058beb7fc42 --- /dev/null +++ b/include/env/ti/android.env @@ -0,0 +1,31 @@ +/* Android partitions + * += is needed because \n is converted by space in .env files */ +partitions=name=bootloader,start=5M,size=8M,uuid=${uuid_gpt_bootloader}; +partitions+=name=tiboot3,start=4M,size=1M,uuid=${uuid_gpt_tiboot3}; +partitions+=name=misc,start=13824K,size=512K,uuid=${uuid_gpt_misc}; +partitions+=name=frp,size=512K,uuid=${uuid_gpt_frp}; +partitions+=name=boot_a,size=40M,uuid=${uuid_gpt_boot_a}; +partitions+=name=boot_b,size=40M,uuid=${uuid_gpt_boot_b}; +partitions+=name=vendor_boot_a,size=32M,uuid=${uuid_gpt_vendor_boot_a}; +partitions+=name=vendor_boot_b,size=32M,uuid=${uuid_gpt_vendor_boot_b}; +partitions+=name=init_boot_a,size=8M,uuid=${uuid_gpt_init_boot_a}; +partitions+=name=init_boot_b,size=8M,uuid=${uuid_gpt_init_boot_b}; +partitions+=name=dtbo_a,size=8M,uuid=${uuid_gpt_dtbo_a}; +partitions+=name=dtbo_b,size=8M,uuid=${uuid_gpt_dtbo_b}; +partitions+=name=vbmeta_a,size=64K,uuid=${uuid_gpt_vbmeta_a}; +partitions+=name=vbmeta_b,size=64K,uuid=${uuid_gpt_vbmeta_b}; +partitions+=name=vbmeta_vendor_dlkm_a,size=64K,uuid=${uuid_gpt_vbmeta_vendor_dlkm_a}; +partitions+=name=vbmeta_vendor_dlkm_b,size=64K,uuid=${uuid_gpt_vbmeta_vendor_dlkm_b}; +partitions+=name=super,size=4608M,uuid=${uuid_gpt_super}; +partitions+=name=metadata,size=64M,uuid=${uuid_gpt_metadata}; +partitions+=name=persist,size=32M,uuid=${uuid_gpt_persist}; +partitions+=name=userdata,size=-,uuid=${uuid_gpt_userdata} + +fastboot_raw_partition_bootenv=0x800 0x400 mmcpart 1 +fastboot.partition-type:metadata=f2fs + +boot_targets=mmc0 +mmcdev=0 +bootmeths=android +vendor_boot_comp_addr_r=0xd0000000 +bootcmd=bootflow scan -lb From patchwork Mon Sep 2 16:31:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume La Roque X-Patchwork-Id: 1979693 X-Patchwork-Delegate: mkorpershoek@baylibre.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=NWccar4K; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WyDmX54lhz1ygs for ; Tue, 3 Sep 2024 02:31:56 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7252788C50; Mon, 2 Sep 2024 18:31:31 +0200 (CEST) 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.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="NWccar4K"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B0EC888860; Mon, 2 Sep 2024 18:31:28 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (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 D56A488C50 for ; Mon, 2 Sep 2024 18:31:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=glaroque@baylibre.com Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-42c2e50ec13so20605575e9.0 for ; Mon, 02 Sep 2024 09:31:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1725294683; x=1725899483; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=cC1hNtijWJaYPRuR8NyE71yasvS/p+S3tcruCs/845k=; b=NWccar4Kszru52HZvxuicYSijowryh8/QB1MgdithJUpPyN5Ie4AJ8fBW9xUf/PsLi 0G2XQj/8VeK6/NDYWoUrbDsM6LcDlIiuFBjz+8DP40tfl89F/tkZ4Yu2J+15CAGix870 siHitCAMFT9qFlbKE5Eg6MWJzMDDO08EyeoKwwc+2OG/TKlzwkDqjNyQ3td0IGE901jm YjjoTXhhb8bCFclwy4mPD5VmVVs8TzFcfp2qdeR2+2ClYQlbt9LgWx1lnU3w1b/PCcls Oe39U2YUJuZCg6fNRCLoMECOlCrX0KdVuaTAUipLj5XxTIP/904+3Smj0Epx0kQerQn6 kpDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725294683; x=1725899483; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cC1hNtijWJaYPRuR8NyE71yasvS/p+S3tcruCs/845k=; b=bwbJeP/uRbka5ik+OyMdQKH6NTOTm5iEg6LqEFeCV3ayyXQPjiZ0UrdzMxERKdjuhr HoocO0eU1CAkO1BneQpp0skSP2FixcY5qg+CXV0QYGPM/wkakLkznRDmfq5NirOLDPFp NSEKTWRFAFbNYdDW866/vOLcYzvfIZk6G+sMDrDvbSsuJvQGiPfrFYPLXaA3yYT4hzGs hKIQdraMkZaI1scEtdVx3ek5Ua8HvxqucWk/62zmvJNeUaymVXexCPBcLjgYOg5mCViV p5NYKZ63rEDxKFLONmbS68H8XG19hzItVQEhwtFHjVmdGI0HOB3uGkNs00fWU2ADVOi9 cIGw== X-Gm-Message-State: AOJu0YzjDEO/EDK6EMw21gXIevGm16ScwdazQfrYBkikJdh+3Cd8gj2N 9zLNcK9feJYxWGAH4MFP7V3vh98F25748mGnKj2WHGuo5B0mjrFQvVh5Rmlj9dA= X-Google-Smtp-Source: AGHT+IHbCEnNgV4HDMeQMN2Wvz3HMIUZhHbFGYX2LytsSPvE+Jfo55XETY9bjKuPEvJcX4AyU/DcAw== X-Received: by 2002:a05:600c:1d1d:b0:426:5269:1a50 with SMTP id 5b1f17b1804b1-42bbb205a6bmr77599995e9.11.1725294683198; Mon, 02 Sep 2024 09:31:23 -0700 (PDT) Received: from [127.0.1.1] ([2a05:6e02:10a5:e010:36ea:3dbe:c83a:7e39]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6e274ccsm145122185e9.37.2024.09.02.09.31.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 09:31:22 -0700 (PDT) From: Guillaume La Roque Date: Mon, 02 Sep 2024 18:31:20 +0200 Subject: [PATCH 2/3] board: beagle: beagleplay: Add android bootflow support MIME-Version: 1.0 Message-Id: <20240902-sitaraupstream-v1-2-0c478c33c08b@baylibre.com> References: <20240902-sitaraupstream-v1-0-0c478c33c08b@baylibre.com> In-Reply-To: <20240902-sitaraupstream-v1-0-0c478c33c08b@baylibre.com> To: Bryan Brattlof , Tom Rini , Joe Hershberger , Nishanth Menon , Robert Nelson , Vignesh Raghavendra Cc: u-boot@lists.denx.de, Mattijs Korpershoek , Vishal Mahaveer , Guillaume La Roque X-Mailer: b4 0.14.1 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.8 at phobos.denx.de X-Virus-Status: Clean From: Mattijs Korpershoek Beagle Play has a different boot flow than the AM62x SK EVM. AM62x SK EVM: 1. Boot rom reads UDA (User Data Area), looking for tiboot3 2. Boot rom finds tiboot3 and loads it Beagle Play: 1. Boot rom looks for tiboot3 in mmc0boot0 2. Boot rom finds tiboot3 and loads it Because of this difference, we need to have a different partitioning table than the generic TI one. Include generic TI android support and override the partitioning table to boot Android. Signed-off-by: Mattijs Korpershoek Signed-off-by: Guillaume La Roque Reviewed-by: Mattijs Korpershoek --- board/beagle/beagleplay/beagleplay.env | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/board/beagle/beagleplay/beagleplay.env b/board/beagle/beagleplay/beagleplay.env index 354bc987d12b..fc29d49712db 100644 --- a/board/beagle/beagleplay/beagleplay.env +++ b/board/beagle/beagleplay/beagleplay.env @@ -17,3 +17,33 @@ bootdir=/boot boot_targets=mmc1 mmc0 bootmeths=script extlinux efi pxe rd_spec=- + +#if CONFIG_BOOTMETH_ANDROID +#include +/* Override Android partitions + * Required because tiboot3 is in mmc0boot0, not in UDA + * note that += is needed because \n is converted by space in .env files */ +partitions= + name=bootloader,start=5M,size=8M,uuid=${uuid_gpt_bootloader}; +partitions+=name=misc,start=13824K,size=512K,uuid=${uuid_gpt_misc}; +partitions+=name=frp,size=512K,uuid=${uuid_gpt_frp}; +partitions+=name=boot_a,size=40M,uuid=${uuid_gpt_boot_a}; +partitions+=name=boot_b,size=40M,uuid=${uuid_gpt_boot_b}; +partitions+=name=vendor_boot_a,size=32M,uuid=${uuid_gpt_vendor_boot_a}; +partitions+=name=vendor_boot_b,size=32M,uuid=${uuid_gpt_vendor_boot_b}; +partitions+=name=init_boot_a,size=8M,uuid=${uuid_gpt_init_boot_a}; +partitions+=name=init_boot_b,size=8M,uuid=${uuid_gpt_init_boot_b}; +partitions+=name=dtbo_a,size=8M,uuid=${uuid_gpt_dtbo_a}; +partitions+=name=dtbo_b,size=8M,uuid=${uuid_gpt_dtbo_b}; +partitions+=name=vbmeta_a,size=64K,uuid=${uuid_gpt_vbmeta_a}; +partitions+=name=vbmeta_b,size=64K,uuid=${uuid_gpt_vbmeta_b}; +partitions+=name=vbmeta_vendor_dlkm_a,size=64K,uuid=${uuid_gpt_vbmeta_vendor_dlkm_a}; +partitions+=name=vbmeta_vendor_dlkm_b,size=64K,uuid=${uuid_gpt_vbmeta_vendor_dlkm_b}; +partitions+=name=super,size=4608M,uuid=${uuid_gpt_super}; +partitions+=name=metadata,size=64M,uuid=${uuid_gpt_metadata}; +partitions+=name=persist,size=32M,uuid=${uuid_gpt_persist}; +partitions+=name=userdata,size=-,uuid=${uuid_gpt_userdata} +fastboot_raw_partition_tiboot3="0x0 0x800 mmcpart 1" + +adtb_idx=2 +#endif From patchwork Mon Sep 2 16:31:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume La Roque X-Patchwork-Id: 1979692 X-Patchwork-Delegate: mkorpershoek@baylibre.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=PJ01qUbd; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WyDmL3kGsz1ygs for ; Tue, 3 Sep 2024 02:31:46 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F108088860; Mon, 2 Sep 2024 18:31:28 +0200 (CEST) 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.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="PJ01qUbd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E250788C72; Mon, 2 Sep 2024 18:31:26 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) (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 EB9DB88C55 for ; Mon, 2 Sep 2024 18:31:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=glaroque@baylibre.com Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-374bfc395a5so1190196f8f.0 for ; Mon, 02 Sep 2024 09:31:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1725294684; x=1725899484; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=P0vnigSa4swRPXEaQXR9o9GVecuyzii85ioKtXd3Swk=; b=PJ01qUbdiWl0j9LrFlF4glGt3GspR9k2IC6wZRmRK1ZcY7+7b5eLWA0x1g+gF65JT1 jVj2CMphyVefOCSLNDktRwxlE+3N+3Y3CaboiI2MlUZd29kMRcrlApHSK6hknGF63ItJ 7YdIerNEDAeG0mBqHtoCvKQc8eitfgdjTiphWQTh8zUjq12aeXBZXkDYIeDR4FhFb7Hq Ovmw5OREIueZk0/qKU3BQBiO+1C3phejA3nbnpLKpqA+AQ0a5dsDYgOpLbt3lD6ua1zB RlfnpgsCMj48FjFkZhxxE0ZXBRum2vyv8tpK44/TrP88Do1Rjh2pwYRJcqF/tGS4pIe/ +vBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725294684; x=1725899484; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=P0vnigSa4swRPXEaQXR9o9GVecuyzii85ioKtXd3Swk=; b=XMt0AN2OpTHLecE7bPa2M4V2YVQjpZwkFpqBQmECBn41EePAnHCUv+EVKj3xpYl2a5 oi2pksqQSinqYRUPo/KfnR1ghNXT1aMkrUP9/85ri9SBZxG3wMNC91VqyWPx81BcDxH8 AQZsBXTpS1O9DV4GhkcUe63+TY6yjyrZTPd/e3IRQj+e84FKZ8oOJmuRWvgEW60ch59o 0UbGDEGfzsHS1/hv3jmSGMcsEWoyOb+16hhLZt05HKZ4O2whKuMjsovSW4KK1D5D/qzX dNri/S7JXH737pVp35n0U4h+2yMIjLjB/v2Ly7abwFwm2hrpzAWHyQsL3cAUg6QpAXZy 8Y+Q== X-Gm-Message-State: AOJu0YwxtTrzQb+CyVoDCE0iTeoMwTgtY6U2gjOqnNzyNfHCCm6opL7D Mxm1KxrISaV7X7E5N/gZxHib0A40G5XABR4KkiYY9DmzV6k58hw6P+19JCuazUI= X-Google-Smtp-Source: AGHT+IFtvzfUxB5nR7HDDQDXuuiAYcqTZPFuy5VroDdDAdoibdSLhBqK1YFZtEX3hNK5u6eNnF5CRA== X-Received: by 2002:a05:6000:2a8a:b0:374:be24:a81b with SMTP id ffacd0b85a97d-374be24a8aamr6923664f8f.7.1725294684356; Mon, 02 Sep 2024 09:31:24 -0700 (PDT) Received: from [127.0.1.1] ([2a05:6e02:10a5:e010:36ea:3dbe:c83a:7e39]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6e274ccsm145122185e9.37.2024.09.02.09.31.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 09:31:23 -0700 (PDT) From: Guillaume La Roque Date: Mon, 02 Sep 2024 18:31:21 +0200 Subject: [PATCH 3/3] board: ti: am62px: Add android bootflow support MIME-Version: 1.0 Message-Id: <20240902-sitaraupstream-v1-3-0c478c33c08b@baylibre.com> References: <20240902-sitaraupstream-v1-0-0c478c33c08b@baylibre.com> In-Reply-To: <20240902-sitaraupstream-v1-0-0c478c33c08b@baylibre.com> To: Bryan Brattlof , Tom Rini , Joe Hershberger , Nishanth Menon , Robert Nelson , Vignesh Raghavendra Cc: u-boot@lists.denx.de, Mattijs Korpershoek , Vishal Mahaveer , Guillaume La Roque X-Mailer: b4 0.14.1 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.8 at phobos.denx.de X-Virus-Status: Clean From: Mattijs Korpershoek When CONFIG_BOOTMETH_ANDROID is set, enable Android boot flow support. To build for AM62Px for Android, we can re-use the am62x_a53_android.config fragment when building A53 bootloaders: $ make am62px_evm_a53_defconfig $ make am62x_a53_android.config $ make Signed-off-by: Mattijs Korpershoek Signed-off-by: Guillaume La Roque Reviewed-by: Mattijs Korpershoek --- board/ti/am62px/am62px.env | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/board/ti/am62px/am62px.env b/board/ti/am62px/am62px.env index f8b6aff2c2fd..7ef54079aa8d 100644 --- a/board/ti/am62px/am62px.env +++ b/board/ti/am62px/am62px.env @@ -13,3 +13,8 @@ mmcdev=1 bootpart=1:2 bootdir=/boot rd_spec=- + +#if CONFIG_BOOTMETH_ANDROID +#include +adtb_idx=3 +#endif \ No newline at end of file