All of lore.kernel.org
 help / color / mirror / Atom feed
* Running iwd on Linux 4.9: iwd shows adapter but no device
@ 2021-01-27 14:34 Manuel Wagesreither
  2021-01-27 14:47 ` Alvin =?unknown-8bit?q?=C5=A0ipraga?=
  0 siblings, 1 reply; 3+ messages in thread
From: Manuel Wagesreither @ 2021-01-27 14:34 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 3277 bytes --]

Hello all,

we're working on NVidia Jetson TX2-based product. [1] It run's a Yocto-based distribution with meta-tegra as BSP layer. [2] meta-tegra is based on the official nvidia-provided BSP called L4T (Linux for Tegra), which is available for Ubuntu only. It uses Linux kernel 4.9.

For improved roaming, we would like to replace wpa_supplicant with iwd.

We know full iwd support is only given at Linux kernel 4.20+, but we hoped we can get it working with a reduced feature set on our existing 4.9. That is, we don't need infrastructure or enterprise mode, WPA-PSK is enough for now.

iwd 1.9 can find an adapter, but it doesn't find (or create?) a device.

```
root(a)jetson-tx2:~# iwctl device list
                                    Devices                                    
--------------------------------------------------------------------------------
  Name                Address             Powered   Adapter   Mode      
--------------------------------------------------------------------------------

root(a)jetson-tx2:~# iwctl adapter list
                                    Adapters                                   
--------------------------------------------------------------------------------
  Name               Powered   Vendor              Model               
--------------------------------------------------------------------------------
  phy0               on        Broadcom Corp.BCM4354 WLAN card
