Porting on msm7225

by mowgli » Tue, 30 Dec 2008 19:53:13 GMT


Sponsored Links
 i,
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(Permission denied). The service _manager
binary seems to have execute permission. 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:27 execve("/system/bin/servicemanager", ["/system/bin/
servicemanager"], [/* 9 vars */]) = -1 EACCES (Permission denied)
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



Porting on msm7225

by Tom_porting_android » Thu, 22 Jan 2009 10:49:00 GMT


 I,
I have exactly the same problem when using yaffs2.
Has anyone a solution?

Thanks

Tom


On Dec 30 2008, 8:53 pm, mowgli <mahadeva...@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---


Sponsored Links


Porting on msm7225

by Mark Wang » Fri, 23 Jan 2009 12:52:48 GMT


 here 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 <
thomas.bandel...@gmail.com> wrote:


--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



Porting on msm7225

by AK » Sun, 08 Mar 2009 04:38:40 GMT


 i guys

Have you had any success on porting the Android over to MSM7225 ? I
have HTC Jade, and would love to test ride the build releases if you
have any.

Thanks


On Jan 23, 8:52pm, Mark Wang <wqhl.m...@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



Porting on msm7225

by Tom_porting_android » Tue, 10 Mar 2009 13:50:25 GMT


 he 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 <wqhl.m...@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



Porting on msm7225

by Thomas Bandelier » Wed, 11 Mar 2009 18:00:44 GMT


 ello,

The problem came from the partitioning: Now I have rootfs and system in
jffs2 ro and application can be launched.

Tom


On Fri, Jan 23, 2009 at 1:52 PM, Mark Wang <wqhl.m...@gmail.com> wrote:


--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



Porting on msm7225

by Prasad » Sat, 11 Apr 2009 14:02:46 GMT


 i Guys,

Any one succesfully ported android to MSM7225 (T3232) yet? I treid
varous varents and they are detecting the device as Generic MSM7500
and fails.

Thanks

On Mar 8, 9:38am, AK <ashwi...@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



Other Threads

1. Issues with this group - bug in google groups

This does appear to be a bug in Google's groups system.   Following
your instructions results in attempting to load this URL, which finds
no results

2. prepare() fails when trying to record video

Hi, tried to make a simple camcorder application based on the
VideoCamera in the default apps. My main problem is that the prepare()
call always fail.
I am pretty sure I set all the settings in the MediaRecorder correctly
and in the right order.
..
recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT);
recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP);
recorder.setOutputFile("/sdcard/video_test.mp4");
..
when surface is created i do:
recorder.setPreviewDisplay(holder.getSurface());
if (recorder != null) {
        try {
                recorder.prepare();
        } catch (IllegalStateException e) {
                Log.e("IllegalStateException", e.toString(), e);
        } catch (IOException e) {
                Log.e("IOException", e.toString(), e);
        }
}

However, the prepare always fail. When I view logcat I see the
following error:
E/MediaRecorder(  222): prepare failed: -2147483648

E/IOException(  223): java.io.IOException: prepare failed.
E/IOException(  223): java.io.IOException: prepare failed.
E/IOException(  223):   at android.media.MediaRecorder._prepare(Native
Method)
E/IOException(  223):   at android.media.MediaRecorder.prepare
(MediaRecorder.java:375)
E/IOException(  223):   at
com.mycompany.CamcorderPreview.surfaceCreated(CamcorderPreview.java:
41)
E/IOException(  223):   at android.view.SurfaceView.updateWindow
(SurfaceView.java:352)
E/IOException(  223):   at android.view.SurfaceView.dispatchDraw
(SurfaceView.java:259)
E/IOException(  223):   at android.view.ViewGroup.drawChild
(ViewGroup.java:1484)
E/IOException(  223):   at android.view.ViewGroup.dispatchDraw
(ViewGroup.java:1228)
E/IOException(  223):   at android.view.ViewGroup.drawChild
(ViewGroup.java:1484)
E/IOException(  223):   at android.view.ViewGroup.dispatchDraw
(ViewGroup.java:1228)
E/IOException(  223):   at android.view.View.draw(View.java:5841)
E/IOException(  223):   at android.widget.FrameLayout.draw
(FrameLayout.java:352)
E/IOException(  223):   at android.view.ViewGroup.drawChild
(ViewGroup.java:1486)
E/IOException(  223):   at android.view.ViewGroup.dispatchDraw
(ViewGroup.java:1228)
E/IOException(  223):   at android.view.View.draw(View.java:5841)
E/IOException(  223):   at android.widget.FrameLayout.draw
(FrameLayout.java:352)
E/IOException(  223):   at com.android.internal.policy.impl.PhoneWindow
$DecorView.draw(PhoneWindow.java:1847)
E/IOException(  223):   at android.view.ViewRoot.draw(ViewRoot.java:
1217)
E/IOException(  223):   at android.view.ViewRoot.performTraversals
(ViewRoot.java:1030)
E/IOException(  223):   at android.view.ViewRoot.handleMessage
(ViewRoot.java:1482)
E/IOException(  223):   at android.os.Handler.dispatchMessage
(Handler.java:99)
E/IOException(  223):   at android.os.Looper.loop(Looper.java:123)
E/IOException(  223):   at android.app.ActivityThread.main
(ActivityThread.java:3948)
E/IOException(  223):   at java.lang.reflect.Method.invokeNative
(Native Method)
E/IOException(  223):   at java.lang.reflect.Method.invoke(Method.java:
521)
E/IOException(  223):   at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:782)
E/IOException(  223):   at com.android.internal.os.ZygoteInit.main
(ZygoteInit.java:540)
E/IOException(  223):   at dalvik.system.NativeStart.main(Native
Method)

The sdcard/video_test.mp4 file is created in the process but is of
size 0. I tried to see what could be wrong in the native mediarecorder
class but didn't get any wiser.

(Im using a couple of days old cupcake and an ADP1.)

Any ideas appreciated!

--~--~---------~--~----~------------~-------~--~----~

3. easy stuff please reply

4. Youtube request - search

5. Any else having problems with Market publishers site?

6. Text View

7. nfs