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; Tue, 03 Mar 2026 14:12:36 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f187.google.com (mail-lj1-f187.google.com [209.85.208.187]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 623DCZw9005473 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 3 Mar 2026 14:12:35 +0100 Received: by mail-lj1-f187.google.com with SMTP id 38308e7fff4ca-389f0d519f9sf38056211fa.0 for ; Tue, 03 Mar 2026 05:12:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1772543550; cv=pass; d=google.com; s=arc-20240605; b=S+Gov3xadfjv5uhKDaYSdNOPQ+ghxMDaiBAOz6XlfgeV2TR2EYy63PhE//FPBrLKRa FguuzXDKE5K1VgBHiUQtm4jgzoLR/77Kw7da9lsDaaKaYlP7xUwU0Xu1gHigfVnKKcLk VuhBuo73LrpULhbk18bp0DT7ugYir4mdKxTq6FNKKdK6Sgnhg6se3S2hBg448E7O6C/B jlC0NOvFStRnd/sGziUpeUup2gqY8CZGKWCA7kEaapuyq1gWKb5ZI+Ox0VS1QirrniFg RHIMOQSryl19d7Of9+wxO1QS0je2+jV8RELkIp+q3hOD4laLRGnrvWud2TfXRkeDtngP JxEw== 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:content-transfer-encoding :in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:sender:dkim-signature; bh=rJNbV+y9Y9TCqRJl3kRDmswBE3NJ2/VnwzGKoDdoj5o=; fh=zIrvyOOQq7xzfBHN0VEcs8XJ3TejslTE0ODB7JodV04=; b=AqKyqX56h4n1TSkgK6cWvPvJvr9VyICpEYiZi1hKRds6wkFmwZr/EppFNKMKgh2I6C 3jGWrx+yD6xZaV3D78UYKm9Ab8d4FwXbpcTZOgIy14LHe5qQem7Zjqsf/8fKcSeRtBtK MiWw7j+/Qjq8+JZ6ie8IFWNdJPD6CTpdslmeQj0EI4sWBPGjDiq/ikVETvPeaOWL1l+M lPdCdfZh+AG7hLf263DmjO2RC9dnFGMm8ZNDPE9GLHEV5ardjt/DwRaxz1zKqkiHNhOK ODw6KzJ64Uh7cg68Y8Lz/wgVnW9S5bEwnoGt5gUMMBZvAKOPrQfVeux8anQmjgM0MtRQ ml9w==; 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=20230601; t=1772543550; x=1773148350; 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:content-transfer-encoding:in-reply-to:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=rJNbV+y9Y9TCqRJl3kRDmswBE3NJ2/VnwzGKoDdoj5o=; b=p1zZzo8QBGO8ZjZB+SZBqQKhmNdw71Kfr5YlLbr0kQUaT8t6HQ3eo19BjKfXfEfLQW O1hRtJumqcVa45tRIfl6PgDW6jzI7jZXhod5O2QtmdaQEScTHBlTBmu1j8PrdDovyEzT jfGSkmHRjsm3O0bJFxurmtmdiSz2NXevT0PF4MB6/JbOE7EsEZKSsowUF/ycmYOmi/fw 5LafR7y43FC/PBCJCLgEt0EXfwIG0v3EwZJnC9woFlVuJcPMURaSJ89SriJBCipNeHOm YlPV6yPJf13QgeXm+A7OC/gTBNN+ugflAUy+FsTsYeedxUTis0SSFa5fKpIBzIFAaZyf DX5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772543550; x=1773148350; 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 :content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=rJNbV+y9Y9TCqRJl3kRDmswBE3NJ2/VnwzGKoDdoj5o=; b=r2D4yhmVKK+biyy0r+AjM/nCXLSdXfae7lo1L9uYQsx25SNfH63ruIF7+9SgII+Dp3 U+3AbdJxEcvv3+96uWfgSOgfhfuf8QIrhiCehaUcFfvaiRA9E587rpUHs3sn/KI3qewu +OTkcsL0W5wzNWPNcDY6/oQdxGR6JHm0csRnBDjocDqDlzyx1/zpx74gZ6pj+am1/2zm cWXfNCzirse9uiadnwfQz7kLycaiHTWKn+KIm0BkOpsfy3X1tyE0OHzF/V4FEzsCujwp i3w1QdgFA0jPJIjouV6pdb50PoeN7Cho0iWpSvZkxNiUdrqL95VqMGx/iP8/TgN9jxKG yzFg== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCV8OWIs4os3qycxSvO+MmAFjcL3A50PQphtk/lKvDLLB69SEHfgincQq3ZalhMEKYLVy5Fm@ilbers.de X-Gm-Message-State: AOJu0YzGUueRuVaDjNMFvBBegVINOB6l9IvrT29zDBdzccEOkBZOs0j2 TaM0ooJGbF79hf0EUZQ0Sbjl2SW1PcC60vy/x2mtKsVwLZueq+ITjh4D X-Received: by 2002:a2e:be23:0:b0:386:7e61:5de1 with SMTP id 38308e7fff4ca-389ff087c9emr39341751fa.0.1772543549821; Tue, 03 Mar 2026 05:12:29 -0800 (PST) X-BeenThere: isar-users@googlegroups.com; h="AV1CL+H8Km2xsnd2Tq9glNWYiATw0Pg9tykYqnQyXsGc8MERXg==" Received: by 2002:a2e:8787:0:b0:387:a08:74a8 with SMTP id 38308e7fff4ca-389e4e3d1a1ls22627261fa.1.-pod-prod-01-eu; Tue, 03 Mar 2026 05:12:27 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUBzPBYqxXHzmzblUlbNG7+ynPrBKUh31jcXtT3k/nCzzClMSnqanAqS08u527Ob/JVCrzF+u4c2Zgu@googlegroups.com X-Received: by 2002:a2e:9b54:0:b0:389:e725:1fe9 with SMTP id 38308e7fff4ca-389ff350661mr85020101fa.19.1772543546955; Tue, 03 Mar 2026 05:12:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1772543546; cv=none; d=google.com; s=arc-20240605; b=Ru9FU7UaU9GKAvEQfVxYIZi1zVlxWyIICPEmk5Cs8N34Y7XX6v4i8td0SUiEwoSBYT Sa77URNmGYF8jmjJ8As3o6auohpgHzndUYhM4ypOOd+Nz2suvd1X9YmtDdlVvCJ8CvWy nnz+kd+knd3AKdCYhzGreN3OgRFpbDhBNSGLWMMSiOqm8wVoyaQuZIObwnioZr5tvAJJ z9HqyihAZ8wqSfhNaDBamFqJm6ulQR6zxQ3//ccCjVo8eSOWvPccmUVwSHX+i2c9/iBg RE+/5mXrZ3lqNh0TBl2KVXTgvdJaXuGK8MBInxoVBwLK0mnqLy/JboCVxS0MefF128J6 okcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id; bh=/jF6PbvvB2RbJBfskAcdvUuXV2QYge8xTHeH/RTk+Xg=; fh=jiR68nWCkWQ7iUOEmlEsa/bJiAPJR7HWc1CoiRmI2QQ=; b=PhpFo1c7jv3z3N+m515mDXUdRQ6rlcA86mg8BGDMUipg2fBwRnSeiuRi9CGZj6kVwk VxEy4z8DmACP4BLWKFrQcScgZwRDW84Tl2oHkXQv4+bNW8E2IxkfgLOgnpVScDDJ7dNc n6K8EljLD7RFOtTSizlxCOY29pssbATOb8LTWLKVCxOsMGLd1AX/G9Nc2GmCBk6/exG5 MRZrwOzMgKG81uZ30vmT5TfJ0gz3H0JIXGuy6iSkerYiaZDbaHu8qoNcNuh9jPfSvhLB uogIbo37yFCkURepCIcoOqOEnS49AcXbIXWSL2nFyGO+UnYlJkj1gjdmNLjxPTnSjjGP 2Q/g==; 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 2adb3069b0e04-5a115b5c424si191759e87.0.2026.03.03.05.12.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Mar 2026 05:12:26 -0800 (PST) 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.116] ([88.130.203.42]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 623DCOfp005468 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 3 Mar 2026 14:12:24 +0100 Message-ID: <8eb3ee5f-27f2-4c86-a546-e46074fc71c1@ilbers.de> Date: Tue, 3 Mar 2026 14:12:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] qemuarm-trixie: Workaround with missing drivers in qemuarm-trixie initramfs To: Jan Kiszka , isar-users@googlegroups.com, Quirin Gylstorff References: <20260220144259.1876444-1-wzh@ilbers.de> <6a4c8dd5-16b4-48f5-8164-ab0a28534956@siemens.com> <42fb7bd5-985d-4cf0-8c37-6fa93aa6df5c@ilbers.de> <79032cb0-c5e8-478b-8b99-84bd95195ab1@siemens.com> Content-Language: en-US From: Zhihang Wei In-Reply-To: <79032cb0-c5e8-478b-8b99-84bd95195ab1@siemens.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable 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: s0Kv222nMq4u On 2/20/26 17:43, Jan Kiszka wrote: > On 20.02.26 16:55, Zhihang Wei wrote: >> >> On 2/20/26 16:36, Jan Kiszka wrote: >>> On 20.02.26 15:42, Zhihang Wei wrote: >>>> This is a workaround to fix the current qemuarm-trixie image unbootabl= e >>>> issue. >>>> >>>> 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, required modules such as virtio_blk are not detected and not >>>> added to the initramfs. The produced image then fails to boot under >>>> qemu because the block device driver is missing. >>>> >>>> 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=3D23960 >>>> [2] https://bugs-devel.debian.org/cgi-bin/bugreport.cgi?bug=3D1079443 >>>> >>>> Signed-off-by: Zhihang Wei >>>> --- >>>> Changes in v2: >>>> - Use initramfs-hook to install the driver, instead of adding another >>>> =C2=A0=C2=A0 variable >>>> >>>> =C2=A0 meta-isar/conf/multiconfig/qemuarm-trixie.conf=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 4 +++- >>>> =C2=A0 .../initramfs-virtio-blk-hook_0.1.bb=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 | 8 ++++++++ >>>> =C2=A0 2 files changed, 11 insertions(+), 1 deletion(-) >>>> =C2=A0 create mode 100644 meta/recipes-initramfs/initramfs-virtio-blk= - >>>> hook/initramfs-virtio-blk-hook_0.1.bb >>>> >>>> diff --git a/meta-isar/conf/multiconfig/qemuarm-trixie.conf b/meta- >>>> isar/conf/multiconfig/qemuarm-trixie.conf >>>> index 5600ab23..20eecd92 100644 >>>> --- a/meta-isar/conf/multiconfig/qemuarm-trixie.conf >>>> +++ b/meta-isar/conf/multiconfig/qemuarm-trixie.conf >>>> @@ -1,7 +1,9 @@ >>>> =C2=A0 # This software is a part of Isar. >>>> -# Copyright (C) 2024 ilbers GmbH >>>> +# Copyright (C) 2024-2026 ilbers GmbH >>>> =C2=A0 # >>>> =C2=A0 # SPDX-License-Identifier: MIT >>>> =C2=A0 =C2=A0 MACHINE ?=3D "qemuarm" >>>> =C2=A0 DISTRO ?=3D "debian-trixie" >>>> + >>>> +IMAGE_INSTALL +=3D "initramfs-virtio-blk-hook" >>> This covers the initramfs-tools based generation. What if someone >>> enables dracut (kas/opt/dracut.yaml)? >> A pure dracut generated initramfs for qemuarm-trixie cannot boot. It >> surprisingly has virtio_blk, but still not bootable. Need to find the >> reason. >> >> Actually, there should be more drivers installed into initramfs by >> initramfs-tools, but they are now missing due to the same bug. Adding >> virtio-blk just makes this initramfs-tools generated initramfs >> "minimally" bootable. My guess is that the dracut generated initramfs >> is missing some other necessary drivers. > initramfs and "necessary" drivers is tricky for us. Normally, those are > probed on the machine that will use the initramfs afterwards, but that > does not work with Isar. With trixie, some unconditionally installed > modules were dropped, and that already caused extra efforts downstream > (unless you are on Debian kernels, it's often best to simply compile > them in). > > But maybe there is more involved with plain dracut, and Quirin has some > idea. Any update on this issue? I checked the pure dracut-generated initramfs for qemuarm-trixie. It is missing virtio_mmio, so it cannot boot. Since it is the low-level dracut call, "dracut-install", which introduced this bug, both dracut-based and initramfs-tools-based initramfs generation are affected. Also, some targets (bananapi, nanopi-neo) cannot boot with trixie. It seems their initramfs images are missing mmc drivers. I'll check if I can extend this hook to allow them to boot as well. Nevertheless, I would like to apply this patch as soon as possible. It would be an example workaround until the upstream glibc/qemu issue is resolved. I will also document the motivation in the hook recipe. Zhihang --=20 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 e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/= 8eb3ee5f-27f2-4c86-a546-e46074fc71c1%40ilbers.de.