```

When I have the systemd unit invoke `iwd` with the `-d` option, the following gets printed on my kernel log:
```
[76240.009468] couldn't register the net device [wlan0], err -17
```

The systemd journal contains the following:
```
Jan 27 14:19:57 jetson-tx2 iwd[29796]: ../git/src/manager.c:manager_wiphy_dump_callback() New wiphy phy0 added (0)
Jan 27 14:19:57 jetson-tx2 iwd[29796]: Wiphy: 0, Name: phy0
Jan 27 14:19:57 jetson-tx2 iwd[29796]:         Permanent Address: 00:00:00:00:00:00
Jan 27 14:19:57 jetson-tx2 iwd[29796]:         Bands: 2.4 GHz 5 GHz
Jan 27 14:19:57 jetson-tx2 iwd[29796]:         Ciphers: CCMP TKIP BIP
Jan 27 14:19:57 jetson-tx2 iwd[29796]:         Supported iftypes: ad-hoc station ap p2p-client p2p-go p2p-device
Jan 27 14:19:57 jetson-tx2 iwd[29796]: rfkill id 2 can't be matched to a wiphy
Jan 27 14:19:57 jetson-tx2 systemd[1]: Started Wireless service.
Jan 27 14:19:57 jetson-tx2 iwd[29796]: ../git/src/manager.c:manager_interface_dump_callback()
Jan 27 14:19:57 jetson-tx2 iwd[29796]: ../git/src/manager.c:manager_get_interface_cb()
Jan 27 14:19:57 jetson-tx2 iwd[29796]: ../git/src/wiphy.c:wiphy_update_reg_domain() New reg domain country code for (global) is 00
Jan 27 14:19:57 jetson-tx2 iwd[29796]: ../git/src/manager.c:manager_del_interface_cb()
Jan 27 14:19:57 jetson-tx2 iwd[29796]: ../git/src/manager.c:manager_create_interfaces() creating wlan0
Jan 27 14:19:57 jetson-tx2 iwd[29796]: ../git/src/manager.c:manager_new_station_interface_cb()
Jan 27 14:19:57 jetson-tx2 iwd[29796]: NEW_INTERFACE failed: No such device
```

Are we totally out of luck with kernel 4.9? As said, WPA-PSK would currently be enough for us.

Thank you!
Regards,
Manuel

[1] https://developer.nvidia.com/EMBEDDED/jetson-tx2
[2] https://github.com/OE4T/meta-tegra

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Running iwd on Linux 4.9: iwd shows adapter but no device
  2021-01-27 14:34 Running iwd on Linux 4.9: iwd shows adapter but no device Manuel Wagesreither
@ 2021-01-27 14:47 ` Alvin =?unknown-8bit?q?=C5=A0ipraga?=
  2021-01-27 17:00   ` Manuel Wagesreither
  0 siblings, 1 reply; 3+ messages in thread
From: Alvin =?unknown-8bit?q?=C5=A0ipraga?= @ 2021-01-27 14:47 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 4604 bytes --]

Hi Manuel,

By default iwd wants to create and destroy interfaces on the phy, but 
our driver is probably brcmfmac, which doesn't allow this with its 
"primary" interface wlan0.

Have you tried running iwd with UseDefaultInterface=true in 
/etc/iwd/main.conf, or adding --interfaces wlan0 to the iwd command?

Kind regards,
Alvin

On 1/27/21 3:34 PM, Manuel Wagesreither wrote:
> Hello all,
> 
> we're working on NVidia Jetson TX2-based product. [1] It run's a Yocto-based distribution with meta-tegra as BSP layer. [2] meta-tegra is based on the official nvidia-provided BSP called L4T (Linux for Tegra), which is available for Ubuntu only. It uses Linux kernel 4.9.
> 
> For improved roaming, we would like to replace wpa_supplicant with iwd.
> 
> We know full iwd support is only given at Linux kernel 4.20+, but we hoped we can get it working with a reduced feature set on our existing 4.9. That is, we don't need infrastructure or enterprise mode, WPA-PSK is enough for now.
> 
> iwd 1.9 can find an adapter, but it doesn't find (or create?) a device.
> 
> ```
> root(a)jetson-tx2:~# iwctl device list
>                                      Devices
> --------------------------------------------------------------------------------
>    Name                Address             Powered   Adapter   Mode
> --------------------------------------------------------------------------------
> 
> root(a)jetson-tx2:~# iwctl adapter list
>                                      Adapters
> --------------------------------------------------------------------------------
>    Name               Powered   Vendor              Model
> --------------------------------------------------------------------------------
>    phy0               on        Broadcom Corp.BCM4354 WLAN card
> ```
> 
> When I have the systemd unit invoke `iwd` with the `-d` option, the following gets printed on my kernel log:
> ```
> [76240.009468] couldn't register the net device [wlan0], err -17
> ```
> 
> The systemd journal contains the following:
> ```
> Jan 27 14:19:57 jetson-tx2 iwd[29796]: ../git/src/manager.c:manager_wiphy_dump_callback() New wiphy phy0 added (0)
> Jan 27 14:19:57 jetson-tx2 iwd[29796]: Wiphy: 0, Name: phy0
> Jan 27 14:19:57 jetson-tx2 iwd[29796]:         Permanent Address: 00:00:00:00:00:00
> Jan 27 14:19:57 jetson-tx2 iwd[29796]:         Bands: 2.4 GHz 5 GHz
> Jan 27 14:19:57 jetson-tx2 iwd[29796]:         Ciphers: CCMP TKIP BIP
> Jan 27 14:19:57 jetson-tx2 iwd[29796]:         Supported iftypes: ad-hoc station ap p2p-client p2p-go p2p-device
> Jan 27 14:19:57 jetson-tx2 iwd[29796]: rfkill id 2 can't be matched to a wiphy
> Jan 27 14:19:57 jetson-tx2 systemd[1]: Started Wireless service.
> Jan 27 14:19:57 jetson-tx2 iwd[29796]: ../git/src/manager.c:manager_interface_dump_callback()
> Jan 27 14:19:57 jetson-tx2 iwd[29796]: ../git/src/manager.c:manager_get_interface_cb()
> Jan 27 14:19:57 jetson-tx2 iwd[29796]: ../git/src/wiphy.c:wiphy_update_reg_domain() New reg domain country code for (global) is 00
> Jan 27 14:19:57 jetson-tx2 iwd[29796]: ../git/src/manager.c:manager_del_interface_cb()
> Jan 27 14:19:57 jetson-tx2 iwd[29796]: ../git/src/manager.c:manager_create_interfaces() creating wlan0
> Jan 27 14:19:57 jetson-tx2 iwd[29796]: ../git/src/manager.c:manager_new_station_interface_cb()
> Jan 27 14:19:57 jetson-tx2 iwd[29796]: NEW_INTERFACE failed: No such device
> ```
> 
> Are we totally out of luck with kernel 4.9? As said, WPA-PSK would currently be enough for us.
> 
> Thank you!
> Regards,
> Manuel
> 
> [1] https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdeveloper.nvidia.com%2FEMBEDDED%2Fjetson-tx2&data=04%7C01%7Calsi%40bang-olufsen.dk%7Cef85740e143b4a25e5de08d8c2d0ae19%7C210d08b883f7470abc96381193ca14a1%7C0%7C0%7C637473549419874118%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=9EImyhpl1JFLEtE3fLuFbGtuhnQo%2FENR%2BHMBl2vYiLY%3D&reserved=0
> [2] https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FOE4T%2Fmeta-tegra&data=04%7C01%7Calsi%40bang-olufsen.dk%7Cef85740e143b4a25e5de08d8c2d0ae19%7C210d08b883f7470abc96381193ca14a1%7C0%7C0%7C637473549419874118%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=mKpwuF4dfnNzttoj%2BNCNbGQfYF3hYpHJSFrN5w55zrs%3D&reserved=0
> _______________________________________________
> iwd mailing list -- iwd(a)lists.01.org
> To unsubscribe send an email to iwd-leave(a)lists.01.org
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Running iwd on Linux 4.9: iwd shows adapter but no device
  2021-01-27 14:47 ` Alvin =?unknown-8bit?q?=C5=A0ipraga?=
