| Message ID | 20250207231203.3952765-1-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBTFGTK6QMGQEQWLIN5Y@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com
[209.85.221.69])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 147AB3F13E
for <linux-amarula@patchwork.amarulasolutions.com>;
Sat, 8 Feb 2025 00:12:14 +0100 (CET)
Received: by mail-wr1-f69.google.com with SMTP id
ffacd0b85a97d-38da6aa2363sf1119092f8f.0
for <linux-amarula@patchwork.amarulasolutions.com>;
Fri, 07 Feb 2025 15:12:14 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1738969933; cv=pass;
d=google.com; s=arc-20240605;
b=MO4ubHXnL0BPedJXSLWhUvZJWYTbD1We/e7LpzPx9dln+jwr/qhGp03AOZrOUQfuyl
BrzzDiOhEV8S/YXh8PSa+YN+0LJLXVp2/fyV4LU29dJ46tr7gfsPvTizBKX4QTD1EBjQ
UJLZGJdNjNeReqKkXrhJqMSKMnivC+P2kms/wSU4675QqQjYi18yN4s5MTVvKyCycTth
iDwHWwZSujq+L0lk1Bpwvs1KTm0M6WK9110Oe7THj049Qp68u+Ct51CIWfLvTzFsuseO
2gWa978cqPlYc8907F51FA55bpFQkAoACAYP+pUsSpzrnwwXErmmAOJ/MFFpT/hUmt8M
P6dg==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:message-id:date:subject:cc:to
:from:dkim-signature;
bh=T8Mn+OtzGyvoWmwd/wBDA0DfHetsAXya8r2CiF19qpw=;
fh=XrMvo5CgfBjwkUgWUQxwQiWkP0Bi8qCSsVuacEZDMws=;
b=a4NZ9+3EhS1AM7gXdUU6xVccqSrMsis31eJNcirzxBCp+45TXaK1JSxMEp+wb6mJ09
jBfr7cgjDGsQBTWlVVPXwzqaVhQ3GVhWHlqRtIcMfzDSzsuuBTyF/sQdf+4ZcesHK/nT
LVQHEhFeN4FkMrXCcApYuQwE3LWHwh947C+IEcqlZnZue0UsFm9b3VwYt5G9qThAc3mS
VQwuV9SpczJDl/0xd0J8Aj2aP6bpyhHwhin732B7EhgQkZg8T6284F6JxcbZRlsreEus
k9pWwh3zSFinI1/OSZCH37TNPrypaFZZKUpy8x8URP+xy/AY72hxbaECUqatbRaK25Cn
7LPQ==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=XNLtnJfU;
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;
dara=pass header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1738969933; x=1739574733;
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:message-id:date:subject:cc:to:from
:from:to:cc:subject:date:message-id:reply-to;
bh=T8Mn+OtzGyvoWmwd/wBDA0DfHetsAXya8r2CiF19qpw=;
b=YeR2yvWwteheila9XiR3UI7jTIVLyqws16m9gn4PxJGKGcpJ0++v1HJpYWJj5ml1YM
uXaIYxSEw2IO5kJTsNWAhM8YEmOVLiFZdjVxKn/HK4srJ3PRDw/5WeLalhzQPJmUK/4x
x7scyqNsdHHBU8pmNwm4okLAy97bbcqkPiFUU=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1738969933; x=1739574733;
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
:message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=T8Mn+OtzGyvoWmwd/wBDA0DfHetsAXya8r2CiF19qpw=;
b=TquCrKSazxRZYRPcqiOwy10FuJoYtzk36B2myY7DC+wChF01/B7MYf52jEdCDRhoM4
GrMlQ89GdzZOIeos3touC+H92tABNHpuNP+wdO7ku8i2stgqV9OYFy9dMz2lkpva+vKi
ugfavzkqyRX6dwuIK7kZ7bRliLY8kXoYm5cc7s1tX8iR8z2gHubPJ/V72v9pycwahai7
O8hL+S/8adeOyN3i4NqkWcpnbuSMBpAMDqaIszy/QV1LZOhjcEwXNuiKLlr0Nkn9lNDy
pVBmhyIwaYrYXcjRxEzKf2OlTnBY2vCvjSViUX2O6PzwrSjFw0RzzoDR3lzBx5TCcSsF
JfCQ==
X-Forwarded-Encrypted: i=2;
AJvYcCXsqeHCnbuATqkIRoO8ECRa3/ZLYmiebzM+q1G/xkwYIiK1QXfYi2/E7IbLsHkW4OyCiApNcgDfVESZ00vR@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0Yz2H6w/Phn9BX4w/s184MqeEAc1w7+7OcUcPMmGtct5swNfbogU
b6YqvEp69apnIRYuU5Rt3CC/5j59tDjRBULB+6y87sXRbmxluVTqNcZ0ZJSvGqKN2w==
X-Google-Smtp-Source:
AGHT+IEzduLteYtIGLxey4IGq7anWxLE/q7MG7iLc92EGoz+fzTeNW6jaT8wDdgml2KcuiJl+evjEg==
X-Received: by 2002:a5d:47ca:0:b0:38d:badf:9de6 with SMTP id
ffacd0b85a97d-38dc9333a3bmr3316633f8f.34.1738969932572;
Fri, 07 Feb 2025 15:12:12 -0800 (PST)
X-BeenThere: linux-amarula@amarulasolutions.com
Received: by 2002:adf:a1c3:0:b0:387:85f1:31d9 with SMTP id
ffacd0b85a97d-38dc892d037ls501148f8f.0.-pod-prod-04-eu;
Fri, 07 Feb 2025 15:12:11 -0800 (PST)
X-Forwarded-Encrypted: i=2;
AJvYcCWZtODV7rnGwDLomcQcTcPt6rvfrYQlm0KuFu3OLNzshDNK+bQWw/M09GqDP0Ss5aHC8yDRcj0DJVW5ILtd@amarulasolutions.com
X-Received: by 2002:a5d:5889:0:b0:385:e303:8dd8 with SMTP id
ffacd0b85a97d-38dc8fe4171mr3691867f8f.26.1738969930645;
Fri, 07 Feb 2025 15:12:10 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1738969930; cv=none;
d=google.com; s=arc-20240605;
b=IH1y+6VFRQW15bsb3aMAL/gQJ2IFPM5s1AFIwvugeTtlyvj7FmKDcxdkZMy4viajgQ
sNgZjB8q8NtffVBfgHcY+j1Fbzj+JlsMnsMG9arY8MlH+oBO+XRzrmOkE3K1udSyDDi9
OzRiW5PHpY3u0OPj4cx7Gxak6ZXXnE96eE/VwJzyxLT+Rv9mRvmu8jvIZ8yETgK13vs3
JL5xWZH6fdQvGuFDele3yilBTCd7Xtlf9XVGIVNlbxOOqTfRH2o62H+4aJ36oXmOXF57
FRjweqi2wfqgEztLWdukZ14jkOP79nTeCWQUN+v8begV9hGUEMogvsVQJL+MI3uCOFVI
ZTEg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:dkim-signature;
bh=dLryetmn0kobyr6Kg19ZKfuNbRk5z1+NRCCuhcCjShI=;
fh=rT/VapxJbbY45/IViUpe2cWa3m8ujGb+LyYSEyGZPIk=;
b=Mg3/N522rFwcVi2R5JZTEeYTbk2LGUC9BXcF9OyMyhE2q7qOeIMhXVwrXTaGPJ5mgg
/facQqHPJhpnPHEyZmM5l1WawIyOkucwe3IOu6LxG2DQp/isG/jb5EnWzou8EgplXotm
62ShwTb5X+prQ9WN2QB0nxcus7nx8kNzxENu0BzNWta9Nwawq2f5giBnWtn7Ab7AJ75j
Ia4tF1nE5u+Fi/1NAAQ6qLEGM6Ds1ssXSxDgccU0EZOdsqoD08KIlV8HCzogAON7fOWH
uzQFlY5ohIDe+n5+NBlOChRmttLcoC3df6ynxHNAQiGLqtBp1k/Aw/ItOlRqp3la154R
5PhQ==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=XNLtnJfU;
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;
dara=pass header.i=@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
ffacd0b85a97d-38dd3d3e399sor73142f8f.6.2025.02.07.15.12.10
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Fri, 07 Feb 2025 15:12:10 -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;
AJvYcCUYelIQNSOFDN+ohalY4ZcSRikE69r1RhmH8Yqms4trEG60WicroFGRfO3ty5qldtv1ARxnmJf5pSgAdShY@amarulasolutions.com
X-Gm-Gg: ASbGncvW8rk+W+jvHdC87TkI8sBC7KlhmupN7y26i7T0/vkESfejJd8WC9WvNzxFy4u
ecGiiX5ShclKXXoCa0/vAYSzRl7hYBUHYXRLm/l/R+zaiKaQhx5IRe+nGRIQRHHM0mjFNxIS7yv
goG0I6VPsj/tpyCdnl18OunDdwBNaQJawahInTl7Vllr486ngxG6tp8oKQzXrmtQDcQDYVaGAu9
SOUHmftCmkOojpiQs0ZJpNFT3dmHyHYokWwSu9ieXMMdgyTalKkXZSrsmz48Nf7onDcbXxP1Bf6
5XhnvlI6vw1/2xBQvlvM5fXqO0i67YUi4FwVLB0U1q+4sUD3bT2vkHHUPBp+Qt7ZFRF5K24UOHZ
c5+g=
X-Received: by 2002:a5d:6d0b:0:b0:38b:ed88:f045 with SMTP id
ffacd0b85a97d-38dc90f0daemr3750334f8f.33.1738969930087;
Fri, 07 Feb 2025 15:12:10 -0800 (PST)
Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.43.9])
by smtp.gmail.com with ESMTPSA id
5b1f17b1804b1-4390db1150csm105175775e9.39.2025.02.07.15.12.09
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 07 Feb 2025 15:12:09 -0800 (PST)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: buildroot@buildroot.org
Cc: "Yann E . MORIN" <yann.morin.1998@free.fr>,
linux-amarula@amarulasolutions.com,
Dario Binacchi <dario.binacchi@amarulasolutions.com>
Subject: [PATCH 1/1] boot/uboot: fix binman failure
Date: Sat, 8 Feb 2025 00:12:03 +0100
Message-ID: <20250207231203.3952765-1-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
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=XNLtnJfU;
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;
dara=pass header.i=@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 |
[1/1] boot/uboot: fix binman failure
|
|
Commit Message
Dario Binacchi
Feb. 7, 2025, 11:12 p.m. UTC
The commit 4bce3270d680 ("Config.in: timeout earlier when connecting to
download servers"), among other things, adds the connection timeout
parameter to the default scp command:
config BR2_SCP
string "Secure copy (scp) command"
default "scp -o ConnectTimeout=10"
Since the package/pkg-download.mk file exports this command using the
SCP variable:
export SCP := $(call qstrip,$(BR2_SCP))
and the U-Boot Makefile uses this variable as the path for the scp
command (rather than the command itself):
cmd_binman = $(srctree)/tools/binman/binman $(if $(BINMAN_DEBUG),-D) \
$(foreach f,$(BINMAN_TOOLPATHS),--toolpath $(f)) \
--toolpath $(objtree)/tools \
$(if $(BINMAN_VERBOSE),-v$(BINMAN_VERBOSE)) \
build -u -d $(binman_dtb) -O . -m \
--allow-missing --fake-ext-blobs \
$(if $(BINMAN_ALLOW_MISSING),--ignore-missing) \
-I . -I $(srctree) -I $(srctree)/board/$(BOARDDIR) \
$(foreach f,$(of_list_dirs),-I $(f)) -a of-list=$(of_list) \
$(foreach f,$(BINMAN_INDIRS),-I $(f)) \
-a atf-bl31-path=${BL31} \
-a tee-os-path=${TEE} \
-a ti-dm-path=${TI_DM} \
-a opensbi-path=${OPENSBI} \
-a default-dt=$(default_dt) \
-a scp-path=$(SCP) \
the following error occurs:
BINMAN .binman_stamp
usage: binman [-h] [-B BUILD_DIR] [-D] [-H] [--tooldir TOOLDIR] [--toolpath TOOLPATH] [-T THREADS] [--test-section-timeout] [-v VERBOSITY] [-V]
{build,bintool-docs,entry-docs,ls,extract,replace,sign,test,tool} ...
binman: error: unrecognized arguments: -o ConnectTimeout=10
make[2]: *** [Makefile:1126: .binman_stamp] Error 2
The patch fixes the SCP setting passed to U-Boot to ensure that its
parameters are not included.
Fixes: 4bce3270d680 ("Config.in: timeout earlier when connecting to download servers")
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
boot/uboot/uboot.mk | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
Hi Dario, On Sat, Feb 08, 2025 at 12:12:03AM +0100, Dario Binacchi wrote: > The commit 4bce3270d680 ("Config.in: timeout earlier when connecting to > download servers"), among other things, adds the connection timeout > parameter to the default scp command: ... > Fixes: 4bce3270d680 ("Config.in: timeout earlier when connecting to download servers") > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > --- > boot/uboot/uboot.mk | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk > index 2796b0a31010..6bbdc4151fac 100644 > --- a/boot/uboot/uboot.mk > +++ b/boot/uboot/uboot.mk > @@ -176,7 +176,8 @@ UBOOT_MAKE_OPTS += \ > ARCH=$(UBOOT_ARCH) \ > HOSTCC="$(HOSTCC) $(subst -I/,-isystem /,$(subst -I /,-isystem /,$(HOST_CFLAGS)))" \ > HOSTLDFLAGS="$(HOST_LDFLAGS)" \ > - $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS)) > + $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS)) \ > + SCP=$(word 1, $(SCP)) > > # Disable FDPIC if enabled by default in toolchain > ifeq ($(BR2_BINFMT_FDPIC),y) > -- > 2.43.0 Thanks for the fix ! I received several autobuild reports for OrangePi boards today and tested your fix for some of them. Here are the links: Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/9054932579 https://gitlab.com/buildroot.org/buildroot/-/jobs/9054932525 Tested-by: Sergey Matyukevich <geomatsi@gmail.com> Regards, Sergey To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
On Sat, Feb 08, 2025 at 06:21:15PM +0300, Sergey Matyukevich wrote: > Hi Dario, > > On Sat, Feb 08, 2025 at 12:12:03AM +0100, Dario Binacchi wrote: > > The commit 4bce3270d680 ("Config.in: timeout earlier when connecting to > > download servers"), among other things, adds the connection timeout > > parameter to the default scp command: > > ... > > > Fixes: 4bce3270d680 ("Config.in: timeout earlier when connecting to download servers") > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > --- > > boot/uboot/uboot.mk | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk > > index 2796b0a31010..6bbdc4151fac 100644 > > --- a/boot/uboot/uboot.mk > > +++ b/boot/uboot/uboot.mk > > @@ -176,7 +176,8 @@ UBOOT_MAKE_OPTS += \ > > ARCH=$(UBOOT_ARCH) \ > > HOSTCC="$(HOSTCC) $(subst -I/,-isystem /,$(subst -I /,-isystem /,$(HOST_CFLAGS)))" \ > > HOSTLDFLAGS="$(HOST_LDFLAGS)" \ > > - $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS)) > > + $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS)) \ > > + SCP=$(word 1, $(SCP)) > > > > # Disable FDPIC if enabled by default in toolchain > > ifeq ($(BR2_BINFMT_FDPIC),y) > > -- > > 2.43.0 > > Thanks for the fix ! I received several autobuild reports for OrangePi > boards today and tested your fix for some of them. Here are the links: > > Fixes: > https://gitlab.com/buildroot.org/buildroot/-/jobs/9054932579 > https://gitlab.com/buildroot.org/buildroot/-/jobs/9054932525 > > Tested-by: Sergey Matyukevich <geomatsi@gmail.com> Tested-by: Niklas Cassel <cassel@kernel.org> Could this please be picked up? The buildroot master branch currently fails to build without this patch. Kind regards, Niklas To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
Hi Dario, Thanks for the patch. On 08/02/2025 00:12, Dario Binacchi wrote: > The commit 4bce3270d680 ("Config.in: timeout earlier when connecting to > download servers"), among other things, adds the connection timeout > parameter to the default scp command: > > config BR2_SCP > string "Secure copy (scp) command" > default "scp -o ConnectTimeout=10" > > Since the package/pkg-download.mk file exports this command using the > SCP variable: > > export SCP := $(call qstrip,$(BR2_SCP)) > > and the U-Boot Makefile uses this variable as the path for the scp > command (rather than the command itself): > > cmd_binman = $(srctree)/tools/binman/binman $(if $(BINMAN_DEBUG),-D) \ > $(foreach f,$(BINMAN_TOOLPATHS),--toolpath $(f)) \ > --toolpath $(objtree)/tools \ > $(if $(BINMAN_VERBOSE),-v$(BINMAN_VERBOSE)) \ > build -u -d $(binman_dtb) -O . -m \ > --allow-missing --fake-ext-blobs \ > $(if $(BINMAN_ALLOW_MISSING),--ignore-missing) \ > -I . -I $(srctree) -I $(srctree)/board/$(BOARDDIR) \ > $(foreach f,$(of_list_dirs),-I $(f)) -a of-list=$(of_list) \ > $(foreach f,$(BINMAN_INDIRS),-I $(f)) \ > -a atf-bl31-path=${BL31} \ > -a tee-os-path=${TEE} \ > -a ti-dm-path=${TI_DM} \ > -a opensbi-path=${OPENSBI} \ > -a default-dt=$(default_dt) \ > -a scp-path=$(SCP) \ > > the following error occurs: > > BINMAN .binman_stamp > usage: binman [-h] [-B BUILD_DIR] [-D] [-H] [--tooldir TOOLDIR] > [--toolpath TOOLPATH] [-T THREADS] [--test-section-timeout] [-v > VERBOSITY] [-V] > > {build,bintool-docs,entry-docs,ls,extract,replace,sign,test,tool} ... > binman: error: unrecognized arguments: -o ConnectTimeout=10 > make[2]: *** [Makefile:1126: .binman_stamp] Error 2 > > The patch fixes the SCP setting passed to U-Boot to ensure that its > parameters are not included. > > Fixes: 4bce3270d680 ("Config.in: timeout earlier when connecting to > download servers") > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > --- > boot/uboot/uboot.mk | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk > index 2796b0a31010..6bbdc4151fac 100644 > --- a/boot/uboot/uboot.mk > +++ b/boot/uboot/uboot.mk > @@ -176,7 +176,8 @@ UBOOT_MAKE_OPTS += \ > ARCH=$(UBOOT_ARCH) \ > HOSTCC="$(HOSTCC) $(subst -I/,-isystem /,$(subst -I /,-isystem > /,$(HOST_CFLAGS)))" \ > HOSTLDFLAGS="$(HOST_LDFLAGS)" \ > - $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS)) > + $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS)) \ > + SCP=$(word 1, $(SCP)) I don't think this is the right fix for this issue. U-Boot Makefile is using the "SCP" variable here: https://source.denx.de/u-boot/u-boot/-/blob/v2025.01/Makefile#L1411 According the the "binman" documentation: https://source.denx.de/u-boot/u-boot/-/blob/v2025.01/tools/binman/entries.rst#L1727 This SCP is the "System Control Processor firmware blob". Buildroot exports a SCP variable here: https://gitlab.com/buildroot.org/buildroot/-/blob/2024.11.1/package/pkg-download.mk#L18 The value is set here: https://gitlab.com/buildroot.org/buildroot/-/blob/2024.11.1/Config.in#L134 BR2_SCP corresponds to the SSH Secure File Copy command: https://man.openbsd.org/scp which has nothing to do with the System Control Processor firmware binman is expecting. So this is an unfortunate name clash. There is few defconfigs using BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS to workaround this. See for example: https://gitlab.com/buildroot.org/buildroot/-/blob/2024.11.1/configs/orangepi_zero_plus2_defconfig#L45 There is no defconfig in Buildroot setting an actual file for u-boot SCP. Maybe we could introduce a new u-boot Kconfig option string such as: BR2_TARGET_UBOOT_SCP_FIRMWARE and properly set the u-boot SCP variable to this value (and set it to /dev/null if empty). What do you think? > # Disable FDPIC if enabled by default in toolchain > ifeq ($(BR2_BINFMT_FDPIC),y) > -- > 2.43.0 Best regards, Julien. To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
Hi Dario, All, On 10/02/2025 20:33, Julien Olivain wrote: > Maybe we could introduce a new u-boot Kconfig option string such as: > BR2_TARGET_UBOOT_SCP_FIRMWARE and properly set the u-boot SCP > variable to this value (and set it to /dev/null if empty). After quickly testing, it seems u-boot and binman can take an empty string without failing. So there is no need to set it to /dev/null if empty. So if a new Kconfig is added with an empty default value, just adding "SCP=$(BR2_TARGET_UBOOT_SCP_FIRMWARE)" in UBOOT_MAKE_OPTS should be fine. Best regards, Julien. To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
Hi Julien, Dario, Julien Olivain <ju.o@free.fr> writes: > I don't think this is the right fix for this issue. > > U-Boot Makefile is using the "SCP" variable here: > https://source.denx.de/u-boot/u-boot/-/blob/v2025.01/Makefile#L1411 > > According the the "binman" documentation: > https://source.denx.de/u-boot/u-boot/-/blob/v2025.01/tools/binman/entries.rst#L1727 > > This SCP is the "System Control Processor firmware blob". > > Buildroot exports a SCP variable here: > https://gitlab.com/buildroot.org/buildroot/-/blob/2024.11.1/package/pkg-download.mk#L18 > > The value is set here: > https://gitlab.com/buildroot.org/buildroot/-/blob/2024.11.1/Config.in#L134 > > BR2_SCP corresponds to the SSH Secure File Copy command: > https://man.openbsd.org/scp > > which has nothing to do with the System Control Processor firmware > binman is expecting. So this is an unfortunate name clash. > > There is few defconfigs using BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS to > workaround this. See for example: > https://gitlab.com/buildroot.org/buildroot/-/blob/2024.11.1/configs/orangepi_zero_plus2_defconfig#L45 This worked to fix the issue for me on bananapi m3: # https://lore.kernel.org/buildroot/96b69abb843dc7292777c64f6787f134@free.fr/ # https://gitlab.com/buildroot.org/buildroot/-/blob/2024.11.1/configs/orangepi_zero_plus2_defconfig#L45 # https://github.com/skiffos/SkiffOS/issues/325 BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="SCP=/dev/null" Thanks, Christian Stewart To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
Hi Julien and all, On Mon, Feb 10, 2025 at 10:16:05PM +0100, Julien Olivain wrote: > Hi Dario, All, > > On 10/02/2025 20:33, Julien Olivain wrote: > > Maybe we could introduce a new u-boot Kconfig option string such as: > > BR2_TARGET_UBOOT_SCP_FIRMWARE and properly set the u-boot SCP > > variable to this value (and set it to /dev/null if empty). > > After quickly testing, it seems u-boot and binman can take > an empty string without failing. So there is no need to > set it to /dev/null if empty. So if a new Kconfig is added > with an empty default value, just adding > "SCP=$(BR2_TARGET_UBOOT_SCP_FIRMWARE)" in UBOOT_MAKE_OPTS > should be fine. Am I correct assuming that there will be no generic fix and the recommended solution is to add the following line to all the impacted configs: - BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="SCP=/dev/null" Regards, Sergey To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
Hello Sergey, On Thu, Feb 13, 2025 at 11:50:35AM +0300, Sergey Matyukevich wrote: > Hi Julien and all, > > On Mon, Feb 10, 2025 at 10:16:05PM +0100, Julien Olivain wrote: > > Hi Dario, All, > > > > On 10/02/2025 20:33, Julien Olivain wrote: > > > Maybe we could introduce a new u-boot Kconfig option string such as: > > > BR2_TARGET_UBOOT_SCP_FIRMWARE and properly set the u-boot SCP > > > variable to this value (and set it to /dev/null if empty). > > > > After quickly testing, it seems u-boot and binman can take > > an empty string without failing. So there is no need to > > set it to /dev/null if empty. So if a new Kconfig is added > > with an empty default value, just adding > > "SCP=$(BR2_TARGET_UBOOT_SCP_FIRMWARE)" in UBOOT_MAKE_OPTS > > should be fine. > > Am I correct assuming that there will be no generic fix and > the recommended solution is to add the following line to all > the impacted configs: > - BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="SCP=/dev/null" I think that Dario is working on a patch: https://lore.kernel.org/buildroot/87frkjyma6.fsf@dell.be.48ers.dk/T/#m7f5f85f0cdb2468c78512d34ade8703595921047 However, Peter had some comments, so maybe Dario will send a v2? Kind regards, Niklas To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk index 2796b0a31010..6bbdc4151fac 100644 --- a/boot/uboot/uboot.mk +++ b/boot/uboot/uboot.mk @@ -176,7 +176,8 @@ UBOOT_MAKE_OPTS += \ ARCH=$(UBOOT_ARCH) \ HOSTCC="$(HOSTCC) $(subst -I/,-isystem /,$(subst -I /,-isystem /,$(HOST_CFLAGS)))" \ HOSTLDFLAGS="$(HOST_LDFLAGS)" \ - $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS)) + $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS)) \ + SCP=$(word 1, $(SCP)) # Disable FDPIC if enabled by default in toolchain ifeq ($(BR2_BINFMT_FDPIC),y)