The problem came from the system and root partition: when using
initramfs for root and yaffs2 for system (as it is prebuilt in
android), we have such problems of binary execution. My solution is to
use jffs2 for root and system, and yaffs2 for data (mmap supported
inside...). No more problem with this combination.

Tom


On Jan 23, 1:52 pm, Mark Wang <[email protected]> wrote:
> where is you /data? this partition must support mmap functionality.
> Meanwhile, check the existence of cache and other directories in /data,
> which is created during the 1st time booting and mandatory for booting.
>
> On Thu, Jan 22, 2009 at 6:48 PM, Tom_porting_android <
>
> [email protected]> wrote:
>
> > HI,
> > I have exactly the same problem when using yaffs2.
> > Has anyone a solution?
>
> > Thanks
>
> > Tom
>
> > On Dec 30 2008, 8:53 pm, mowgli <[email protected]> wrote:
> > > Hi,
> > > We are trying to port android on MSM 7225 hardware. Currently we are
> > > trying to manually bring up the framework. It fails during the init
> > > with the following logs. The service manager seems to die due to
> > > insufficient permissions(Permissiondenied). The service _manager
> > > binary seems to have executepermission. Any pointers would be much
> > > appreciated.
>
> > > # df
> > > Filesystem           1k-blocks      Used Available Use% Mounted on
> > > tmpfs                    34644         4     34640   0% /dev
> > > /dev/mtdblock0           96512      5664     90848   6% /mnt/flash
> > > /dev/mtdblock1           61440     50028     11412  81% /system
> > > #
> > > we have abt 32 MB of RAM free before the framework is started.
>
> > > # ./init
> > > init: cannot open '/initlogo.rle'
> > > sh: can't access tty; job control turned off
> > > # init: cannot find '/system/bin/playmp3', disabling 'bootsound'
> > > init: untracked pid 911 exited
> > > app_process used greatest stack depth: 4848 bytes left
> > > init: untracked pid 899 exited
> > > init: untracked pid 1002 exited
> > > init: untracked pid 1024 exited
> > > app_process used greatest stack depth: 4812 bytes left
> > > init: untracked pid 1013 exited
> > > init: untracked pid 1036 exited
> > > app_process used greatest stack depth: 4764 bytes left
> > > init: untracked pid 1026 exited
> > > init: critical process 'servicemanager' exited 4 times in 4 minutes;
> > > rebooting i
> > > nto recovery mode
> > > +Restarting system with command 'recovery'.
>
> > > strace logs for the forked service manager process:
>
> > > 01:04:26 dup(5) = 9
> > > 01:04:26 open("/dev/null", O_RDWR|O_LARGEFILE)                    = 10
> > > 01:04:26 dup2(10, 0) = 0
> > > 01:04:26 dup2(10, 1)                         = 1
> > > 01:04:27 dup2(10, 2) = 2
> > > 01:04:27 close(10) = 0
> > > 01:04:27 getpid()                      = 1023
> > > 01:04:27 setpgid(0, 1023)               = 0
> > > 01:04:27 setuid32(1000)                         = 0
> > > 01:04:27execve("/system/bin/servicemanager", ["/system/bin/
> > > servicemanager"], [/* 9 vars */]) = -1 EACCES (Permissiondenied)
> > > 01:04:27 exit_group(127)                = ?
>
> > > The service manager binary seems to have the right permissions:
> > > # cd /system/bin
> > > # ls -l
> > > -rwxr-xr-x    1 1000     1000          189 Dec  4  2008 am
> > > -rwxr-xr-x    1 1000     1000         5564 Dec  5  2008 app_process
> > > -rwxr-xr-x    1 1000     1000         5420 Dec  5  2008 dalvikvm
> > > -rwxr-xr-x    1 1000     1000       121728 Dec  5  2008 dbus-daemon
> > > -rwxr-xr-x    1 1000     1000        18024 Dec  5  2008 debuggerd
> > > -rwxr-xr-x    1 1000     1000         9644 Dec  5  2008 dexopt
> > > -rwxr-xr-x    1 1000     1000        40372 Dec  5  2008 dhcpcd
> > > -rwxr-xr-x    1 1000     1000         3266 Dec  4  2008 dumpstate
> > > -rwxr-xr-x    1 1000     1000         9724 Dec  5  2008 dumpsys
> > > -rwxr-xr-x    1 1000     1000         5460 Dec  5  2008 dvz
> > > -rwxr-xr-x    1 1000     1000         9640 Dec  5  2008 flash_image
> > > -rwxr-xr-x    1 1000     1000        18896 Dec  5  2008 hciattach
> > > -rwxr-xr-x    1 1000     1000       178716 Dec  5  2008 hcid
> > > -rw-r--r--    1 1000     1000          201 Dec  4  2008 input
> > > -rwxr-xr-x    1 1000     1000        14020 Dec  5  2008 installd
> > > -rwxr-xr-x    1 1000     1000       109020 Dec  5  2008 iptables
> > > -rwxr-xr-x    1 1000     1000        71312 Dec  5  2008 linker
> > > -rwxr-xr-x    1 1000     1000         9736 Dec  5  2008 logcat
> > > -rwxr-xr-x    1 1000     1000         9656 Dec  5  2008 logwrapper
> > > -rwxr-xr-x    1 1000     1000         5364 Dec  5  2008 mediaserver
> > > -rwxr-xr-x    1 1000     1000          205 Dec  4  2008 monkey
> > > -rwxr-xr-x    1 1000     1000        17996 Dec  5  2008 mountd
> > > -rwxr-xr-x    1 1000     1000         5616 Dec  5  2008 netcfg
> > > -rwxr-xr-x    1 1000     1000        22128 Dec  5  2008
> > > omx_h264_dec_test
> > > -rwxr-xr-x    1 1000     1000         9796 Dec  5  2008
> > > omx_mp4_dec_test
> > > -rwxr-xr-x    1 1000     1000        26628 Dec  5  2008 ping
> > > -rwxr-xr-x    1 1000     1000          191 Dec  4  2008 pm
> > > -rwxr-xr-x    1 1000     1000         9720 Dec  5  2008 qemud
> > > -rwxr-xr-x    1 1000     1000         5328 Dec  5  2008 radiooptions
> > > -rwxr-xr-x    1 1000     1000       276424 Dec  5  2008 recovery
> > > -rwxr-xr-x    1 1000     1000         5592 Dec  5  2008 rild
> > > -rwxr-xr-x    1 1000     1000        46460 Dec  5  2008 sdptool
> > > -rwxr-xr-x    1 1000     1000         5524 Dec  5  2008 sdutil
> > > -rwxr-xr-x    1 1000     1000         9764 Dec  5  2008 service
> > > -rwxr-xr-x    1 1000     1000         9828 Dec  5  2008 servicemanager
> > > -rwxr-xr-x    1 1000     1000         5376 Dec  5  2008 set_grp_id
> > > -rwxr-xr-x    1 1000     1000        86936 Dec  5  2008 sh
> > > -rwxr-xr-x    1 1000     1000         5340 Dec  5  2008 surfaceflinger
> > > -rwxr-xr-x    1 1000     1000          192 Dec  4  2008 svc
> > > -rwxr-xr-x    1 1000     1000         5332 Dec  5  2008 system_server
> > > -rwxr-xr-x    1 1000     1000        68484 Dec  5  2008 toolbox
> > > -rwxr-xr-x    1 1000     1000        64936 Dec  5  2008 wlan_loader
> > > #
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to