Boot up error- porting android to imx31 (android version 1.5)

40 views
Skip to first unread message

shyjumon

unread,
Jul 16, 2009, 7:10:00 AM7/16/09
to android-porting
Hi all,
I am trying to port android 1.5 version to my imx-31 borad. I have
successfully ported till 1.1 version in my board without any issue.
This time i am building the RFS from the source code rather than
pulling the RFS from the emulator. Please help me if any one come
across the following error:

D/AndroidRuntime( 27): >>>>>>>>>>>>>> AndroidRuntime START
<<<<<<<<<<<<<<
D/AndroidRuntime( 27): CheckJNI is ON
I/dalvikvm( 27): DexOpt: source file mod time mismatch (3aae8f72 vs
3aee9431)
W/dalvikvm( 27): Cached DEX '/system/framework/core.jar' (/data/
dalvik-cache/system@framework@core...@classes.dex) is stale and not
writable
I/dalvikvm( 27): Unable to open or create cache for /system/
framework/core.jar
D/dalvikvm( 27): Failed on '/system/framework/core.jar' (boot=1)
D/dalvikvm( 27): VM cleaning up
D/dalvikvm( 27): LinearAlloc 0x0 used 4100 of 4194304 (0%)
W/dalvikvm( 27): JNI_CreateJavaVM failed
E/AndroidRuntime( 27): JNI_CreateJavaVM failed
I/ ( 28): ServiceManager: 0xac38
W/AudioHardwareInterface( 28): Using stubbed audio hardware. No
sound will be produced.
I/AudioFlinger( 28): AudioFlinger's thread ready to run for output 0
I/CameraService( 28): CameraService started: pid=28
D/AndroidRuntime( 39):

The above is the logcat output.
I have build android from the source code downloaded from the
repository. And copied the file system from the "out/target/product/
generic/" path.
The procedure i followed is as follows:

[root@localhost]# cd /opt
[root@localhost]# mkdir my_repo
[root@localhost]# cd my_repo
[root@localhost]# curl http://android.git.kernel.org/repo > /bin/repo
[root@localhost]# chmod a+x /bin/repo
[root@localhost]# repo init -u git://android.git.kernel.org/platform/manifest.git
[root@localhost]# repo sync

I got the source and then.
[root@localhost]# export PATH=<jdl path>:$PATH
[root@localhost]# make TARGET_ARCH=arm
build/core/product_config.mk:261: WARNING: adding test OTA key
============================================
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=
============================================
build/core/copy_headers.mk:15: warning: overriding commands for target
`out/target/product/generic/obj/include/libpv/getactualaacconfig.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for
target `out/target/product/generic/obj/include/libpv/
getactualaacconfig.h'
make: execvp: /bin/bash: Argument list too long
Install: out/target/product/generic/system/app/Mms.apk
---- here i skipped lot of line -----

[root@localhost]# ls out/target/product/generic/
android-info.txt clean_steps.mk data installed-files.txt obj
previous_build_config.mk
ramdisk.img root symbols system system.img userdata.img

I trying to copy the filesystem to my SD card (card is partitioned in
2, sdc1 and sdc2 and i am copying the RFS to sda1 and the format is
ext3).

[root@localhost]# mount /dev/sdc1 /mnt/sdcard1

[root@localhost]# mkdir /opt/android_RFS_1.5

[root@localhost]# cp -a ramdisk.img /opt/android_RFS_1.5

[root@localhost]# cp -a system.img /opt/android_RFS_1.5

[root@localhost]# cp -a userdata.img /opt/android_RFS_1.5

[root@localhost]# cp -a system /opt/android_RFS_1.5

[root@localhost]# cp -a data /opt/android_RFS_1.5

[root@localhost]# cp -a root /opt/android_RFS_1.5

[root@localhost]# cd /opt/android_RFS_1.5

[root@localhost]# gzip -cd ramdisk.img > ramdisk

[root@localhost]# cpio -iv -F ramdisk

Since i could not mount and extract system.img and userdata.img, i
have extracted data and system folders from the running emulator by
using adb.

[root@localhost]# cp -a ./* /mnt/sdcard1

[root@localhost]# sync

[root@localhost]# umount /dev/sdc1

I have put the sdcard to my target board and booted up, the LCD
display is showing Android and it hangs and when i check the logcat
output the above error i could get.

Please advice me what the wrong step i am doing. And if any of you
came across the above error please advice me how to fix the same. Also
is there any links or mail threads which i can refer to.

Thank you.

With regds,
Shyjumon N

fadden

unread,
Jul 16, 2009, 3:43:05 PM7/16/09
to android-porting
On Jul 16, 4:10 am, shyjumon <shyjumo...@gmail.com> wrote:
> W/dalvikvm(   27): Cached DEX '/system/framework/core.jar' (/data/
> dalvik-cache/system@framework@core...@classes.dex) is stale and not
> writable
> I/dalvikvm(   27): Unable to open or create cache for /system/
> framework/core.jar

What are the ownership and permissions on /data/dalvik-cache, and on
the file listed above?

The VM wants to rewrite core.jar's entry in /data/dalvik-cache, but
does not believe it's able to do so.

SMN

unread,
Jul 17, 2009, 2:50:55 AM7/17/09
to android-porting
Hi Fadden,
Thank you for the reply. As i have checked the permissions, i have
give 0777 permission for data and dalvik-cache too.

-rwxrwxrwx 1 root root 3689656 2009-06-08 18:22
system@framework@core...@classes.dex
The above is the permission of the classes.dex.

Is there any modification required in init.rc script ? and also is
there any other thread which having similar sort of discussions going
on ?

Thank you and regards,
Shyjumon N.

On Jul 16, 12:43 pm, fadden <fad...@android.com> wrote:
> On Jul 16, 4:10 am, shyjumon <shyjumo...@gmail.com> wrote:
>
> > W/dalvikvm( 27): Cached DEX '/system/framework/core.jar' (/data/
> > dalvik-cache/system@framew...@core.jar@classes.dex) is stale and not

SMN

unread,
Jul 18, 2009, 5:00:29 AM7/18/09
to android-porting
Hi All
Thank you for the support. I have successfully done the Android 1.5
porting. The above problem was due to data corruption in /data/dalvik-
cache/ . This is caused by the wrong method to copy the RFS. For SD
card RFS:

[root@localhost]# cd <path of android source>/out/target/product/
generic

[root@localhost]# mount /dev/sdc1 /mnt/sdcard1

[root@localhost]# cp -a root/* /mnt/sdcard1/

[root@localhost]# cp -a system /mnt/sdcard1/

Modify the init.rc file

[root@localhost]# umount /dev/sdc1

boot the board.

Thank you.
Shyjumon N.



On Jul 17, 11:50 am, SMN <shyjumo...@gmail.com> wrote:
> Hi Fadden,
> Thank you for the reply. As i have checked the permissions, i have
> give 0777 permission for data and dalvik-cache too.
>
> -rwxrwxrwx 1 root root  3689656 2009-06-08 18:22
> system@framew...@core.jar@classes.dex
Reply all
Reply to author
Forward
0 new messages