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. OOM after ImageView.setImage() make the phone irresponsive - how to protect?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

My app, among other things, downloads and displays images from the
Internet. Some might be too large and trigge an OOM when
ImageView.setImage() is called.

Of course, this normally makes the application to crash. I've put
catch (OutOfMemoryError e) around the method invocation. I know that
catching errors is unusual, but in JSE applications it proved to work
pretty good, especially when the problem was due to image manipulation
that consumed all the memory. The Android app seemed to survive for a
while, but then it blocked the computer. All buttons are irresponsive,
even though the phone seems still alive (e.g. it's playing the audio
notification that new email has been spotted). I tried holding the
power button, it triggered the shut down menu, but touching a menu
option didn't do anything. Only after a while, the phone became
responsive again.

Now, it's reasonable that one can't display everything on a
smartphone; I'm sure there's some inefficient memory management I'm
doing (perhaps keeping too many images in memory); ok, I have to
improve my code. Given that I'll do, how can I add some safety
facility to avoid the most severe consequences? Making an irresponsive
application it's a 100% sure way to make people to uninstall my app
and give bad reviews.

I'm thinking of a two-pronged safety approach: 1) whether it's
possible to understand in advance whether an image is too large to be
rendered by itself; 2) whether it's possible to recover from an OOM in
any case.

Thanks.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkySa8cACgkQeDweFqgUGxd0WACgqxeDnLvof8nnry2YN6spYXy6
Ga8An0CujetPySu44VsNJsAyL+BIpz1S
=cQIf
-----END PGP SIGNATURE-----

-- 

2. speed dial

Do you know if android has speed dial, and if it does is it possible
for an aplication to change the speed dial numbers?
Well honestly i look for it and could not find anything, i just though
I should ask to make sure!

thanks

-- 
Aghi Holl
http://androidwear.com
Gear your Droid!

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

3. ioctl shell command in system bin

4. Adding a contact

5. Help with service and lifecycle

6. Touchscreen Events

7. Discover UPnP devices from my android device