Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
On 07/12/2018 21:15, Yuri wrote: On 07/12/18 13:38, Pete Wright wrote: sorry if i missed something (don't see details in the bug report) - is the issue that the run(4) kernel module is not being loaded? is there an error when the system attempts to load the kernel module in the dmesg buffer? if it is not being loaded automagically what happens when you manually load the module via "kldload" or by updating rc.conf? No errors while the kernel module is loaded. The problem is that when the card is inserted wlan0 isn't automatically created. It also isn't created during boot with the card in. I think that there were some changes in devd that caused this regression. interesting, i ran into an issue with a kernel/world i updated to on thursday where my USB mouse was non-functional and i suspect something funky happened with devd as well. one suggestion i heard was to enable devmatch which i haven't had a chance to test yet. throwing it out there as it may help you. cheers, -pete -- Pete Wright p...@nomadlogic.org @nomadlogicLA ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
Yuri Pankov wrote: Yuri wrote: On 07/03/18 12:45, Yuri wrote: I updated the laptop to r335884 last night, and 'service wpa_supplicant start wlan0' doesn't succeed any more. kernel is supposed to create the network interface 'run0', but it doesn't. This is the immediate reason why wpa_supplicant fails. The non-creation of 'run0' is a regression. I don't know of any workaround. The steps 'mergemaster -p' and 'mergemaster' were done during the upgrade, so /etc is updated. Bug report for this problem: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229738 This is a very serious regression breaking WiFi. It's likely the switch from using usb.conf to devmatch.conf (see r329148). I can confirm the problem, inserting the ralink usb wifi dongle doesn't do anything (I'm not using it anymore so I didn't notice the problem), though the action in devmatch.conf is executed, so it might be the problem somewhere below in devmatch(8). And looks like it's fixed in r335763 (for me, at least). ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
Yuri wrote: On 07/03/18 12:45, Yuri wrote: I updated the laptop to r335884 last night, and 'service wpa_supplicant start wlan0' doesn't succeed any more. kernel is supposed to create the network interface 'run0', but it doesn't. This is the immediate reason why wpa_supplicant fails. The non-creation of 'run0' is a regression. I don't know of any workaround. The steps 'mergemaster -p' and 'mergemaster' were done during the upgrade, so /etc is updated. Bug report for this problem: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229738 This is a very serious regression breaking WiFi. It's likely the switch from using usb.conf to devmatch.conf (see r329148). I can confirm the problem, inserting the ralink usb wifi dongle doesn't do anything (I'm not using it anymore so I didn't notice the problem), though the action in devmatch.conf is executed, so it might be the problem somewhere below in devmatch(8). ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
On 07/12/18 13:38, Pete Wright wrote: sorry if i missed something (don't see details in the bug report) - is the issue that the run(4) kernel module is not being loaded? is there an error when the system attempts to load the kernel module in the dmesg buffer? if it is not being loaded automagically what happens when you manually load the module via "kldload" or by updating rc.conf? No errors while the kernel module is loaded. The problem is that when the card is inserted wlan0 isn't automatically created. It also isn't created during boot with the card in. I think that there were some changes in devd that caused this regression. Yuri ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
On 07/12/2018 12:25, Yuri wrote: On 07/03/18 12:45, Yuri wrote: I updated the laptop to r335884 last night, and 'service wpa_supplicant start wlan0' doesn't succeed any more. kernel is supposed to create the network interface 'run0', but it doesn't. This is the immediate reason why wpa_supplicant fails. The non-creation of 'run0' is a regression. I don't know of any workaround. The steps 'mergemaster -p' and 'mergemaster' were done during the upgrade, so /etc is updated. Bug report for this problem: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229738 This is a very serious regression breaking WiFi. sorry if i missed something (don't see details in the bug report) - is the issue that the run(4) kernel module is not being loaded? is there an error when the system attempts to load the kernel module in the dmesg buffer? if it is not being loaded automagically what happens when you manually load the module via "kldload" or by updating rc.conf? -pete -- Pete Wright p...@nomadlogic.org @nomadlogicLA ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
On 07/03/18 12:45, Yuri wrote: I updated the laptop to r335884 last night, and 'service wpa_supplicant start wlan0' doesn't succeed any more. kernel is supposed to create the network interface 'run0', but it doesn't. This is the immediate reason why wpa_supplicant fails. The non-creation of 'run0' is a regression. I don't know of any workaround. The steps 'mergemaster -p' and 'mergemaster' were done during the upgrade, so /etc is updated. Bug report for this problem: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229738 This is a very serious regression breaking WiFi. Yuri ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
On Wed, Jul 4, 2018 at 12:17 PM, Warner Losh wrote: > > > On Wed, Jul 4, 2018, 2:13 PM Kevin Oberman wrote: > >> On Wed, Jul 4, 2018 at 11:49 AM, Yuri wrote: >> >> > On 07/04/18 07:27, Rodney W. Grimes wrote: >> > >> >> Devd/devmatch is one of the largest changes recently, >> >> it could be something in that code path. >> >> >> >> Do you get the if_run.ko module loaded? What does kldstat show >> >> immediately after boot and before you try to "fix" anything with >> >> ifconfig. >> >> >> >> >> >> It definitely did create the run0 interface before, and now it doesn't. >> >>> >> >> I wonder if the kernel module is no longer loading... >> >> >> > >> > >> > if_run.ko isn't loaded after boot. But I think it is supposed to be >> loaded >> > by devd too. >> > >> > >> > Yuri >> > >> >> A quick perusal of /etc/devd.conf does not indicate that devd will load >> the >> driver. It is possible that I missed something, but "run" i only >> referenced >> as a part of long regex to stop or start pccard-ether. >> > > Look at etc/devd/devmatch.conf > > Warner > Oops! That's why I said "quick perusal". (On my 11.2-STABLE system, it's in /etc/devd/usb.conf) I don't have a system HEAD running here ATM. Thanks! -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkober...@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
On Wed, Jul 4, 2018 at 12:06 PM, Yuri wrote: > On 07/04/18 12:00, Rodney W. Grimes wrote: > >> Just for fun to see if this can clear up your issue add >> if_run_load="YES" >> to /boot/loader.conf >> > > > This doesn't help. In the presence of preloaded if_run.ko wpa_supplicant > still can't initialize wlan0. > > > Yuri This is a shot in the dark, but I have a possibly similar issue with my Intel 6205 (iwn) card. It appears that thee is a race involving the timing of the iwn (wlan0) coming up and the start of the wpa_supplicant. I see the interface start, and aesociate but immediately go down. dhclient starts, but fails. If I kill the interface (service netif stop wlan0) and manually start it (ifconfig wlan0 up), it comes up fine. I can then start the wpa_supplicant and dhclient to get it working. From this point, it remains stable. If I just let it bounce up and down, it usually will eventually come up, but it can take some time and, on occasion it simply fails to some up unless I intervene. wlans_iwn0="wlan0" ifconfig_wlan0="WPA SYNCDHCP" -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkober...@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
On Wed, Jul 4, 2018, 2:13 PM Kevin Oberman wrote: > On Wed, Jul 4, 2018 at 11:49 AM, Yuri wrote: > > > On 07/04/18 07:27, Rodney W. Grimes wrote: > > > >> Devd/devmatch is one of the largest changes recently, > >> it could be something in that code path. > >> > >> Do you get the if_run.ko module loaded? What does kldstat show > >> immediately after boot and before you try to "fix" anything with > >> ifconfig. > >> > >> > >> It definitely did create the run0 interface before, and now it doesn't. > >>> > >> I wonder if the kernel module is no longer loading... > >> > > > > > > if_run.ko isn't loaded after boot. But I think it is supposed to be > loaded > > by devd too. > > > > > > Yuri > > > > A quick perusal of /etc/devd.conf does not indicate that devd will load the > driver. It is possible that I missed something, but "run" i only referenced > as a part of long regex to stop or start pccard-ether. > Look at etc/devd/devmatch.conf Warner -- > Kevin Oberman, Part time kid herder and retired Network Engineer > E-mail: rkober...@gmail.com > PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 > ___ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org" > ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
On Wed, Jul 4, 2018 at 11:49 AM, Yuri wrote: > On 07/04/18 07:27, Rodney W. Grimes wrote: > >> Devd/devmatch is one of the largest changes recently, >> it could be something in that code path. >> >> Do you get the if_run.ko module loaded? What does kldstat show >> immediately after boot and before you try to "fix" anything with >> ifconfig. >> >> >> It definitely did create the run0 interface before, and now it doesn't. >>> >> I wonder if the kernel module is no longer loading... >> > > > if_run.ko isn't loaded after boot. But I think it is supposed to be loaded > by devd too. > > > Yuri > A quick perusal of /etc/devd.conf does not indicate that devd will load the driver. It is possible that I missed something, but "run" i only referenced as a part of long regex to stop or start pccard-ether. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkober...@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
On 07/04/18 12:00, Rodney W. Grimes wrote: Just for fun to see if this can clear up your issue add if_run_load="YES" to /boot/loader.conf This doesn't help. In the presence of preloaded if_run.ko wpa_supplicant still can't initialize wlan0. Yuri ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
> On 07/04/18 07:27, Rodney W. Grimes wrote: > > Devd/devmatch is one of the largest changes recently, > > it could be something in that code path. > > > > Do you get the if_run.ko module loaded? What does kldstat show > > immediately after boot and before you try to "fix" anything with > > ifconfig. > > > > > >> It definitely did create the run0 interface before, and now it doesn't. > > I wonder if the kernel module is no longer loading... > > > if_run.ko isn't loaded after boot. But I think it is supposed to be > loaded by devd too. Just for fun to see if this can clear up your issue add if_run_load="YES" to /boot/loader.conf -- Rod Grimes rgri...@freebsd.org ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
On 07/04/18 07:27, Rodney W. Grimes wrote: Devd/devmatch is one of the largest changes recently, it could be something in that code path. Do you get the if_run.ko module loaded? What does kldstat show immediately after boot and before you try to "fix" anything with ifconfig. It definitely did create the run0 interface before, and now it doesn't. I wonder if the kernel module is no longer loading... if_run.ko isn't loaded after boot. But I think it is supposed to be loaded by devd too. Yuri ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
[ Charset UTF-8 unsupported, converting... ] > On 07/03/18 18:13, Rodney W. Grimes wrote: > > Do you get the same failure condition if you use the > > wpa_supplicant from the base system? > > > Same failure with the base wpa_supplicant. > > Creating wlan0 by hand helps, but this should happen automatically. > restarting devd service also helps. > > > I think wlan0 creation happens before wpa_supplicant due to the > instruction 'wlans_run0="wlan0"'. > > Something changed in /etc/network.subr or /etc/rc.d/netif or in devd or > its configuration. Devd/devmatch is one of the largest changes recently, it could be something in that code path. Do you get the if_run.ko module loaded? What does kldstat show immediately after boot and before you try to "fix" anything with ifconfig. > It definitely did create the run0 interface before, and now it doesn't. I wonder if the kernel module is no longer loading... -- Rod Grimes rgri...@freebsd.org ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
On 07/03/18 18:13, Rodney W. Grimes wrote: Do you get the same failure condition if you use the wpa_supplicant from the base system? Same failure with the base wpa_supplicant. Creating wlan0 by hand helps, but this should happen automatically. restarting devd service also helps. I think wlan0 creation happens before wpa_supplicant due to the instruction 'wlans_run0="wlan0"'. Something changed in /etc/network.subr or /etc/rc.d/netif or in devd or its configuration. It definitely did create the run0 interface before, and now it doesn't. Yuri ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
[ Charset UTF-8 unsupported, converting... ] > On 07/03/18 15:29, Rodney W. Grimes wrote: > >>> wpa_supplicant_program="/usr/local/sbin/wpa_supplicant" > > ^^ > > > > What wpa_supplicant is this? > > The normal system one lives in /sbin. > > It's installed by the package wpa_supplicant-2.6_2 from > security/wpa_supplicant. > It is supposed to be the most recent version of the same project where > system wpa_supplicant comes from. Do you get the same failure condition if you use the wpa_supplicant from the base system? -- Rod Grimes rgri...@freebsd.org ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
On 07/03/18 15:29, Rodney W. Grimes wrote: wpa_supplicant_program="/usr/local/sbin/wpa_supplicant" ^^ What wpa_supplicant is this? The normal system one lives in /sbin. It's installed by the package wpa_supplicant-2.6_2 from security/wpa_supplicant. It is supposed to be the most recent version of the same project where system wpa_supplicant comes from. Yuri ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
> On 07/03/18 14:32, Yuri wrote: > > > > > > rc.conf has: > > > > wlans_iwn0="wlan0" > > > > ifconfig_wlan0="WPA DHCP" > > > > wpa_supplicant_enable="YES" > > > > wpa_supplicant_program="/usr/local/sbin/wpa_supplicant" ^^ What wpa_supplicant is this? The normal system one lives in /sbin. > > This got mixed up. > > rc.conf has: > > wlans_run0="wlan0" > ifconfig_wlan0="WPA SYNCDHCP" > wpa_supplicant_enable="YES" > wpa_supplicant_program="/usr/local/sbin/wpa_supplicant" > > > Yuri > > > ___ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org" > -- Rod Grimes rgri...@freebsd.org ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
On 07/03/18 14:32, Yuri wrote: rc.conf has: wlans_iwn0="wlan0" ifconfig_wlan0="WPA DHCP" wpa_supplicant_enable="YES" wpa_supplicant_program="/usr/local/sbin/wpa_supplicant" This got mixed up. rc.conf has: wlans_run0="wlan0" ifconfig_wlan0="WPA SYNCDHCP" wpa_supplicant_enable="YES" wpa_supplicant_program="/usr/local/sbin/wpa_supplicant" Yuri ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
On 07/03/18 13:54, Sean Bruno wrote: Yuri: If you're still having trouble, dump your rc.conf entries for your wireless. Mine looks like this at the moment with iwn(4): wlans_iwn0="wlan0" ifconfig_wlan0="WPA DHCP" seam Thank you, Sean! rc.conf has: wlans_iwn0="wlan0" ifconfig_wlan0="WPA DHCP" wpa_supplicant_enable="YES" wpa_supplicant_program="/usr/local/sbin/wpa_supplicant" This worked before, and the only thing that has changed is that the system was updated. The interface run0 exists. After I run this command manually: ifconfig wlan0 create wlandev run0 wpa_supplicant works. But before this happened automatically, now it doesn't happen, and wpa_supplicant just fails. Something in the system update affected the interoperability with wpa_supplicant. Yuri ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
On 07/03/18 13:53, Yuri wrote: > On 07/03/18 12:50, Lev Serebryakov wrote: >> No, it isn't. >> >> >> https://lists.freebsd.org/pipermail/freebsd-wireless/2016-October/007232.html >> >> >> I don't know, why is it not mentioned in UPDATING:-( > > > I may be mistaken about the interface creation. > > But regardless of the cause, WiFi doesn't work any more. :-( > > > Yuri > > > ___ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org" > Yuri: If you're still having trouble, dump your rc.conf entries for your wireless. Mine looks like this at the moment with iwn(4): wlans_iwn0="wlan0" ifconfig_wlan0="WPA DHCP" seam signature.asc Description: OpenPGP digital signature
Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
On 07/03/18 12:50, Lev Serebryakov wrote: No, it isn't. https://lists.freebsd.org/pipermail/freebsd-wireless/2016-October/007232.html I don't know, why is it not mentioned in UPDATING:-( I may be mistaken about the interface creation. But regardless of the cause, WiFi doesn't work any more. :-( Yuri ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: [regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
On 03.07.2018 22:45, Yuri wrote: > I updated the laptop to r335884 last night, and 'service wpa_supplicant > start wlan0' doesn't succeed any more. > > kernel is supposed to create the network interface 'run0', but it > doesn't. This is the immediate reason why wpa_supplicant fails. > > The non-creation of 'run0' is a regression. I don't know of any workaround. No, it isn't. https://lists.freebsd.org/pipermail/freebsd-wireless/2016-October/007232.html I don't know, why is it not mentioned in UPDATING :-( -- // Lev Serebryakov signature.asc Description: OpenPGP digital signature
[regression] The USB WiFi card stopped working: if_run doesn't create the 'run0' interface any more
I updated the laptop to r335884 last night, and 'service wpa_supplicant start wlan0' doesn't succeed any more. kernel is supposed to create the network interface 'run0', but it doesn't. This is the immediate reason why wpa_supplicant fails. The non-creation of 'run0' is a regression. I don't know of any workaround. The steps 'mergemaster -p' and 'mergemaster' were done during the upgrade, so /etc is updated. Yuri ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"