[+list - many eyes are better to get quick help]
you can increase loglevel in init.rc to get all traces of init.,
You can use ERROR("..",fmt) macro or log_write() calls to get traces out.
check in init.c, utils.c for exisiting traces reference..
On Mon, May 23, 2011 at 8:07 AM, saminath sanjai <[email protected]>wrote:
> Hi Deva,
> Thanks for reply,
>
> How enbale debug/print in the system/core/init/init.c file. This will
> help me more on analysis.
>
>
> with regards,
> saminath.
>
>
>
>
>
> On Sun, May 22, 2011 at 12:38 PM, Deva R <[email protected]> wrote:
>
>> Hi,
>>
>> not sure, how changes in init.c (option #1) would help in this case, or
>> having generic script.,
>>
>>
>> regrading option#2 (updating init.rc), below syntax should have worked..,
>> can u check your syntax? (we can check for any warnings while exporting
>> init.rc or while init is running below commands)
>>
>> on property:ro.kernel.root="/dev/sda1"
>> <mount sda>
>> on property:ro.kernel.root="/dev/mmcblkp1"
>> <mount from mmc>
>>
>>
>>
>> On Sun, May 22, 2011 at 2:04 PM, ARM_SOC <[email protected]> wrote:
>>
>>> In Android i am facing a problem.
>>>
>>> In android boot time Kernel boot parameter has file system location
>>> information root=/dev/sda1 or root=/dev/mmcblkp1. Based on that
>>> android init.rc mount the /system /data /cache folders. Now we are
>>> using two different init.rc for specific device (sda1 or mmcblk1p1) ,
>>> i want make into a single script which need to validate the device
>>> information from kernel boot parameter in the init.rc file and mount
>>> accordingly.
>>>
>>> What i Analysis & understand:
>>>
>>> system/core/init/init.c :
>>> Which reads all kernel boot parameter
>>> and set_property("ro.kernel.root",value). This function reads the cat /
>>> proc/cmdline and spilit it.
>>>
>>>
>>> system/core/rootdir/init.rc
>>> which reads like on
>>> property:ro.kernel.root. But this is not working when i tested.
>>>
>>> Am i approaching this problem in a correct way? not?
>>>
>>>
>>> If not, kindly help me out this problem.
>>>
>>>
>>> --
>>> unsubscribe: [email protected]
>>> website: http://groups.google.com/group/android-porting
>>>
>>
>>
>>
>> --
>> Regards,
>> Deva
>> www.bittoggler.com
>>
>>
>
--
Regards,
Deva
www.bittoggler.com
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting