Skip to contentSkip to conversation

network-manager #yocto #nmcli

DISCUSSION Zoltan Kerenyi Nagy 2 participants 5 messages Oct 20, 2020 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi All,

My board is a Barix Ipam400, and I'd like to add 4G conenction to it via a USB and 4G Dongle. The dongle is a Huewei E3372 stick.
I'd spent some time with wvdial and usbmodeswitch with no success. Then I tried the stick in my laptop with network-manager, it was working like a charm
Then I've found this ( https://github.com/openembedded/meta-openembedded/tree/master/meta-networking/recipes-connectivity/networkmanager/networkmanager ) source, since the original recipe file would not compile.

Ive bitbaked network.manager loaded to the hardware however there is no nmcli and nmtoi included.

Do you have any idea how to proceed from here? There is no gui on the target hardware and I need both the eth0 and the 4G interface preferable set via command line.

#1 lore raw

Hi,

Quoted 8 lines · Zoltan Kerenyi Nagy

Hi All,

My board is a Barix Ipam400, and I'd like to add 4G conenction to it via a USB and 4G Dongle. The dongle is a Huewei E3372 stick.
I'd spent some time with wvdial and usbmodeswitch with no success. Then I tried the stick in my laptop with network-manager, it was working like a charm
Then I've found this ( https://github.com/openembedded/meta-openembedded/tree/master/meta-networking/recipes-connectivity/networkmanager/networkmanager ) source, since the original recipe file would not compile.

Ive bitbaked network.manager loaded to the hardware however there is no nmcli and nmtoi included.

You need to bitbake networkmanager but install networkmanager-nmcli and/or networkmanager-nmtui, c.f.
http://cgit.openembedded.org/meta-openembedded/tree/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.22.14.bb?h=master#n89

I'd probably triple check all the PACKAGECONFIG you need are set:
http://cgit.openembedded.org/meta-openembedded/tree/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.22.14.bb?h=master#n65

Since you want 4G, it might be a good idea to have modemmanager enabled? I've never used networmanager so can't help much more than that.

Quentin

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

#3 lore raw

Re: Private: Re: [yocto] network-manager #yocto #nmcli

Please keep the mailing list in copy so everyone can benefit from your progress/the solution, thanks!

Quoted 4 lines · Zoltan Kerenyi Nagy

I'll do this, thanks.

Interestingly there is a line in the recipe file, which suggests that nmtui will be included. -with-nmtui=yes \

This is an option at build time (i.e. for the **recipe**). It just configures the piece of SW you're trying to build.

A bitbaked recipe's outcome is **packages**. In **most** cases, the main package is named after the recipe (which is usually a source of confusion for people). However, to slim down the main package, most recipes split their output into multiple packages.

In your case, networkmanager is configured to be compiled with nmtui support. However, the recipe is asked to put the resulting binaries/conf files/libs into a separate package (called networkmanager-nmtui).

When you're installing networmanager, you're not installing the whole outcome of networkmanager recipe (nor the recipe itself) but the main package that is the outcome of said recipe. It might not contain all you want, hence the need for installing other packages for enabling all features you want/need.

Hope this helps,
Quentin

#4 lore raw
In reply to Quentin Schulz

* I hope this is gona be public *

I did a diff between your recommended file, and mine, there is no diff, since it's from the same source. I understand that I had to install network-manager-nmcli, but how? In the do_install_append() function??

#5 lore raw
Quoted 2 lines · Zoltan Kerenyi Nagy

* I hope this is gona be public *

It is, you just answered the wrong mail so my answer isn't in the body of this mail.

Quoted 2 lines

I did a diff between your recommended file, and mine, there is no diff, since it's from the same source. I understand that I had to install network-manager-nmcli, but how? In the do_install_append() function??

You don't need to change anything in the networkmanager recipe. You need to add networkmanager-nmcli to the packages installed in your image and that is done in your image recipe by usually adding it to IMAGE_INSTALL.

I can recommend the videos from our YoctoProject Youtube channel to get
started on Yocto: https://www.youtube.com/watch?v=ThTl4FItfMI&list=PLD4M5FoHz-TxMfBFrDKfIS_GLY25Qsfyj

We also have great docs at: https://docs.yoctoproject.org.

Cheers,
Quentin