From mboxrd@z Thu Jan 1 00:00:00 1970 From: autif.mlist@gmail.com (Autif Khan) Date: Thu, 14 Jun 2012 11:16:57 -0400 Subject: initrd insmod: error inserting '/lib/foo.ko' : -1 operation not permitted In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Thu, Jun 14, 2012 at 10:49 AM, leo liang 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