Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Mar 2022 17:01:28 -0700
From:      Kevin Oberman <rkoberman@gmail.com>
To:        "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Cc:        Stefan Blachmann <sblachmann@gmail.com>, FreeBSD User <freebsd@walstatt-de.de>,  FreeBSD Wireless <freebsd-wireless@freebsd.org>
Subject:   Re: iwlwifi: i7260 does not load firmware properly/wifi not working
Message-ID:  <CAN6yY1sK6Tqb4b1S4wx5PDOwH3ttd96Z%2BoJBBz5pgOTNt3dZDQ@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.00.2203211824060.68830@ai.fobar.qr>
References:  <20220321141121.32088ecc@hermann> <alpine.BSF.2.00.2203211704410.68830@ai.fobar.qr> <CACc-My0ff9me=F4CC8kewyhdBpRpE1yOt7W_LG7WbF5V-2qauw@mail.gmail.com> <alpine.BSF.2.00.2203211824060.68830@ai.fobar.qr>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000059236505dac353cd
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Mon, Mar 21, 2022 at 11:34 AM Bjoern A. Zeeb <
bzeeb-lists@lists.zabbadoz.net> wrote:

> On Mon, 21 Mar 2022, Stefan Blachmann wrote:
>
> > @"FreeBSDUser" maybe try with the iwm driver instead of the iwlwifi one=
?
>
> I understood that iwm with lagg wasn't working well either for
> "FreeBSD User" or did I misread this?
>
>
> > It works fine for me. The only thing is the firmware loading thing:
> > it does not work for me when I set in /boot/loader.conf
> >    iwmfw_load=3D"YES"
> > which for some reason causes error messages about firmware not found.
> > However, explicitly specifying
> >    iwmXXXXfw_load=3D"YES"
> > works just fine.
> >
> > @Bj=C3=B6rn, is this normal (mistake on my side), or could it be consid=
ered a
> bug?
>
> "iwmfw" is a catch-all to compile all iwm firmare into the kernel.
>
> As both man iwm and man iwmfw state (ot my memory) you have to load the
> individual firmware from loader directly if they are not compiled into th=
e
> kernel (either indidivdually or by catch-all);  there is no catch-all
> module.
> We could add that but that would just load a lot of blobs into memory we
> don't need.
>
> In general I'd suggest to not load any WiFi drivers from loader
> anymore these days (that's a relict of old times).  At least move to
> kld_list=3D".." in rc.conf if the drivers do not properly support
> auto-loading yet.  It's way faster to load the driver that way rather
> than from loader.
>
> I would hope that in the longer-term we get away from loading
> non-essential drivers from loader (or compiling them into GENERIC) given =
we
> have way better facilities these days (faster and more flexible).  One of
> the reasons iwlwifi cannot even be compiled into the kernel anymore;  jus=
t
> don't want to start it at all anymore unless someone knows a good reason =
it
> is needed in the kernel before we go multi-user (*).
>
> /bz
>
> (*) One is securelevels but that hasn't come up yet...
>
> --
> Bjoern A. Zeeb                                                     r15:7


This looks like the issue I have and I boot to single-user until the fix is
committed.and enter:
#kldlload iwlwifi
#exit

So far, this works flawlessly, though it is annoying. It's a race between
the driver loading and the interface starting (or, more accurately,
creating the wlan interface.

The scan issue remains and continues to bite me every couple of days. This
gets "fixed" with "service netif restart wlan0". On occasion, the restart
fails to work repeatedly and a need to reboot. I might have gotten it to
work by reloading the driver, but at least most of the time the kldunload
panics the system and that leaves a bit of a mess to clean up, so I am now
rebooting.

--=20
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683

--00000000000059236505dac353cd
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:tahoma,sans-serif;font-size:small">On Mon, Mar 21, 2022 at 11:34 A=
M Bjoern A. Zeeb &lt;<a href=3D"mailto:bzeeb-lists@lists.zabbadoz.net">bzee=
b-lists@lists.zabbadoz.net</a>&gt; wrote:<br></div></div><div class=3D"gmai=
l_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8e=
x;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, 21 Mar 2=
022, Stefan Blachmann wrote:<br>
<br>
&gt; @&quot;FreeBSDUser&quot; maybe try with the iwm driver instead of the =
iwlwifi one?<br>
<br>
I understood that iwm with lagg wasn&#39;t working well either for<br>
&quot;FreeBSD User&quot; or did I misread this?<br>
<br>
<br>
&gt; It works fine for me. The only thing is the firmware loading thing:<br=
>
&gt; it does not work for me when I set in /boot/loader.conf<br>
&gt;=C2=A0 =C2=A0 iwmfw_load=3D&quot;YES&quot;<br>
&gt; which for some reason causes error messages about firmware not found.<=
br>
&gt; However, explicitly specifying<br>
&gt;=C2=A0 =C2=A0 iwmXXXXfw_load=3D&quot;YES&quot;<br>
&gt; works just fine.<br>
&gt;<br>
&gt; @Bj=C3=B6rn, is this normal (mistake on my side), or could it be consi=
dered a bug?<br>
<br>
&quot;iwmfw&quot; is a catch-all to compile all iwm firmare into the kernel=
.<br>
<br>
As both man iwm and man iwmfw state (ot my memory) you have to load the<br>
individual firmware from loader directly if they are not compiled into the<=
br>
kernel (either indidivdually or by catch-all);=C2=A0 there is no catch-all =
module.<br>
We could add that but that would just load a lot of blobs into memory we<br=
>
don&#39;t need.<br>
<br>
In general I&#39;d suggest to not load any WiFi drivers from loader<br>
anymore these days (that&#39;s a relict of old times).=C2=A0 At least move =
to<br>
kld_list=3D&quot;..&quot; in rc.conf if the drivers do not properly support=
<br>
auto-loading yet.=C2=A0 It&#39;s way faster to load the driver that way rat=
her<br>
than from loader.<br>
<br>
I would hope that in the longer-term we get away from loading<br>
non-essential drivers from loader (or compiling them into GENERIC) given we=
<br>
have way better facilities these days (faster and more flexible).=C2=A0 One=
 of<br>
the reasons iwlwifi cannot even be compiled into the kernel anymore;=C2=A0 =
just<br>
don&#39;t want to start it at all anymore unless someone knows a good reaso=
n it<br>
is needed in the kernel before we go multi-user (*).<br>
<br>
/bz<br>
<br>
(*) One is securelevels but that hasn&#39;t come up yet...<br>
<br>
-- <br>
Bjoern A. Zeeb=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 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0r15:7</blockquote><d=
iv>=C2=A0</div></div><div style=3D"font-family:tahoma,sans-serif;font-size:=
small" class=3D"gmail_default">This looks like the issue I have and I boot =
to single-user until the fix is committed.and enter:</div><div style=3D"fon=
t-family:tahoma,sans-serif;font-size:small" class=3D"gmail_default">#kldllo=
ad iwlwifi</div><div style=3D"font-family:tahoma,sans-serif;font-size:small=
" class=3D"gmail_default">#exit</div><div style=3D"font-family:tahoma,sans-=
serif;font-size:small" class=3D"gmail_default"><br></div><div style=3D"font=
-family:tahoma,sans-serif;font-size:small" class=3D"gmail_default">So far, =
this works flawlessly, though it is annoying. It&#39;s a race between the d=
river loading and the interface starting (or, more accurately, creating the=
 wlan interface.</div><div style=3D"font-family:tahoma,sans-serif;font-size=
:small" class=3D"gmail_default"><br></div><div style=3D"font-family:tahoma,=
sans-serif;font-size:small" class=3D"gmail_default">The scan issue remains =
and continues to bite me every couple of days. This gets &quot;fixed&quot; =
with &quot;service netif restart wlan0&quot;. On occasion, the restart fail=
s to work repeatedly and a need to reboot. I might have gotten it to work b=
y reloading the driver, but at least most of the time the kldunload panics =
the system and that leaves a bit of a mess to clean up, so I am now rebooti=
ng.<br></div><br>-- <br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=
=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr">=
Kevin Oberman, Part time kid herder and retired Network Engineer<br>E-mail:=
 <a href=3D"mailto:rkoberman@gmail.com" target=3D"_blank">rkoberman@gmail.c=
om</a><br></div><div>PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055=
683</div></div></div></div></div></div></div></div></div>

--00000000000059236505dac353cd--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1sK6Tqb4b1S4wx5PDOwH3ttd96Z%2BoJBBz5pgOTNt3dZDQ>