Hello,
I am having issues connecting my iMX8MP-EVK to the network when using a Yocto build. In particular, when booting the board the console output prints several FAILED operations (most of them are repeated and I only included one for each below):
Starting Network Name Resolution...
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[FAILED] Failed to start Network Name Resolution.
See 'systemctl status systemd-resolved.service' for details.
Starting Network Configuration...
[FAILED] Failed to start Avahi mDNS/DNS-SD Stack.
See 'systemctl status avahi-daemon.service' for details.
[ OK ] Started Telephony service.
[FAILED] Failed to start Network Configuration.
See 'systemctl status systemd-networkd.service' for details.
[DEPEND] Dependency failed for Wait for Network to be Configured.
I originally blamed it on the fact that I was using an older nanbield environment, so decided to update to scarthgap, but unfortunately that didn't resolve the issue.
So far I have tried both the 6.6.23 and 6.6.36 releases, with the same result (I even tried the imx-image-multimedia and imx-image-full recipes). Interestingly, if I use the pre-built image downloadable from the website (L6.6.36_2.1.0_MX8MP) there doesn't seem to be any issues.
Checking the status of the systemd services shows the following:
systemd-networkd
root@imx8mp-lpddr4-evk:~# systemctl status systemd-networkd.service
x systemd-networkd.service - Network Configuration
Loaded: loaded (/usr/lib/systemd/system/systemd-networkd.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Tue 2024-02-27 17:26:11 UTC; 23s ago
TriggeredBy: x systemd-networkd.socket
Docs: man:systemd-networkd.service(8)
man:org.freedesktop.network1(5)
Process: 785 ExecStart=/usr/lib/systemd/systemd-networkd (code=exited, status=203/EXEC)
Main PID: 785 (code=exited, status=203/EXEC)
FD Store: 0 (limit: 512)
CPU: 74ms
Feb 27 17:26:11 imx8mp-lpddr4-evk systemd[1]: systemd-networkd.service: Scheduled restart job, restart counter is at 5.
Feb 27 17:26:11 imx8mp-lpddr4-evk systemd[1]: systemd-networkd.service: Start request repeated too quickly.
Feb 27 17:26:11 imx8mp-lpddr4-evk systemd[1]: systemd-networkd.service: Failed with result 'exit-code'.
Feb 27 17:26:11 imx8mp-lpddr4-evk systemd[1]: Failed to start Network Configuration.
systemd-resolved
root@imx8mp-lpddr4-evk:~# systemctl status systemd-resolved.service
x systemd-resolved.service - Network Name Resolution
Loaded: loaded (/usr/lib/systemd/system/systemd-resolved.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Tue 2024-02-27 17:26:09 UTC; 20min ago
Docs: man:systemd-resolved.service(8)
man:org.freedesktop.resolve1(5)
https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
Process: 688 ExecStart=/usr/lib/systemd/systemd-resolved (code=exited, status=203/EXEC)
Main PID: 688 (code=exited, status=203/EXEC)
CPU: 114ms
Feb 27 17:26:09 imx8mp-lpddr4-evk systemd[1]: systemd-resolved.service: Scheduled restart job, restart counter is at 5.
Feb 27 17:26:09 imx8mp-lpddr4-evk systemd[1]: systemd-resolved.service: Start request repeated too quickly.
Feb 27 17:26:09 imx8mp-lpddr4-evk systemd[1]: systemd-resolved.service: Failed with result 'exit-code'.
Feb 27 17:26:09 imx8mp-lpddr4-evk systemd[1]: Failed to start Network Name Resolution.
systemd-timesyncd
root@imx8mp-lpddr4-evk:~# systemctl status systemd-timesyncd.service
x systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/usr/lib/systemd/system/systemd-timesyncd.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Tue 2024-02-27 17:26:08 UTC; 20min ago
Docs: man:systemd-timesyncd.service(8)
Process: 484 ExecStart=/usr/lib/systemd/systemd-timesyncd (code=exited, status=203/EXEC)
Main PID: 484 (code=exited, status=203/EXEC)
CPU: 117ms
Feb 27 17:26:08 imx8mp-lpddr4-evk systemd[1]: systemd-timesyncd.service: Scheduled restart job, restart counter is at 5.
Feb 27 17:26:08 imx8mp-lpddr4-evk systemd[1]: systemd-timesyncd.service: Start request repeated too quickly.
Feb 27 17:26:08 imx8mp-lpddr4-evk systemd[1]: systemd-timesyncd.service: Failed with result 'exit-code'.
Feb 27 17:26:08 imx8mp-lpddr4-evk systemd[1]: Failed to start Network Time Synchronization.
Feb 27 17:26:08 imx8mp-lpddr4-evk systemd[1]: systemd-timesyncd.service: Start request repeated too quickly.
Feb 27 17:26:08 imx8mp-lpddr4-evk systemd[1]: systemd-timesyncd.service: Failed with result 'exit-code'.
Feb 27 17:26:08 imx8mp-lpddr4-evk systemd[1]: Failed to start Network Time Synchronization.
Feb 27 17:26:09 imx8mp-lpddr4-evk systemd[1]: systemd-timesyncd.service: Start request repeated too quickly.
Feb 27 17:26:09 imx8mp-lpddr4-evk systemd[1]: systemd-timesyncd.service: Failed with result 'exit-code'.
Feb 27 17:26:09 imx8mp-lpddr4-evk systemd[1]: Failed to start Network Time Synchronization.
Finally, if I check the logs for networkd:
root@imx8mp-lpddr4-evk:~# journalctl -u systemd-networkd
Feb 27 17:26:10 imx8mp-lpddr4-evk systemd[1]: Starting Network Configuration...
Feb 27 17:26:10 imx8mp-lpddr4-evk (networkd)[737]: systemd-networkd.service: Failed to execute /usr/lib/systemd/systemd-networkd: Permission denied
Feb 27 17:26:10 imx8mp-lpddr4-evk systemd[1]: systemd-networkd.service: Main process exited, code=exited, status=203/EXEC
Feb 27 17:26:10 imx8mp-lpddr4-evk systemd[1]: systemd-networkd.service: Failed with result 'exit-code'.
Feb 27 17:26:10 imx8mp-lpddr4-evk systemd[1]: Failed to start Network Configuration.
Feb 27 17:26:10 imx8mp-lpddr4-evk systemd[1]: systemd-networkd.service: Scheduled restart job, restart counter is at 1.
Any idea why this might happen? I have followed the instructions from the imx-manifest repo (nxp-imx/imx-manifest: i.MX Release Manifest (github.com)) (with MACHINE=imx8mp-lpddr4-evk).
Any help would be greatly appreciated, many thanks!
Alex