Skip to contentSkip to conversation

How to create connman_1.40.bbappend to enable and to build connman with iwd?

DISCUSSION Jupiter 4 participants 6 messages Nov 26, 2021 – Dec 19, 2021 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Jupiter

author
#1 lore raw

Hi,

Given the high profile of iwd and advocating connman with iwd, I believe someone have already built Yocto connman and iwd, surprisingly, I could not even find an iwd recipe in
https://github.com/openembedded/openembedded/tree/master/recipes, nor can I find connman document and instructions to replace wpa_supplicant by iwd, what could I be missing here?

Appreciate your kind advice.

Thank you.

Kind regards,

- jh

Quoted 17 lines · JH via lists.yoctoproject.org

Hi,

Please correct me, but it seems to me the connman is moving to a direction to ditch out wpa_supplicant and to use iwd, but the Honister still configure connman with wpa_supplicant by default, appreciate your advice:

- Is connman with iwd stable enough?

- How can I create a connman_1.40.bbappend to replace wpa_supplicant by iwd configure?

- Where are the documents for configuring and building connman with iwd? Where is the operational guidance to run connman with iwd? Can I use the same connman dbus APIs or are there any dbus API changes to run connman with iwd?

Quoted 8 lines

My apology for FAQs.

Thank you very much.

Kind regards,

- JH

--
"A man can fail many times, but he isn't a failure until he begins to blame somebody else."
-- John Burroughs

#2 lore raw
Quoted 9 lines · JH

Hi,

Given the high profile of iwd and advocating connman with iwd, I believe someone have already built Yocto connman and iwd, surprisingly, I could not even find an iwd recipe in
https://github.com/openembedded/openembedded/tree/master/recipes, nor can I find connman document and instructions to replace wpa_supplicant by iwd, what could I be missing here?

Please look at the layer index for recipes:
https://layers.openembedded.org/layerindex/branch/master/layers/

I don’t have any advice for building it however.

Quoted 54 lines

Appreciate your kind advice.

Thank you.

Kind regards,

- jh

Quoted 17 lines · JH via lists.yoctoproject.org

Hi,

Please correct me, but it seems to me the connman is moving to a direction to ditch out wpa_supplicant and to use iwd, but the Honister still configure connman with wpa_supplicant by default, appreciate your advice:

- Is connman with iwd stable enough?

- How can I create a connman_1.40.bbappend to replace wpa_supplicant by iwd configure?

- Where are the documents for configuring and building connman with iwd? Where is the operational guidance to run connman with iwd? Can I use the same connman dbus APIs or are there any dbus API changes to run connman with iwd?

Quoted 8 lines

My apology for FAQs.

Thank you very much.

Kind regards,

- JH

--
"A man can fail many times, but he isn't a failure until he begins to blame somebody else."
-- John Burroughs

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#158824):
https://lists.openembedded.org/g/openembedded-core/message/158824
Mute This Topic: https://lists.openembedded.org/mt/87314752/924729
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 14 lines · Tim Orling via lists.yoctoproject.org
Quoted 9 lines · JH

Hi,

Given the high profile of iwd and advocating connman with iwd, I believe someone have already built Yocto connman and iwd, surprisingly, I could not even find an iwd recipe in
https://github.com/openembedded/openembedded/tree/master/recipes, nor can I find connman document and instructions to replace wpa_supplicant by iwd, what could I be missing here?

Quoted 5 lines

Please look at the layer index for recipes:
https://layers.openembedded.org/layerindex/branch/master/layers/

I don’t have any advice for building it however.

I forgot to include the recipe link:
https://layers.openembedded.org/layerindex/recipe/89268/

Quoted 58 lines
Quoted 35 lines

Appreciate your kind advice.

Thank you.

Kind regards,

- jh

Quoted 23 lines · JH via lists.yoctoproject.org

Hi,

Please correct me, but it seems to me the connman is moving to a direction to ditch out wpa_supplicant and to use iwd, but the Honister still configure connman with wpa_supplicant by default, appreciate your advice:

- Is connman with iwd stable enough?

- How can I create a connman_1.40.bbappend to replace wpa_supplicant by iwd configure?

- Where are the documents for configuring and building connman with iwd? Where is the operational guidance to run connman with iwd? Can I use the same connman dbus APIs or are there any dbus API changes to run connman with iwd?

My apology for FAQs.

Thank you very much.

Kind regards,

Quoted 12 lines
Quoted 2 lines

- JH

--
"A man can fail many times, but he isn't a failure until he begins to blame somebody else."
-- John Burroughs

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#55430):
https://lists.yoctoproject.org/g/yocto/message/55430
Mute This Topic: https://lists.yoctoproject.org/mt/87331141/924729
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#5 lore raw

Thanks Tim for the link, I have built the iwd.

According to Daniel's advice to configure with "--disable-wifi, --enable-iwd", I added PACKAGECONFIG[wifi] = "--disable-wifi, --enable-iwd", to override PACKAGECONFIG[wifi] in oe-core connman_1.40.bb. The intention is to remove wpa-supplicant and to add iwd to connman_1.40.bbappend, it built the image without error, I believe that the syntax is OK, but the wpa-supplicant was still built and packaged. Any idea from OE/Yocto insiders why PACKAGECONFIG[wifi] in bbappend is not effective?

Daniel, how can I verify in the Linux console if the connmand is running with iwd or with wpa_supplicant? I have disabled wpa_supplicant.service, and I'll remove wpa_supplicant completely when I find a way to do it.

Thank you.

Kind regards,

- jh

Quoted 17 lines · Tim Orling
Quoted 14 lines · Tim Orling via lists.yoctoproject.org
Quoted 9 lines · JH

Hi,

Given the high profile of iwd and advocating connman with iwd, I believe someone have already built Yocto connman and iwd, surprisingly, I could not even find an iwd recipe in
https://github.com/openembedded/openembedded/tree/master/recipes, nor can I find connman document and instructions to replace wpa_supplicant by iwd, what could I be missing here?

Quoted 69 lines
Quoted 5 lines

Please look at the layer index for recipes:
https://layers.openembedded.org/layerindex/branch/master/layers/

I don’t have any advice for building it however.

I forgot to include the recipe link:
https://layers.openembedded.org/layerindex/recipe/89268/

Quoted 58 lines
Quoted 35 lines

Appreciate your kind advice.

Thank you.

Kind regards,

- jh

Quoted 23 lines · JH via lists.yoctoproject.org

Hi,

Please correct me, but it seems to me the connman is moving to a direction to ditch out wpa_supplicant and to use iwd, but the Honister still configure connman with wpa_supplicant by default, appreciate your advice:

- Is connman with iwd stable enough?

- How can I create a connman_1.40.bbappend to replace wpa_supplicant by iwd configure?

- Where are the documents for configuring and building connman with iwd? Where is the operational guidance to run connman with iwd? Can I use the same connman dbus APIs or are there any dbus API changes to run connman with iwd?

My apology for FAQs.

Thank you very much.

Kind regards,

Quoted 12 lines
Quoted 2 lines

- JH

--
"A man can fail many times, but he isn't a failure until he begins to blame somebody else."
-- John Burroughs

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#55430):
https://lists.yoctoproject.org/g/yocto/message/55430
Mute This Topic: https://lists.yoctoproject.org/mt/87331141/924729
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
"A man can fail many times, but he isn't a failure until he begins to blame somebody else."
-- John Burroughs

#6 lore raw

Hi,

i tried this a while ago and for me the iwd.service failed to start.

Manually executing /usr/libexec/iwd from terminal told me, that

my Kernel config was missing a bunch of CONFIG_CRYPTO_ entries

enabled. After rebuilding the kernel the iwd service started properly

and iwd was basically set up for connman. But to my knowledge

even upstream connman is not able to scan wifi with iwd. That is

quite a showstopper. You cant completely remove wpa-supplicant

because you would still need it to set up your network. So this is not

ready for productive use i'd say.

Am 27.11.21 um 06:50 schrieb JH:

Quoted 107 lines

Thanks Tim for the link, I have built the iwd.

According to Daniel's advice to configure with "--disable-wifi, --enable-iwd", I added PACKAGECONFIG[wifi] = "--disable-wifi, --enable-iwd", to override PACKAGECONFIG[wifi] in oe-core connman_1.40.bb. The intention is to remove wpa-supplicant and to add iwd to connman_1.40.bbappend, it built the image without error, I believe that the syntax is OK, but the wpa-supplicant was still built and packaged. Any idea from OE/Yocto insiders why PACKAGECONFIG[wifi] in bbappend is not effective?

Daniel, how can I verify in the Linux console if the connmand is running with iwd or with wpa_supplicant? I have disabled wpa_supplicant.service, and I'll remove wpa_supplicant completely when I find a way to do it.

Thank you.

Kind regards,

- jh

Quoted 15 lines · Tim Orling
Quoted 12 lines · Tim Orling via lists.yoctoproject.org
Quoted 9 lines · JH

Hi,

Given the high profile of iwd and advocating connman with iwd, I believe someone have already built Yocto connman and iwd, surprisingly, I could not even find an iwd recipe in
https://github.com/openembedded/openembedded/tree/master/recipes, nor can I find connman document and instructions to replace wpa_supplicant by iwd, what could I be missing here?

Quoted 56 lines
Quoted 5 lines

Please look at the layer index for recipes:
https://layers.openembedded.org/layerindex/branch/master/layers/

I don’t have any advice for building it however.

I forgot to include the recipe link:
https://layers.openembedded.org/layerindex/recipe/89268/

Quoted 47 lines
Quoted 45 lines

Appreciate your kind advice.

Thank you.

Kind regards,

- jh

Quoted 17 lines · JH via lists.yoctoproject.org

Hi,

Please correct me, but it seems to me the connman is moving to a direction to ditch out wpa_supplicant and to use iwd, but the Honister still configure connman with wpa_supplicant by default, appreciate your advice:

- Is connman with iwd stable enough?

- How can I create a connman_1.40.bbappend to replace wpa_supplicant by iwd configure?

- Where are the documents for configuring and building connman with iwd? Where is the operational guidance to run connman with iwd? Can I use the same connman dbus APIs or are there any dbus API changes to run connman with iwd?

Quoted 8 lines

My apology for FAQs.

Thank you very much.

Kind regards,

- JH

--
"A man can fail many times, but he isn't a failure until he begins to blame somebody else."
-- John Burroughs

--
"A man can fail many times, but he isn't a failure until he begins to blame somebody else."
-- John Burroughs

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#158847): https://lists.openembedded.org/g/openembedded-core/message/158847
Mute This Topic: https://lists.openembedded.org/mt/87331164/3618223
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#7 lore raw
In reply to Jupiter
Quoted 4 lines · Jupiter

Daniel, how can I verify in the Linux console if the connmand is running with iwd or with wpa_supplicant? I have disabled wpa_supplicant.service, and I'll remove wpa_supplicant completely when I find a way to do it.

ConnMan will only show the WiFi technology when the wpa_supplicant or iwd is running the background. So it's pretty simple, if iwd is running and ConnMan knows about WiFi, things are setup correctly.