Re: initrd insmod: error inserting '/lib/foo.ko' : -1 operation not permitted

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 14, 2012 at 11:16 AM, Autif Khan <autif.mlist@xxxxxxxxx> wrote:
> On Thu, Jun 14, 2012 at 10:49 AM, leo liang <leoliang9@xxxxxxxxx> wrote:
>> Hi,
>>
>> I am trying to add one driver to my kernel.
>>
>> I have the kernel source and use make all build all the modules and bzImage.
>>
>> I already have initrd.img in my machine. I extract it to a tmp folder.
>
> Are bzImage that you compiled and foo.ko from the initrd.img compiled
> at the same time from the same source?

No, the foo.ko is existing module in the initrd image.

Thank you. I think I got the issue.

I should replace all the modules in the initrd.img with the new build.


>
>> Then I copy the driver module into the lib folder. I edited the init
>> file to insert the module when machine boot. After that, I recreated
>> the initrd.img by cpio and gzip.
>>
>> When machine boot,  I got "insmod: error inserting '/lib/foo.ko' : -1
>> operation not permitted" error.
>>
>> Did I missed any step? What caused the error?
>>
>> Thanks.
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies@xxxxxxxxxxxxxxxxx
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux