From nobody Thu Nov 14 11:27:07 2024 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XpyY94mvkz5cX7r for ; Thu, 14 Nov 2024 11:27:09 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XpyY93tNDz49L4; Thu, 14 Nov 2024 11:27:09 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731583629; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vvV1gSXktJVKpN/M8TrcsmUnY0iPX+dKIUUhHpBp4HE=; b=rPZgmC+mt2rTESsfOqdavcQOEAyQcRTZzgPIA7T5zfWfNsaeFBiCwGpb0iV5H+aDTfsBVX qnJUeVgnBZmts7IwwE7eWfSWqRd2iXaLrV8KeI/HkZAWk34/90tEW43atEMuQmFIRvQDye ouDxBeq+rWezjbw1DGVv/27uIHMR65iwFVg2BchpgvBp1VjxO0j9ZLm/qTrMdu5gNLdMRN 286EuOtNLV5g4Am9VmLhvbRgk55DNnK1OnFQMLispOLz4qoLzmGKGl/XCXtkg+2HJF8/sB NtrUU2ZSDQZoGef10wokDuUI2/oUy5XMx1b/sDGoUjFOkWHEiQYtHCRgDXOojA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731583629; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vvV1gSXktJVKpN/M8TrcsmUnY0iPX+dKIUUhHpBp4HE=; b=fP6cxEw6mo7Mqsdy/7L6hd/4xptTbGTgjObqwtwikQb3q6YKqewryN2VH20NV+xiRVj6co G5v1M5wMIpY0xlS5Rg9oS3clj1++/8RLEpFQ87fLxmSGRku0b8N7+24WtKopxgNJhS0I/H OTJeEZ8G+6vuQ3phR8TrivjZRn7NviBsC7ZlvhgUJHcZBnBiry7t5DhQqMchsJlKZxH/xe E5WUMWXnIAw+JIsMqs/uxdr1nDAqH5U0j+fvfsn27VmY2zpQwU6a6Vj/2K/qTS/NpNGQrJ u9iZ3NZJmmvy32I+F4U9S6UAUPGsU0R5dxyTGOUVNtG1pQw/EtP7oltWI6oG5Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731583629; a=rsa-sha256; cv=none; b=b2ZBSFfUPm3UswOXLMYfyzm0tophbHnPHKgjrE80nfaa3oUZE6DkJAuRJHIGypOINeD5Qn 1WbR6E7FYhjIhB9mYbuL7ebXt3XHmkUxarI5fPWuNGjQVmo0AHeLSVaFBrljCUneGMn4Xg gT+XPUmweZBogROQe3YBO8+eKxImnz5VuQCpinmJhxNpNpkedEqD/qnuOJ/qvD2Xz8+RpG 7qtcCCiYuzUgH/8LuCEA5vgS9NXmR+U0zO7PaOtY1cVLvXz5ZUmPsuZPOea0ElWED5+Tz2 e98XauIp9a92Y7u6ZYlXPPrV6xzwFU1MU0YPdu6LDTwnRludib/ylo/KrE6APA== Received: from ltc.des.dev (88-177-82-251.subs.proxad.net [88.177.82.251]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XpyY92mSVzfJ0; Thu, 14 Nov 2024 11:27:09 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id 4B5E68DB8; Thu, 14 Nov 2024 12:27:07 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Zahemszky =?utf-8?Q?G=C3=A1bor?= Cc: Freebsd Stable Subject: Re: Error report on FreeBSD-14.2-BETA2 - kernel modul problem In-Reply-To: <4308c3074bce47a5befabfe2bf0d6023@zahemszky.hu> ("Zahemszky =?utf-8?Q?G=C3=A1bor=22's?= message of "Tue, 12 Nov 2024 19:20:26 +0100") References: <4308c3074bce47a5befabfe2bf0d6023@zahemszky.hu> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Thu, 14 Nov 2024 12:27:07 +0100 Message-ID: <861pzet5ro.fsf@ltc.des.dev> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Zahemszky G=C3=A1bor writes: > # kldload gpiospi > > kldload: can't load gpiospi: module already loaded or in kernel > > It's not true: "kldstat -v | fgrep -A 5 gpio" doesn't show it. > > But on the console > > =3D=3D=3D > KLD gpiospi.ko: depends on gpiospi - not available or version mismatch > =3D=3D=3D > > gpiospi depends on gpiospi ???? The file gpiospi.ko contains multiple modules, one of which is gpiospi: DRIVER_MODULE(gpiospi, gpiobus, gpio_spi_driver, gpio_spi_devclass, 0, 0); DRIVER_MODULE(spibus, gpiospi, spibus_driver, spibus_devclass, 0, 0); It also appears to declare dependencies for modules it does not contain: MODULE_DEPEND(spi, gpiospi, 1, 1, 1); MODULE_DEPEND(gpiobus, gpiospi, 1, 1, 1); I believe the intention was that gpiospi depends on spibus and gpiobus, but what it actually says is that spi (which does not exist) and gpiobus depend on gpiospi. If you change those two lines to the following, the module will load: MODULE_DEPEND(gpiospi, spibus, 1, 1, 1); MODULE_DEPEND(gpiospi, gpiobus, 1, 1, 1); I have no idea if it will work, though. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org