This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux: how driver modules auto probe

Other Parts Discussed in Thread: DRA756

Tool/software: Linux

Hello,

I am working on the yocto file system, I want to make some changes on the rootfs,

there are some problems with the automatic loading of the driver module.

I know that there is a system service that can load a kernel module called systemd-modules-load,

which only loads modules configured in the /etc/modules-load.d/ directory:

cmemk.conf cryptodev.conf gdbserverproxy.conf uio_module_drv.conf

uio_module_drv 7353 0
gdbserverproxy 4671 0
cryptodev 37405 1
cmemk 35238 0

There is also a system service systemd-udevd that will also load the driver, but I see a lot of failed messages in the log file:

Jul 09 13:50:27 dra7xx-evm systemd[1]: Starting udev Kernel Device Manager...
Jul 09 13:50:28 dra7xx-evm systemd[1]: Started udev Kernel Device Manager.
Jul 09 13:50:28 dra7xx-evm systemd-udevd[225]: [[0;1;39mProcess '/sbin/modprobe of:NocpT<NULL>Cti,dra7-l3-nocCsimple-bus' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[224]: [[0;1;39mProcess '/sbin/modprobe of:Ndsp_systemT<NULL>Csyscon' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[230]: [[0;1;39mProcess '/sbin/modprobe of:NtptcT<NULL>Cti,edma3-tptc' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[226]: [[0;1;39mProcess '/sbin/modprobe of:NocmcramT<NULL>Cmmio-sram' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[232]: [[0;1;39mProcess '/sbin/modprobe of:NtptcT<NULL>Cti,edma3-tptc' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[227]: [[0;1;39mProcess '/sbin/modprobe of:NedmaT<NULL>Cti,edma3-tpcc' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[223]: [[0;1;39mProcess '/sbin/modprobe of:Ndsp_systemT<NULL>Csyscon' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[230]: [[0;1;39mProcess '/sbin/modprobe of:NserialT<NULL>Cti,dra742-uartCti,omap4-uart' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[226]: [[0;1;39mProcess '/sbin/modprobe of:NaxiT<NULL>Csimple-bus' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[224]: [[0;1;39mProcess '/sbin/modprobe of:Nl4T<NULL>Cti,dra7-l4-cfgCsimple-bus' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[232]: [[0;1;39mProcess '/sbin/modprobe of:Nl4T<NULL>Cti,dra7-l4-wkupCsimple-bus' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[223]: [[0;1;39mProcess '/sbin/modprobe of:Ncm_core_aonT<NULL>Cti,dra7-cm-core-aon' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[224]: [[0;1;39mProcess '/sbin/modprobe of:Ncm_coreT<NULL>Cti,dra7-cm-core' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[227]: [[0;1;39mProcess '/sbin/modprobe of:NcounterT<NULL>Cti,omap-counter32k' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[226]: [[0;1;39mProcess '/sbin/modprobe of:NscmT<NULL>Cti,dra7-scm-coreCsimple-bus' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[227]: [[0;1;39mProcess '/sbin/modprobe of:NtimerT<NULL>Cti,omap5430-timer' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[230]: [[0;1;39mProcess '/sbin/modprobe of:Npcie_rcTpciCti,dra746-pcie-rc' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[232]: [[0;1;39mProcess '/sbin/modprobe of:NprmT<NULL>Cti,dra7-prm' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[226]: [[0;1;39mProcess '/sbin/modprobe of:Nscm_confT<NULL>CsysconCsimple-bus' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[232]: [[0;1;39mProcess '/sbin/modprobe of:NpinmuxT<NULL>Cti,dra7-padconfCpinctrl-single' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[230]: [[0;1;39mProcess '/sbin/modprobe of:Ndma-routerT<NULL>Cti,dra7-dma-crossbar' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[223]: [[0;1;39mProcess '/sbin/modprobe of:Nscm_confT<NULL>Csyscon' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[224]: [[0;1;39mProcess '/sbin/modprobe of:Ndma-routerT<NULL>Cti,dra7-dma-crossbar' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[226]: [[0;1;39mProcess '/sbin/modprobe of:Npbias_regulatorT<NULL>Cti,pbias-dra7Cti,pbias-omap' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[224]: [[0;1;39mProcess '/sbin/modprobe of:Nscm_confT<NULL>Csyscon' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[232]: [[0;1;39mProcess '/sbin/modprobe of:NtimerT<NULL>Cti,omap5430-timer' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[226]: [[0;1;39mProcess '/sbin/modprobe of:NtimerT<NULL>Cti,omap5430-timer' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[223]: [[0;1;39mProcess '/sbin/modprobe of:Nscm_confT<NULL>Csyscon' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[230]: [[0;1;39mProcess '/sbin/modprobe of:NtimerT<NULL>Cti,omap5430-timer' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[224]: [[0;1;39mProcess '/sbin/modprobe of:NgpioT<NULL>Cti,omap4-gpio' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[223]: [[0;1;39mProcess '/sbin/modprobe of:NgpioT<NULL>Cti,omap4-gpio' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[226]: [[0;1;39mProcess '/sbin/modprobe of:NgpioT<NULL>Cti,omap4-gpio' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[232]: [[0;1;39mProcess '/sbin/modprobe of:NgpioT<NULL>Cti,omap4-gpio' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[224]: [[0;1;39mProcess '/sbin/modprobe of:NgpioT<NULL>Cti,omap4-gpio' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[223]: [[0;1;39mProcess '/sbin/modprobe of:Ni2cT<NULL>Cti,omap4-i2c' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[226]: [[0;1;39mProcess '/sbin/modprobe of:NgpioT<NULL>Cti,omap4-gpio' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[230]: [[0;1;39mProcess '/sbin/modprobe of:NgpioT<NULL>Cti,omap4-gpio' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[232]: [[0;1;39mProcess '/sbin/modprobe of:NserialT<NULL>Cti,dra742-uartCti,omap4-uart' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[224]: [[0;1;39mProcess '/sbin/modprobe of:NserialT<NULL>Cti,dra742-uartCti,omap4-uart' failed with exit code 1.[[0m
Jul 09 13:50:28 dra7xx-evm systemd-udevd[230]: [[0;1;39mProcess '/sbin/modprobe of:Ni2cT<NULL>Cti,omap4-i2c' failed with exit code 1.[[0m

However, at boot time, a lot of modules are automatically loaded:

can 29745 0
bc_example 7250 0
xhci_plat_hcd 5183 0
xhci_hcd 108888 1 xhci_plat_hcd
rpmsg_rpc 19626 0
usbcore 194450 2 xhci_plat_hcd,xhci_hcd
sha512_generic 9903 0
sha512_arm 12079 0
sha1_generic 2621 0
sha1_arm_neon 6261 0
sha1_arm 3862 1 sha1_arm_neon
md5 1897 0
cbc 2324 0
sha256_generic 9503 0
sha256_arm 12414 1
hmac 2735 1
dwc3 64067 0
udc_core 12063 1 dwc3
virtio_rpmsg_bus 12974 1 rpmsg_rpc
drbg 13425 1
xfrm_user 22972 2
xfrm4_tunnel 2040 0
ipcomp 2473 0
xfrm_ipcomp 4567 1 ipcomp
esp4 6465 0
ah4 5665 0
af_key 27676 0
xfrm_algo 6970 5 ah4,esp4,af_key,xfrm_user,xfrm_ipcomp
bluetooth 324846 2
extcon_usb_gpio 2745 0
pvrsrvkm 412372 1 bc_example
omap_sham 21089 0
c_can_platform 6604 0
c_can 9590 1 c_can_platform
ahci_platform 3218 0
omap_aes_driver 19230 0
can_dev 12991 1 c_can
omap_wdt 4570 0
dwc3_omap 4926 0
libahci_platform 8821 1 ahci_platform
libahci 27699 2 libahci_platform,ahci_platform
libata 195741 3 libahci,libahci_platform,ahci_platform
scsi_mod 129524 1 libata
omap_rng 4835 0
rng_core 7691 1 omap_rng
omap_des 11446 0
extcon 13815 3 dwc3,dwc3_omap,extcon_usb_gpio
rtc_omap 8272 0
omap_remoteproc 13155 4
remoteproc 27185 3 omap_remoteproc,virtio_rpmsg_bus,rpmsg_rpc
virtio 7452 2 remoteproc,virtio_rpmsg_bus
virtio_ring 12291 2 remoteproc,virtio_rpmsg_bus
sch_fq_codel 8059 3
uio_module_drv 7353 0
gdbserverproxy 4671 0
cryptodev 37405 1
cmemk 35238 0

I would like to know:


1. Which system service is loading these modules?


2.systemd-udevd failed to load due to repeated loading, or other reasons?