I did create the makefile like that. Then I copied my *.ko files to
/lib/modules/KERNEL_VERSION/kernel.. but when I tried to run "depmod -a", I
am getting this (Loop detected) error. If, I dont run depmod before modprobe
then modprobe cant able to find that module. Am I missing something ?

On 7/6/07, Dinesh <[EMAIL PROTECTED]> wrote:

You will have to specify the following in the Makefile to enforce
dependency.

obj-m := load1.o load2.o

You do not have to club all of the code into one main file for this
thing. You should be fine using a Makefile.

Dinesh


Kamal gupta wrote:
> Hi
>
> How can we load files that are interdependent upon each other. I am
> using modprobe but it fails saying LOOP DETECTED. Do I need to club all
> of my code in one file or there is some alternative ?
>
> Thanks in advance
> --
> Kamal Kant Gupta



--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ




--
Kamal Kant Gupta

Reply via email to