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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42C8ED374B8 for ; Thu, 17 Oct 2024 16:10:52 +0000 (UTC) Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) by mx.groups.io with SMTP id smtpd.web11.1932.1729181446663515800 for ; Thu, 17 Oct 2024 09:10:47 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=V+WNsQfi; spf=pass (domain: baylibre.com, ip: 209.85.128.52, mailfrom: glaroque@baylibre.com) Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-4315839a7c9so12221925e9.3 for ; Thu, 17 Oct 2024 09:10:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1729181445; x=1729786245; darn=groups.io; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=i/6g9QE3f+WP55Ncpx5cM2zPhfavAXgJcyJU+2FsYcI=; b=V+WNsQfiiexyANgUG23D1z090uDAYy3oPyheDbEOPVCh/Vy88tsGW5Khhpg04A5ppA sBlqy7t9GXl+wv6x9VAIXOlst/mpIG4L872dHEiWyjxIqwiJdQrhs2G8RKFXqBbeqGr/ OpVnGlL2mODnWDIhTM+aJijoSXbEc0x6JibHadsWhQEkfVVoc+PhFiFAI8q7XjN2n9FU v5ASoUOphFmOshW2CsmJUyKZO9u/1qyueeMQ9MtZWfAwxrRRymmHG6erXle81cH03YXy 2AxiVc22cRkpKRVrB3IY/9K9jfSfsYFT3+70LUz5EGiiUmq4mlCBf1/lyr8w5e8AdhBG /JYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729181445; x=1729786245; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=i/6g9QE3f+WP55Ncpx5cM2zPhfavAXgJcyJU+2FsYcI=; b=KwoZ6fMmD+Ydxr70L/bKphT53ytYXRrfX3ZpA2C2kKzHgtqrn7QBg1/abgy/MzuWrY ejsMqu+1/7CPAl0/F7YrGy970ewOQpDc/TJsKplD3NL6wyp80uqDmI3SswEtbtb/N0Yq 3eWAA4M5yf//vQ+59bQnSohBHhMx79vRzLbJoEVeykn02jGsFlH0S2xN041YRgnzgt9m 1YXn4Vxe5Ybbu8taPdEQGP/N9D9S6mYGieVzMkbBFA/Yaal586Z0ndckFn9xGuHC8h1D PgcCI5nwZdfjKo7n4OQ0czeOPRReejk1s4JRYA2oTWh4jdbRkvSo2D9gszYt6d9SgikS DseQ== X-Forwarded-Encrypted: i=1; AJvYcCXapVeG6s+E2y4XLMG6fKdBqKgeL5wKg+JiIAmQL5UI32vl89h0227Lz8WkQJLhdFlWYYaX+HUSkTrEK4IANA==@groups.io X-Gm-Message-State: AOJu0Yw9e7kUKB5jgd4N/HmAi2m5WyJA8NWGJSNoTKXScm0KAsjVeCgq nT2ItsQtvaUcxoqw35/CGIdWVAhYYxILdn+CfvvsF+JO+v6k2INHAli5lsiKlHe8v+NV5z42BZc c X-Google-Smtp-Source: AGHT+IHbE83aCpnHHzxRLlCjwThlkUFut0WEG2Sso3O1TvVSLZ9HJQjBXE0E1rzyQrCkLJzczPNP5A== X-Received: by 2002:a05:600c:1d94:b0:42c:b1ee:4b04 with SMTP id 5b1f17b1804b1-4314a38157emr62678055e9.28.1729181444757; Thu, 17 Oct 2024 09:10:44 -0700 (PDT) Received: from [127.0.1.1] ([2a05:6e02:10a5:e010:4754:2b9f:eb4f:125]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37d7fc42160sm7653993f8f.112.2024.10.17.09.10.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2024 09:10:44 -0700 (PDT) From: Guillaume La Roque Subject: [PATCH 0/6] Add support of Android Boot Image version 2 and non-AB image Date: Thu, 17 Oct 2024 18:10:24 +0200 Message-Id: <20241017-adnroidv2-v1-0-781c939902c9@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAPA2EWcC/23OTW7DIBCG4atYrDsR4PgHr3KPKoqGYeyiBpOAY 1WKcvdip8suX4Se+Z4ic/KcxVA9ReLVZx/nEuqjEvSF88TgXWmhpT4qqRpAN6fo3aoBpXKErTS d7ET5f0s8+p/d+jy/O/H9Ucjl/SgC54w7OVR/YAc4uw28oL0EzAsnWBuQcKztSCRN60xzynh9L OzKPuJ8oBi2e/9qS7x5grFANsYF9kEQvrfwYYIyWwLVRndKamdqdbr6GVM8xDRtpsXMUPzgl6E yrMjpUZPt275trCUpNTvTKpSmoQ57S2R6I86v1y++TgRsSQEAAA== To: Mattijs Korpershoek , Simon Glass , Tom Rini , Neil Armstrong Cc: u-boot@lists.denx.de, u-boot-amlogic@groups.io, Guillaume La Roque , 20241017-android_ab_master-v5-0-43bfcc096d95@salutedevices.com, 20241017-topic-fastboot-fixes-mkbootimg-v2-0-c3927102d931@linaro.org X-Mailer: b4 0.14.1 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 17 Oct 2024 16:10:52 -0000 X-Groupsio-URL: https://groups.io/g/u-boot-amlogic/message/2502 Actually bootmethod android only support android boot image version 4 and with AB image, some old platform wtill use android boot image version 2 with AB or without AB slot. This patchset add support of both version 2 and non-AB slot images. It's fixed in same time a boot issue seen on khadas vim3{l} board with 16GB eMMC patchset was tested on khadas VIM3 and VIM3L with AOSP main branch and android-mainline kernel and with TI AM62P with android release provided by TI. Signed-off-by: Guillaume La Roque --- Guillaume La Roque (6): bootstd: android: add support of bootimage v2 bootstd: android: add non-A/B image support configs: khadas-vim3{l}: fix userdata size configs: khadas-vim3l_android{_ab}: move on bootmeth android configs: khadas-vim3_android{_ab}: move on bootmeth android bootstd: Add test for Android boot image v2 arch/sandbox/dts/test.dts | 10 +++- boot/Kconfig | 1 - boot/bootmeth_android.c | 80 ++++++++++++++++++++++--------- configs/am62x_a53_android.config | 1 + configs/khadas-vim3_android_ab_defconfig | 7 ++- configs/khadas-vim3_android_defconfig | 7 ++- configs/khadas-vim3l_android_ab_defconfig | 7 ++- configs/khadas-vim3l_android_defconfig | 7 ++- configs/sandbox_defconfig | 1 + include/configs/khadas-vim3_android.h | 31 +++++++++--- include/configs/khadas-vim3l_android.h | 33 ++++++++++--- test/boot/bootflow.c | 29 +++++++++-- test/py/tests/test_ut.py | 49 +++++++++++++++++++ 13 files changed, 219 insertions(+), 44 deletions(-) --- base-commit: 9e1cd2f2cb86865bbc002ed961a095c7a8bcc989 change-id: 20241015-adnroidv2-a01dca609707 prerequisite-message-id: 20241017-android_ab_master-v5-0-43bfcc096d95@salutedevices.com prerequisite-patch-id: 2741d3997913068fd4ce70645feaf67036adf401 prerequisite-patch-id: 3aee9fe1151f7f358c37dd18068f2270cfd11bf9 prerequisite-patch-id: d43a2bb0407de9b4d76464f5edc7d08eecb6e637 prerequisite-patch-id: 887f326fb6118f3b032f843d4f9edd382a0f3e8f prerequisite-patch-id: 51498bd770f7fe82cf6954ba61564cfd4644aace prerequisite-patch-id: 93d7bac8e10fad672833df6647f346cfce38f008 prerequisite-message-id: 20241017-topic-fastboot-fixes-mkbootimg-v2-0-c3927102d931@linaro.org prerequisite-patch-id: 03ee7fe890d6cc5734ba5950fcda820466f9eee5 prerequisite-patch-id: cdef2f4a68a8ae2eb4ffee5467ef45d1638e5266 prerequisite-patch-id: 93aa15770f62ff17e55b74480456cf1f305de65e Best regards, -- Guillaume La Roque