| Message ID | 20240301133620.3547430-16-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-amarula+bncBCQ4XFG47UFRB3FTQ6XQMGQEA27AS4Q@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8BFE73F057 for <linux-amarula@patchwork.amarulasolutions.com>; Fri, 1 Mar 2024 14:36:44 +0100 (CET) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-56698ef9362sf1357636a12.0 for <linux-amarula@patchwork.amarulasolutions.com>; Fri, 01 Mar 2024 05:36:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709300204; cv=pass; d=google.com; s=arc-20160816; b=e67BhAE6ZVieiKrMZhQUUTLeLybyiyC/jwHLZfvlmFdQd3vmLQrSGxwJ8+N1tKABrZ p6T2x8oc3n8V1IH8aFurw0SI+n7SjtW9QS+vuxYGEH6aSyDgsDH3c9GWD5ANzIyK58Ed /3WDcDmXLv2CSH1orgSAOCRgH5xJRp6T1yEH0pCTTdEMcFzUa5FBKpmeayrtdwqI20KF 8hOlObr/DnicyEVNfws1RayxMyU3dH4pkIZCBmzErztwmyK40f/1F3FTF4+ha3E8lqL2 UVYOCPlKkZkOXlzS1c0cZAm+RK29/B+ZoPWgttQ2VVMEmrdjX+BziGo/1Q4NO3NJRjcR 0K2Q== 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=rhBNZa8jmyfjEzY3cZNRC8GMy/liNeG80hAHtMsMIN4=; fh=sxkbcBE1Vq67cghsz65v88T7pZVxorXtuCzrxk3mPF0=; b=A9vwahKF0kUtoi1fUTd3IjlvnuOD1C8jzfYKTNoCC073II60YIQaskVTqYtQ6Jpa+/ sToqMjE/2jbzUhO0ikNMjIeuPEkJGPG1T4tWLwk51mTQjQqBX5bq1AAA4M0tP6pOy3BV IpbPQycDtrOjpZNZGDRRNQhdhbXJa1qng6UKobWy1FQ+xw926de08sfqcuZyV1wGVPHH Z6q+k/Kyl2TjSsW5/WGjkJk5H9CNcp7+7aO1WGh+8+OWulgIbnqv5GYez2jzcGSXgEZq 6pJJ+nveEsauISx1K5ES3V/zDAaDeXDZrmxUMmyZGUTfNlx+3Iwa5YtSFY44MlOvF7sK X4fw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mh1H7SLC; 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=1709300204; x=1709905004; 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=rhBNZa8jmyfjEzY3cZNRC8GMy/liNeG80hAHtMsMIN4=; b=ms8izcS2QAVbOUwtQe1g6CguY3ZSpx8qwQq5kKxYY5IXTVbs6R0SSxJC8/WKxYjbmb W+liU6u+uvywRrpBc6C3RfWWCDGy154gJc5eS2RZx92HfCHaznyzLAhIGjqeW35OfWWo 2Ug86SkPp+7n9JygHdZemB5beXVcKusjz4rAQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709300204; x=1709905004; 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=rhBNZa8jmyfjEzY3cZNRC8GMy/liNeG80hAHtMsMIN4=; b=PqFLRemE8+eIzRFC4JQWNrBA6N9/oDlIH2zCvFVr0jghzpjKyo1a/NXDDCr873FGSV QXmFNLadbw9NQqLciDpbDjtX3YMU5BzCAo/hnwO04CL348UYpC3X1qgoI4WzyDFbTylj xCqhBtHhVvFXIizvQteen5fdC6BXpzCid8gGqfiDotjmpTgWRahpxf9BeDRpz7R8J4D6 Pa/rtGvEh5rlC1r1RsNU1lbiuh4SBqIOubqRptSN3ZiSQA7Oi5PpbGmD2J9PwaBrAM/i 5w5S7nN4qBC1d4lNv/3SuFLrQswy/45KNq5rau6egPN/B6yhGJnnQ5KrgnNndXIwsQmM qyGg== X-Forwarded-Encrypted: i=2; AJvYcCXk4mQa/F0QMeNdEWswS7hT/bkVxdMgSloP/lcchGceWd29t9oozJeWPwQtm3Xs0fZ2vIeCNiXoh/0TdYGpTgUW086VKbzga3NH/AVIHfPsP4vucREf60nTbDQIUg== X-Gm-Message-State: AOJu0Yy1jqT/so1utPj3LlWC0wkLnzl90CYZU+ZeOhb32qYcLmIawmFM NdblyVQpA7Hp7PPcxqd5H3eym+gbglp1ub/KNdzUjSZiqjqAwW3ugdMEkKi145JA/g== X-Google-Smtp-Source: AGHT+IGL4c2gMPM95r4rVhCeQcjxAAsyaeOy+N2u9W5irNTI7L1vTv9yv4N9S3ed8ruv6NqQVqbd0Q== X-Received: by 2002:a50:d6d7:0:b0:566:1952:694c with SMTP id l23-20020a50d6d7000000b005661952694cmr1417057edj.20.1709300204377; Fri, 01 Mar 2024 05:36:44 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:5412:b0:566:730a:6e8b with SMTP id ev18-20020a056402541200b00566730a6e8bls111575edb.0.-pod-prod-03-eu; Fri, 01 Mar 2024 05:36:43 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUyr/wtPvD08/PCcmqNkui+qnKzrbXUrKOAbA1vN/Uqsumg93Ebe1ge17pK8GDRLPEussAJHrVz1IYKuslP4GiCQm4FfFsiWkq/uQH+DjfB8gbU X-Received: by 2002:a17:907:100a:b0:a3e:a5b9:d69d with SMTP id ox10-20020a170907100a00b00a3ea5b9d69dmr1513838ejb.74.1709300202829; Fri, 01 Mar 2024 05:36:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709300202; cv=none; d=google.com; s=arc-20160816; b=b0vXU6I9frWOYHIzjTnEOIO5wsZjBLp708zmffQhqVb6Lr7TNnVXEJc/dhin0fKggF RdUnCVScV8hcXuoXtxD1d1MzItHUu2jjz3oaTyeIyjuFLou5P89n4tWiFCEaT+4fFLkd BEu1C0ZY2NshTeCcVXdzNkwTuDdC6YsxUSzzEoUU+7o4XQYcxIsIP5gczA/2RhtFym8E HWTbCPjPhi9GY1QmQk91rNdM+VPoHFulbfORVkjzOAm3WLaEbRY1X2T/vISNnhSEs+L/ ycjWu11AICg2qaSHHDw2q3QVqMK3VPnoHbnaFDFKUaZgQH/6WQuFvLU4+NOoq73JyLPe fDSQ== 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=bprQybVcjJtafv+N+uoSsIglL497eIKFD5hLVUAwUew=; fh=bOs68QQdqjidAjKaGcuScMgdpGmjg8surFDlq/uEiH8=; b=D2rqJwvArzBzLzp34SmhPxXHi1hqutVv6/8b8t04OEgAGyZcuwCv5hzLA8nk0qMWvp OIe58DiD5aXMfXHp3Mim/hQl7p4HKU7iKN9nsMTnCohZUPVTIDEgj+/Q1newZepCFzBd 71svGDyOo+9BGWzFNXxIQCmz1ZTtO3vvy2RRrYbqMEv9/mWW35yfSXFPdLcA16GrgWeV z5tCZxQ6O629tX9dUOzJsiNzIwt2kPjrPTvLsCyzyMDcaoiY2tsYRNrM8PN+N3E0PFWy m0Z4BA19qX5D2/lB7P/V5A36bfTjUgUzEnOSS7jcxHOhgF5iQlhz6Fx0D5Zf6Gq1A3Ef G2Vw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mh1H7SLC; 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 qq22-20020a17090720d600b00a4455299c23sor1285854ejb.17.2024.03.01.05.36.42 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Fri, 01 Mar 2024 05:36:42 -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; AJvYcCXdliXnSKm5LAzcZLxdC5AzXuE8YyUmdufntf9mz2Mq84DxN8ez0XTOxNdn+Ydiho4eMfVWY4U5R65DKPhpqIb8w9UZa8oHB1VWH//Mmr/ZhGkF X-Received: by 2002:a05:6402:2895:b0:566:3d19:9058 with SMTP id eg21-20020a056402289500b005663d199058mr1465336edb.33.1709300202518; Fri, 01 Mar 2024 05:36:42 -0800 (PST) Received: from localhost.localdomain ([2001:b07:6474:ebbf:5260:58bc:42cc:9d46]) by smtp.gmail.com with ESMTPSA id q28-20020a056402033c00b005659ea1caf0sm1566608edw.6.2024.03.01.05.36.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 05:36:42 -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 v8 15/23] boot/ti-k3/ti-k3-r5-loader: install tiboot3.bin Date: Fri, 1 Mar 2024 14:36:12 +0100 Message-ID: <20240301133620.3547430-16-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240301133620.3547430-1-dario.binacchi@amarulasolutions.com> References: <20240301133620.3547430-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=mh1H7SLC; 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 1, 2024, 1:36 p.m. UTC
Recent versions of U-Boot are capable of building tiboot3.bin using Binman. In this case, let's copy it to the binaries directory. The use of `find' command is justified by the need to use a regex expression to select the correct file. This is not possible with a simple `cp' command. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- Changes in v8: - Use the `find' command in pipe with the `cp' command. Changes in v6: - Replace `find' command with `cp' one. Changes in v5: - Replace tiboot3-*-$(TI_K3_R5_LOADER_SECTYPE)-*.bin with tiboot3-$(TI_K3_R5_LOADER_SOC)-$(TI_K3_R5_LOADER_SECTYPE)-*.bin Added in v4 Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 4 ++++ 1 file changed, 4 insertions(+)
Comments
Hello Dario, Le 01/03/2024 à 14:36, Dario Binacchi a écrit : > Recent versions of U-Boot are capable of building tiboot3.bin using > Binman. In this case, let's copy it to the binaries directory. > > The use of `find' command is justified by the need to use a regex > expression to select the correct file. This is not possible with a > simple `cp' command. > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > --- > > Changes in v8: > - Use the `find' command in pipe with the `cp' command. > > Changes in v6: > - Replace `find' command with `cp' one. > > Changes in v5: > - Replace tiboot3-*-$(TI_K3_R5_LOADER_SECTYPE)-*.bin with > tiboot3-$(TI_K3_R5_LOADER_SOC)-$(TI_K3_R5_LOADER_SECTYPE)-*.bin > > Added in v4 > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > --- > boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 4 ++++ > 1 file changed, 4 insertions(+) > > 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 fdb058f3b72a..9a05d005067a 100644 > --- a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk > +++ b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk > @@ -70,8 +70,12 @@ define TI_K3_R5_LOADER_BUILD_CMDS > $(TARGET_CONFIGURE_OPTS) $(TI_K3_R5_LOADER_MAKE) -C $(@D) $(TI_K3_R5_LOADER_MAKE_OPTS) > endef > > +TI_K3_R5_LOADER_SECTYPE = $(call qstrip,$(BR2_PACKAGE_TI_K3_SECTYPE)) > +TI_K3_R5_LOADER_SOC = $(call qstrip,$(BR2_PACKAGE_TI_K3_SOC)) > + > define TI_K3_R5_LOADER_INSTALL_IMAGES_CMDS > cp $(@D)/spl/u-boot-spl.bin $(BINARIES_DIR)/r5-u-boot-spl.bin > + cd $(@D); find ./ -type f -regex "\.\/tiboot3-$(TI_K3_R5_LOADER_SOC)-$(TI_K3_R5_LOADER_SECTYPE)-[^-]*..bin" -exec cp {} $(BINARIES_DIR)/tiboot3.bin \; I believe there is missing step here for the AM65 variant (using split binary based Boot Flow) [1]. With the ti-k3-image-gen removal, we need to copy sysfw*.itb generated by binman (ti-k3-r5-loader) otherwise the system won't boot. Too bad that we don't have a AM65 defconfig for testing. Andreas, Do you think you can contribute a new defconfig for the TMDX654IDKEVM ? On my side, I have a patch series for the SK-TDA4VM that also requires sysfw*.itb binary. [1] http://lists.busybox.net/pipermail/buildroot/2024-February/685666.html Best regards, Romain > endef > > $(eval $(kconfig-package))
Hello Romain, On Sun, Mar 3, 2024 at 12:03 AM Romain Naour <romain.naour@smile.fr> wrote: > > Hello Dario, > > Le 01/03/2024 à 14:36, Dario Binacchi a écrit : > > Recent versions of U-Boot are capable of building tiboot3.bin using > > Binman. In this case, let's copy it to the binaries directory. > > > > The use of `find' command is justified by the need to use a regex > > expression to select the correct file. This is not possible with a > > simple `cp' command. > > > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > > > --- > > > > Changes in v8: > > - Use the `find' command in pipe with the `cp' command. > > > > Changes in v6: > > - Replace `find' command with `cp' one. > > > > Changes in v5: > > - Replace tiboot3-*-$(TI_K3_R5_LOADER_SECTYPE)-*.bin with > > tiboot3-$(TI_K3_R5_LOADER_SOC)-$(TI_K3_R5_LOADER_SECTYPE)-*.bin > > > > Added in v4 > > > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > --- > > boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > 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 fdb058f3b72a..9a05d005067a 100644 > > --- a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk > > +++ b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk > > @@ -70,8 +70,12 @@ define TI_K3_R5_LOADER_BUILD_CMDS > > $(TARGET_CONFIGURE_OPTS) $(TI_K3_R5_LOADER_MAKE) -C $(@D) $(TI_K3_R5_LOADER_MAKE_OPTS) > > endef > > > > +TI_K3_R5_LOADER_SECTYPE = $(call qstrip,$(BR2_PACKAGE_TI_K3_SECTYPE)) > > +TI_K3_R5_LOADER_SOC = $(call qstrip,$(BR2_PACKAGE_TI_K3_SOC)) > > + > > define TI_K3_R5_LOADER_INSTALL_IMAGES_CMDS > > cp $(@D)/spl/u-boot-spl.bin $(BINARIES_DIR)/r5-u-boot-spl.bin > > + cd $(@D); find ./ -type f -regex "\.\/tiboot3-$(TI_K3_R5_LOADER_SOC)-$(TI_K3_R5_LOADER_SECTYPE)-[^-]*..bin" -exec cp {} $(BINARIES_DIR)/tiboot3.bin \; > > I believe there is missing step here for the AM65 variant (using split binary > based Boot Flow) [1]. > > With the ti-k3-image-gen removal, we need to copy sysfw*.itb generated by binman > (ti-k3-r5-loader) otherwise the system won't boot. > > Too bad that we don't have a AM65 defconfig for testing. > Andreas, Do you think you can contribute a new defconfig for the TMDX654IDKEVM ? > > On my side, I have a patch series for the SK-TDA4VM that also requires > sysfw*.itb binary. > > [1] http://lists.busybox.net/pipermail/buildroot/2024-February/685666.html Can we, for now, consider this modification unnecessary, merge the series, and proceed later with any further improvements? Especially considering that there isn't currently a configuration for am65 in Buildroot? Thanks and regards, Dario > > Best regards, > Romain > > > > endef > > > > $(eval $(kconfig-package)) >
Hi Dario, Romain, On Sun, Mar 03, 2024 at 10:54:09AM +0100, Dario Binacchi wrote: > Hello Romain, > > On Sun, Mar 3, 2024 at 12:03 AM Romain Naour <romain.naour@smile.fr> wrote: > > > > Hello Dario, > > > > Le 01/03/2024 à 14:36, Dario Binacchi a écrit : > > > Recent versions of U-Boot are capable of building tiboot3.bin using > > > Binman. In this case, let's copy it to the binaries directory. > > > > > > The use of `find' command is justified by the need to use a regex > > > expression to select the correct file. This is not possible with a > > > simple `cp' command. > > > > > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > > > > > --- > > > > > > Changes in v8: > > > - Use the `find' command in pipe with the `cp' command. > > > > > > Changes in v6: > > > - Replace `find' command with `cp' one. > > > > > > Changes in v5: > > > - Replace tiboot3-*-$(TI_K3_R5_LOADER_SECTYPE)-*.bin with > > > tiboot3-$(TI_K3_R5_LOADER_SOC)-$(TI_K3_R5_LOADER_SECTYPE)-*.bin > > > > > > Added in v4 > > > > > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > > --- > > > boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 4 ++++ > > > 1 file changed, 4 insertions(+) > > > > > > 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 fdb058f3b72a..9a05d005067a 100644 > > > --- a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk > > > +++ b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk > > > @@ -70,8 +70,12 @@ define TI_K3_R5_LOADER_BUILD_CMDS > > > $(TARGET_CONFIGURE_OPTS) $(TI_K3_R5_LOADER_MAKE) -C $(@D) $(TI_K3_R5_LOADER_MAKE_OPTS) > > > endef > > > > > > +TI_K3_R5_LOADER_SECTYPE = $(call qstrip,$(BR2_PACKAGE_TI_K3_SECTYPE)) > > > +TI_K3_R5_LOADER_SOC = $(call qstrip,$(BR2_PACKAGE_TI_K3_SOC)) > > > + > > > define TI_K3_R5_LOADER_INSTALL_IMAGES_CMDS > > > cp $(@D)/spl/u-boot-spl.bin $(BINARIES_DIR)/r5-u-boot-spl.bin > > > + cd $(@D); find ./ -type f -regex "\.\/tiboot3-$(TI_K3_R5_LOADER_SOC)-$(TI_K3_R5_LOADER_SECTYPE)-[^-]*..bin" -exec cp {} $(BINARIES_DIR)/tiboot3.bin \; > > > > I believe there is missing step here for the AM65 variant (using split binary > > based Boot Flow) [1]. > > > > With the ti-k3-image-gen removal, we need to copy sysfw*.itb generated by binman > > (ti-k3-r5-loader) otherwise the system won't boot. Correct, good catch Romain. > > Too bad that we don't have a AM65 defconfig for testing. > > Andreas, Do you think you can contribute a new defconfig for the TMDX654IDKEVM ? > > > > On my side, I have a patch series for the SK-TDA4VM that also requires > > sysfw*.itb binary. Romain, Would you mind rolling this 'cp' addition into your upcoming J721E* variant series? Since it's the same boot architecture I think that would be a good combination, and this way you can make sure it really works for you. Then, as a follow-up, I would then like to prepare/test an AM65 defconfig and related board support and submit it upstream. I feel I really want to take this on since I consider AM65 to be "my baby" (I was the first to integrate/debug/bringup and successfully execute the full ROM->U-Boot->Linux boot flow before we even had silicon...:) Thanks, Andreas -- Andreas Dannenberg Texas Instruments Inc > > > > [1] http://lists.busybox.net/pipermail/buildroot/2024-February/685666.html > > Can we, for now, consider this modification unnecessary, merge the > series, and proceed later > with any further improvements? Especially considering that there isn't > currently a configuration > for am65 in Buildroot? > > Thanks and regards, > Dario > > > > > Best regards, > > Romain > > > > > > > endef > > > > > > $(eval $(kconfig-package)) > > > > > -- > > Dario Binacchi > > Senior Embedded Linux Developer > > dario.binacchi@amarulasolutions.com > > __________________________________ > > > Amarula Solutions SRL > > Via Le Canevare 30, 31100 Treviso, Veneto, IT > > T. +39 042 243 5310 > info@amarulasolutions.com > > www.amarulasolutions.com
Hi Andreas, Dario, All, Le 05/03/2024 à 08:07, Andreas Dannenberg a écrit : > Hi Dario, Romain, > > On Sun, Mar 03, 2024 at 10:54:09AM +0100, Dario Binacchi wrote: >> Hello Romain, >> >> On Sun, Mar 3, 2024 at 12:03 AM Romain Naour <romain.naour@smile.fr> wrote: >>> >>> Hello Dario, >>> >>> Le 01/03/2024 à 14:36, Dario Binacchi a écrit : >>>> Recent versions of U-Boot are capable of building tiboot3.bin using >>>> Binman. In this case, let's copy it to the binaries directory. >>>> >>>> The use of `find' command is justified by the need to use a regex >>>> expression to select the correct file. This is not possible with a >>>> simple `cp' command. >>>> >>>> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> >>>> >>>> --- >>>> >>>> Changes in v8: >>>> - Use the `find' command in pipe with the `cp' command. >>>> >>>> Changes in v6: >>>> - Replace `find' command with `cp' one. >>>> >>>> Changes in v5: >>>> - Replace tiboot3-*-$(TI_K3_R5_LOADER_SECTYPE)-*.bin with >>>> tiboot3-$(TI_K3_R5_LOADER_SOC)-$(TI_K3_R5_LOADER_SECTYPE)-*.bin >>>> >>>> Added in v4 >>>> >>>> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> >>>> --- >>>> boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 4 ++++ >>>> 1 file changed, 4 insertions(+) >>>> >>>> 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 fdb058f3b72a..9a05d005067a 100644 >>>> --- a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk >>>> +++ b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk >>>> @@ -70,8 +70,12 @@ define TI_K3_R5_LOADER_BUILD_CMDS >>>> $(TARGET_CONFIGURE_OPTS) $(TI_K3_R5_LOADER_MAKE) -C $(@D) $(TI_K3_R5_LOADER_MAKE_OPTS) >>>> endef >>>> >>>> +TI_K3_R5_LOADER_SECTYPE = $(call qstrip,$(BR2_PACKAGE_TI_K3_SECTYPE)) >>>> +TI_K3_R5_LOADER_SOC = $(call qstrip,$(BR2_PACKAGE_TI_K3_SOC)) >>>> + >>>> define TI_K3_R5_LOADER_INSTALL_IMAGES_CMDS >>>> cp $(@D)/spl/u-boot-spl.bin $(BINARIES_DIR)/r5-u-boot-spl.bin >>>> + cd $(@D); find ./ -type f -regex "\.\/tiboot3-$(TI_K3_R5_LOADER_SOC)-$(TI_K3_R5_LOADER_SECTYPE)-[^-]*..bin" -exec cp {} $(BINARIES_DIR)/tiboot3.bin \; >>> >>> I believe there is missing step here for the AM65 variant (using split binary >>> based Boot Flow) [1]. >>> >>> With the ti-k3-image-gen removal, we need to copy sysfw*.itb generated by binman >>> (ti-k3-r5-loader) otherwise the system won't boot. > > Correct, good catch Romain. > >>> Too bad that we don't have a AM65 defconfig for testing. >>> Andreas, Do you think you can contribute a new defconfig for the TMDX654IDKEVM ? >>> >>> On my side, I have a patch series for the SK-TDA4VM that also requires >>> sysfw*.itb binary. > > Romain, Would you mind rolling this 'cp' addition into your upcoming > J721E* variant series? Since it's the same boot architecture I think > that would be a good combination, and this way you can make sure it > really works for you. Sorry, I was AFK last week and I haven't reviewed the v9 yet. > > Then, as a follow-up, I would then like to prepare/test an AM65 > defconfig and related board support and submit it upstream. I feel > I really want to take this on since I consider AM65 to be "my baby" (I > was the first to integrate/debug/bringup and successfully execute the > full ROM->U-Boot->Linux boot flow before we even had silicon...:) :) Best regards, Romain > > Thanks, Andreas > > -- > Andreas Dannenberg > Texas Instruments Inc > >>> >>> [1] http://lists.busybox.net/pipermail/buildroot/2024-February/685666.html >> >> Can we, for now, consider this modification unnecessary, merge the >> series, and proceed later >> with any further improvements? Especially considering that there isn't >> currently a configuration >> for am65 in Buildroot? >> >> Thanks and regards, >> Dario >> >>> >>> Best regards, >>> Romain >>> >>> >>>> endef >>>> >>>> $(eval $(kconfig-package)) >>> >> >> >> -- >> >> Dario Binacchi >> >> Senior Embedded Linux Developer >> >> dario.binacchi@amarulasolutions.com >> >> __________________________________ >> >> >> Amarula Solutions SRL >> >> Via Le Canevare 30, 31100 Treviso, Veneto, IT >> >> T. +39 042 243 5310 >> info@amarulasolutions.com >> >> www.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 fdb058f3b72a..9a05d005067a 100644 --- a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk +++ b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk @@ -70,8 +70,12 @@ define TI_K3_R5_LOADER_BUILD_CMDS $(TARGET_CONFIGURE_OPTS) $(TI_K3_R5_LOADER_MAKE) -C $(@D) $(TI_K3_R5_LOADER_MAKE_OPTS) endef +TI_K3_R5_LOADER_SECTYPE = $(call qstrip,$(BR2_PACKAGE_TI_K3_SECTYPE)) +TI_K3_R5_LOADER_SOC = $(call qstrip,$(BR2_PACKAGE_TI_K3_SOC)) + define TI_K3_R5_LOADER_INSTALL_IMAGES_CMDS cp $(@D)/spl/u-boot-spl.bin $(BINARIES_DIR)/r5-u-boot-spl.bin + cd $(@D); find ./ -type f -regex "\.\/tiboot3-$(TI_K3_R5_LOADER_SOC)-$(TI_K3_R5_LOADER_SECTYPE)-[^-]*..bin" -exec cp {} $(BINARIES_DIR)/tiboot3.bin \; endef $(eval $(kconfig-package))