[android-kernel] Re: /dev/mydev permissions after insmod from init.rc

2010-10-25 Thread ip332
Where did you place insmod in the init.rc? It should be placed before any "on " 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 chmod 777 /dev/mydev On Oct 25, 5:46 am, tknv wro

[android-kernel] Re: /dev/mydev permissions after insmod from init.rc

2010-10-25 Thread ip332
Where did you place insmod in the init.rc? It should be placed before any "on " 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 wrote: > Hi, > > I'm trying

[android-kernel] Re: /dev/mydev permissions after insmod from init.rc

2010-10-25 Thread ip332
Where did you place insmod in the init.rc? It should be placed before any "on " 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 wrote: > Hi, > > I'm trying

[android-kernel] Re: /dev/mydev permissions after insmod from init.rc

2010-10-25 Thread tknv
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 befor

[android-kernel] Re: /dev/mydev permissions after insmod from init.rc

2010-09-02 Thread ip332
Problem solved. Here is the final change in the init.rc: serivice change_permissions /system/bin/chmod 777 /dev/mydev oneshot Thanks. On Sep 2, 11:29 am, ip332 wrote: > Unfortunately there is a certain limit how early you can call insmod > and how late you can do chown. > I added chown a

[android-kernel] Re: /dev/mydev permissions after insmod from init.rc

2010-09-02 Thread ip332
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 resta