From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Thu, 02 Apr 2026 18:04:45 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f60.google.com (mail-wm1-f60.google.com [209.85.128.60]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 632G4iYk024779 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 2 Apr 2026 18:04:44 +0200 Received: by mail-wm1-f60.google.com with SMTP id 5b1f17b1804b1-48531e6012bsf9820215e9.1 for ; Thu, 02 Apr 2026 09:04:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1775145879; cv=pass; d=google.com; s=arc-20240605; b=CzJFVgCdH077zldbsEn1cQ0LJvwRFyACZFoMJFBiALIjaV2gXM1n+d3xwzy51khBkw kzUKEahoRaM/efyJLsbj6wUR/fAzP5PkYHJVVLrxttb0d6LZSlIpRkIgksW+y3kv+4XT AriUp3FdJWcL+usNz4CjsMImg03MX8emHNoCiyV83dRA1tWxbaK0rf4lGXbGd5+msn6r 4H5q4OXpwj0iUhD2IK2abyqdhwbBUKajGQhWsNUvRaf1OZYvha8mGRyTGacdxjfP43Wu z5246AyzdL3h5MT/65BnGEXyricHR3RyyG+DOY7XdmwMHuW5T0k7CMeQLxZBBxuXO9DB i/Uw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:in-reply-to:content-language :references:to:subject:from:user-agent:mime-version:date:message-id :sender:dkim-signature; bh=bi0qR5ZVCy7NTodpTNxZx7I5XUoD1mT9Lf/Q5VSweWs=; fh=uzho8wLEO/IZKv0vkdxtJLvS/sQLb6GfqGCKzrshq20=; b=OAyq8iNFe4Awu96afv49wY2YyLBKcQ1KOK+d+W9A4xIG9U0LKQBcBrvf/6foJaijFI ARlYr2yEnAAvRrRiSifCD3V8nqIWhvmoE6ZERs/SCPRAM8NKQKkEHYH9H9+rMIuK1lVy 0kJTENzx3GJVwBNnaxxDpj3aY0m8meRjP01DVS8M6/j+DAKHD4lbeEPRXOisBCPMz40D +dMJmE/9P6Qce1RrthROFKoJ4FIWa/zws+hhNHWOPoTT72LTvK9aWfuJzNBYz1qDxmzM rhOSgifWFiMjgUHtp5ojeiEwuRDBvvszAPUfGkcZkjrkLqopUfPK4TMlUuRKqRWgBdFn Px6g==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20251104; t=1775145879; x=1775750679; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:in-reply-to:content-language:references:to :subject:from:user-agent:mime-version:date:message-id:sender:from:to :cc:subject:date:message-id:reply-to; bh=bi0qR5ZVCy7NTodpTNxZx7I5XUoD1mT9Lf/Q5VSweWs=; b=edJsAjgliciV4TFVBxXSg9qMknbSUVfi1c4A6A4mwS3g4Nto1aT1qyvP9hM3Llz78i gBCK2Gsz+JdgvvUZ+GZs2ch8/343CxbEcJERHHNr0K7E6I5DJvmmTQGAQt2xRXI1RhXJ DqQTmXTnm06AMjw1P+yVJ1JGxqiey7xg3oSoV9F8xWFQudYqGd2isoNP+eJdkYeeLpUH ixtHmhiZe78TzRCtClPGEM9RM992kOQuwFZe4+eNQW8KHA5AT3nnvrueg9m0J3AVCB9t 7anxIRQVk5A7szW30Kehgif8Po+ntEfCqVeD1hnwucoIAGGy2ud1CLhTH2rdrAOIIm0p Tx8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775145879; x=1775750679; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:in-reply-to :content-language:references:to:subject:from:user-agent:mime-version :date:message-id:x-beenthere:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=bi0qR5ZVCy7NTodpTNxZx7I5XUoD1mT9Lf/Q5VSweWs=; b=fL707Q5P6ae+Eu021Cs11lcOdk1bA2ATbaVcfZ14OUFa20ALQXWJEupbB3FKDc31tE BlmxngTTPZZrIY/G3Ucf6nTul6RByLDxHkwwetNrDrLGyV8vZRDySE6ScsSORMqEH5S5 VR2QP5xyuEQ6Np7u2L/VIXp/GK/1k944eu80ljFx1j6o9mfjXglHrt8CybuJ9Yi91xyw dD5CnMuLL4yjJVPLaB5bOZ+NZC+AsdK/Gr5lUJCAQPvE3ZzdtfMtEIlqkKWBwZSuJooy 2tMhnbwwJTaZqZGb4q7Ob+hIuTaHubVGJipC/er/LL1/77N6mebbyDEBy044yTDpixbg /aSQ== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCUdeK+ftXZ5L9SckdZ/RTuS+I2ByhQ6VG8MhqFCMLgl7GDs1xa8q05IpN2VOdook4wh8Npz@ilbers.de X-Gm-Message-State: AOJu0Yzu7wQ2kiYDdEPc0zghYonB0SIt+ESJ8OEOIXbG9olpbo9L04rH LXloZztpPKsyf4TOfVx/8FIJJEw6hV4O7ne3DGPsN1Mzc/O0GRDMUY4X X-Received: by 2002:a05:600c:1f11:b0:486:fd3a:fd22 with SMTP id 5b1f17b1804b1-48883568b21mr129015745e9.4.1775145879206; Thu, 02 Apr 2026 09:04:39 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="AYAyTiIqD1nrrTNKq9//PDUWEJV7t7FCtsqW8PCnRtpqTveGyQ==" Received: by 2002:a5d:6e64:0:b0:439:8f85:db06 with SMTP id ffacd0b85a97d-43d1f219463ls522598f8f.0.-pod-prod-01-eu; Thu, 02 Apr 2026 09:04:37 -0700 (PDT) X-Received: by 2002:a05:600c:4744:b0:486:fc95:1a91 with SMTP id 5b1f17b1804b1-488835881a1mr132848305e9.12.1775145877234; Thu, 02 Apr 2026 09:04:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775145877; cv=none; d=google.com; s=arc-20240605; b=S9i5QlqjBb+LQeQID3J4X2PGmUCe8TtWRkcSrdVHSMvE/N+5gYI16i/lsh/bSCjqxH +2iI5QogtsHer9pRsWQlm408fNScP2N/WLdw4swBVJa2KicK4tePBvbLBq2K54TnuN7v rV5M/Iu6X0bnsv1QmRrtLOQqCh+gUOxL9dLT16EQMg1RuW4nO1ILmwvK+TIaIFJ+WqiF y2scXTuKM23iRp24dhHSYGFhdlCFpWv8k5j0BfKVOt0uA9hYS9l1d0rLcRxnhSR4S/Jy YJqppBkPF++xRnjbopPlpJYGW1wJkV1eNsn2tEOZMC2ueDRXFdKvh8XI8fB2T24qJWP5 Ww+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:in-reply-to:content-language:references :to:subject:from:user-agent:mime-version:date:message-id; bh=BQbPBiTU+S10yurfhlttYr3+oXXmNr2ouyOf0T6xLCU=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=eBX90Se1LhMsGw8a5G41d8Cgd+YyHKbTYsFsuKEYPFYtBeu2W1S5pvjaFYSYbSE5AZ BA82IVA9MaEOISS/jaoAZcqybCG1vpo5IESiCn3/S2+FykjHScbnwYxkMHalveE6vN0X pfy0hYwvdvOujkty+jtOWC9k/r2x35TmSlbifz2k1hGhvpkqKAqRtgsCwwuXOwyE39YC J5TIuq9Qm5BPp9WUJGLuujUCzA2pj32luD7UefT5W0QBEKwCiArIdT2isPhKPk1CzHIj 0iDpiO+whEsDg4u4M5OAwH+3AUVXLvFde5QWQd4XUbNJ+jLEts+A/7BfO50XfRXhmXch iEqQ==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-4887e741255si1428655e9.0.2026.04.02.09.04.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Apr 2026 09:04:37 -0700 (PDT) Received-SPF: pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [192.168.178.148] ([88.130.203.42]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 632G4YT2024689 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 2 Apr 2026 18:04:34 +0200 Message-ID: <8ed6ae1e-55c7-40d0-ad17-643d9c1d0a56@ilbers.de> Date: Thu, 2 Apr 2026 18:04:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Zhihang Wei Subject: Re: [PATCH v4] trixie: Workaround with missing drivers in initramfs To: isar-users@googlegroups.com References: <20260305140933.1515497-1-wzh@ilbers.de> Content-Language: en-US In-Reply-To: <20260305140933.1515497-1-wzh@ilbers.de> Content-Type: text/plain; charset="UTF-8"; format=flowed X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-Original-Sender: wzh@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-TUID: 84ZGlr90boeK Applied to next. Zhihang On 3/5/26 15:09, Zhihang Wei wrote: > This is a workaround for the booting issue on several Trixie > targets, which is caused by missing drivers in their initramfs. > > Starting with Debian Trixie, update-initramfs invokes "dracut-install" > to collect and install required drivers into the generated initramfs. > "dracut-install" relies on fts_open() / fts_read() from glibc to > traverse directories and locate drivers. > > Due to a long-standing bug [1] between qemu and glibc, the fts_* > functions may fail to find files on certain 32-bit architectures. As a > result, some required modules are not detected and not added to the > initramfs. The produced image then fails to boot. > It's known that at least these targets under Trixie are affected: > - qemuarm (missing virtio_blk) > - bananapi (missing sunxi_mmc) > - nanopi-neo (missing sunxi_mmc) > > A similiar dracut bug report was filed in 2024 [2], pointing to this > upstream glibc issue reported in 2018 [1]. No upstream fix has been > applied, and the issue appears to affect only qemu builds for specific > 32-bit targets. > > As a temporary workaround, use a customized initramfs-hook to append > the neccessary drivers that are currently missed from the initramfs. > > For a complete fix, we either need to push for an upstream glibc/qemu > fix, or convince dracut to avoid using these non-POSIX fts_* functions > and use opendir() / readdir() instead. > > [1]https://sourceware.org/bugzilla/show_bug.cgi?id=23960 > [2]https://bugs-devel.debian.org/cgi-bin/bugreport.cgi?bug=1079443 > > This workaround applies only to initramfs images generated with > initramfs-tools. It does not apply to dracut-based initramfs > generation. When using dracut, drivers may also be missing due to the > same underlying issue, but the affected drivers may differ. > > Signed-off-by: Zhihang Wei > --- > Changes in v4: > - Move the hook recipe to meta-isar. > - Add notes on dracut. > > .../conf/multiconfig/bananapi-trixie.conf | 2 + > .../conf/multiconfig/nanopi-neo-trixie.conf | 2 + > .../conf/multiconfig/qemuarm-trixie.conf | 4 +- > .../initramfs-trixie-armhf-hook_0.1.bb | 63 +++++++++++++++++++ > 4 files changed, 70 insertions(+), 1 deletion(-) > create mode 100644 meta-isar/recipes-initramfs/initramfs-trixie-armhf-hook/initramfs-trixie-armhf-hook_0.1.bb > > diff --git a/meta-isar/conf/multiconfig/bananapi-trixie.conf b/meta-isar/conf/multiconfig/bananapi-trixie.conf > index 66f9db89..c2a9c667 100644 > --- a/meta-isar/conf/multiconfig/bananapi-trixie.conf > +++ b/meta-isar/conf/multiconfig/bananapi-trixie.conf > @@ -3,3 +3,5 @@ > > MACHINE ?= "bananapi" > DISTRO ?= "debian-trixie" > + > +IMAGE_INSTALL += "initramfs-trixie-armhf-hook" > diff --git a/meta-isar/conf/multiconfig/nanopi-neo-trixie.conf b/meta-isar/conf/multiconfig/nanopi-neo-trixie.conf > index 6e8f8a44..ee53e68d 100644 > --- a/meta-isar/conf/multiconfig/nanopi-neo-trixie.conf > +++ b/meta-isar/conf/multiconfig/nanopi-neo-trixie.conf > @@ -3,3 +3,5 @@ > > MACHINE ?= "nanopi-neo" > DISTRO ?= "debian-trixie" > + > +IMAGE_INSTALL += "initramfs-trixie-armhf-hook" > diff --git a/meta-isar/conf/multiconfig/qemuarm-trixie.conf b/meta-isar/conf/multiconfig/qemuarm-trixie.conf > index 5600ab23..5ec903a5 100644 > --- a/meta-isar/conf/multiconfig/qemuarm-trixie.conf > +++ b/meta-isar/conf/multiconfig/qemuarm-trixie.conf > @@ -1,7 +1,9 @@ > # This software is a part of Isar. > -# Copyright (C) 2024 ilbers GmbH > +# Copyright (C) 2024-2026 ilbers GmbH > # > # SPDX-License-Identifier: MIT > > MACHINE ?= "qemuarm" > DISTRO ?= "debian-trixie" > + > +IMAGE_INSTALL += "initramfs-trixie-armhf-hook" > diff --git a/meta-isar/recipes-initramfs/initramfs-trixie-armhf-hook/initramfs-trixie-armhf-hook_0.1.bb b/meta-isar/recipes-initramfs/initramfs-trixie-armhf-hook/initramfs-trixie-armhf-hook_0.1.bb > new file mode 100644 > index 00000000..1a8c85d9 > --- /dev/null > +++ b/meta-isar/recipes-initramfs/initramfs-trixie-armhf-hook/initramfs-trixie-armhf-hook_0.1.bb > @@ -0,0 +1,63 @@ > +# This software is a part of Isar. > +# Copyright (C) 2026 ilbers GmbH > +# > +# SPDX-License-Identifier: MIT > + > +MAINTAINER = "isar-users" > + > +inherit initramfs-hook > + > +# ----------------------------------------------------------------------------- > +# This recipe serves as an example workaround to add missing drivers to > +# the initramfs generated for Debian Trixie. The drivers are missing due > +# to an upstream bug in glibc/qemu. This issue caused booting issue on > +# several Trixie targets. > +# > +# Background: > +# > +# Starting with Debian Trixie, update-initramfs invokes "dracut-install" > +# to collect and install required drivers into the generated initramfs. > +# "dracut-install" relies on fts_open() / fts_read() from glibc to > +# traverse directories and locate drivers. > +# > +# Due to a long-standing bug [1] between qemu and glibc, the fts_* > +# functions may fail to find files on certain 32-bit architectures. As a > +# result, some required modules are not detected and not added to the > +# initramfs. The produced image then fails to boot. > +# > +# It's known that at least these targets under Trixie are affected: > +# - qemuarm (missing virtio_blk) > +# - bananapi (missing sunxi_mmc) > +# - nanopi-neo (missing sunxi_mmc) > +# > +# A similiar dracut bug report was filed in 2024 [2], pointing to this > +# upstream glibc issue reported in 2018 [1]. No upstream fix has been > +# applied, and the issue appears to affect only qemu builds for specific > +# 32-bit targets. > +# > +# [1]https://sourceware.org/bugzilla/show_bug.cgi?id=23960 > +# [2]https://bugs-devel.debian.org/cgi-bin/bugreport.cgi?bug=1079443 > +# > +# Purpose of this recipe: > +# > +# This recipe provides a temporary workaround by using a customized > +# initramfs hook to append drivers that are currently missing from > +# the initramfs, allowing the target to boot. > +# Notes for dracut users: > +# > +# This workaround applies only to initramfs images generated with > +# initramfs-tools. It does not apply to initramfs images generated > +# directly with dracut. > +# > +# When using dracut, drivers may also be missing due to the same > +# underlying glibc/qemu issue. However, the set of missing drivers > +# may differ from those observed with initramfs-tools. > +# > +# This hook recipe cannot be used together with dracut, as it requires > +# initramfs-tools to be installed, and dracut conflicts with > +# initramfs-tools. > +# ----------------------------------------------------------------------------- > + > +HOOK_ADD_MODULES:append:qemuarm:debian-trixie = "virtio-blk" > +HOOK_ADD_MODULES:append:bananapi:debian-trixie = "sunxi_mmc" > +HOOK_ADD_MODULES:append:nanopi-neo:debian-trixie = "sunxi_mmc" -- You received this message because you are subscribed to the Google Groups "isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/8ed6ae1e-55c7-40d0-ad17-643d9c1d0a56%40ilbers.de.