Skip to contentSkip to conversation

Auto loading out of the tree device driver using UDEV

Buildroot Tal Lubko 3 participants 3 messages May 26, 2015

lore
Share & tools
lore

Tal Lubko

author
#0 lore raw

Hi
I'm trying to get an?out of the tree device driver?to be auto loaded when system starts using UDEV.I've managed to do so if I run depmod on target but I don't know how to do that on the host when building the file system.I'm not even sure that depmod is the correct way to do that. I appreciate your help,Tal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150526/cc41a625/attachment.html>

#1 lore raw

Hi Tal,

Quoted 7 lines · Tal Lubko

Hi

I'm trying to get an out of the tree device driver to be auto loaded when system starts using UDEV.
I've managed to do so if I run depmod on target but I don't know how to do that on the host when building the file system.
I'm not even sure that depmod is the correct way to do that.

maybe you could simply use 'insmod' instead of 'modprobe' to load the module? You can give the whole path to your module file to insmod. I'm not sure to properly answer your question though...

Quoted 8 lines

I appreciate your help,
Tal

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Regards,
Lionel

#2 lore raw
In reply to Tal Lubko

Dear Tal Lubko,

Quoted 5 lines · Tal Lubko

I'm trying to get an?out of the tree device driver?to be auto loaded when system starts using UDEV.I've managed to do so if I run depmod on target but I don't know how to do that on the host when building the file system.I'm not even sure that depmod is the correct way to do that.

If your out of tree driver is using the kernel build system, it should already be doing the depmod invocation.

If it's not using the kernel build system, then you can invoke depmod manually, like the nvidia-driver package is doing in Buildroot:

  $(HOST_DIR)/sbin/depmod -a -b $(TARGET_DIR) $(LINUX_VERSION_PROBED)

But really, to give you more details, we need to know which out of tree driver we're talking about, see how it has been packaged in Buildroot, and where it is installed in the root filesystem.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com