[android-porting] Re: Problem porting Android to iPhone

2010-04-16 Thread mizmit1222
Hi, I guess you got very close to make a thing happen. ashmem - OK binder - OK /data fs type - ext2 - OK Just double checking, but you do chroot to ext2 fs? One more question. It seems to me "adbd" is up. Is there any way to connect to your iPhone while booting up through USB or WiFi to get

[android-porting] Re: Problem porting Android to iPhone

2010-04-16 Thread David Wang
On Apr 16, 4:59 am, mizmit1222 wrote: > Hi, > > I guess you got very close to make a thing happen. >  ashmem - OK >  binder - OK >  /data fs type - ext2 - OK > > Just double checking, but you do chroot to ext2 fs? Yes, as you can see at the bottom of http://iphwn.org/planetbeing/postmortem/, both

[android-porting] Re: Problem porting Android to iPhone

2010-04-16 Thread David Wang
I've discovered a couple of more clues about the problem, but not enough to solve it yet. Apparently any process that attempts to reset its UID before executing execve gets killed. Since servicemanager wants to run as 1000 (for system), it gets killed. I've tried replacing the servicemanager execut

[android-porting] Re: Problem porting Android to iPhone

2010-04-16 Thread David Wang
I found the problem. For some reason my CONFIG_DEFAULT_MMAP_MIN_ADDR was set to 65536 (a sane default for desktops), but pretty much every embedded program out there maps text below < 64 KB. The security capabilities system of Linux was preventing everyone but root from mmaping addresses below 0x10

[android-porting] Re: Problem porting Android to iPhone

2010-04-19 Thread nate
Awesome job so far. By chance are you not getting to the point where dexopt is populating /data/Dalvik-cache? That will throw class not found exceptions. If it is, wipe the folder's contents and reboot. Just a guess but easy to test -- unsubscribe: android-porting+unsubscr...@googlegroups.com web

[android-porting] Re: Problem porting Android to iPhone

2010-04-19 Thread nate
Good to hear it's working but I wonder what you mean by "everything." Any chance of getting a copy of your setup? On Apr 19, 11:59 pm, David Wang wrote: > It seemed to be a permissions problem, for some reason it managed to > create the rest of the subdirectories in /data/Dalvik-cache correctly >

Re: [android-porting] Re: Problem porting Android to iPhone

2010-04-19 Thread David Wang
It seemed to be a permissions problem, for some reason it managed to create the rest of the subdirectories in /data/Dalvik-cache correctly with the exception of two. I had to create the directories myself and set their permissions manually. After that, everything worked. On Mon, Apr 19, 2010 at 12