| Message ID | 20260721184249.1579381-2-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBN7373JAMGQEU2GXEBY@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com
[209.85.128.72])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 6CEE54419F
for <linux-amarula@patchwork.amarulasolutions.com>;
Tue, 21 Jul 2026 20:43:04 +0200 (CEST)
Received: by mail-wm1-f72.google.com with SMTP id
5b1f17b1804b1-495529a93f9sf22209805e9.3
for <linux-amarula@patchwork.amarulasolutions.com>;
Tue, 21 Jul 2026 11:43:04 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1784659384; cv=pass;
d=google.com; s=arc-20260327;
b=AEWjA50xEWYUCfeFO4hVMudoViQOkhjRAljlZZBOE7TMgBYm9kVvLahxAV4Z2YKuyc
2ZErSRsPfsdcW8rMLAcbHTA/l6zXb50wHBHror+FUN5hOgdIb4pXjTrRUX/cTqdTUCSh
mAKvwee4SoLk+UgLX2K67m6JSEw4vJ8Jqjr5ekoDVHT0e5j5e8MVH2MaUnVoybP6g4IJ
Ye+taIZi3qEWUInLIEQuIX95n/ODtH/CL6HlOv8L5ULvOhv2ZA0H5697aKictlC/ENrd
06TB8vndSeF5gh4+uGDeEnwlnMjsAMYUkJAHgUFvfnUh8Hg54KS18CEI6za1r8i581mI
yYvQ==
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=XHNlDnI9+F1bA+I4f8xSVLMR5iyuY8mlZXjAQph/PB4=;
fh=QWI2QHu0yD8QVsUoiycXgc2Lzq5Ps0daBVonV1+lAME=;
b=cx8Sd1GQfWD5+xGfcswFe+m6IT/e2fNxDNJUGROGtlagVVeDIA+J3ZDK4OFOrPBstl
EirAJnsopnKaKNsLRHS/ok3as+xL10D4dDfpnU5H/5MjfhZAcqrSWRVV+GRzMZX+EBjs
GwPwkiG74tCpew4BSs8xUT8QBz+eQmfDjpt9cOjj0v4MWeExtYRAqVHOPQzB7snsTo93
w9RbsHPAjKor7JkJTBQPHdCgTcx4t3plWAufFagHbTJDM+Ywyv8uHtHC+begmLNO+EHV
tTS3jBhSbpwlTZxvUo3I1dO2ZWI74TTFZN4yEc3HfRrw9u1RjS/5Y2scDaflrzNnjyCE
K6BQ==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=qui0584c;
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=1784659384; x=1785264184;
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=XHNlDnI9+F1bA+I4f8xSVLMR5iyuY8mlZXjAQph/PB4=;
b=XJyyKkgDy6BPADzShMdPA3VFCuL8DylizCVaP8CXjrwhkg9Ak2EO7zNcAZvHtftJZl
d2gfKeGxzTCuD1APTnagOuV1H0GzN/l/oOo/Lht3bvyehxy+vMwvXpqXEZcersMRD1UD
KTLPX+zobMWlmiBMVS9uXg03JtT23BiNIo30c=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1784659384; x=1785264184;
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=XHNlDnI9+F1bA+I4f8xSVLMR5iyuY8mlZXjAQph/PB4=;
b=s9hHz8hgFuoVsjdrh6CSt/GAvd131tdSTxwDolJB4gPkzoZqWMQ8Y4ux0/6YA4GwaF
ZpHSDmdY35Yf94lbGYnnTUAf66MQDUgTvF3T9n2bSXN19B353E7WNKPUFbFyNNJpUFfe
52XrqKMQH2GkFQmdmUywYPBaMvi+trottva8CeReFnzh1o5act77W0AOwNRj3NwSdy6I
fP/PObJW82NulaljMzvHqGGO5K6B/lnF/JCYGcifGmAttWMAOAzsD1mwDGHWA0O9maqn
uScCFsFBDFB2SN8YiTXyy85kO5BOLlZyAPP79oLoBs0x7BXPFHRiwn77bNrILCOmubdb
x0Yw==
X-Forwarded-Encrypted: i=2;
AHgh+Rr5EjGDLeuxBvQmH7wxHEslwuT984byADMzDBtr+6RCTzPQDSQgtu2h4w+jqyFUPMAsGHad/ObgGJjTaf1e@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0YznCncZB7HvmFnNPVcHBhKc+xQ80K1DxnmMKwKREaHknZeX9EX/
NlYL/0BnGxjKBOaMjF1voF9T85vWVh+PWHweok0wIwKZPbf2ZRDj3rTI9VplV9sdiH0qqRI+H8P
BXQ==
X-Received: by 2002:a05:600c:3baa:b0:493:b730:8d78 with SMTP id
5b1f17b1804b1-4954a514007mr274232595e9.31.1784659383928;
Tue, 21 Jul 2026 11:43:03 -0700 (PDT)
X-BeenThere: linux-amarula@amarulasolutions.com;
h="Aa7YSPRF0/vtSIMXURF8XMdZr/vlFLAbavdsZF3h8N6omattHQ=="
Received: by 2002:a05:600c:4f51:b0:495:47b8:80f0 with SMTP id
5b1f17b1804b1-4956394ed64ls23719835e9.1.-pod-prod-04-eu; Tue, 21 Jul 2026
11:43:02 -0700 (PDT)
X-Forwarded-Encrypted: i=2;
AHgh+Rq10lRYncrG8ZXsJyq9kkJm37b+vAl6sfwyQ7iRK/T34IxrqtPsrL3YSmdgjfB24LNjvVCPx+c0oE/IRdJj@amarulasolutions.com
X-Received: by 2002:a05:600c:46ca:b0:493:e460:1f6 with SMTP id
5b1f17b1804b1-4954a396371mr216237465e9.0.1784659382163;
Tue, 21 Jul 2026 11:43:02 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1784659382; cv=none;
d=google.com; s=arc-20260327;
b=Npx2aPOqsaYZLA53DsOtboI3644pYi6VmbTnT58HbWn2yufDvMOFHjb/f3VgupTM78
Zy0RQielN1tg8N+Yo3v3KVxoL59NxDjSsjyDZ8fkq+pXIfXP9yoFxLWKi7PBZOV8TVCG
fPTEKqnLhce9fMDXXybeAbq6RUSUzOnuBahzSemiexkNRMBZnhtT6iCZpda1jolFrahq
4F+kkf3uIlkToVyPIgUt0Pr2H+bDhOe/g4IIGl3Gd2xOwhcb5sy8U6jM6gutCw3aY7s5
oBX5u3EVqRlm9Tr5HVtLzbxa1hcqeQJStBrj/oqZJhQ78UNkAOPkUSzjiXCYjROnRCD/
4Dfg==
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=whtj/phmAovG5HswARAqVzv2di/aDQ/2aFYgHWkcFuU=;
fh=ZXshPstLByScn+sAA+1NxfMkPWIbG8xZRDGMfQVVTl0=;
b=Dbo2jcIJs+/dWMam4qgFdcQXjOjTJQJOiz4FCrul+GeGlC6DkvhOhK98FoPCJ55Al7
r3pgEQLVL5EqeakOzdNy3XusX/zignvO/WclsGYhlQVsFXbaJs7tkpvVMJM24EfkD98j
FlmxzGSpQMe+u15LygIWN+1zBKQuXR2c1wdEAP7O+uGo2U74yqUP0Nha4O5X77XdIwZC
/AFEJ7an55ZfJV+ZiPnOQ154ewQCkgl2/9A9ZZ5V3edn0yAFt9wRa87+papiB3ScgdIU
5ys1R5Lte7I1Th+bivXIF/xT534pbvC+BuPn5Vjs3mlItWuLpU9qNcxugqptS3f3KIAc
ndDg==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=qui0584c;
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-4956a7579c8sor682125e9.19.2026.07.21.11.43.02
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Tue, 21 Jul 2026 11:43:02 -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+RrPDs3txZiJTYn6rqdQGIy+mLlbM2mQbspp5Og6c0Uwe72JW+XaWUE9O4I0HYwWzrig06ojyhOyggKnRfts@amarulasolutions.com
X-Gm-Gg: AfdE7cn5YZSZ1K2k24wFoGmRJH4cWFfYeGekOwY1WDAvEsE5GmCfQWN7tRgvvDaICCY
9XNimOZlgW1VVcL98nfvHx+P2vjcks1nJZA1U+BFrrx70YcnT/Ix6j/ztn9fVoT1D/NBiVi8oR/
mX1mFT1qItBihvui/eOzR9M+tl5OQK7i9cUSCNHYP7G6kcaBB58QkRXMxLQQC4L6CZTKwmVOpuS
6VwwGvnwy06NP3XRV53giklMcyQzSGj/duAPIsUyCsj01J3hAL5BW9+WZ+uuiZpjG3A4X7LILU3
mAeoEFFhnPMD1MjGARs9Qtsj/arHhvcjilfLTe5GvYrbRFc6DvGP1SizhNQLefhOpIQUgaNbW4G
WdfNLsY6Q88em9AAT2Ul/2vHnLrK9y3S7i4Z5WtpjDORSYCHPbBZJ1udFOl/lzYU1xl7y2ZgBAX
CFUfJagQPTIkuNYRm9df8z9Nec1stB7ZvUI8/sPYhxwKYntSwBykkBgF8xpXmU7iWffGhZ2AUL4
BVHP1EhLzwyNPijrik7xHUFBWd+FwXsAuUH25gpeGdg2/H9UilJ2pJe1XlKEO4SBIQ1YGJQ0mvX
X-Received: by 2002:a05:600c:4503:b0:493:c84c:2b57 with SMTP id
5b1f17b1804b1-4954a513f99mr217566935e9.29.1784659381649;
Tue, 21 Jul 2026 11:43:01 -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.00
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 21 Jul 2026 11:43:01 -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 1/6] configs/stm32f429_disco_xip: fix boot failure after
uClibc bump
Date: Tue, 21 Jul 2026 20:42:44 +0200
Message-ID: <20260721184249.1579381-2-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=qui0584c;
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 |
configs/stm32f4xx,stm32f769: fix uClibc boot failure and bump Linux/U-Boot
|
|
Commit Message
Dario Binacchi
July 21, 2026, 6:42 p.m. UTC
Since uClibc was bumped to 1.0.58 (c7fef3704c70, "package/uclibc:
bump to 1.0.58"), the board fails to boot:
sh: out of memory
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
CPU: 0 PID: 1 Comm: init Not tainted 6.1.167 #2
Hardware name: STM32 (Device Tree Support)
Function entered at [<0800ea1e>] from [<0800de7b>]
Function entered at [<0800de7b>] from [<080e4991>]
Function entered at [<080e4991>] from [<080e2d19>]
Function entered at [<080e2d19>] from [<080125eb>]
Function entered at [<080125eb>] from [<08012b09>]
Function entered at [<08012b09>] from [<08012b69>]
---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100 ]---
The STM32F429 has no MMU, and uClibc's standard malloc() implementation
returns NULL for allocations performed during early init on this target,
causing init to abort immediately.
Fix this by switching to MALLOC_SIMPLE, a plain mmap-based allocator
meant for small/noMMU systems, via a uClibc config fragment. The
fragment is placed under board/stmicroelectronics/common/stm32f4xx/,
rather than under the board-specific directory, so that it can be
shared with the STM32F469, another Cortex-M4/noMMU board affected by
the same issue, which will be fixed in a subsequent patch.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
.../stmicroelectronics/common/stm32f4xx/uclibc-fragment.config | 2 ++
configs/stm32f429_disco_xip_defconfig | 1 +
2 files changed, 3 insertions(+)
create mode 100644 board/stmicroelectronics/common/stm32f4xx/uclibc-fragment.config
Comments
Hi Dario, On 21/07/2026 20:42, Dario Binacchi wrote: > Since uClibc was bumped to 1.0.58 (c7fef3704c70, "package/uclibc: > bump to 1.0.58"), the board fails to boot: > > sh: out of memory > Kernel panic - not syncing: Attempted to kill init! > exitcode=0x00000100 > CPU: 0 PID: 1 Comm: init Not tainted 6.1.167 #2 > Hardware name: STM32 (Device Tree Support) > Function entered at [<0800ea1e>] from [<0800de7b>] > Function entered at [<0800de7b>] from [<080e4991>] > Function entered at [<080e4991>] from [<080e2d19>] > Function entered at [<080e2d19>] from [<080125eb>] > Function entered at [<080125eb>] from [<08012b09>] > Function entered at [<08012b09>] from [<08012b69>] > ---[ end Kernel panic - not syncing: Attempted to kill init! > exitcode=0x00000100 ]--- > > The STM32F429 has no MMU, and uClibc's standard malloc() implementation > returns NULL for allocations performed during early init on this > target, > causing init to abort immediately. > > Fix this by switching to MALLOC_SIMPLE, a plain mmap-based allocator > meant for small/noMMU systems, via a uClibc config fragment. The > fragment is placed under board/stmicroelectronics/common/stm32f4xx/, > rather than under the board-specific directory, so that it can be > shared with the STM32F469, another Cortex-M4/noMMU board affected by > the same issue, which will be fixed in a subsequent patch. For info, the issue may have been introduced by uclibc commit: https://github.com/wbx-github/uclibc-ng/commit/487af14988c3c923aa661f204642597cff356a83 There is an upstream fix, not released yet, which seems to fix the issue: https://github.com/wbx-github/uclibc-ng/commit/7730f0d05a51cd89a7123bd696e4638c3c035d7b You could possibly drop this malloc config change after the next uclibc bump. > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> In the meantime, I applied this series to master, thanks. > --- > .../stmicroelectronics/common/stm32f4xx/uclibc-fragment.config | 2 ++ > configs/stm32f429_disco_xip_defconfig | 1 + > 2 files changed, 3 insertions(+) > create mode 100644 > board/stmicroelectronics/common/stm32f4xx/uclibc-fragment.config > > diff --git > a/board/stmicroelectronics/common/stm32f4xx/uclibc-fragment.config > b/board/stmicroelectronics/common/stm32f4xx/uclibc-fragment.config > new file mode 100644 > index 000000000000..fb8fa9ee01c3 > --- /dev/null > +++ b/board/stmicroelectronics/common/stm32f4xx/uclibc-fragment.config > @@ -0,0 +1,2 @@ > +# MALLOC is not set > +MALLOC_SIMPLE=y > diff --git a/configs/stm32f429_disco_xip_defconfig > b/configs/stm32f429_disco_xip_defconfig > index 489303b93e0d..e6edfa906177 100644 > --- a/configs/stm32f429_disco_xip_defconfig > +++ b/configs/stm32f429_disco_xip_defconfig > @@ -1,6 +1,7 @@ > BR2_arm=y > BR2_cortex_m4=y > BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_1=y > +BR2_UCLIBC_CONFIG_FRAGMENT_FILES="board/stmicroelectronics/common/stm32f4xx/uclibc-fragment.config" > # BR2_UCLIBC_INSTALL_UTILS is not set > BR2_ENABLE_LTO=y > > BR2_GLOBAL_PATCH_DIR="board/stmicroelectronics/stm32f429-disco/patches" > -- > 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.
diff --git a/board/stmicroelectronics/common/stm32f4xx/uclibc-fragment.config b/board/stmicroelectronics/common/stm32f4xx/uclibc-fragment.config new file mode 100644 index 000000000000..fb8fa9ee01c3 --- /dev/null +++ b/board/stmicroelectronics/common/stm32f4xx/uclibc-fragment.config @@ -0,0 +1,2 @@ +# MALLOC is not set +MALLOC_SIMPLE=y diff --git a/configs/stm32f429_disco_xip_defconfig b/configs/stm32f429_disco_xip_defconfig index 489303b93e0d..e6edfa906177 100644 --- a/configs/stm32f429_disco_xip_defconfig +++ b/configs/stm32f429_disco_xip_defconfig @@ -1,6 +1,7 @@ BR2_arm=y BR2_cortex_m4=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_1=y +BR2_UCLIBC_CONFIG_FRAGMENT_FILES="board/stmicroelectronics/common/stm32f4xx/uclibc-fragment.config" # BR2_UCLIBC_INSTALL_UTILS is not set BR2_ENABLE_LTO=y BR2_GLOBAL_PATCH_DIR="board/stmicroelectronics/stm32f429-disco/patches"