I recently compiled the kernel on jetson nano devkit and I am facing this issue:
root@jn_02:/home/pi# systemctl status systemd-modules-load.service
● systemd-modules-load.service - Load Kernel Modules
Loaded: loaded (/lib/systemd/system/systemd-modules-load.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2022-08-13 07:11:24 EEST; 12h ago
Docs: man:systemd-modules-load.service(8)
man:modules-load.d(5)
Process: 1928 ExecStart=/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
Main PID: 1928 (code=exited, status=1/FAILURE)
Aug 13 07:11:22 jn_02 systemd-modules-load[1928]: Failed to find module 'lp'
Aug 13 07:11:22 jn_02 systemd-modules-load[1928]: Failed to find module 'ppdev'
Aug 13 07:11:22 jn_02 systemd-modules-load[1928]: Failed to find module 'parport_pc'
Aug 13 07:11:24 jn_02 systemd-modules-load[1928]: Inserted module 'nvgpu'
Aug 13 07:11:24 jn_02 systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
Aug 13 07:11:24 jn_02 systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
Aug 13 07:11:24 jn_02 systemd[1]: Failed to start Load Kernel Modules.
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
I tried recompiling the kernel again with CONFIG_LOCALVERSION="-tegra" in .config according to this topic but with no success. Still receiving the kernel module error.
Assuming you can still boot, what do you see from the command “uname -r”? Do you see content at: /lib/modules/$(uname -r)/kernel
During the compile the CONFIG_LOCALVERSION step was good as you have set it, but sometimes there may be another influence on what “uname -r” comes out as. Also, even if the uname is correct, you would have had to have started with a configuration which was a match for the one which produced the original modules before they could properly load (adding new modules should always work, but if a module was removed, or an integrated feature changed, then it could cause some modules to fail to load). What was your starting configuration, e.g., was it from “tegra_defconfig” or perhaps “/proc/config.gz”?
Also, which L4T release is this? You can check with: head -n 1 /etc/nv_tegra_release
All looks good. Is there any output from “lsmod”? If so, then probably there is nothing wrong with actual module loading for most modules. Here is an excerpt of the original error suggesting the most important module loaded correctly, but three others failed:
Aug 13 07:11:22 jn_02 systemd-modules-load[1928]: Failed to find module 'lp'
Aug 13 07:11:22 jn_02 systemd-modules-load[1928]: Failed to find module 'ppdev'
Aug 13 07:11:22 jn_02 systemd-modules-load[1928]: Failed to find module 'parport_pc'
Aug 13 07:11:24 jn_02 systemd-modules-load[1928]: Inserted module 'nvgpu'
Of those listed in the excerpt as failing, were any of those the ones you added? If so, did you build the modules and Image, or just the Image? Can you attach the current “/proc/config.gz”?