Check if u have /dev/ashmem node


On Apr 21, 2009, at 6:46 AM, gowtham gowda <gowth...@gmail.com> wrote:

>
> this is the gdb output
>
> # gdb ./init
> GNU gdb 6.8-debian
> Copyright (C) 2008 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/
> gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show
> copying"
> and "show warranty" for details.
> This GDB was configured as "i486-linux-gnu"...
> (gdb) run
> Starting program: /init
>
> Program received signal SIGSEGV, Segmentation fault.
> property_set (name=0x806b69c "ro.secure", value=0x806b6a6 "0") at
> system/core/init/property_service.c:287
> 287             pi->serial = (valuelen << 24);
>
>
> On Apr 21, 1:11 am, Yi Sun <beyo...@gmail.com> wrote:
>> gdb ./init
>> (gdb) run
>>
>> and then wait it to crash. After that run "bt" or "where" to find  
>> where
>> it crashs.
>> And then ..... dump point value, dump register, .......
>>
>> On Mon, 2009-04-20 at 21:07 -0700, gowtham gowda wrote:
>>> i have installed gdb on objdump on the machine. How do i use them?
>>
>>> Thanks,
>>> Gowtham
>>
>>> On Apr 20, 10:47 pm, Yi Sun <beyo...@gmail.com> wrote:
>>>> Can you at least put a gdb there to get a back trace or something?
>>
>>>> On Mon, 2009-04-20 at 18:47 -0700, gowtham gowda wrote:
>>>>> i am not getting the init.rc error anymore, but i still get the
>>>>> segmentation fault. looks like this wont work, i need to work on
>>>>> making a bootable usb drive. I am able to make a efi bootable  
>>>>> usb for
>>>>> moblin. I really want to make one for android. Can some one help  
>>>>> me?
>>
>>>>> Gowtham
>>
>>>>>> If he is using the old patch, then there maybe a typo in the  
>>>>>> init.rc
>>>>>> added by me under the line for adbd. If that is the case, just  
>>>>>> remove
>>>>>> the enabled. But it is unlikely to cause the segfault.
>>>>>> Yi
>>
>>>>>> On Tue, 2009-04-21 at 08:39 +0800, Chen Yang wrote:
>>>>>>> Your init.rc seems to have problem at lne 183, i don't know  
>>>>>>> whether it
>>>>>>> may cause the segfault.
>>>>>>> --
>>>>>>> Chen
>>
>>>>>>> On Tue, Apr 21, 2009 at 4:11 AM, gowtham gowda  
>>>>>>> <gowth...@gmail.com> wrote:
>>
>>>>>>>> 1st time i used the moblin kernel, but when i use the android  
>>>>>>>> kernel i
>>>>>>>> am getting the "segmentation fault". The dmesg output is
>>
>>>>>>>> [  165.505690] init: /init.rc: 183: invalid option 'enabled'
>>>>>>>> [  167.114261] init[1230]: segfault at 00000020 eip 0804be00  
>>>>>>>> esp
>>>>>>>> bffde7c0 error 6
>>
>>>>>>>> On Apr 19, 10:00 pm, Chen Yang <sunsety...@gmail.com> wrote:
>>>>>>>>> have you used the android kernel on your host?
>>>>>>>>> --
>>>>>>>>>  Chen
>>
>>>>>>>>> On Mon, Apr 20, 2009 at 8:50 AM, gowtham gowda  
>>>>>>>>> <gowth...@gmail.com> wrote:
>>
>>>>>>>>>> # chroot /mnt/android /init
>>>>>>>>>> Segmentation fault
>>
>>>>>>>>>> On Apr 19, 8:42 pm, gowtham gowda <gowth...@gmail.com> wrote:
>>>>>>>>>>> i am getting the following error:
>>>>>>>>>>> [ 1342.051355] Bulk In Failed. Status=-71, BIIdx=0x4,  
>>>>>>>>>>> BIRIdx=0x4,
>>>>>>>>>>> actual_length= 0x0
>>>>>>>>>>> [ 1399.669726] init[10339]: segfault at 00000020 eip  
>>>>>>>>>>> 0804be00 esp
>>>>>>>>>>> bfdc0c90 error 6
>>>>>>>>>>> [ 1402.741197] init[11162]: segfault at 00000020 eip  
>>>>>>>>>>> 0804be00 esp
>>>>>>>>>>> bfe234f0 error 6
>>
>>>>>>>>>>> On Apr 19, 7:01 pm, Chen Yang <sunsety...@gmail.com> wrote:
>>
>>>>>>>>>>>> You can copy all the out/target/product/eee_701/root  
>>>>>>>>>>>> directory to one
>>>>>>>>>>>> directory, say /home/android
>>>>>>>>>>>> cp -raf out/target/product/eee_701/root /home/android
>>>>>>>>>>>> cp -raf out/target/product/eee_701/system /home/android
>>>>>>>>>>>> cp -raf out/target/product/eee_701/data /home/android
>>>>>>>>>>>> before chroot, try to add chmod -R o+r  /home/android
>>>>>>>>>>>> Meanwhile, you may need to modify the init.rc to remove  
>>>>>>>>>>>> those
>>>>>>>>>>>> system,data related mounting, as well as those   kernel  
>>>>>>>>>>>> modules.
>>
>>>>>>>>>>>> then: chroot /home/android /init
>>
>>>>>>>>>>>> Hope it helps!
>>>>>>>>>>>> --
>>>>>>>>>>>>  Chen
>>
>>>>>>>>>>>> On Sun, Apr 19, 2009 at 11:55 PM, gowtham gowda  
>>>>>>>>>>>> <gowth...@gmail.com> wrote:
>>
>>>>>>>>>>>>> If you can give me a how to run android from chroot, it  
>>>>>>>>>>>>> will be very
>>>>>>>>>>>>> helpful.
>>
>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>> Gowtham
>>
>>>>>>>>>>>>> On Apr 19, 10:52 am, Sean McNeil <seanmcne...@gmail.com>  
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>> I used to run Android from chroot under a minimal  
>>>>>>>>>>>>>> filesystem all the
>>>>>>>>>>>>>> time. It helps to debug the init process.
>>
>>>>>>>>>>>>>> David Turner wrote:
>>>>>>>>>>>>>>> in short, no, Android requires its own init system,  
>>>>>>>>>>>>>>> specific kernel
>>>>>>>>>>>>>>> drivers that are probably not in the moblin/ubuntu  
>>>>>>>>>>>>>>> one, etc...
>>
>>>>>>>>>>>>>>> there are probably some hacks that could make the two  
>>>>>>>>>>>>>>> systems co-exist
>>>>>>>>>>>>>>> (e.g. like running Debian in a chroot under Android),  
>>>>>>>>>>>>>>> but they
>>>>>>>>>>>>>>> probably require a few non-trivial steps that might be  
>>>>>>>>>>>>>>> hard to
>>>>>>>>>>>>>>> automate right now.
>>
>>>>>>>>>>>>>>> On Sun, Apr 19, 2009 at 1:40 AM, gowtham gowda  
>>>>>>>>>>>>>>> <gowth...@gmail.com
>>>>>>>>>>>>>>> <mailto:gowth...@gmail.com>> wrote:
>>
>>>>>>>>>>>>>>>     is it possible to start android on top of moblin  
>>>>>>>>>>>>>>> or ubuntu installed
>>>>>>>>>>>>>>>     on  a laptop or netbook?
> >

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to