i am try to porting android(Ginger bread) on raspberry pi ...i had almost down it but i have some problem, after kernel boots up, the init process executing ....but after some it rebooting again and again (you can see the logs)
i have the following queries
1. i think the problem with init.rc..... can any one share the working init.rc(i had shared init.rc file content what i am using )
2. Any setting required for android booting
3. Iam using 3.1.9 kernel ....but am not getting the android kernel patches for this version (please share the android kernel patches for raspberry pi) if any one having
4. Do we need to enable any configuration in .config file (i am using bcmrpi_defconfig)
[ 5.972159] init: command 'import' r=0
[ 6.541039] init: command 'exec' r=0
[ 6.545815] init: starting 'servicemanager'
[ 6.551805] init: starting 'vold'
[ 6.556566] init: starting 'netd'
[ 6.563644] init: Created socket '/dev/socket/vold' with mode '660', user '0', group '1009'
[ 6.578957] init: starting 'debuggerd'
[ 6.585055] init: Created socket '/dev/socket/dnsproxyd' with mode '660', user '0', group '3003'
[ 6.597091] init: starting 'ril-daemon'
[ 6.604882] init: starting 'zygote'
[ 6.623619] init: Created socket '/dev/socket/netd' with mode '660', user '0', group '1000'
[ 6.650218] init: Created socket '/dev/socket/rild-debug' with mode '660', user '1001', group '1000'
[ 6.664753] init: starting 'media'
[ 6.672903] init: Created socket '/dev/socket/zygote' with mode '660', user '0', group '1000'
[ 6.686282] init: starting 'dbus'
�����������������������[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.1.9 (kmr@Cpu-02) (gcc version 4.7.1 20120402 (prerelease) (crosstool-NG 1.15.2) ) #1 PREEMPT Wed Nov 7 13:30:53 IST 2012
[ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine: BCM2708
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 48768
[ 0.000000] Kernel command line: dma.dmachans=0x3c bcm2708_fb.fbwidth=576 bcm2708_fb.fbheight=416 bcm2708.boardrev=0x3 bcm2708.serial=0x6267010 smsc95xx.macaddr=B8:27:EB:26:t
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 192MB = 192MB total
[ 0.000000] Memory: 186952k/186952k available, 9656k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
[ 0.000000] vmalloc : 0xcc800000 - 0xd8000000 ( 184 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xcc000000 ( 192 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc057ee94 (5596 kB)
[ 0.000000] .init : 0xc057f000 - 0xc05b0000 ( 196 kB)
[ 0.000000] .data : 0xc05b0000 - 0xc05e0f58 ( 196 kB)
[ 0.000000] .bss : 0xc05e0f7c - 0xc07af630 (1850 kB)
[ 0.000000] NR_IRQS:245
[ 0.000000] timer_set_mode: unhandled mode:1
[ 0.000000] timer_set_mode: unhandled mode:3
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [tty1] enabled
[ 2.310472] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[ 2.369434] pid_max: default: 32768 minimum: 301
[ 2.370048] Mount-cache hash table entries: 512
[ 2.370687] Initializing cgroup subsys cpuacct
[ 2.370807] Initializing cgroup subsys devices
[ 2.370856] Initializing cgroup subsys freezer
[ 2.370897] Initializing cgroup subsys blkio
[ 2.371012] CPU: Testing write buffer coherency: ok
[ 2.371143] ftrace: allocating 14727 entries in 44 pages
[ 2.442010] hw perfevents: enabled with v6 PMU driver, 3 counters available
[ 2.443999] devtmpfs: initialized
[ 2.451091] NET: Registered protocol family 16
[ 2.453062] vc-mem: mm_vc_mem_phys_addr = 0x00000000
[ 2.453131] vc-mem: mm_vc_mem_size = 0x10000000 (256 MiB)
[ 2.453635] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[ 2.453709] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 2.453753] mailbox: Broadcom VideoCore Mailbox driver
[ 2.453864] bcm2708_vcio: mailbox at f200b880
[ 2.453966] bcm_power: Broadcom power driver
[ 2.454013] bcm_power_open() -> 0
[ 2.454044] bcm_power_request(0, 8)
[ 2.954740] bcm_mailbox_read -> 00000080, 0
[ 2.954787] bcm_power_request -> 0
[ 2.954818] Serial: AMBA PL011 UART driver
[ 2.955004] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3
[ 3.264100] console [ttyAMA0] enabled
[ 3.287677] bio: create slab <bio-0> at 0
[ 3.293096] SCSI subsystem initialized
[ 3.297272] usbcore: registered new interface driver usbfs
[ 3.302937] usbcore: registered new interface driver hub
[ 3.308614] usbcore: registered new device driver usb
[ 3.314716] Switching to clocksource stc
[ 3.328827] Switched to NOHz mode on CPU #0
[ 3.337885] FS-Cache: Loaded
[ 3.341273] CacheFiles: Loaded
[ 3.361538] NET: Registered protocol family 2
[ 3.366402] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 3.374640] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 3.382155] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[ 3.388866] TCP: Hash tables configured (established 8192 bind 8192)
[ 3.395250] TCP reno registered
[ 3.398419] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 3.404348] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 3.411229] NET: Registered protocol family 1
[ 3.416558] RPC: Registered named UNIX socket transport module.
[ 3.422745] RPC: Registered udp transport module.
[ 3.427477] RPC: Registered tcp transport module.
[ 3.432242] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 3.439065] bcm2708_dma: DMA manager at cc808000
[ 3.443823] bcm2708_gpio: bcm2708_gpio_probe c05b7c60
[ 3.449492] vc-mem: Videocore memory driver
[ 3.454351] audit: initializing netlink socket (disabled)
[ 3.459908] type=2000 audit(0.780:1): initialized
[ 3.569364] ashmem: initialized
[ 3.573322] VFS: Disk quotas dquot_6.5.2
[ 3.577503] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 3.585468] FS-Cache: Netfs 'nfs' registered for caching
[ 3.592127] msgmni has been set to 365
[ 3.598461] io scheduler noop registered
[ 3.602636] io scheduler deadline registered (default)
[ 3.608021] io scheduler cfq registered
[ 3.612269] BCM2708FB: registering framebuffer (576x416@16)
[ 3.639231] Console: switching to colour frame buffer device 72x26
[ 3.650520] BCM2708FB: register framebuffer (0)
[ 3.657805] kgdb: Registered I/O driver kgdboc.
[ 3.675761] brd: module loaded
[ 3.686903] loop: module loaded
[ 3.693156] vcos: [1]: vchiq_init_state: slot_zero = 0xffd80000, is_master = 0
[ 3.705188] vcos: [1]: vchiq_init_state: called
[ 3.712963] vcos: [1]: vchiq: initialised - version 2 (min 2), device 253.0
[ 3.725112] usbcore: registered new interface driver smsc95xx
[ 3.733193] cdc_ncm: 04-Aug-2011
[ 3.738732] usbcore: registered new interface driver cdc_ncm
[ 3.746696] dwc_otg: version 2.90b 6-MAY-2010 (platform bus)
[ 3.755052] Core Release: 2.80a
[ 3.760497] Setting default values for core params
[ 3.767485] Finished setting default values for core params
[ 3.775604] cc840008 -> 1
[ 3.980463] Using Buffer DMA mode
[ 3.985960] Periodic Transfer Interrupt Enhancement - disabled
[ 3.994067] Multiprocessor Interrupt Enhancement - disabled
[ 4.002012] dwc_otg bcm2708_usb: DWC OTG Controller
[ 4.009359] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[ 4.021100] dwc_otg bcm2708_usb: irq 75, io mem 0x00000000
[ 4.029060] Init: Port Power? op_state=1
[ 4.035243] Init: Power Port (0)
[ 4.040854] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 4.052156] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 4.063902] usb usb1: Product: DWC OTG Controller
[ 4.070970] usb usb1: Manufacturer: Linux 3.1.9 dwc_otg_hcd
[ 4.078909] usb usb1: SerialNumber: bcm2708_usb
[ 4.086770] hub 1-0:1.0: USB hub found
[ 4.092953] hub 1-0:1.0: 1 port detected
[ 4.100334] usbcore: registered new interface driver uas
[ 4.107840] Initializing USB Mass Storage driver...
[ 4.115355] usbcore: registered new interface driver usb-storage
[ 4.123734] USB Mass Storage support registered.
[ 4.130992] usbcore: registered new interface driver libusual
[ 4.139664] mousedev: PS/2 mouse device common for all mice
[ 4.147689] cpuidle: using governor ladder
[ 4.154201] cpuidle: using governor menu
[ 4.160493] sdhci: Secure Digital Host Controller Interface driver
[ 4.168949] sdhci: Copyright(c) Pierre Ossman
[ 4.175657] bcm_power_open() -> 1
[ 4.182060] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[ 4.194373] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[ 4.202746] sdhci-pltfm: SDHCI platform and OF driver helper
[ 4.212729] usbcore: registered new interface driver usbhid
[ 4.220562] usbhid: USB HID core driver
[ 4.227542] logger: created 256K log 'log_main'
[ 4.236948] logger: created 256K log 'log_events'
[ 4.249580] logger: created 256K log 'log_radio'
[ 4.256768] logger: created 256K log 'log_system'
[ 4.265886] zram: num_devices not specified. Using default: 1
[ 4.275844] zram: Creating 1 devices ...
[ 4.288085] IPv4 over IPv4 tunneling driver
[ 4.309570] TCP cubic registered
[ 4.314747] NET: Registered protocol family 17
[ 4.328956] Registering the dns_resolver key type
[ 4.335691] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[ 4.367354] mmc0: new high speed SDHC card at address e624
[ 4.376615] Waiting for root device /dev/mmcblk0p2...
[ 4.389590] mmcblk0: mmc0:e624 SU04G 3.69 GiB
[ 4.412258] mmcblk0: p1 p2 p3 p4
[ 4.525068] EXT4-fs (mmcblk0p2): recovery complete
[ 4.532004] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 4.544021] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 4.553446] Freeing init memory: 196K
[ 4.737209] init: cannot open '/initlogo.rle'
[ 4.786412] init: command 'loglevel' r=0
[ 4.792030] init: command 'export' r=0
[ 4.797349] init: command 'export' r=0
[ 4.802685] init: command 'export' r=0
[ 4.807827] init: command 'export' r=0
[ 4.813179] init: command 'export' r=0
[ 4.818189] init: command 'export' r=0
[ 4.823248] init: command 'export' r=0
[ 4.828093] init: command 'export' r=0
[ 4.832881] init: command 'export' r=0
[ 4.837469] init: command 'export' r=0
[ 4.842024] init: command 'export' r=0
[ 4.846453] init: command 'export' r=0
[ 4.850950] init: command 'export' r=0
[ 4.855495] init: command 'symlink' r=-1
[ 4.860389] init: command 'symlink' r=-1
[ 4.865174] init: command 'symlink' r=-1
[ 4.870060] init: command 'mkdir' r=-17
[ 4.875674] init: command 'mkdir' r=-17
[ 4.880489] init: command 'mkdir' r=-17
[ 4.885589] init: command 'mount' r=0
[ 4.890438] init: command 'mkdir' r=0
[ 4.895099] init: command 'symlink' r=-1
[ 4.900151] init: command 'mkdir' r=-17
[ 4.905057] init: command 'mkdir' r=-17
[ 4.910105] init: command 'mkdir' r=-17
[ 4.914941] init: command 'mkdir' r=-17
[ 4.919744] init: command 'mkdir' r=-17
[ 4.925279] init: command 'mkdir' r=-17
[ 4.930107] init: command 'mkdir' r=-17
[ 4.934807] init: command 'mkdir' r=-17
[ 4.939727] init: command 'mount' r=0
[ 4.944286] init: command 'mkdir' r=-17
[ 4.949353] init: command 'mount' r=0
[ 4.953985] init: command 'mkdir' r=-17
[ 4.958964] init: command 'write' r=0
[ 4.963759] init: command 'write' r=0
[ 4.968453] init: command 'write' r=0
[ 4.973408] init: command 'write' r=0
[ 4.978067] init: command 'write' r=0
[ 4.982837] init: command 'write' r=-2
[ 4.987564] init: command 'write' r=0
[ 4.992275] init: command 'mkdir' r=0
[ 4.997141] init: command 'mount' r=0
[ 5.001860] init: command 'chown' r=0
[ 5.006407] init: command 'chown' r=0
[ 5.011124] init: command 'chmod' r=0
[ 5.015701] init: command 'write' r=-22
[ 5.020618] init: command 'mkdir' r=0
[ 5.025138] init: command 'chown' r=0
[ 5.029737] init: command 'chmod' r=0
[ 5.034295] init: command 'write' r=0
[ 5.039042] init: command 'mkdir' r=0
[ 5.043605] init: command 'chown' r=0
[ 5.048128] init: command 'chmod' r=0
[ 5.052944] init: command 'write' r=0
[ 5.057482] init: processing action 0x2b25b0 (fs)
[ 5.063324] init: command 'mount' r=-1
[ 5.068049] init: command 'mount' r=-1
[ 5.072875] init: command 'mount' r=-1
[ 5.077540] init: command 'mount' r=-1
[ 5.082302] init: processing action 0x2b2698 (post-fs)
[ 5.089361] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 5.095874] init: command 'mount' r=0
[ 5.101034] init: command 'chown' r=0
[ 5.105986] init: command 'chmod' r=0
[ 5.117705] init: command 'mount' r=-1
[ 5.139844] init: command 'mount' r=-1
[ 5.146023] init: command 'mkdir' r=-17
[ 5.159045] init: command 'chown' r=0
[ 5.164016] init: command 'chmod' r=0
[ 5.178990] init: command 'copy' r=-1
[ 5.198898] init: command 'chown' r=-2
[ 5.203899] init: command 'chmod' r=-2
[ 5.209022] init: command 'copy' r=-1
[ 5.213987] init: command 'chown' r=-2
[ 5.228940] init: command 'chmod' r=-2
[ 5.234004] init: command 'write' r=-2
[ 5.246741] init: command 'chown' r=0
[ 5.251933] init: command 'chmod' r=0
[ 5.257764] init: command 'chown' r=-2
[ 5.262897] init: command 'chmod' r=-2
[ 5.267969] init: command 'chown' r=0
[ 5.272982] init: command 'chmod' r=0
[ 5.277909] init: command 'chown' r=0
[ 5.282963] init: command 'chmod' r=0
[ 5.287909] init: command 'chown' r=0
[ 5.292875] init: command 'chmod' r=0
[ 5.297671] init: command 'mkdir' r=-17
[ 5.303782] init: command 'mkdir' r=-17
[ 5.308698] init: command 'mkdir' r=-17
[ 5.313765] init: command 'mkdir' r=-17
[ 5.318632] init: command 'mkdir' r=-17
[ 5.323592] init: command 'mkdir' r=-17
[ 5.329387] init: command 'mkdir' r=-17
[ 5.334239] init: command 'mkdir' r=-17
[ 5.339151] init: command 'chmod' r=0
[ 5.344664] init: command 'chmod' r=-2
[ 5.349607] init: command 'mkdir' r=-17
[ 5.355358] init: command 'mkdir' r=-17
[ 5.360314] init: command 'mkdir' r=-17
[ 5.365075] init: command 'mkdir' r=-17
[ 5.369909] init: command 'mkdir' r=-17
[ 5.374638] init: command 'mkdir' r=-17
[ 5.379438] init: command 'mkdir' r=-17
[ 5.384141] init: command 'mkdir' r=-17
[ 5.388890] init: command 'mkdir' r=-17
[ 5.393577] init: command 'chown' r=0
[ 5.398042] init: command 'chmod' r=0
[ 5.402667] init: command 'mkdir' r=-17
[ 5.407365] init: command 'chown' r=0
[ 5.411978] init: command 'chmod' r=0
[ 5.416513] init: command 'mkdir' r=-17
[ 5.421499] init: command 'mkdir' r=-17
[ 5.426212] init: command 'chown' r=0
[ 5.430824] init: command 'chmod' r=0
[ 5.435349] init: command 'chown' r=0
[ 5.439969] init: command 'chmod' r=0
[ 5.444463] init: command 'chown' r=0
[ 5.449036] init: command 'chmod' r=0
[ 5.453577] init: command 'chown' r=-2
[ 5.458187] init: command 'chmod' r=-2
[ 5.462889] init: command 'chown' r=-2
[ 5.467512] init: command 'chmod' r=-2
[ 5.472364] init: command 'chown' r=-2
[ 5.476997] init: command 'chmod' r=-2
[ 5.481636] init: processing action 0x2b53b0 (property_service_init)
[ 5.494674] init: Created socket '/dev/socket/property_service' with mode '666', user '0', group '0'
[ 5.505966] init: command 'property_service_init' r=0
[ 5.512488] init: processing action 0x2b53f8 (signal_init)
[ 5.519522] init: command 'signal_init' r=0
[ 5.525078] init: processing action 0x2b5440 (check_startup)
[ 5.532258] init: command 'check_startup' r=0
[ 5.538098] init: processing action 0x2b3140 (boot)
[ 5.545399] init: command 'ifup' r=0
[ 5.551068] init: command 'hostname' r=0
[ 5.556777] init: command 'domainname' r=0
[ 5.562703] init: command 'setrlimit' r=0
[ 5.568402] init: command 'setprop' r=0
[ 5.574092] init: command 'setprop' r=0
[ 5.579728] init: command 'setprop' r=0
[ 5.585240] init: command 'setprop' r=0
[ 5.590960] init: command 'setprop' r=0
[ 5.596481] init: command 'setprop' r=0
[ 5.602071] init: command 'setprop' r=0
[ 5.607555] init: command 'setprop' r=0
[ 5.613142] init: command 'setprop' r=0
[ 5.618616] init: command 'setprop' r=0
[ 5.624185] init: command 'setprop' r=0
[ 5.638974] init: command 'setprop' r=0
[ 5.644431] init: command 'setprop' r=0
[ 5.658968] init: command 'setprop' r=0
[ 5.664266] init: command 'setprop' r=0
[ 5.678966] init: command 'setprop' r=0
[ 5.684027] init: command 'setprop' r=0
[ 5.698956] init: command 'setprop' r=0
[ 5.704054] init: command 'write' r=0
[ 5.718936] init: command 'write' r=0
[ 5.723660] init: command 'write' r=0
[ 5.728364] init: command 'write' r=0
[ 5.746055] init (1): /proc/1/oom_adj is deprecated, please use /proc/1/oom_score_adj instead.
[ 5.756506] init: command 'write' r=0
[ 5.761406] init: command 'write' r=0
[ 5.766163] init: command 'write' r=0
[ 5.770947] init: command 'chown' r=-2
[ 5.775704] init: command 'chown' r=-2
[ 5.780565] init: command 'chown' r=-2
[ 5.785332] init: command 'chown' r=-2
[ 5.790188] init: command 'chown' r=-2
[ 5.795025] init: command 'chown' r=0
[ 5.800012] init: command 'chown' r=-2
[ 5.804827] init: command 'chown' r=-2
[ 5.809779] init: command 'chmod' r=0
[ 5.814495] init: command 'chmod' r=-2
[ 5.819397] init: command 'chmod' r=-2
[ 5.824217] init: command 'chown' r=-2
[ 5.829151] init: command 'chown' r=-2
[ 5.833986] init: command 'chown' r=-2
[ 5.838788] init: command 'chown' r=-2
[ 5.843716] init: command 'chown' r=-2
[ 5.848551] init: command 'chown' r=-2
[ 5.853442] init: command 'chown' r=-2
[ 5.858231] init: command 'chown' r=-2
[ 5.863131] init: command 'chown' r=-2
[ 5.867928] init: command 'chown' r=-2
[ 5.872703] init: command 'chown' r=-2
[ 5.877258] init: command 'chown' r=-2
[ 5.881818] init: command 'chown' r=-2
[ 5.886304] init: command 'chown' r=-2
[ 5.890860] init: command 'chown' r=-2
[ 5.895321] init: command 'chown' r=-2
[ 5.899855] init: command 'chown' r=-2
[ 5.904308] init: command 'chown' r=-2
[ 5.908753] init: command 'chown' r=-2
[ 5.913370] init: command 'chown' r=0
[ 5.917788] init: command 'chown' r=0
[ 5.922275] init: command 'chown' r=0
[ 5.926687] init: command 'chown' r=0
[ 5.931156] init: command 'chown' r=0
[ 5.935539] init: command 'chown' r=0
[ 5.940026] init: command 'chown' r=0
[ 5.944404] init: command 'setprop' r=0
[ 5.949189] init: command 'setprop' r=0
[ 5.953747] init: command 'setprop' r=0
[ 5.958284] init: command 'setprop' r=0
[ 5.962967] init: command 'setprop' r=0
[ 5.969899] init: command 'import' r=0
[ 6.538584] init: command 'exec' r=0
[ 6.543701] init: starting 'servicemanager'
[ 6.549660] init: starting 'vold'
[ 6.554426] init: starting 'netd'
[ 6.561767] init: Created socket '/dev/socket/vold' with mode '660', user '0', group '1009'
[ 6.576834] init: starting 'debuggerd'
[ 6.582513] init: starting 'ril-daemon'
[ 6.588147] init: starting 'zygote'
[ 6.597932] init: Created socket '/dev/socket/dnsproxyd' with mode '660', user '0', group '3003'
[ 6.620434] init: Created socket '/dev/socket/rild-debug' with mode '660', user '1001', group '1000'
������������������������
init.rc
on early-init
start ueventd
on init
sysclktz 0
loglevel 8
# setup the global environment
export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
export LD_LIBRARY_PATH /vendor/lib:/system/lib
export ANDROID_BOOTLOGO 1
export ANDROID_CACHE /cache
export ANDROID_ROOT /system
export ANDROID_ASSETS /system/app
export ANDROID_DATA /data
export DOWNLOAD_CACHE /cache/download
export EXTERNAL_STORAGE /mnt/sdcard
export ASEC_MOUNTPOINT /mnt/asec
export LOOP_MOUNTPOINT /mnt/obb
export SD_EXT_DIRECTORY /sd-ext
export BOOTCLASSPATH /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar
# Backward compatibility
symlink /system/etc /etc
symlink /sys/kernel/debug /d
# Right now vendor lives on the same filesystem as system,
# but someday that may change.
symlink /system/vendor /vendor
# create mountpoints
mkdir /mnt 0775 root system
mkdir /mnt/sdcard 0755 system system
# Create cgroup mount point for cpu accounting
mkdir /acct
mount cgroup none /acct cpuacct
mkdir /acct/uid
# Backwards Compat - XXX: Going away in G*
symlink /mnt/sdcard /sdcard
mkdir /system
mkdir /data 0771 system system
mkdir /cache 0771 system cache
mkdir /config 0500 root root
# Directory for putting things only root should see.
mkdir /mnt/secure 0700 root root
# Directory for staging bindmounts
mkdir /mnt/secure/staging 0700 root root
# Directory-target for where the secure container
# imagefile directory will be bind-mounted
mkdir /mnt/secure/asec 0700 root root
# Secure container public mount points.
mkdir /mnt/asec 0700 root system
mount tmpfs tmpfs /mnt/asec mode=0755,gid=1000
# Filesystem image public mount points.
mkdir /mnt/obb 0700 root system
mount tmpfs tmpfs /mnt/obb mode=0755,gid=1000
mkdir /sd-ext 0771 system system
write /proc/sys/kernel/panic_on_oops 1
write /proc/sys/kernel/hung_task_timeout_secs 0
write /proc/cpu/alignment 4
write /proc/sys/kernel/sched_latency_ns 10000000
write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000
write /proc/sys/kernel/sched_compat_yield 1
write /proc/sys/kernel/sched_child_runs_first 0
# Create cgroup mount points for process groups
mkdir /dev/cpuctl
mount cgroup none /dev/cpuctl cpu
chown system system /dev/cpuctl
chown system system /dev/cpuctl/tasks
chmod 0777 /dev/cpuctl/tasks
write /dev/cpuctl/cpu.shares 1024
mkdir /dev/cpuctl/fg_boost
chown system system /dev/cpuctl/fg_boost/tasks
chmod 0777 /dev/cpuctl/fg_boost/tasks
write /dev/cpuctl/fg_boost/cpu.shares 1024
mkdir /dev/cpuctl/bg_non_interactive
chown system system /dev/cpuctl/bg_non_interactive/tasks
chmod 0777 /dev/cpuctl/bg_non_interactive/tasks
# 5.0 %
write /dev/cpuctl/bg_non_interactive/cpu.shares 52
on fs
# mount mtd partitions
# Mount /system rw first to give the filesystem a chance to save a checkpoint
mount yaffs2 mtd@system /system
mount yaffs2 mtd@system /system rw remount
mount yaffs2 mtd@userdata /data nosuid nodev
mount yaffs2 mtd@cache /cache nosuid nodev
on post-fs
# once everything is setup, no need to modify /
mount rootfs rootfs / rw remount
# We chown/chmod /data again so because mount is run as root + defaults
chown system system /data
chmod 0771 /data
# Mount compressed filesystems
mount squashfs loop@/system/lib/modules/modules.sqf /system/lib/modules ro
mount squashfs loop@/system/xbin/xbin.sqf /system/xbin ro
# Create dump dir and collect dumps.
# Do this before we mount cache so eventually we can use cache for
# storing dumps on platforms which do not have a dedicated dump partition.
mkdir /data/dontpanic
chown root log /data/dontpanic
chmod 0750 /data/dontpanic
# Collect apanic data, free resources and re-arm trigger
copy /proc/apanic_console /data/dontpanic/apanic_console
chown root log /data/dontpanic/apanic_console
chmod 0640 /data/dontpanic/apanic_console
copy /proc/apanic_threads /data/dontpanic/apanic_threads
chown root log /data/dontpanic/apanic_threads
chmod 0640 /data/dontpanic/apanic_threads
write /proc/apanic_console 1
# Same reason as /data above
chown system cache /cache
chmod 0771 /cache
# This may have been created by the recovery system with odd permissions
chown system cache /cache/recovery
chmod 0770 /cache/recovery
#change permissions on vmallocinfo so we can grab it from bugreports
chown root log /proc/vmallocinfo
chmod 0440 /proc/vmallocinfo
#change permissions on kmsg & sysrq-trigger so bugreports can grab kthread stacks
chown root system /proc/kmsg
chmod 0440 /proc/kmsg
chown root system /proc/sysrq-trigger
chmod 0220 /proc/sysrq-trigger
# create basic filesystem structure
mkdir /data/misc 01771 system misc
mkdir /data/misc/bluetoothd 0770 bluetooth bluetooth
mkdir /data/misc/bluetooth 0770 system system
mkdir /data/misc/keystore 0700 keystore keystore
mkdir /data/misc/vpn 0770 system system
mkdir /data/misc/systemkeys 0700 system system
mkdir /data/misc/vpn/profiles 0770 system system
# give system access to wpa_supplicant.conf for backup and restore
mkdir /data/misc/wifi 0770 wifi wifi
chmod 0770 /data/misc/wifi
chmod 0660 /data/misc/wifi/wpa_supplicant.conf
mkdir /data/local 0751 root root
mkdir /data/local/tmp 0771 shell shell
mkdir /data/local/download 0771 system cache
mkdir /data/data 0771 system system
mkdir /data/app-private 0771 system system
mkdir /data/app 0771 system system
mkdir /data/property 0700 root root
mkdir /cache/download 0771 system cache
# create dalvik-cache and double-check the perms
mkdir /data/dalvik-cache 0771 system system
chown system system /data/dalvik-cache
chmod 0771 /data/dalvik-cache
mkdir /cache/dalvik-cache 0771 system system
chown system system /cache/dalvik-cache
chmod 0771 /cache/dalvik-cache
# create the lost+found directories, so as to enforce our permissions
mkdir /data/lost+found 0770
mkdir /cache/lost+found 0770
# double check the perms, in case lost+found already exists, and set owner
chown root root /data/lost+found
chmod 0770 /data/lost+found
chown root root /cache/lost+found
chmod 0770 /cache/lost+found
# allow net_raw to have access to /dev/socket directory
chown root net_raw /dev/socket
chmod 0775 /dev/socket
# allow system to modify cpufreq control files
chown root system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chown root system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chown root system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
on boot
# basic network init
ifup lo
hostname localhost
domainname localdomain
# set RLIMIT_NICE to allow priorities from 19 to -20
setrlimit 13 40 40
# Define the oom_adj values for the classes of processes that can be
# killed by the kernel. These are used in ActivityManagerService.
setprop ro.FOREGROUND_APP_ADJ 0
setprop ro.VISIBLE_APP_ADJ 1
setprop ro.PERCEPTIBLE_APP_ADJ 2
setprop ro.HEAVY_WEIGHT_APP_ADJ 3
setprop ro.SECONDARY_SERVER_ADJ 4
setprop ro.BACKUP_APP_ADJ 5
setprop ro.HOME_APP_ADJ 6
setprop ro.HIDDEN_APP_MIN_ADJ 7
setprop ro.EMPTY_APP_ADJ 15
# Define the memory thresholds at which the above process classes will
# be killed. These numbers are in pages (4k).
setprop ro.FOREGROUND_APP_MEM 2048
setprop ro.VISIBLE_APP_MEM 3072
setprop ro.PERCEPTIBLE_APP_MEM 4096
setprop ro.HEAVY_WEIGHT_APP_MEM 4096
setprop ro.SECONDARY_SERVER_MEM 6144
setprop ro.BACKUP_APP_MEM 6144
setprop ro.HOME_APP_MEM 6144
setprop ro.HIDDEN_APP_MEM 7168
setprop ro.EMPTY_APP_MEM 8192
# Write value must be consistent with the above properties.
# Note that the driver only supports 6 slots, so we have combined some of
# the classes into the same memory level; the associated processes of higher
# classes will still be killed first.
write /sys/module/lowmemorykiller/parameters/adj 0,1,2,4,7,15
write /proc/sys/vm/overcommit_memory 1
write /proc/sys/vm/min_free_order_shift 4
write /sys/module/lowmemorykiller/parameters/minfree 2048,3072,4096,6144,7168,8192
# Set init its forked children's oom_adj.
write /proc/1/oom_adj -16
# Tweak background writeout
write /proc/sys/vm/dirty_expire_centisecs 200
write /proc/sys/vm/dirty_background_ratio 5
# Permissions for System Server and daemons.
chown radio system /sys/android_power/state
chown radio system /sys/android_power/request_state
chown radio system /sys/android_power/acquire_full_wake_lock
chown radio system /sys/android_power/acquire_partial_wake_lock
chown radio system /sys/android_power/release_wake_lock
chown radio system /sys/power/state
chown radio system /sys/power/wake_lock
chown radio system /sys/power/wake_unlock
chmod 0660 /sys/power/state
chmod 0660 /sys/power/wake_lock
chmod 0660 /sys/power/wake_unlock
chown system system /sys/class/timed_output/vibrator/enable
chown system system /sys/class/leds/keyboard-backlight/brightness
chown system system /sys/class/leds/lcd-backlight/brightness
chown system system /sys/class/leds/button-backlight/brightness
chown system system /sys/class/leds/jogball-backlight/brightness
chown system system /sys/class/leds/red/brightness
chown system system /sys/class/leds/green/brightness
chown system system /sys/class/leds/blue/brightness
chown system system /sys/class/leds/red/device/grpfreq
chown system system /sys/class/leds/red/device/grppwm
chown system system /sys/class/leds/red/device/blink
chown system system /sys/class/leds/red/brightness
chown system system /sys/class/leds/green/brightness
chown system system /sys/class/leds/blue/brightness
chown system system /sys/class/leds/red/device/grpfreq
chown system system /sys/class/leds/red/device/grppwm
chown system system /sys/class/leds/red/device/blink
chown system system /sys/class/timed_output/vibrator/enable
chown system system /sys/module/sco/parameters/disable_esco
chown system system /sys/kernel/ipv4/tcp_wmem_min
chown system system /sys/kernel/ipv4/tcp_wmem_def
chown system system /sys/kernel/ipv4/tcp_wmem_max
chown system system /sys/kernel/ipv4/tcp_rmem_min
chown system system /sys/kernel/ipv4/tcp_rmem_def
chown system system /sys/kernel/ipv4/tcp_rmem_max
chown root radio /proc/cmdline
# Define TCP buffer sizes for various networks
# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208
setprop net.tcp.buffersize.wifi 4095,87380,110208,4096,16384,110208
setprop net.tcp.buffersize.umts 4094,87380,110208,4096,16384,110208
setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680
# Include extra init file
import /system/etc/init.local.rc
# Run sysinit
exec /system/bin/sysinit
class_start default
## Daemon processes to be run by init.
##
service ueventd /sbin/ueventd
critical
service console /system/bin/sh
console
disabled
user shell
group log
on property:ro.secure=0
start console
# adbd is controlled by the persist.service.adb.enable system property
service adbd /sbin/adbd
disabled
# adbd on at boot in emulator
on property:ro.kernel.qemu=1
start adbd
on property:persist.service.adb.enable=1
start adbd
on property:persist.service.adb.enable=0
stop adbd
on property:service.adb.tcp.port=5555
restart adbd
on property:service.adb.tcp.port=-1
restart adbd
service servicemanager /system/bin/servicemanager
user system
critical
onrestart restart zygote
onrestart restart media
service vold /system/bin/vold
socket vold stream 0660 root mount
ioprio be 2
service netd /system/bin/netd
socket netd stream 0660 root system
socket dnsproxyd stream 0660 root inet
service debuggerd /system/bin/debuggerd
service ril-daemon /system/bin/rild
socket rild stream 0660 root radio
socket rild-debug stream 0660 radio system
user root
group radio cache inet misc audio sdcard_rw net_admin net_raw qcom_oncrpc diag
service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server
socket zygote stream 0660 root system
onrestart write /sys/android_power/request_state wake
onrestart write /sys/power/state on
onrestart restart media
onrestart restart netd
service media /system/bin/mediaserver
user media
group system audio camera graphics inet net_bt net_bt_admin net_raw
ioprio rt 4
service bootanim /system/bin/bootanimation
user graphics
group graphics
disabled
oneshot
service dbus /system/bin/dbus-daemon --system --nofork
socket dbus stream 0660 bluetooth bluetooth
user bluetooth
group bluetooth net_bt_admin
service bluetoothd /system/bin/bluetoothd -n
socket bluetooth stream 0660 bluetooth bluetooth
socket dbus_bluetooth stream 0660 bluetooth bluetooth
# init.rc does not yet support applying capabilities, so run as root and
# let bluetoothd drop uid to bluetooth with the right linux capabilities
group bluetooth net_bt_admin misc
disabled
service hfag /system/bin/sdptool add --channel=10 HFAG
user bluetooth
group bluetooth net_bt_admin
disabled
oneshot
service hsag /system/bin/sdptool add --channel=11 HSAG
user bluetooth
group bluetooth net_bt_admin
disabled
oneshot
service opush /system/bin/sdptool add --channel=12 OPUSH
user bluetooth
group bluetooth net_bt_admin
disabled
oneshot
service pbap /system/bin/sdptool add --channel=19 PBAP
user bluetooth
group bluetooth net_bt_admin
disabled
oneshot
service map /system/bin/sdptool add --channel=16 MAS
user bluetooth
group bluetooth net_bt_admin
disabled
oneshot
service installd /system/bin/installd
socket installd stream 0600 system system
service racoon /system/bin/racoon
socket racoon stream 0600 system system
# racoon will setuid to vpn after getting necessary resources.
group net_admin
disabled
oneshot
service mtpd /system/bin/mtpd
socket mtpd stream 0600 system system
user vpn
group vpn net_admin net_raw
disabled
oneshot
service keystore /system/bin/keystore /data/misc/keystore
user keystore
group keystore
socket keystore stream 0666
service dumpstate /system/bin/dumpstate -s
socket dumpstate stream 0660 shell log
disabled
oneshot
****************************************************************************************************
i have no idea what is the exact problem ......plz i need help
thanks
-kmr