OpenWrt Forum Archive

Topic: How can I autoload a self-compiled kernel-modul in kamikaze(mmc.o)

The content of this topic has been archived on 17 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

how can I autoload a self-compiled kernel-module?
I have build a modified version of mmc.c 1.3.5 and
I managed to put it in the fw-image but I always
have to type "insmod mmc.o" and I were not able
to find a way to autoload it a start of Kamikaze.
(I am using a Belkin F1UP0001 Printserver with SD/MMC-card mod)

Greets Manuel

Well /etc/modprobe.d seem missing.

My guess would be to add the line to /etc/init.d/custom-user-startup

(Last edited by cybermaus on 27 Aug 2007, 22:26)

nice idea, but what name should it have to be started and  how can set the sequence of the different scripts?

SOLVED !!!

I dont know why I didnt see the /etc/modules.d/ directory (maybe it was to late at last night) - found it this morning and
simply created a new file called 50-mmc and filled it with mmc (nothing more) - works like charm!!!

The only thing I now have to do is a script in /etc/init.d to mount my sd/mmc-card something like
mount -t vfat -rw /dev/mmc/disc0/part1 /mnt/mmc and thats it - automount would be nice but I
dont know how to check for disc-changes.

Greets Manuel

The discussion might have continued from here.