@ 2021-01-27 17:00   ` Manuel Wagesreither
  0 siblings, 0 replies; 3+ messages in thread
From: Manuel Wagesreither @ 2021-01-27 17:00 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 5599 bytes --]

Hi Alvin,

what shall I say, your hint worked like a charm!

I can now connect to my access point just fine. Thank you a lot!

If someone happens to find this through some search engine, here's some more info I picked up, partly on irc://freenode/#iwd:

* When iwd is invoked with '--interfaces wlan0', then UseDefaultInterface is set automatically
* The driver my system is using ("bcmsdh_sdmmc") has the same issue as the "brcmfmac" mainline driver, which, because of its issues, got set onto a blacklist. Then these --interfaces/UseDefaultInterface settings should not be necessary. But because my "bcmsdh_sdmmc" driver seems to be an out-of-tree one and goes by a different, the blacklist didn't apply.

Again, thank you a lot, Alvin!

Have a nice day everyone.
Manuel


Am Mi, 27. Jan 2021, um 15:47, schrieb Alvin Šipraga:
> Hi Manuel,
> 
> By default iwd wants to create and destroy interfaces on the phy, but 
> our driver is probably brcmfmac, which doesn't allow this with its 
> "primary" interface wlan0.
> 
> Have you tried running iwd with UseDefaultInterface=true in 
> /etc/iwd/main.conf, or adding --interfaces wlan0 to the iwd command?
> 
> Kind regards,
> Alvin
> 
> On 1/27/21 3:34 PM, Manuel Wagesreither wrote:
> > Hello all,
> > 
> > we're working on NVidia Jetson TX2-based product. [1] It run's a Yocto-based distribution with meta-tegra as BSP layer. [2] meta-tegra is based on the official nvidia-provided BSP called L4T (Linux for Tegra), which is available for Ubuntu only. It uses Linux kernel 4.9.
> > 
> > For improved roaming, we would like to replace wpa_supplicant with iwd.
> > 
> > We know full iwd support is only given at Linux kernel 4.20+, but we hoped we can get it working with a reduced feature set on our existing 4.9. That is, we don't need infrastructure or enterprise mode, WPA-PSK is enough for now.
> > 
> > iwd 1.9 can find an adapter, but it doesn't find (or create?) a device.
> > 
> > ```
> > root(a)jetson-tx2:~# iwctl device list
> >                                      Devices
> > --------------------------------------------------------------------------------
> >    Name                Address             Powered   Adapter   Mode
> > --------------------------------------------------------------------------------
> > 
> > root(a)jetson-tx2:~# iwctl adapter list
> >                                      Adapters
> > --------------------------------------------------------------------------------
> >    Name               Powered   Vendor              Model
> > --------------------------------------------------------------------------------
> >    phy0               on        Broadcom Corp.BCM4354 WLAN card
> > ```
> > 
> > When I have the systemd unit invoke `iwd` with the `-d` option, the following gets printed on my kernel log:
> > ```
> > [76240.009468] couldn't register the net device [wlan0], err -17
> > ```
> > 
> > The systemd journal contains the following:
> > ```
> > Jan 27 14:19:57 jetson-tx2 iwd[29796]: ../git/src/manager.c:manager_wiphy_dump_callback() New wiphy phy0 added (0)
> > Jan 27 14:19:57 jetson-tx2 iwd[29796]: Wiphy: 0, Name: phy0
> > Jan 27 14:19:57 jetson-tx2 iwd[29796]:         Permanent Address: 00:00:00:00:00:00
> > Jan 27 14:19:57 jetson-tx2 iwd[29796]:         Bands: 2.4 GHz 5 GHz
> > Jan 27 14:19:57 jetson-tx2 iwd[29796]:         Ciphers: CCMP TKIP BIP
> > Jan 27 14:19:57 jetson-tx2 iwd[29796]:         Supported iftypes: ad-hoc station ap p2p-client p2p-go p2p-device
> > Jan 27 14:19:57 jetson-tx2 iwd[29796]: rfkill id 2 can't be matched to a wiphy
> > Jan 27 14:19:57 jetson-tx2 systemd[1]: Started Wireless service.
> > Jan 27 14:19:57 jetson-tx2 iwd[29796]: ../git/src/manager.c:manager_interface_dump_callback()
> > Jan 27 14:19:57 jetson-tx2 iwd[29796]: ../git/src/manager.c:manager_get_interface_cb()
> > Jan 27 14:19:57 jetson-tx2 iwd[29796]: ../git/src/wiphy.c:wiphy_update_reg_domain() New reg domain country code for (global) is 00
> > Jan 27 14:19:57 jetson-tx2 iwd[29796]: ../git/src/manager.c:manager_del_interface_cb()
> > Jan 27 14:19:57 jetson-tx2 iwd[29796]: ../git/src/manager.c:manager_create_interfaces() creating wlan0
> > Jan 27 14:19:57 jetson-tx2 iwd[29796]: ../git/src/manager.c:manager_new_station_interface_cb()
> > Jan 27 14:19:57 jetson-tx2 iwd[29796]: NEW_INTERFACE failed: No such device
> > ```
> > 
> > Are we totally out of luck with kernel 4.9? As said, WPA-PSK would currently be enough for us.
> > 
> > Thank you!
> > Regards,
> > Manuel
> > 
> > [1] https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdeveloper.nvidia.com%2FEMBEDDED%2Fjetson-tx2&data=04%7C01%7Calsi%40bang-olufsen.dk%7Cef85740e143b4a25e5de08d8c2d0ae19%7C210d08b883f7470abc96381193ca14a1%7C0%7C0%7C637473549419874118%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=9EImyhpl1JFLEtE3fLuFbGtuhnQo%2FENR%2BHMBl2vYiLY%3D&reserved=0
> > [2] https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FOE4T%2Fmeta-tegra&data=04%7C01%7Calsi%40bang-olufsen.dk%7Cef85740e143b4a25e5de08d8c2d0ae19%7C210d08b883f7470abc96381193ca14a1%7C0%7C0%7C637473549419874118%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=mKpwuF4dfnNzttoj%2BNCNbGQfYF3hYpHJSFrN5w55zrs%3D&reserved=0
> > _______________________________________________
> > iwd mailing list -- iwd(a)lists.01.org
> > To unsubscribe send an email to iwd-leave(a)lists.01.org
> >

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-27 17:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-27 14:34 Running iwd on Linux 4.9: iwd shows adapter but no device Manuel Wagesreither
2021-01-27 14:47 ` Alvin =?unknown-8bit?q?=C5=A0ipraga?=
2021-01-27 17:00   ` Manuel Wagesreither

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.