Index | Thread | Search

From:
Andrew Hewus Fresh <andrew@afresh1.com>
Subject:
Re: fix faq/faq4 wifi only?
To:
Job Snijders <job@openbsd.org>
Cc:
tech@openbsd.org
Date:
Mon, 23 Dec 2024 15:10:02 -0800

Download raw body.

Thread
On Mon, Dec 23, 2024 at 09:18:39PM +0000, Job Snijders wrote:
> Seems fw_update(8)'s -p option does something different than
> what's needed in this example.
> 
> how about this?

Technically, it does work this way in 7.6, I fixed the inconsistency
with -p recently and forgot about the FAQ entry.  Using `-F` without
`-p` worked the same in 7.6 and should into the future.

https://marc.info/?l=openbsd-tech&m=172912831430399&w=2

I do think the output is a bit different than the example:
(it doesn't say "add" or "update" but instead "download")

# ( cd /tmp && fw_update -Fv iwm )
Get/Verify iwm-firmware-20240410.tgz ... done.
fw_update: download iwm
#

I don't _think_ that was something I changed.

In any case, with the output fixed, this look right to me.  OK afresh1@


Almost related, jmc@ recently that if instead of adding that firmware to
the ramdisk you were instead adding it to an external drive to take to a
machine without Internet access, that detection on that remote machine
with `fw_update -p /mnti iwm` is currently broken, but my `-D dmesg`
patch, as a side effect, fixes that bug.  We are talking about some
adjustments to the manual this weekend before I commit it.

https://marc.info/?l=openbsd-tech&m=173249844114133&w=2

I am also thinking about whether I need to switch to detecting the
_version_ from the dmesg as well, since the remote machine might not be
running the same release.




> Index: faq/faq4.html
> ===================================================================
> RCS file: /cvs/www/faq/faq4.html,v
> diff -u -p -r1.559 faq4.html
> --- faq/faq4.html	7 Oct 2024 14:20:31 -0000	1.559
> +++ faq/faq4.html	23 Dec 2024 21:11:45 -0000
> @@ -507,7 +507,11 @@ This example uses firmware for an
>  # <b>vnconfig install76.img</b>
>  vnd0
>  # <b>mount /dev/vnd0a /mnt</b>
> -# <b>fw_update -Fv -p /mnt iwm</b>
> +# <b>cd /mnt</b>
> +# <b>fw_update -Fv iwm</b>
> +Get/Verify iwm-firmware-20240410.tgz ... installed.
> +fw_update: add iwm; update none
> +# <b>cd /</b>
>  # <b>umount /mnt</b>
>  # <b>vnconfig -u vnd0</b>
>  </pre>
>