| Message ID | 20260721184249.1579381-4-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers | show
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBOP373JAMGQENBZUJAY@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com
[209.85.128.71])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 372EA441AD
for <linux-amarula@patchwork.amarulasolutions.com>;
Tue, 21 Jul 2026 20:43:06 +0200 (CEST)
Received: by mail-wm1-f71.google.com with SMTP id
5b1f17b1804b1-4955fd77c18sf18642415e9.2
for <linux-amarula@patchwork.amarulasolutions.com>;
Tue, 21 Jul 2026 11:43:06 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1784659386; cv=pass;
d=google.com; s=arc-20260327;
b=HIEBR7BG1vN6vBrSWYjVJLdCLQris8HjLQhwvLEf3vMK2Hy4pgVvw1ssX3ogJu+OHx
TDwLvc1Qkcgld2ONYyKH96useENLn8YA1RfKxsaoYi7iFy1WywvCIld4x3Ue8FOGt6/S
Xlr+tIO95nggFEB7TPd40/nP5T8lR5SAKSop/0+IVCuhE8iv49oCSLuX0Kb8UX6M8fzJ
nfq7Z/7vC8umPpDti/Gx4L+lLuEpZH33Pj1DaOm6v5DR2FLGmxlcZrCucNq5bbVhFFUk
F0jOUOHg+G5U4LGsjAm3GL9Bdj5X8m3WI3DgrKjeRJgyKoMlPQHGH/1Q0tF74WQ7xVu4
UhOQ==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
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=NK6k6YMgiH+2W/Ckmrzu3lKsc6RLgPR9pwJS2k/p+n0=;
fh=MSbO88m5JkJeCnBBJJ1aJ+QM0x2Y2HtsjTRNEUJrKHc=;
b=GappwADCachDZNquNnBeOxC9swXHs02sYNGL5HrWAuVfTv4nJMpRJFfFtJrf0qgTRx
4uhu0wJCIurLl+0e/kjWw5Tc+NThsWwc0AG1VgtrkRxNnr7rMiQ9BxpmOhRermjamCv1
zUtVJ2i08smD5giOnkjBsmLR+8HM305jgRU7u2+MIn7ECGtvdv5uX0DWesr1d5sTxx6t
88DcTn0+KlFH1wfhAkUpxeMxv/Ew/EYMbABmkbGkdAN6cPPmi1At0/zy33lW/QRd90Fp
e75O2kkZcht7Vi3hnyiagl5vKQv/ICpqtr1LHl6+DTvDXwYRO+qI0AYCKDuM1glFojjB
MdLg==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=EgvMljcv;
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=neutral header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1784659386; x=1785264186;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:content-type
: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:content-type;
bh=NK6k6YMgiH+2W/Ckmrzu3lKsc6RLgPR9pwJS2k/p+n0=;
b=CI6QAc3DGG0UYTxRCtLi7SdxyzK+8uNuzqNbGjMx7tmcqmc0m+Htp748pZkOFCjijJ
c92yZTAi7eulwP2RFfUUVQ1onS1DNrmls/e1vumK4whFiRhvMn9SZnPFOOaUKNDrh5tL
joHHqWHeynoXmEVchuyIpP4xFRbRz0HwMW9Ig=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1784659386; x=1785264186;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:content-type:x-original-authentication-results:x-original-sender
:mime-version:references:in-reply-to:message-id:date:subject:cc:to
:from:x-gm-gg:x-beenthere:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=NK6k6YMgiH+2W/Ckmrzu3lKsc6RLgPR9pwJS2k/p+n0=;
b=YPyvlLJ+clMG0lYVZDaYLWU7swuyEewR7S1ocm6ITrw1oGKuX6bdjWhs6sY4bCpzi7
HQ3s1hdvYgSYz61W1mtX1zKfpLSn63pzYxHOyC1m/eDMYIKto5Lvzo6Y/68tDy/unpZC
vxHNgX9Y+xxMdCOyTxqbu7XKTp/w/iMJT6rwmE4B/onJzyRpH1BDTzB2j+qHJ5oobEix
TFtA+CVUJLTsTH+sYYGRS34v9TuGFkO5VmKBtkJXbGPgP5h1FHK9CZ2o+eVmsGmO/oM5
ULSKC8fXIZW+sSw88yAxIPLkEi4MPUP9efgpsH0rnUF/dCRxvnFPLz6mtcUXZGqzKsZY
YSZg==
X-Forwarded-Encrypted: i=2;
AHgh+RpqHZDzssTWqF4rjK4SgUhVvgCRNnddB23xaAgME+57zLkAnpZOZUtJXndpalAyp0IlH4QmLaWnRBrBqqlz@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0YyhODzjKBOU/s4qAQcSWBfxWFI0eLAXtsH6hXm3wBwM2A6goBW/
0QFQp2gTyd8zuYT+hUtsQghSEibhc8kBiX3Ks2GASOEWHHIqXneFE8w365c1XM9FPPqTvA==
X-Received: by 2002:a05:600c:c490:b0:495:4a34:16e1 with SMTP id
5b1f17b1804b1-4954a50da03mr239251355e9.23.1784659385881;
Tue, 21 Jul 2026 11:43:05 -0700 (PDT)
X-BeenThere: linux-amarula@amarulasolutions.com;
h="Aa7YSPT9HfzVfxgNqsPeq5q1v3b3RfwuO+npEtPbPzhiPQGOqw=="
Received: by 2002:a05:600c:4688:b0:495:4e17:f87d with SMTP id
5b1f17b1804b1-49553248277ls30126515e9.0.-pod-prod-01-eu; Tue, 21 Jul 2026
11:43:04 -0700 (PDT)
X-Forwarded-Encrypted: i=2;
AHgh+RrZu9D0xHH7M7EAdO2+NeoudHdEsRs7aYFf4g4TmPI/K02qQpFFTzESGliJZrxaR7JqZtcn7fYGk/sMNfHw@amarulasolutions.com
X-Received: by 2002:a05:600c:3590:b0:490:e5c1:b8b9 with SMTP id
5b1f17b1804b1-4954a8e3616mr219752355e9.0.1784659384128;
Tue, 21 Jul 2026 11:43:04 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1784659384; cv=none;
d=google.com; s=arc-20260327;
b=MlitecsLgPXZcy5JrWCSFDqcioE5KU/uNKD+IShhlaa1TbVNg7rkW6WGYIEJco53IN
GyTMfRtBQ8aLDwBOyjva6v3xXs37Hoo/XdH+53DqH9ro0kJ6qtxeEqxxSqGu1TWDY7g4
DLL62F5L8eV6mUo6Rq/dZtK2OVSdOdN/zdeYtEcPKK+rludhw2/LvleAYI1//JKNJ763
FePTWlvui/wr3jBqZFXaTDPIFkMVF8fTGEfDogYciwR7+xCy+WCithdUpCAd41T9/oGN
e3Sbn28Hkso/FatltJjMOBXhvu38C+nbQmujQjmkCke0GOm92fng+xuobHmcElfigm9s
mjEA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=m1f0WN6s0JLfkZOtPxdAERtLqHq7cw5CZ8/oGq/MXRE=;
fh=mRrIjXeAXsH1X8b0CJKGTLqi4a3XqRASIVAgEmja9bM=;
b=ZBF3VIGnzZCuwsDRlzvUP1MJ9c5AoJTMxVvsICh3+zCTEeUj4dtl/3PJKskqUuYBx5
Y1cAcTPshs5y9KUAMzZOg3CYZhGiy8nXgr6YLMxP61Ukh4imEIPWrwTWBSKQCk7Py9hX
dxOYIK7tR82fMq6tlca/h7Kw/kvTFjl9GeJDDXJ54ge03+SqqJsexlYfCowlnyKGCDo8
L/CCbp7JiBw8oww1Xi2uS003I/y/wpNGJdBrHLMa7OU+j3UooXAsRWntEHkn3tq1vQ8c
lLYxGawdJ3L6qybWV+J8KBt1iYCooaT/qGzj+o1VLCUjWXkuwsxarFQCsdZkU5d2LAij
ULRA==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=EgvMljcv;
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=neutral 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
5b1f17b1804b1-4956a75a153sor834645e9.10.2026.07.21.11.43.04
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Tue, 21 Jul 2026 11:43:04 -0700 (PDT)
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;
AHgh+Rr+nXnMUHl5y7tc0cEdQ7HKX4N+rTLmHJXqi2J2USjBRc1T3zbXj/Dfq0rcem8uDYDMj469ooXVbFOBzzOG@amarulasolutions.com
X-Gm-Gg: AfdE7cleYwdBPrXIeF9Fo4hqX7Mca6oClxRCmvjND+hb3iz4rMD9RNnAbDfUTETNI7N
Hsg6NsbuubsxXUdzCYr/FuNTJ2wAY4j0uedEnAaubMw5ABY15mKd2YxePfC9bAODspjuE7IWwB1
qzvCKFxY5Bd1A+ID4I/D3/QT9ykAJ3iPZR2s/wlwEn4a94pQCP/GUmLxuvd3ZlBeghdLxt9rPBu
EpTKgpfl3G5AuRnpJYeHvdrj4zsugE05dJ0X+YxjBFgO+EGC2of3yrSQabRyZtuTrt58SG4gLCM
S59U4bc/dSFtycCgkiDCjEbKmJBfcU3LWTl9MaBJJ0465pj8Hk2oKxJN4XT3/9mCQntsRDP7JnJ
JqH7qIi9OlWApKwNIi6LsNyV0jAFe8qyJGep0B+KZZpcs/EQV1G2EsSIg9kPoQPewQ2mcXktxWY
ZAbkgkyFbJDhf/el8aZzIhJsBi1kw7ZAREdnl3T+HjEi5N/1aXFIId+nvoSVttQqMgsYMui4/GZ
pM77hO5dhQ4WgFu9TS1uj/LyMopAgBwjveRZC71APVj6YnnaMI+QUOwPY2gbiCDfwD5pI+s0fD7
X-Received: by 2002:a05:600c:3512:b0:493:cfe8:5b36 with SMTP id
5b1f17b1804b1-4954a3eec4bmr227562795e9.8.1784659383765;
Tue, 21 Jul 2026 11:43:03 -0700 (PDT)
Received: from dario-ThinkPad-P14s-Gen-5.amarulasolutions.com
(host-79-17-119-233.retail.telecomitalia.it. [79.17.119.233])
by smtp.gmail.com with ESMTPSA id
5b1f17b1804b1-4956b030a64sm226505e9.3.2026.07.21.11.43.02
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 21 Jul 2026 11:43:03 -0700 (PDT)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: buildroot@buildroot.org
Cc: Christophe Priouzeau <christophe.priouzeau@foss.st.com>,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
linux-amarula@amarulasolutions.com
Subject: [PATCH 3/6] configs/stm32f769_disco_sd: fix boot failure after uClibc
bump
Date: Tue, 21 Jul 2026 20:42:46 +0200
Message-ID: <20260721184249.1579381-4-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20260721184249.1579381-1-dario.binacchi@amarulasolutions.com>
References: <20260721184249.1579381-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=EgvMljcv;
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=neutral 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 |
|
| Related |
show
|
diff --git a/board/stmicroelectronics/stm32f769-disco/uclibc-fragment.config b/board/stmicroelectronics/stm32f769-disco/uclibc-fragment.config new file mode 100644 index 000000000000..fb8fa9ee01c3 --- /dev/null +++ b/board/stmicroelectronics/stm32f769-disco/uclibc-fragment.config @@ -0,0 +1,2 @@ +# MALLOC is not set +MALLOC_SIMPLE=y diff --git a/configs/stm32f769_disco_sd_defconfig b/configs/stm32f769_disco_sd_defconfig index 065d5b59bf6d..d09b81b19b3e 100644 --- a/configs/stm32f769_disco_sd_defconfig +++ b/configs/stm32f769_disco_sd_defconfig @@ -1,6 +1,7 @@ BR2_arm=y BR2_cortex_m7=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15=y +BR2_UCLIBC_CONFIG_FRAGMENT_FILES="board/stmicroelectronics/stm32f769-disco/uclibc-fragment.config" BR2_GLOBAL_PATCH_DIR="board/stmicroelectronics/stm32f769-disco/patches" BR2_DOWNLOAD_FORCE_CHECK_HASHES=y BR2_ROOTFS_POST_BUILD_SCRIPT="board/stmicroelectronics/stm32f769-disco/post-build.sh"
Since uClibc was bumped to 1.0.58 (c7fef3704c70, "package/uclibc: bump to 1.0.58"), the board hangs after starting init: [ 1.231624] Run /sbin/init as init process [ 1.235599] with arguments: [ 1.238549] /sbin/init [ 1.241331] earlyprintk [ 1.244018] with environment: [ 1.247143] HOME=/ [ 1.249554] TERM=linux [ 1.252177] consoleblank=0 No error message is printed and the boot simply stalls at this point. The STM32F769 has no MMU, and uClibc's standard malloc() implementation returns NULL for allocations performed during early init on this target, causing init to fail. Fix this by switching to MALLOC_SIMPLE, a plain mmap-based allocator meant for small/noMMU systems, via a uClibc config fragment. Unlike the STM32F429/STM32F469 fix, the fragment is kept board-specific since the STM32F769 is a Cortex-M7 board and does not belong to the stm32f4xx family. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- board/stmicroelectronics/stm32f769-disco/uclibc-fragment.config | 2 ++ configs/stm32f769_disco_sd_defconfig | 1 + 2 files changed, 3 insertions(+) create mode 100644 board/stmicroelectronics/stm32f769-disco/uclibc-fragment.config