Hello,
I am trying to add Network Manager to my Mickeldore image.
I found this community link:
Solution given is to add to local.conf:
IMAGE_INSTALL += "networkmanager networkmanager-nmtui networkmanager-bash-completion"
I added the indicated line at the bottom of the local.conf default file
I get error: Nothing RPROVIDES 'networkmanager-bash-completion'
Missing or unbuildable dependency chain was ['imx-image-full', 'networkmanager-bash-completion']
Can anyone comment on this ?
Hi @dwightk!
Thank you for contacting NXP Support!
If you plan to use systemd-networkd as the primary network configuration utility, you should remove connman first (when using a console-only image, you won't need to remove connman-gnome). You can use the package manager to remove the package from pre-built images by invoking.
in local.conf
# Remove connman
IMAGE_INSTALL:remove = " connman"
IMAGE_INSTALL:remove = " connman-client"
IMAGE_INSTALL:remove = " connman-gnome"
IMAGE_INSTALL:remove = " connman-plugin-wifi"
IMAGE_INSTALL:remove = " connman-plugin-ethernet"
IMAGE_INSTALL:remove = " connman-plugin-loopback"
# Add NetworkManager
IMAGE_INSTALL:append = " networkmanager"
IMAGE_INSTALL:append = " modemmanager"
Best Regards!
Chavira
We were previously using the following on our Hard Knott image:
IMAGE_INSTALL:remove = " ofono connman connman-gnome connman-conf"
IMAGE_INSTALL:remove = " packagegroup-core-tools-testapps"
PACKAGE_EXCLUDE += "ofono connman connman-gnome connman-conf"
PACKAGE_EXCLUDE += "connman-client connman-tools"
PACKAGE_EXCLUDE += "packagegroup-core-tools-testapps"
DISTRO_FEATURES:remove = " 3g"
IMAGE_INSTALL:append = " networkmanager networkmanager-nmcli modemmanager"
#IMAGE_INSTALL:append = " networkmanager-bash-completion"
PACKAGECONFIG:append_pn-networkmanager = " modemmanager ppp"
The "networkmanager-bash-completion" is commented out because it's generating an error on Mickeldore.
I bitbaked it and then tried the image but it's giving an error when trying to start Network Manager:
imx8mp-lpddr4-evk:/etc/NetworkManager# systemctl status NetworkManager
× NetworkManager.service - Network Manager
Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Thu 2023-10-12 19:37:38 UTC; 3min 14s ago
Docs: man:NetworkManager(8)
Process: 2122 ExecStart=/usr/sbin/NetworkManager --no-daemon (code=exited, status=1/FAILURE)
Main PID: 2122 (code=exited, status=1/FAILURE)
Oct 12 19:37:38 imx8mp-lpddr4-evk systemd[1]: NetworkManager.service: Scheduled restart job, restart counter is at 5.
Oct 12 19:37:38 imx8mp-lpddr4-evk systemd[1]: Stopped Network Manager.
Oct 12 19:37:38 imx8mp-lpddr4-evk systemd[1]: NetworkManager.service: Start request repeated too quickly.
Oct 12 19:37:38 imx8mp-lpddr4-evk systemd[1]: NetworkManager.service: Failed with result 'exit-code'.
Oct 12 19:37:38 imx8mp-lpddr4-evk systemd[1]: Failed to start Network Manager.
Should I retry it with your version of the local.conf command ? Have you tried this on the Mickeldore image and it works ?
I tired the same. The NetworkManager service is network-manager.service
The version that I showed earlier bitbaked no problem and Network Manager is there but it isn't launching.
The version shared is generating this error:
ERROR: imx-image-full-1.0-r0 do_rootfs: Unable to install packages. Command '/data/imx-m36-bsp/build/tmp/work/imx8mp_lpddr4_evk-poky-linux/imx-image-full/1.0-r0/recipe-sysroot-native/usr/bin/apt-get install --allow-downgrades --allow-remove-essential --allow-change-held-packages --allow-unauthenticated --no-remove apt curl docker dpkg firmwared imx-g2d-samples jailhouse modemmanager networkmanager opencv-apps opencv-samples optee-client optee-os os-release packagegroup-base-extended packagegroup-core-boot packagegroup-core-full-cmdline packagegroup-core-nfs-server packagegroup-core-sdk packagegroup-core-ssh-openssh packagegroup-core-standalone-sdk-target packagegroup-core-tools-debug packagegroup-core-tools-profile packagegroup-core-tools-testapps packagegroup-core-weston packagegroup-fsl-gstreamer1.0 packagegroup-fsl-gstreamer1.0-full packagegroup-fsl-optee-imx packagegroup-fsl-tools-audio packagegroup-fsl-tools-benchmark packagegroup-fsl-tools-gpu packagegroup-fsl-tools-gpu-external packagegroup-fsl-tools-testapps packagegroup-imx-isp packagegroup-imx-ml packagegroup-imx-security packagegroup-qt6-imx packagegroup-security-parsec packagegroup-security-tpm2 packagegroup-tools-bluetooth psplash python3-opencv run-postinsts softhsm swtpm tzdata weston-xwayland xterm' returned 100:
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
connman : Conflicts: networkmanager but 1.42.4-r0 is to be installed
Recommends: connman-conf but it is not installable
E: Unable to correct problems, you have held broken packages.
ERROR: Logfile of failure stored in: /data/imx-m36-bsp/build/tmp/work/imx8mp_lpddr4_evk-poky-linux/imx-image-full/1.0-r0/temp/log.do_rootfs.174915
ERROR: Task (/data/imx-m36-bsp/sources/meta-imx/meta-sdk/dynamic-layers/qt6-layer/recipes-fsl/images/imx-image-full.bb:do_rootfs) failed with exit code '1'
#############
local.conf looks like this:
MACHINE ??= 'imx8mp-lpddr4-evk'
DISTRO ?= 'fsl-imx-xwayland'
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
HALT,${TMPDIR},100M,1K \
HALT,${DL_DIR},100M,1K \
HALT,${SSTATE_DIR},100M,1K \
HALT,/tmp,10M,1K"
PACKAGECONFIG:append:pn-qemu-system-native = " sdl"
CONF_VERSION = "2"
DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"
# Switch to Debian packaging and include package-management in the image
PACKAGE_CLASSES = "package_deb"
EXTRA_IMAGE_FEATURES += "package-management"
BB_NUMBER_THREADS = "2"
PARALLEL_MAKE = "-j 2"
#IMAGE_INSTALL:remove = " ofono connman connman-gnome connman-conf"
#IMAGE_INSTALL:remove = " packagegroup-core-tools-testapps"
#PACKAGE_EXCLUDE += "ofono connman connman-gnome connman-conf"
#PACKAGE_EXCLUDE += "connman-client connman-tools"
#PACKAGE_EXCLUDE += "packagegroup-core-tools-testapps"
#DISTRO_FEATURES:remove = " 3g"
#IMAGE_INSTALL:append = " networkmanager networkmanager-nmcli modemmanager"
#IMAGE_INSTALL:append = " networkmanager-bash-completion"
#PACKAGECONFIG:append_pn-networkmanager = " modemmanager ppp"
# Remove connman
IMAGE_INSTALL:remove = " connman"
IMAGE_INSTALL:remove = " connman-client"
IMAGE_INSTALL:remove = " connman-gnome"
IMAGE_INSTALL:remove = " connman-plugin-wifi"
IMAGE_INSTALL:remove = " connman-plugin-ethernet"
IMAGE_INSTALL:remove = " connman-plugin-loopback"
# Add NetworkManager
IMAGE_INSTALL:append = " networkmanager"
IMAGE_INSTALL:append = " modemmanager"
Hi @dwightk!
Sorry for the late response.
I can add the packages to my evk board.
The steps that I following are the next:
1: Compile the image only removing conman:
On local.conf:
# Remove connman
IMAGE_INSTALL:remove = " connman"
IMAGE_INSTALL:remove = " connman-client"
IMAGE_INSTALL:remove = " connman-gnome"
IMAGE_INSTALL:remove = " connman-plugin-wifi"
IMAGE_INSTALL:remove = " connman-plugin-ethernet"
IMAGE_INSTALL:remove = " connman-plugin-loopback"
2: After the image is generated you have to clean the image to add the new packages using the next command:
Bitbake -c clean <Image>
3: Add the packages to local.conf:
On local.conf:
# Add NetworkManager
IMAGE_INSTALL:append = " networkmanager"
IMAGE_INSTALL:append = " modemmanager"
4: compile the image to generate the final image with the added packages:
Bitbake <Image>
Best Regards!
Chavira