* initrd insmod: error inserting '/lib/foo.ko' : -1 operation not permitted
@ 2012-06-14 14:49 leo liang
2012-06-14 15:16 ` Autif Khan
0 siblings, 1 reply; 3+ messages in thread
From: leo liang @ 2012-06-14 14:49 UTC (permalink / raw)
To: kernelnewbies
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.
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* initrd insmod: error inserting '/lib/foo.ko' : -1 operation not permitted
2012-06-14 14:49 initrd insmod: error inserting '/lib/foo.ko' : -1 operation not permitted leo liang
@ 2012-06-14 15:16 ` Autif Khan
2012-06-14 15:29 ` leo liang
0 siblings, 1 reply; 3+ messages in thread
From: Autif Khan @ 2012-06-14 15:16 UTC (permalink / raw)
To: kernelnewbies
On Thu, Jun 14, 2012 at 10:49 AM, leo liang <leoliang9@gmail.com> 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?
> 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 at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 3+ messages in thread
* initrd insmod: error inserting '/lib/foo.ko' : -1 operation not permitted
2012-06-14 15:16 ` Autif Khan
@ 2012-06-14 15:29 ` leo liang
0 siblings, 0 replies; 3+ messages in thread
From: leo liang @ 2012-06-14 15:29 UTC (permalink / raw)
To: kernelnewbies
On Thu, Jun 14, 2012 at 11:16 AM, Autif Khan <autif.mlist@gmail.com> wrote:
> On Thu, Jun 14, 2012 at 10:49 AM, leo liang <leoliang9@gmail.com> 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 at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-06-14 15:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-14 14:49 initrd insmod: error inserting '/lib/foo.ko' : -1 operation not permitted leo liang
2012-06-14 15:16 ` Autif Khan
2012-06-14 15:29 ` leo liang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).