Where did you place insmod in the init.rc?
It should be placed before any "on <trigger>" rule (i.e. before "on
boot")
The tricky part is the permissions and the best solution will be to
add a special rule:
on device-added /system/lib/modules/mydev/ko



On Oct 25, 5:46 am, tknv <rreedd...@gmail.com> wrote:
> Hi,
>
> I'm trying to add my modules. then I add it in init.rc.
> ---
> # mydev modules
> insmod /system/lib/modules/mydev.ko
> ---
> But It was not loaded after reboot.
> Is there some load timing rules ?
>
> I would like to load mydev.ko before dalvik boot.
> and also want to make wait until device initialized before dalvik
> boot.
>
> by the way, Which is earlier init.rc or init.<device-name>.rc ?
>
> Thanks.
>
> On 9月3日, 午前5:20, ip332 <iprile...@gmail.com> wrote:
>
>
>
> > Problem solved. Here is the final change in theinit.rc:
>
> > serivice change_permissions /system/bin/chmod 777 /dev/mydev
> >        oneshot
>
> > Thanks.
>
> > On Sep 2, 11:29 am, ip332 <iprile...@gmail.com> wrote:
>
> > > Unfortunately there is a certain limit how early you can call insmod
> > > and how late you can do chown.
> > > I added chown at  servicemanager block:
> > > service servicemanager /system/bin/servicemanager
> > >     chown system system /dev/mydev
> > >     chmod 0777 /dev/mydev
> > >     user system
> > >     critical
> > >     onrestart restart zygote
> > >     onrestart restart media
>
> > > But it still doesn't work
> > > There should be some other way of doing it :(
>
> > > On Sep 2, 11:03 am, "Sven Killig" <s...@killig.de> wrote:
>
> > > > > -----Original Message-----
> > > > > From: android-kernel@googlegroups.com [mailto:android-
> > > > > ker...@googlegroups.com] On Behalf Of ip332
> > > > > Sent: Thursday, September 02, 2010 6:18 AM
> > > > > To: Android Linux Kernel Development
> > > > > Subject: [android-kernel] /dev/mydev permissions after insmod 
> > > > > frominit.rc
>
> > > > > Can anybody tell me how to change permissions on loadable device
> > > > > driver frominit.rc?
>
> > > > The modules I loaded took a while to establish the files in /dev. 
> > > > Perhaps a delay will help? Like insmodding early and chown/modding late?

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to