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 24892C77B61 for ; Sat, 8 Apr 2023 03:35:06 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 43435858F1; Sat, 8 Apr 2023 05:35:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=lessconfused.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=lessconfused.com header.i=@lessconfused.com header.b="BFdF/Oiy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 06DFF85838; Sat, 8 Apr 2023 05:35:00 +0200 (CEST) Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (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 48B7585838 for ; Sat, 8 Apr 2023 05:34:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=lessconfused.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=da@lessconfused.com Received: by mail-lf1-x12b.google.com with SMTP id i26so792695lfc.6 for ; Fri, 07 Apr 2023 20:34:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lessconfused.com; s=lessconfused; t=1680924895; x=1683516895; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=JKbxe1/6B4Joxh4rryylmIHwiyR8Uz8YIxCtjqorSH0=; b=BFdF/OiyMv3Ph2UI9wA/cqSkEviiIsImtAP57ilGB38PY3cbc7fxfG0uNpce9f2Qby 4Oh9EXciOKq3/29qqNWj7edl/2leNK7/RRLrnUw9Zd72jjDLC3EPu4v9WImD6XJTALWD mA2LW31FCHQkMMJ4Fzc0ATP/U8FzZWiR8d/CA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680924895; x=1683516895; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JKbxe1/6B4Joxh4rryylmIHwiyR8Uz8YIxCtjqorSH0=; b=BZuHKUHYst70W5OuQ8SL7yFNiRaeKj1dLXHYV7g0qOkqKo1LmpaKz/rQ2VcoBcyLKB B7ZG26S8sUuR/eCUEwKsOaMz0tD9NmcVkxQzH4EOeRPjSdvG9uSTYefO3lhOzP7Tlg/K c62ECtGAaPVPcGTXPBAuIRBSPf9mIAxiPvrXpS+1zEsoTXTnHZ6c8i7W3k+FHZJ5cCua +/ftCh/UigqJMRvwrMT/dPrSXPeDJeeU2h/7eMokPEZqlN5hSSGr7uevYi5plXOn7McT 69y+yQEB3zBrfWHmmptZTAVna8iTwk1NfaE5NEc7TIX1vOJWi9P69VZTbdqAaMIhGw0s uzFg== X-Gm-Message-State: AAQBX9cuiRdcT0kK0zAcGfdMqqKao0JNWQ20fsDbAiGzDsfcTGJG9vCH 1N4FHaIwkmuNWxDytLhA2soqiIRL+85SrhmAgrkDaA== X-Google-Smtp-Source: AKy350aupejaO7Ym3EyZw8LP5kLHERzFLgqTn0QDq0qttcRAH80df3Ct13U3bEReh5neHwVc+61uXKhdx+6FWYMnUUI= X-Received: by 2002:ac2:5445:0:b0:4e8:48a4:371a with SMTP id d5-20020ac25445000000b004e848a4371amr1106577lfn.4.1680924895375; Fri, 07 Apr 2023 20:34:55 -0700 (PDT) MIME-Version: 1.0 References: <20230401185458.2280200-1-sjg@chromium.org> <87zg7rb8dd.fsf@bloch.sibelius.xs4all.nl> <1973D65D-692D-4AA7-B074-942D4E9ADB4B@gmail.com> In-Reply-To: From: Da Xue Date: Fri, 7 Apr 2023 23:34:44 -0400 Message-ID: Subject: Re: [PATCH v2 0/1] meson: Demonstration of using binman to produce the image To: Simon Glass Cc: Christian Hewitt , Mark Kettenis , U-Boot Mailing List , u-boot-amlogic@groups.io, AML , Alper Nebi Yasak , Neil Armstrong Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Wed, Apr 5, 2023 at 2:39=E2=80=AFPM Simon Glass wrote= : > > Hi Christian, > > On Mon, 3 Apr 2023 at 20:10, Christian Hewitt > wrote: > > > > > On 2 Apr 2023, at 6:41 am, Simon Glass wrote: > > > > > > Hi Mark, > > > > > > On Sun, 2 Apr 2023 at 09:28, Mark Kettenis = wrote: > > > > > > > > > From: Simon Glass > > > > > Date: Sun, 2 Apr 2023 06:54:57 +1200 > > > > > > > > > > The Odroid-C2 is quite a complicated image with many steps. It is= an ideal > > > > > example for how Binman can be used. > > > > > > > > You say Odroid-C2, but the patches seem to address the Odroid-C4... > > > > > > Ah, yes. The difference seems to be an Amlogic S905 on the C2 and an = S902X3 on the C4. I wonder if that affects the image makeup? > > > > There are currently four different signing recipes that depend on the > > board family that you are building for: > > > > - GXBB > > - GXL/GXM > > - G12A/SM1 > > - G12B > > > > The G12A/SM1 and G12B recipes are identical except for a different > > signing binary used. The latest Amlogic boards (S905X4, T7, etc.) > > also have incremental changes, but none are currently supported in > > Linux or u-boot. > > > > One of the challenges for binman will be the signing tools. Currently > > this patchset depends upon Amlogic binaries. Apart from them being > > closed-source and thus undesirable, they are also x86_64 only and > > there are quite a few users (and at least one major distro) needing > > to build on arm64 hardware. > > > > There is an open-source tool called gxlimg which supports GXL and newer > > boards. IMHO it would make a lot of sense for u-boot to absorb the > > functionality of gxlimg (and extend support backwards to GXBB) as this > > would remove the dependency on Amlogic binaries and allow u-boot build > > and binman signing to be done anywhere. > > > > https://github.com/repk/gxlimg gxlimg also does not have the full featureset of the Amlogic signer. The most important to me being lz4 compression. I'm still trying to get support from Amlogic for open source ATF at least for GXX but that has numerous hurdles to overcome and more hurdles for future designs. > > Fair enough, but another option would be to allow 'binman tool -f > gxlimg' to work, which should be easy. Then we can make use of the > existing C code, using binary tools for the unsupported ones. > > > > > > The patch is for testing by Christian, who I hope can help get this l= anded for all the Amlogic boards. > > > > I will try to find the time to test this, but it=E2=80=99s not somethin= g I > > could do more with (as only supporting 1/4 of the board families > > that I need to build for, bu I do appreciate it=E2=80=99s a POC). > > Yes, it's a start. > > > > > In case you=E2=80=99re not aware, Makefile based signing is implemented= in > > the amlogic-boot-fip repo that I=E2=80=99m currently tooled around: > > > > https://github.com/LibreELEC/amlogic-boot-fip The issue with the boot fips is that they control too many things (CPU freq, DDR freq, M3 control code, and more) to make it universal. > > > > This is the =E2=80=9Ccompetition=E2=80=9D so to speak. It=E2=80=99s qui= te simple and widely > > used by most of the Amlogic supporting distros right now. > > Well at least that provides the recipes. > > Regards, > Simon > > _______________________________________________ > linux-amlogic mailing list > linux-amlogic@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-amlogic