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 99833C54EAA for ; Fri, 27 Jan 2023 20:37:17 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BA289852A0; Fri, 27 Jan 2023 21:37:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="lygLspYT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0405C855D2; Fri, 27 Jan 2023 21:37:13 +0100 (CET) Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) (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 3FE648514E for ; Fri, 27 Jan 2023 21:37:10 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x829.google.com with SMTP id e8so5117044qts.1 for ; Fri, 27 Jan 2023 12:37:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ggoNQY2dO7UAClXTaFEOdgKcPUxYkI8QWG1VRlGL1yw=; b=lygLspYTHFVJ13Zf7EWlfkjqyYywA6In8Tk4OCAfXurwEQGiVFN/aA8ECPMMwfiTrs mSDP8n2Na+XsVwgABdtUqQqoa5KwFnaO5Nmzi6lOlTSRM1qfA5yxJLpjewl2BDDkGKbO kIk6STBAPT6rAr0bm5MHzxWYQdN1ps21eizV4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ggoNQY2dO7UAClXTaFEOdgKcPUxYkI8QWG1VRlGL1yw=; b=7jisvqUbM+8iZwmS1E9ix70dLwRVY1ddiYwy+t8YsslYpnOundM2TC+MQKzSgt6Rmp a/iMGZ1LgZzJtKYQxxHKi8zzQdH495ITUgSsv7v85/i7zy/maW0LVBR2L6DhBA0No4k0 0ISpc3xOLf3P1PcZCys6XaavH3IfMMC/PFL1HbJX6dY1tXE867IIEWgwebUUrnpLiN9y 4x97cVflBTK1y++zqrxan9sKQjAy83J1BGeigAyr8mQoEN1bDzuLiJizN49eIbXeNY28 EFdcOAMbf6BByxNNhn+gAtuzN2IlkvW5W0YpzwUOZXBhJW+Wtyutp9H3IetGomgPTSgo nVMQ== X-Gm-Message-State: AO0yUKWdRtrAw9OEFRPJmKGwb0+PhDnxWMHqzAXFVB7Ms3CRvdhy4QK4 uOXzUibll0m44LXPTJT4rHEIkQ== X-Google-Smtp-Source: AK7set+dzIfRiD+VF04n0rxycnghzWdzNTdrGDI8+Fcl6m0qd51H4HZJ+VK+5GktxBnKVOm/W6VARQ== X-Received: by 2002:ac8:5a56:0:b0:3b8:29f6:8ac6 with SMTP id o22-20020ac85a56000000b003b829f68ac6mr3781752qta.12.1674851828929; Fri, 27 Jan 2023 12:37:08 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-bacc-4546-b75d-3c88.res6.spectrum.com. [2603:6081:7b00:6400:bacc:4546:b75d:3c88]) by smtp.gmail.com with ESMTPSA id j12-20020a05620a0a4c00b00706afbdeb01sm3524836qka.8.2023.01.27.12.37.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 12:37:08 -0800 (PST) Date: Fri, 27 Jan 2023 15:37:06 -0500 From: Tom Rini To: Safae Ouajih Cc: Simon Glass , u-boot@lists.denx.de, sean.anderson@seco.com, r.stratiienko@gmail.com, mkorpershoek@baylibre.com, glaroque@baylibre.com, khilman@baylibre.com Subject: Re: [PATCH v2 17/17] test/py: android: extend abootimg test Message-ID: References: <20230126160506.1026643-1-souajih@baylibre.com> <20230126160506.1026643-18-souajih@baylibre.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OJMKPE2hP9XD/TWM" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett 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 --OJMKPE2hP9XD/TWM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 27, 2023 at 04:51:41PM +0100, Safae Ouajih wrote: >=20 > On 27/01/2023 01:55, Simon Glass wrote: > > Hi Safae, > >=20 > > On Thu, 26 Jan 2023 at 09:05, Safae Ouajih wrote: > > > test_abootimg is extended to include the testing of boot images > > > version 4. For this, boot.img and vendor_boot.img have been > > > generated using mkbootimg tool with setting the header > > > version to 4. > > >=20 > > > This tests: > > > - Getting the header version using abootimg > > > - Extracting the load address of the dtb > > > - Extracting the dtb start address in RAM > > >=20 > > > Running test: > > > $ ./test/py/test.py --bd sandbox --build -k test_abootimg > > >=20 > > > Signed-off-by: Safae Ouajih > > > --- > > > test/py/tests/test_android/test_abootimg.py | 135 +++++++++++++++++= +-- > > > 1 file changed, 122 insertions(+), 13 deletions(-) > > >=20 > > Reviewed-by: Simon Glass > >=20 > > Question below > >=20 > > > diff --git a/test/py/tests/test_android/test_abootimg.py b/test/py/te= sts/test_android/test_abootimg.py > > > index 43a7099c46..a5c734b9c5 100644 > > > --- a/test/py/tests/test_android/test_abootimg.py > > > +++ b/test/py/tests/test_android/test_abootimg.py > > > @@ -32,6 +32,23 @@ Now one can obtain original boot.img from this hex= dump like this: > > >=20 > > > $ xxd -r -p boot.img.gz.hex boot.img.gz > > > $ gunzip -9 boot.img.gz > > > + > > > +For boot image header version 4, these tests rely on two images that= are generated > > > +using the same steps above : > > > + > > > +1- boot.img : > > > + $ mkbootimg --kernel ./kernel --ramdisk ./ramdisk.img \ > > > + --cmdline "cmdline test" --dtb ./dtb.img \ > > > + --os_version R --os_patch_level 2019-06-05 \ > > > + --header_version 4 --output ./boot.img > > > + > > > +2- vendor_boot.img > > > + $ mkbootimg --kernel ./kernel --ramdisk ./ramdisk.img \ > > > + --cmdline "cmdline test" --dtb ./dtb.img \ > > > + --os_version R --os_patch_level 2019-06-05 \ > > > + --pagesize 4096 --vendor_ramdisk ./ramdisk.img \ > > > + --header_version 4 --vendor_boot ./vboot.img \ > > Is it possible for us to run these commands in the test, to avoid > > hassle when we want to change the disk image? See test_ut.py >=20 > Hi Simon, >=20 > I think that it is possible to run these commands in the test. However, >=20 > this requires adding "mkbootimg" android tool with the last updates Please update tools/docker/Dockerfile to include this tool then, so we can run it in CI (or locally using the images). --=20 Tom --OJMKPE2hP9XD/TWM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmPUNe8ACgkQFHw5/5Y0 tyxRRQwAnMY8JLs93z3J0H74+V6UbXtFt2KqN/VhmjzxyNoeHr68LeKMRz39TScJ R7BgYLavpjqX4+8JXM96+UKZdoN1jJoz0fs/AM1gIUcfjIOlQoVw4p2Nl7ivNELm 65dfpQ8168TyAkQHyftUrCjXwgk83XVFcV5x5f60/0672mBExsrXbjkFR/ucpj5Y DFNuUVIK/j1HUy610n8YCdpsmMSQ0rh/69z9gXCyV2jeSLJS3lyHbC3aVgpAiBDM Wk5Aw4iAaLv6CKvEpgweC3fSCv3ay2CKAD8+tdYIBk/wMOc4QbURvp6Vf+3ENbP4 fGDm9MjKHW4j6mCse5SG1w/jRi4SfKZ9hWGFbqr4zrO0RiquRl7HGAaJF6Buztsg 0cwNoAw3Sb2E92LKs1JHsMg6JkdPc/XnRTyFmQRwznf+8PsmxutwusjfTsSWS5D1 AyXGi6CQWSapwWGXfgVe+KWn5apFqby/O1k1+K+KJhK4hgMSNwjnYPIZxGuWeFcG zRwAreP+ =+7fs -----END PGP SIGNATURE----- --OJMKPE2hP9XD/TWM--