From nobody Thu Oct 20 10:27:34 2022 X-Original-To: current@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 4MtP1Q2gxKz4gRsD for ; Thu, 20 Oct 2022 10:27:38 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MtP1Q29Prz3VWL; Thu, 20 Oct 2022 10:27:38 +0000 (UTC) (envelope-from avg@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666261658; 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=ZO6qwOEIVP0eoRh+dH7ud4qw9Q6SfOMRgS0nzBwG228=; b=d1hIq+iEGMG1vgQ+YpGciZnYKlXynVqMQwLOAJAXv3o8ZjjtryYeLQU0t86awVaYuhwf9l /Fz7lIKbImJE8CcRd05RSWaYW2X4DVhISVA3n4GMqxvp4iBBp+7mkxJYBgAzedvkHGNmhT qQoMcCh8Yj9JX9DqWftuu7rxF6ntnzenKDpQgWqTBi6rGy8D4Z+LKRny8Ls6oSsGe5Y4yE rmBnN+fSK23wsmhO/+BUAZS1eZnw6ZznRlOY49XDrtPjOR/83kK8/Nhk8CiiIKoMKu4W3z 2XOgYOZ4I51mndIK4iJjHlyG+MVskIa852Xp1XWF+Y4T9x4nuXhfphvsA6fPQg== Received: from [192.168.0.88] (unknown [195.64.148.76]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: avg/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4MtP1P4mTLzTbN; Thu, 20 Oct 2022 10:27:37 +0000 (UTC) (envelope-from avg@freebsd.org) Message-ID: <02e51d32-7585-9a0e-ec41-6f9b198ce625@FreeBSD.org> Date: Thu, 20 Oct 2022 13:27:34 +0300 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.4.0 From: Andriy Gapon Subject: Re: loader.efi module path vs kernel directory Content-Language: en-US To: Toomas Soome , Emmanuel Vadot Cc: FreeBSD Current References: <20221020120809.f3a21c9a5c33a2ba440ddc01@bidouilliste.com> <31145ADA-5932-4858-B3F8-E21CA3F0721B@me.com> In-Reply-To: <31145ADA-5932-4858-B3F8-E21CA3F0721B@me.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666261658; 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=ZO6qwOEIVP0eoRh+dH7ud4qw9Q6SfOMRgS0nzBwG228=; b=GtPlZcVCB3ccENu9I+oOPUmj61rPwX1X1qjti0lgyu0OlBPUlRfJYkLGUps7kLAj+WvR5z BqaegPudD8roUCAYySiLzNfKWDwaiT4TAaqRRpeGmlcitf9EfgR1yMykciobwE04Xbn33z LXCvN1+sw74sB5MPIiG/e6yUE45/X4WPn+fmsuEJ9Vb7OYKBiVEw1O7J/+Qr0mTd2/jLUr FSWkj/YtXQzcPxOQ/xyP8FIB7jZzTc9VIRylBamhiTWgn041Ft3Pw2gJWmbjexty121xNB TCdPiRmqLhfTvb5rxuQvHrxoZWxygLdYguLglnyEGsJe1QEdKV8J8plZqA6MgQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666261658; a=rsa-sha256; cv=none; b=OsW1XwwETPZ9/pjYWFuLT4tr1KO0uE4JVqbEImyowqai1EG50+vF7G1aWWLy7/M9xWx8aN lQ/gAutH6VCes8i+4ibvazbbvZfamhhVxKIvzscRdWfTKsIiN8yU/5Rq6Jy7OiP+N1pUVm P3wreJcGbGADDh3aEQcrHCEDX5ui+V33sWgJZp+jf380BjtU6XZTbUquApL/GMieqm8fLT ob3ag/y+421DzkJwZ9VuHQXSA7PQmu35/mvYTbIC0KujmdcIcRcjyOi7oSfyiakAPD8im2 rbCPsXQdXXBRw675XkNsbtHH27nL3i165uyR7HRtDeyT6AotYMcmRjQ9lYEI1A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 20/10/2022 13:20, Toomas Soome wrote: > Also, instead of manual load, you may want to use enable-module. Emmanuel, Toomas, thank you very much for the suggestions. It seems like my installation may be messed up or outdated somehow, see below (and sorry about those ^M-s). I do not seem to have boot-conf or *-module commands. I checked that the EFI partition has exactly the same loader.efi as in /boot, but maybe some other files (configuration?) are outdated. Also, forgot to mention, this is with stable/13, not main / current. OK ?^M Available commands:^M copy_staging copy staging^M staging_slop set staging slop^M efi-autoresizeconEFI Auto-resize Console^M gop graphics output protocol^M uga universal graphics adapter^M efi-seed-entropy try to get entropy from the EFI RNG^M poweroff power off the system^M reboot reboot the system^M quit exit the loader^M memmap print memory map^M configuration print configuration tables^M mode change or display EFI text modes^M lsefi list EFI handles^M chain chain load file^M netserver change or display netserver URI^M loadfont load console font from file^M grab_faults grab faults^M ungrab_faults ungrab faults^M fault generate fault^M boot boot a file or loaded kernel^M autoboot boot automatically after a delay^M help detailed help^M ? list commands^M show show variable(s)^M set set a variable^M unset unset a variable^M echo echo arguments^M read read input from the terminal^M more show contents of a file^M lsdev list all devices^M readtest Time a file read^M include read commands from a file^M ls list files^M load load a kernel or module^M unload unload all modules^M lsmod list loaded modules^M pnpmatch list matched modules based on pnpinfo^M pnpload load matched modules based on pnpinfo^M pnpautoload auto load modules based on pnpinfo^M nvstore manage non-volatile data^M map-vdisk map file as virtual disk^M unmap-vdisk unmap virtual disk^M bcachestat get disk block cache stats^M lszfs list child datasets of a zfs dataset^M reloadbe refresh the list of ZFS Boot Environments^M efi-show print some or all EFI variables^M efi-set set EFI variables^M efi-unset delete / unset EFI variables^M > > Sent from my iPhone > >> On 20. Oct 2022, at 13:08, Emmanuel Vadot wrote: >> >> On Thu, 20 Oct 2022 13:03:26 +0300 >> Andriy Gapon wrote: >> >>> >>> I recently needed to recover a system by manually preloading a driver. >>> To a bit of surprise, simple 'load $modname' did not work, I had to use 'load >>> /boot/kernel/$modname.ko'. I didn't have to do this in a long time, but I >>> recall that the short command used to work. Additionally, required modules also >>> failed to get loaded automatically because loader couldn't find them. >>> >>> I am not sure what the issue is. Is it that /boot/kernel is not in module path >>> (as per /boot/defaults/loader.conf) ? Or is it that /boot/kernel does not get >>> added to the *effective* module path? >>> >>> Thanks! >>> -- >>> Andriy Gapon >>> >> >> if you escape to prompt directly loader didn't loaded all it's config >> so there is no modulepath defined, you need to 'boot-conf' to load the >> configuration files. >> >> Cheers, >> >> -- >> Emmanuel Vadot >> -- Andriy Gapon