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 <[email protected]> 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 <[email protected]> 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" <[email protected]> wrote: > > > > > -----Original Message----- > > > > From: [email protected] [mailto:android- > > > > [email protected]] 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: [email protected] website: http://groups.google.com/group/android-kernel
