http://letsgoustc.spaces.live.com/blog/cns!89AD27DFB5E249BA!428.entry
android/system/core/init/init.c
1. Create and mount dev/proc/sys
2. open_devnull_stdio: redirect stdio and log
3. Parse /init.rc
4. Parse kernel cmdline
5. do early-init in init.rc
6. device_init(): Monitor device add/remove using uevent
7. property_init(): Setup and read in property value, it's share memory
8. Show image and message on console
9. do init in init.rc
10. further read in property value and startup property service(/dev/socket/property_service)
11. create socket for device(add)/property(set)/signal(SIGCHLD).
12. do early-boot/boot in init.rc
13. infinite loop to poll sockets(ufds)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment