Topics

network-manager #yocto #nmcli


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 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.


Quentin Schulz
 

Hi,

On Tue, Oct 20, 2020 at 01:48:37AM -0700, Zoltan Kerenyi Nagy wrote:
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


Zoltan Kerenyi Nagy
 

* 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??


Quentin Schulz
 

On Tue, Oct 20, 2020 at 06:51:33AM -0700, Zoltan Kerenyi Nagy wrote:
* 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.

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