Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

i know how to load your module automatically in ubuntu. you put your module in /etc/modules

But, i compile a kernel and filesystem for an embedded system which i am working on it. but there is no "modules" file in /etc directory. (i am using angstrom by the way)

Is there anyway to load my module at boot?

thanks in advance,

share|improve this question
    
What distribution are you running on that build with the custom kernel? –  Kaurin Mar 7 '12 at 9:42
1  
i am using the device called tam3517 and i downloaded the kernel that they gave me. Build it with my toolchain, angstrom. And i create a filesystem with buildroot. technexion.com/index.php/support/download-center/… –  thehilmisu Mar 7 '12 at 9:47
add comment

1 Answer

up vote 0 down vote accepted

Do you, perhaps, have a file /etc/rc.modules, or a directory with that name?
If not, you might try and find a file /etc/rc.local, and just add modprobe yourmodule at the end.

/etc/rc.local file contains custom user commands that are executed on boot.

Previous solution works for most distros but not for you. You have some minimal rescue-like linux distro. This is why I suggest just appending modprobe yourmodule to the end of the /etc/inittab.

NOTE: THIS METHOD SHOULD BE AVOIDED IF YOU HAVE A NORMAL LINUX DISTRIBUTION LIKE UBUNTU, MINT, FEDORA, ARCH...
IF YOU USE A NORMAL DISTRIBUTION, PLEASE USE YOUR DISTRIBUTION'S WAY OF ADDING CUSTOM MODULES.

share|improve this answer
    
i have created rc.local under my /etc folder and add this command but it's not working. –  thehilmisu Mar 7 '12 at 10:03
    
Can you paste the output of the following command here: ls -al /etc/ –  Kaurin Mar 7 '12 at 10:23
    
it is too long to paste here. i am going to paste it as answer. –  thehilmisu Mar 7 '12 at 10:30
    
Since, i am a new user i cannot add answer to my question =) what do you looking for in here ? i can answer you without pasting the output –  thehilmisu Mar 7 '12 at 10:32
1  
it works. you can edit your answer, thanks. –  thehilmisu Mar 7 '12 at 11:52
show 3 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.