| Message ID | 20240304153253.732708-12-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-amarula+bncBCQ4XFG47UFRB76TS6XQMGQERTQNJOY@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 4288842753 for <linux-amarula@patchwork.amarulasolutions.com>; Mon, 4 Mar 2024 16:34:24 +0100 (CET) Received: by mail-lf1-f70.google.com with SMTP id 2adb3069b0e04-51333e20813sf2067344e87.0 for <linux-amarula@patchwork.amarulasolutions.com>; Mon, 04 Mar 2024 07:34:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709566463; cv=pass; d=google.com; s=arc-20160816; b=JF67XxogQDZh9eVNL+wgcNGqI0zM3W2TPO2HL6VPnDietyUETNGQzvzpKIP9Pt5koj BNAooudpVmx/uiRsCllqXM83EhtlHPsAOqHvTbxc1SfI5nXAFc9QdWrsxgqUT9xwgSiS SjwsAXg+OXS6n25y3adaiwhhGHZXSSlqd6it3hiszpPvq4tKoXMG3wF4lZFSi9DZ9KJT vr1SsCqSl83BozoaAZFM2CT40XiyLo1zdnOEyGgskaDi6UgRIGetIuHBdD2yooJWrlZ7 NCLBJZmjFae6UcY4ZId1dQuk/CkXYOmXNIEeWaMhUus1dpQoQqEwjkB6JVZIatmMCcb2 FJsA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=xO8cpeNm921ytud4v5u/HR3y4wYH1BWACDh3pwlFREA=; fh=/XJFAf0TybPCrkRVahGhXoCQVSKZqHSQgUNGOlngoL0=; b=PO8XyRKB76YEN9Moz6GJj/F6QFDAih0Ql+MplRILuFOr3W1ZRvO/Sfyh8aEG7GenM2 lNG7NO0a1YXaZvd/tWt9uImae3lxSYeEmreXJvjebr2vkLq28ENsDR0Ep/Ju1baMADcu cqeZolyI4ODSoQX2XxJFcG7RTh1ZuK8A50ztSqxWQjMMPdbdhfei+FGp6jsfVmMyyjtx ZuvxZxkBrpi2tpulqNImr730F8XLEok5y4mJA2g5tIUXf/DNcDGtEJd2rFjc7Jl2y4ex /WORoF+wokVzjP9CrowuRIlUbiw65yTCQd3Ej5VQowfu2Heqlf1HHGwB1qqq0OayAlhi HuCQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=eSy+PWun; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1709566463; x=1710171263; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=xO8cpeNm921ytud4v5u/HR3y4wYH1BWACDh3pwlFREA=; b=AZQOVTVwaw7RJseCDtOz3l0HlyIQYCldueZLBPTMJG76us9buwEYd4NSoAqs0dvC0Y wYE84h6KBlQiFspRZZGZFIYOu7/LzR92e3NTfbrs4Ld8//YWFL2Bo85dgjrHqDb5FTeX R6TkNxeZH7oRIwKGeAduKOsqaVYTwYgoiVWWA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709566463; x=1710171263; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xO8cpeNm921ytud4v5u/HR3y4wYH1BWACDh3pwlFREA=; b=lsV125MLeUnYt14zV1j2c6UUWwlLcQKcJaEQ55l1r0ylWDTbo2VsWusoI/4uPdoVxB GIfhr1cm3BZGD2fKijmS0M98sReCZQyygkxZktxBPuVFZyWEYIv2gKmyTrgu6HOAPj5f prJq9RGNP0oJPGs4xgTXwqbxnExR/I86eN84rhTWsKD8ep1RvkL5xaTV1nJSWp1of66c kJODmu/Wa611YIli91T6Xjs2hcVh6K4GcZt2jCRQ0QakvmyfJ7XdY3neV/LgLsIg4zkn h2poTG2gyNCB0ipfq8xUAOjEMe6qkLwOkZuCFlIaG1YFVXzm4fLNMgcGS8gjOi/515+b HDGQ== X-Forwarded-Encrypted: i=2; AJvYcCVCLFcZsUMzBpUYFTaute9AmnhAHbowOnUP/pnrxGduRFA66+pn/D0295hLy2CdO21u/ZV5KGgkCY+QRm6XJY8s0e+F73kt1uny4DOogEJ2yvUTX2MBvBPJ+Ckbcw== X-Gm-Message-State: AOJu0YxW4jH3QgKlXcSE7erRiTiYmeVOwsnazySrDU0jnEKPntwkvsRJ 1iP5MorC+p0Jd4p1oIiMi9PjYRrd79HB6W0O+ReivlogQ9HN5lKi5Jsy6m+6klpl4Q== X-Google-Smtp-Source: AGHT+IH2D2CYeK51n/p4wyq62g11H7r/qbToh2IHAVdrh1Wp9HS6RgKvjiUfh+4OalFQJ5KhjA5VJQ== X-Received: by 2002:a05:6512:344c:b0:512:f860:2705 with SMTP id j12-20020a056512344c00b00512f8602705mr5228033lfr.35.1709566463565; Mon, 04 Mar 2024 07:34:23 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:ac2:5e66:0:b0:513:33be:93bb with SMTP id a6-20020ac25e66000000b0051333be93bbls350484lfr.2.-pod-prod-03-eu; Mon, 04 Mar 2024 07:34:22 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWXAq+SL42vlFvuUbNImR4JNOpnd0ZOxEdIE18Vy+QoiQnbni0t80xJXkgeKsSSjEwyqkT/MSQahDlTk5CKtitJbnpZBGSGgCD8ossIFWuX1Gsa X-Received: by 2002:a05:6512:138e:b0:513:1496:1db8 with SMTP id fc14-20020a056512138e00b0051314961db8mr7443827lfb.14.1709566461722; Mon, 04 Mar 2024 07:34:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709566461; cv=none; d=google.com; s=arc-20160816; b=dwzFj+8/INh54DVdD0Sw5ARB9n3nPfiOENpFU2ZYvdJkvLzPpkIuBE+yMUyufzyK4R Q+3BLvIhCOiA3J+uJANVLIuJ4QF4lzMF+I9od3pXr8DkuwSJnwxAPuX43txdrSaGkiUf 71dffrtSu5Ez/8I5ubEvd2DsJ/vje9BKObCdXBa5EJs2gPjLz4Tln2uOOdVmyMTrA/P9 PSw9PtP8QbeG5SD1rdPXYKXmvL4SCbkgSG6mJ+AKfNJ5ivIZWtfTVIGFSrqcLqzmlRNt OQJoCwEgzGsDGK3i5PiW0IBEX+ur2qyocR5+zfZkbjQ+SUbYrhh4hUheJ+gNuh0GVTIP fLEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=bSjGw9f6z6kn4c1jsZC1lUaY+UqUehEPVM2pz+w5v/o=; fh=EDh7mkDHARa3iOXTYC9m6k/WjqjgCMBmv55eG3hirJ4=; b=jtWWW57/HT/kK0aY3oPptGT0zWh4JB1pWG8XN7ZgGZcn/UHq3WQAp16BtYeZOfeIJp UvP0CnlkPgCL3D5KQr9jZcUuaM4mJgRLzbXvoUSIYF7rkXA285M/yK/7vSD/uqj19U6d L01LLjbUkxh7eRFU3SPgMLE58QIJVZ1itL8LJN1elae4qANmR10HR6lx6kHidr6U7g68 jJ0j5TPY5O/0v/3Qjh0lOC8fQEYiWS484MxBaUR9QFZVLEOKcgUHyNsgVWOPXSQyJ6mg Zkpd1Ij6MnSgLA2atrZWLV75Jqy/Yo0ipt4tGVxidxtw4a6pfZfje86E41Gh49emqWSx 7WkA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=eSy+PWun; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id qh2-20020a170906eca200b00a442eb04c50sor3177454ejb.5.2024.03.04.07.34.21 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Mon, 04 Mar 2024 07:34:21 -0800 (PST) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCUmQ8lUGXQBVnpffL5+k2X68+dC3DWBs9Qe3hDrmXUVKSe6rAHtpKNgZn8pT3LAyTWTQOiqiu/y+aR4b7DVERwnOuxrv2ylZy4r2I8VqUmwYswO X-Received: by 2002:a17:906:3715:b0:a44:7209:4c94 with SMTP id d21-20020a170906371500b00a4472094c94mr6623367ejc.14.1709566461405; Mon, 04 Mar 2024 07:34:21 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2001:b07:6474:ebbf:72fe:558f:d55e:d423]) by smtp.gmail.com with ESMTPSA id sa20-20020a1709076d1400b00a4432543b21sm4936082ejc.198.2024.03.04.07.34.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 07:34:21 -0800 (PST) From: Dario Binacchi <dario.binacchi@amarulasolutions.com> To: buildroot@buildroot.org Cc: Romain Naour <romain.naour@smile.fr>, Alexander Sverdlin <alexander.sverdlin@gmail.com>, Andreas Dannenberg <dannenberg@ti.com>, Yegor Yefremov <yegorslists@googlemail.com>, Xuanhao Shi <X15000177@gmail.com>, Anand Gadiyar <gadiyar@ti.com>, James Hilliard <james.hilliard1@gmail.com>, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, Dario Binacchi <dario.binacchi@amarulasolutions.com>, michael@amarulasolutions.com, Asaf Kahlon <asafka7@gmail.com>, francois.perrad@gadz.org, linux-amarula@amarulasolutions.com, bryce@redpinelabs.com Subject: [PATCH v9 11/22] boot/ti-k3-r5-loader: set binman environment Date: Mon, 4 Mar 2024 16:32:42 +0100 Message-ID: <20240304153253.732708-12-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240304153253.732708-1-dario.binacchi@amarulasolutions.com> References: <20240304153253.732708-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=eSy+PWun; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
| Series |
Add support for AM62x-SK HS-FS devices
|
|
Commit Message
Dario Binacchi
March 4, 2024, 3:32 p.m. UTC
Recent version of U-Boot use binman to provide a mechanism for building images, from simple SPL + U-Boot combinations, to more complex arrangements with many parts. The patch set the BINMAN_INDIRS environment variable to provide the directory to search for binary blobs and select the packages required by binman. The dependency of binman is not really easy to follow. First we have the packages list from binman.rst [1] then we have to install additional python modules [2]. Maybe in the future it will be necessary to add host-lzma and host-lz4 in the dependencies list. [1] https://source.denx.de/u-boot/u-boot/-/blob/v2024.01/tools/binman/binman.rst?plain=1#L377 [2] https://source.denx.de/u-boot/u-boot/-/blob/v2024.01/tools/buildman/requirements.txt Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> Co-developed-by: Romain Naour <romain.naour@smile.fr> Signed-off-by: Romain Naour <romain.naour@smile.fr> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- Changes in v6: - Update the commit message adding the links of requirements. Changes in v5: - Add dependecy on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS - Drop runtime dependecies - Add host-python-pylibfdt dependency without requiring BR2_TARGET_UBOOT_NEEDS_PYLIBFDT configuration - Add host-python3 and host-python-setuptools dependencies - Add SOB and COB tags of Romain Naour Changes in v4: - Drop the BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN option Changes in v2: - Change commit message - Add BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN option - Select packages required by binman if BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN is enabled boot/ti-k3-r5-loader/Config.in | 1 + boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-)
Comments
Hi Dario, On March 4, 2024 thus sayeth Dario Binacchi: > Recent version of U-Boot use binman to provide a mechanism for building > images, from simple SPL + U-Boot combinations, to more complex > arrangements with many parts. > > The patch set the BINMAN_INDIRS environment variable to provide the > directory to search for binary blobs and select the packages required by > binman. > > The dependency of binman is not really easy to follow. First we have the > packages list from binman.rst [1] then we have to install additional python > modules [2]. Maybe in the future it will be necessary to add host-lzma and > host-lz4 in the dependencies list. > > [1] https://source.denx.de/u-boot/u-boot/-/blob/v2024.01/tools/binman/binman.rst?plain=1#L377 > [2] https://source.denx.de/u-boot/u-boot/-/blob/v2024.01/tools/buildman/requirements.txt > Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com> > Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> > Co-developed-by: Romain Naour <romain.naour@smile.fr> > Signed-off-by: Romain Naour <romain.naour@smile.fr> > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > --- > ... > diff --git a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk > b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk > index 0ffcb8235f2e..fdb058f3b72a 100644 > --- a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk > +++ b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk > @@ -39,7 +39,12 @@ TI_K3_R5_LOADER_DEPENDENCIES = \ > host-pkgconf \ > $(BR2_MAKE_HOST_DEPENDENCY) \ > host-arm-gnu-toolchain \ > - host-openssl > + host-openssl \ > + host-python-jsonschema \ > + host-python-pyyaml \ > + host-python3 \ > + host-python-setuptools \ > + host-python-pylibfdt Just a question on how boot dependencies are resolved. Do we need to add ti-k3-boot-firmware to this list? How does ti-k3-r5-loader know to 'build' the firmware before we build tiboot3.bin? ~Bryan
Hello Bryan, All, Le 19/03/2024 à 16:16, Bryan Brattlof a écrit : > Hi Dario, > > On March 4, 2024 thus sayeth Dario Binacchi: >> Recent version of U-Boot use binman to provide a mechanism for building >> images, from simple SPL + U-Boot combinations, to more complex >> arrangements with many parts. >> >> The patch set the BINMAN_INDIRS environment variable to provide the >> directory to search for binary blobs and select the packages required by >> binman. >> >> The dependency of binman is not really easy to follow. First we have the >> packages list from binman.rst [1] then we have to install additional python >> modules [2]. Maybe in the future it will be necessary to add host-lzma and >> host-lz4 in the dependencies list. >> >> [1] https://source.denx.de/u-boot/u-boot/-/blob/v2024.01/tools/binman/binman.rst?plain=1#L377 >> [2] https://source.denx.de/u-boot/u-boot/-/blob/v2024.01/tools/buildman/requirements.txt >> Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com> >> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> >> Co-developed-by: Romain Naour <romain.naour@smile.fr> >> Signed-off-by: Romain Naour <romain.naour@smile.fr> >> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> >> >> --- >> > > ... > >> diff --git a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk >> b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk >> index 0ffcb8235f2e..fdb058f3b72a 100644 >> --- a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk >> +++ b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk >> @@ -39,7 +39,12 @@ TI_K3_R5_LOADER_DEPENDENCIES = \ >> host-pkgconf \ >> $(BR2_MAKE_HOST_DEPENDENCY) \ >> host-arm-gnu-toolchain \ >> - host-openssl >> + host-openssl \ >> + host-python-jsonschema \ >> + host-python-pyyaml \ >> + host-python3 \ >> + host-python-setuptools \ >> + host-python-pylibfdt > > Just a question on how boot dependencies are resolved. Do we need to add > ti-k3-boot-firmware to this list? How does ti-k3-r5-loader know to > 'build' the firmware before we build tiboot3.bin? Indeed, without ti-k3-boot-firmware package installed, binman warn about "Missing blob" make ti_am62x_sk_defconfig make ti-k3-r5-loader BINMAN .binman_stamp Image 'tiboot3-am62x-hs-evm.bin' is missing optional external blobs but is still functional: ti-fs-enc.bin sysfw-inner-cert /binman/tiboot3-am62x-hs-evm.bin/ti-fs-enc.bin (ti-sysfw/ti-fs-firmware-am62x-hs-enc.bin): Missing blob /binman/tiboot3-am62x-hs-evm.bin/sysfw-inner-cert (ti-sysfw/ti-fs-firmware-am62x-hs-cert.bin): Missing blob Image 'tiboot3-am62x-hs-fs-evm.bin' is missing optional external blobs but is still functional: ti-fs-enc.bin sysfw-inner-cert /binman/tiboot3-am62x-hs-fs-evm.bin/ti-fs-enc.bin (ti-sysfw/ti-fs-firmware-am62x-hs-fs-enc.bin): Missing blob /binman/tiboot3-am62x-hs-fs-evm.bin/sysfw-inner-cert (ti-sysfw/ti-fs-firmware-am62x-hs-fs-cert.bin): Missing blob Image 'tiboot3-am62x-gp-evm.bin' is missing optional external blobs but is still functional: ti-fs-gp.bin /binman/tiboot3-am62x-gp-evm.bin/ti-fs-gp.bin (ti-sysfw/ti-fs-firmware-am62x-gp.bin): Missing blob OFCHK .config So, we should add ti-k3-boot-firmware in dependencies to avoid building ti-k3-r5-loader before ti-k3-boot-firmware. When building the AM6 defconfig, the build order is ordered alphabetically by default and ti-k3-boot-firmware is installed before ti-k3-r5-loader. Best regards, Romain > > ~Bryan
Hi Romain On Wed, Apr 3, 2024 at 10:28 AM Romain Naour <romain.naour@smile.fr> wrote: > > Hello Bryan, All, > > Le 19/03/2024 à 16:16, Bryan Brattlof a écrit : > > Hi Dario, > > > > On March 4, 2024 thus sayeth Dario Binacchi: > >> Recent version of U-Boot use binman to provide a mechanism for building > >> images, from simple SPL + U-Boot combinations, to more complex > >> arrangements with many parts. > >> > >> The patch set the BINMAN_INDIRS environment variable to provide the > >> directory to search for binary blobs and select the packages required by > >> binman. > >> > >> The dependency of binman is not really easy to follow. First we have the > >> packages list from binman.rst [1] then we have to install additional python > >> modules [2]. Maybe in the future it will be necessary to add host-lzma and > >> host-lz4 in the dependencies list. > >> > >> [1] https://source.denx.de/u-boot/u-boot/-/blob/v2024.01/tools/binman/binman.rst?plain=1#L377 > >> [2] https://source.denx.de/u-boot/u-boot/-/blob/v2024.01/tools/buildman/requirements.txt > >> Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com> > >> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> > >> Co-developed-by: Romain Naour <romain.naour@smile.fr> > >> Signed-off-by: Romain Naour <romain.naour@smile.fr> > >> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > >> > >> --- > >> > > > > ... > > > >> diff --git a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk > >> b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk > >> index 0ffcb8235f2e..fdb058f3b72a 100644 > >> --- a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk > >> +++ b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk > >> @@ -39,7 +39,12 @@ TI_K3_R5_LOADER_DEPENDENCIES = \ > >> host-pkgconf \ > >> $(BR2_MAKE_HOST_DEPENDENCY) \ > >> host-arm-gnu-toolchain \ > >> - host-openssl > >> + host-openssl \ > >> + host-python-jsonschema \ > >> + host-python-pyyaml \ > >> + host-python3 \ > >> + host-python-setuptools \ > >> + host-python-pylibfdt > > > > Just a question on how boot dependencies are resolved. Do we need to add > > ti-k3-boot-firmware to this list? How does ti-k3-r5-loader know to > > 'build' the firmware before we build tiboot3.bin? > > Indeed, without ti-k3-boot-firmware package installed, binman warn about > "Missing blob" > > make ti_am62x_sk_defconfig > make ti-k3-r5-loader > > BINMAN .binman_stamp > Image 'tiboot3-am62x-hs-evm.bin' is missing optional external blobs but is still > functional: ti-fs-enc.bin sysfw-inner-cert > > /binman/tiboot3-am62x-hs-evm.bin/ti-fs-enc.bin > (ti-sysfw/ti-fs-firmware-am62x-hs-enc.bin): > Missing blob > > /binman/tiboot3-am62x-hs-evm.bin/sysfw-inner-cert > (ti-sysfw/ti-fs-firmware-am62x-hs-cert.bin): > Missing blob > > Image 'tiboot3-am62x-hs-fs-evm.bin' is missing optional external blobs but is > still functional: ti-fs-enc.bin sysfw-inner-cert > > /binman/tiboot3-am62x-hs-fs-evm.bin/ti-fs-enc.bin > (ti-sysfw/ti-fs-firmware-am62x-hs-fs-enc.bin): > Missing blob > > /binman/tiboot3-am62x-hs-fs-evm.bin/sysfw-inner-cert > (ti-sysfw/ti-fs-firmware-am62x-hs-fs-cert.bin): > Missing blob > > Image 'tiboot3-am62x-gp-evm.bin' is missing optional external blobs but is still > functional: ti-fs-gp.bin > > /binman/tiboot3-am62x-gp-evm.bin/ti-fs-gp.bin > (ti-sysfw/ti-fs-firmware-am62x-gp.bin): > Missing blob > > OFCHK .config > > So, we should add ti-k3-boot-firmware in dependencies to avoid building > ti-k3-r5-loader before ti-k3-boot-firmware. > > When building the AM6 defconfig, the build order is ordered alphabetically by > default and ti-k3-boot-firmware is installed before ti-k3-r5-loader. > OK, this is a valid point. Anyway what you suggest force select or a depend. If you have more points, is better to write down all of them in one review, and not split as now every new patcheset. What do you think? Michael > Best regards, > Romain > > > > > > ~Bryan >
Hi Michael, Le 03/04/2024 à 10:34, Michael Nazzareno Trimarchi a écrit : > Hi Romain > > On Wed, Apr 3, 2024 at 10:28 AM Romain Naour <romain.naour@smile.fr> wrote: >> >> Hello Bryan, All, >> >> Le 19/03/2024 à 16:16, Bryan Brattlof a écrit : >>> Hi Dario, >>> >>> On March 4, 2024 thus sayeth Dario Binacchi: >>>> Recent version of U-Boot use binman to provide a mechanism for building >>>> images, from simple SPL + U-Boot combinations, to more complex >>>> arrangements with many parts. >>>> >>>> The patch set the BINMAN_INDIRS environment variable to provide the >>>> directory to search for binary blobs and select the packages required by >>>> binman. >>>> >>>> The dependency of binman is not really easy to follow. First we have the >>>> packages list from binman.rst [1] then we have to install additional python >>>> modules [2]. Maybe in the future it will be necessary to add host-lzma and >>>> host-lz4 in the dependencies list. >>>> >>>> [1] https://source.denx.de/u-boot/u-boot/-/blob/v2024.01/tools/binman/binman.rst?plain=1#L377 >>>> [2] https://source.denx.de/u-boot/u-boot/-/blob/v2024.01/tools/buildman/requirements.txt >>>> Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com> >>>> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> >>>> Co-developed-by: Romain Naour <romain.naour@smile.fr> >>>> Signed-off-by: Romain Naour <romain.naour@smile.fr> >>>> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> >>>> >>>> --- >>>> >>> >>> ... >>> >>>> diff --git a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk >>>> b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk >>>> index 0ffcb8235f2e..fdb058f3b72a 100644 >>>> --- a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk >>>> +++ b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk >>>> @@ -39,7 +39,12 @@ TI_K3_R5_LOADER_DEPENDENCIES = \ >>>> host-pkgconf \ >>>> $(BR2_MAKE_HOST_DEPENDENCY) \ >>>> host-arm-gnu-toolchain \ >>>> - host-openssl >>>> + host-openssl \ >>>> + host-python-jsonschema \ >>>> + host-python-pyyaml \ >>>> + host-python3 \ >>>> + host-python-setuptools \ >>>> + host-python-pylibfdt >>> >>> Just a question on how boot dependencies are resolved. Do we need to add >>> ti-k3-boot-firmware to this list? How does ti-k3-r5-loader know to >>> 'build' the firmware before we build tiboot3.bin? >> >> Indeed, without ti-k3-boot-firmware package installed, binman warn about >> "Missing blob" >> >> make ti_am62x_sk_defconfig >> make ti-k3-r5-loader >> >> BINMAN .binman_stamp >> Image 'tiboot3-am62x-hs-evm.bin' is missing optional external blobs but is still >> functional: ti-fs-enc.bin sysfw-inner-cert >> >> /binman/tiboot3-am62x-hs-evm.bin/ti-fs-enc.bin >> (ti-sysfw/ti-fs-firmware-am62x-hs-enc.bin): >> Missing blob >> >> /binman/tiboot3-am62x-hs-evm.bin/sysfw-inner-cert >> (ti-sysfw/ti-fs-firmware-am62x-hs-cert.bin): >> Missing blob >> >> Image 'tiboot3-am62x-hs-fs-evm.bin' is missing optional external blobs but is >> still functional: ti-fs-enc.bin sysfw-inner-cert >> >> /binman/tiboot3-am62x-hs-fs-evm.bin/ti-fs-enc.bin >> (ti-sysfw/ti-fs-firmware-am62x-hs-fs-enc.bin): >> Missing blob >> >> /binman/tiboot3-am62x-hs-fs-evm.bin/sysfw-inner-cert >> (ti-sysfw/ti-fs-firmware-am62x-hs-fs-cert.bin): >> Missing blob >> >> Image 'tiboot3-am62x-gp-evm.bin' is missing optional external blobs but is still >> functional: ti-fs-gp.bin >> >> /binman/tiboot3-am62x-gp-evm.bin/ti-fs-gp.bin >> (ti-sysfw/ti-fs-firmware-am62x-gp.bin): >> Missing blob >> >> OFCHK .config >> >> So, we should add ti-k3-boot-firmware in dependencies to avoid building >> ti-k3-r5-loader before ti-k3-boot-firmware. >> >> When building the AM6 defconfig, the build order is ordered alphabetically by >> default and ti-k3-boot-firmware is installed before ti-k3-r5-loader. >> > > OK, this is a valid point. Anyway what you suggest force select or a > depend. If you have more points, is better to write down all of > them in one review, and not split as now every new patcheset. What do you think? > I reviewed the series already and make some suggestions that were not included. Same about the review from Bryan (this one) and Andreas (make HS-FS the default for AM62 and AM64). I'm working on a V11 including some Buildroot rework, the BSP itself is ok. Best regards, Romain > Michael > >> Best regards, >> Romain >> >> >>> >>> ~Bryan >> > >
Hi Romain On Wed, Apr 3, 2024 at 11:38 AM Romain Naour <romain.naour@smile.fr> wrote: > > Hi Michael, > > Le 03/04/2024 à 10:34, Michael Nazzareno Trimarchi a écrit : > > Hi Romain > > > > On Wed, Apr 3, 2024 at 10:28 AM Romain Naour <romain.naour@smile.fr> wrote: > >> > >> Hello Bryan, All, > >> > >> Le 19/03/2024 à 16:16, Bryan Brattlof a écrit : > >>> Hi Dario, > >>> > >>> On March 4, 2024 thus sayeth Dario Binacchi: > >>>> Recent version of U-Boot use binman to provide a mechanism for building > >>>> images, from simple SPL + U-Boot combinations, to more complex > >>>> arrangements with many parts. > >>>> > >>>> The patch set the BINMAN_INDIRS environment variable to provide the > >>>> directory to search for binary blobs and select the packages required by > >>>> binman. > >>>> > >>>> The dependency of binman is not really easy to follow. First we have the > >>>> packages list from binman.rst [1] then we have to install additional python > >>>> modules [2]. Maybe in the future it will be necessary to add host-lzma and > >>>> host-lz4 in the dependencies list. > >>>> > >>>> [1] https://source.denx.de/u-boot/u-boot/-/blob/v2024.01/tools/binman/binman.rst?plain=1#L377 > >>>> [2] https://source.denx.de/u-boot/u-boot/-/blob/v2024.01/tools/buildman/requirements.txt > >>>> Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com> > >>>> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> > >>>> Co-developed-by: Romain Naour <romain.naour@smile.fr> > >>>> Signed-off-by: Romain Naour <romain.naour@smile.fr> > >>>> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > >>>> > >>>> --- > >>>> > >>> > >>> ... > >>> > >>>> diff --git a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk > >>>> b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk > >>>> index 0ffcb8235f2e..fdb058f3b72a 100644 > >>>> --- a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk > >>>> +++ b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk > >>>> @@ -39,7 +39,12 @@ TI_K3_R5_LOADER_DEPENDENCIES = \ > >>>> host-pkgconf \ > >>>> $(BR2_MAKE_HOST_DEPENDENCY) \ > >>>> host-arm-gnu-toolchain \ > >>>> - host-openssl > >>>> + host-openssl \ > >>>> + host-python-jsonschema \ > >>>> + host-python-pyyaml \ > >>>> + host-python3 \ > >>>> + host-python-setuptools \ > >>>> + host-python-pylibfdt > >>> > >>> Just a question on how boot dependencies are resolved. Do we need to add > >>> ti-k3-boot-firmware to this list? How does ti-k3-r5-loader know to > >>> 'build' the firmware before we build tiboot3.bin? > >> > >> Indeed, without ti-k3-boot-firmware package installed, binman warn about > >> "Missing blob" > >> > >> make ti_am62x_sk_defconfig > >> make ti-k3-r5-loader > >> > >> BINMAN .binman_stamp > >> Image 'tiboot3-am62x-hs-evm.bin' is missing optional external blobs but is still > >> functional: ti-fs-enc.bin sysfw-inner-cert > >> > >> /binman/tiboot3-am62x-hs-evm.bin/ti-fs-enc.bin > >> (ti-sysfw/ti-fs-firmware-am62x-hs-enc.bin): > >> Missing blob > >> > >> /binman/tiboot3-am62x-hs-evm.bin/sysfw-inner-cert > >> (ti-sysfw/ti-fs-firmware-am62x-hs-cert.bin): > >> Missing blob > >> > >> Image 'tiboot3-am62x-hs-fs-evm.bin' is missing optional external blobs but is > >> still functional: ti-fs-enc.bin sysfw-inner-cert > >> > >> /binman/tiboot3-am62x-hs-fs-evm.bin/ti-fs-enc.bin > >> (ti-sysfw/ti-fs-firmware-am62x-hs-fs-enc.bin): > >> Missing blob > >> > >> /binman/tiboot3-am62x-hs-fs-evm.bin/sysfw-inner-cert > >> (ti-sysfw/ti-fs-firmware-am62x-hs-fs-cert.bin): > >> Missing blob > >> > >> Image 'tiboot3-am62x-gp-evm.bin' is missing optional external blobs but is still > >> functional: ti-fs-gp.bin > >> > >> /binman/tiboot3-am62x-gp-evm.bin/ti-fs-gp.bin > >> (ti-sysfw/ti-fs-firmware-am62x-gp.bin): > >> Missing blob > >> > >> OFCHK .config > >> > >> So, we should add ti-k3-boot-firmware in dependencies to avoid building > >> ti-k3-r5-loader before ti-k3-boot-firmware. > >> > >> When building the AM6 defconfig, the build order is ordered alphabetically by > >> default and ti-k3-boot-firmware is installed before ti-k3-r5-loader. > >> > > > > OK, this is a valid point. Anyway what you suggest force select or a > > depend. If you have more points, is better to write down all of > > them in one review, and not split as now every new patcheset. What do you think? > > > > I reviewed the series already and make some suggestions that were not included. > Same about the review from Bryan (this one) and Andreas (make HS-FS the default > for AM62 and AM64). > > I'm working on a V11 including some Buildroot rework, the BSP itself is ok. > Ok, this way you make again all the people testing, when your patches can be on top of this series that already was proven that it was working. It's even important that you consider the effort of the people on testing series and patches that are on going on the TI side to include gpu. Hope that your V11 will come soon and not include too many changes. All your suggestions come from SoC or boards that are not even included in buildroot and on platforms where they are not yet supported. People are contributing on what they can test and include and patches that are not part of a series that state to support some architecture should not be forced in the same series. Sometimes we can even accept that a series is supposed to do what is in the series description. Michael > Best regards, > Romain > > > > Michael > > > >> Best regards, > >> Romain > >> > >> > >>> > >>> ~Bryan > >> > > > > >
diff --git a/boot/ti-k3-r5-loader/Config.in b/boot/ti-k3-r5-loader/Config.in index 5f86c045c99f..fc71337e80cc 100644 --- a/boot/ti-k3-r5-loader/Config.in +++ b/boot/ti-k3-r5-loader/Config.in @@ -1,6 +1,7 @@ config BR2_TARGET_TI_K3_R5_LOADER bool "ti-k3-r5-loader" depends on BR2_aarch64 + depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS # python-rpds-py -> python-jsonschema help Separate U-Boot SPL build for R5 core on TI's K3 processors. Usually used to build tiboot3.bin with k3-image-gen. diff --git a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk index 0ffcb8235f2e..fdb058f3b72a 100644 --- a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk +++ b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk @@ -39,7 +39,12 @@ TI_K3_R5_LOADER_DEPENDENCIES = \ host-pkgconf \ $(BR2_MAKE_HOST_DEPENDENCY) \ host-arm-gnu-toolchain \ - host-openssl + host-openssl \ + host-python-jsonschema \ + host-python-pyyaml \ + host-python3 \ + host-python-setuptools \ + host-python-pylibfdt TI_K3_R5_LOADER_MAKE = $(BR2_MAKE) TI_K3_R5_LOADER_MAKE_ENV = $(TARGET_MAKE_ENV) @@ -58,6 +63,7 @@ TI_K3_R5_LOADER_MAKE_OPTS = \ CROSS_COMPILE=$(HOST_DIR)/bin/arm-none-eabi- \ ARCH=arm \ HOSTCC="$(HOSTCC) $(subst -I/,-isystem /,$(subst -I /,-isystem /,$(HOST_CFLAGS)))" \ + BINMAN_INDIRS=$(BINARIES_DIR) \ HOSTLDFLAGS="$(HOST_LDFLAGS)" define TI_K3_R5_LOADER_BUILD_CMDS