This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

am335x porting in gingerbread problem

We make a custom AM335x board , it reference AM335x EVM.

 

        what difference between TI AM335x EVM and our custom AM335x  board.

 

                              TI AM335x EVM         custom AM335x board

        ETH                 may be grmii               MII

        WIFI                 wl127x                   No wifi  No BT NO CAN

       DDR2               256M                         128M

      other is same.

        And We have run it in the custom board ,follow TI-Android-GingerBread-2.3.4-Devkit-2.1 DeveloperGuide.

        download TI_Android_GingerBread_2_3_4_AM335x_Sources.tar,and make TARGET_PRODUCT=am335xevm OMAPES=4.x -j2.

        When I port android os on our custom AM335x board.

       It show the logo of robot as following.

 
but it cannot enter the android system.

so I disable sgx is

1) delete system/bin/sgx/rc.pvr

2) delete /system/lib/hw/gralloc.omap3.so.*

now it can enter the android system as following.(such as the picture),and enter the safe mode.(but in demo board, it is normal.)

when it enter the app main(as the picture),the speed become very slow and it cannot play video.

In the same,I port android os on our  AM335x demo board.

it has no these problems.

how to solve these problems?

  • Can you please tell the difference of the display panels? BPP and display resolution?

    Can you also post the boot log and the logcat?

    SafeMode is coming because some key press is detected on boot. CAn you check if your keypad driver is injecting any unnecessary key event on boot?

    Regards,

    Arun

  • the resolution of panel is 480x272 and 16BPP

    The safe mode is solved.

    It can play photo,but cannot play video.

    But I port android os in am335x demo board, it can play video.

    I do not know how to solve it.

  • I'm not sure if you will be able to play videos without SGX libraries.

    Could you attach the logs from when you are trying to play video?

  • The video cannot play in the data folder of sd card.

    the error is in the log.

    8203.log.txt

  • Package com.android.gallery3d is giving errors. I believe this package is not part of default Gingerbread build. The gallery package there is com.cooliris.media.

    As I mentioned before, without SGX libraries you will not be able to use Gallery3D or similar apps.

    In GingerBread you can use Gallery App (without the 3D) for devices without SGX. This app is at packages/app/gallery

  • The FAE suggest me to use ICS, so I us ICS.

    The film cannot be play with sgx or without sgx.

    The error message as following:

    E/BitmapUtils(  600): createVideoThumbnail

    E/BitmapUtils(  600): java.lang.reflect.InvocationTargetException

    E/BitmapUtils(  600):   at java.lang.reflect.Method.invokeNative(Native Method)

    E/BitmapUtils(  600):   at java.lang.reflect.Method.invoke(Method.java:511)

    E/BitmapUtils(  600):   at com.android.gallery3d.common.BitmapUtils.createVideoThumbnail(BitmapUtils.java:237)

    E/BitmapUtils(  600):   at com.android.gallery3d.data.LocalVideo$LocalVideoRequest.onDecodeOriginal(LocalVideo.java:157)

    E/BitmapUtils(  600):   at com.android.gallery3d.data.ImageCacheRequest.run(ImageCacheRequest.java:63)

    E/BitmapUtils(  600):   at com.android.gallery3d.data.LocalVideo$LocalVideoRequest.run(LocalVideo.java:146)

    E/BitmapUtils(  600):   at com.android.gallery3d.data.ImageCacheRequest.run(ImageCacheRequest.java:28)

    E/BitmapUtils(  600):   at com.android.gallery3d.app.PhotoDataAdapter$ScreenNailJob.run(PhotoDataAdapter.java:502)

    E/BitmapUtils(  600):   at com.android.gallery3d.app.PhotoDataAdapter$ScreenNailJob.run(PhotoDataAdapter.java:493)

    E/BitmapUtils(  600):   at com.android.gallery3d.util.ThreadPool$Worker.run(ThreadPool.java:124)

    E/BitmapUtils(  600):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)

    E/BitmapUtils(  600):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)

    E/BitmapUtils(  600):   at java.lang.Thread.run(Thread.java:856)

    E/BitmapUtils(  600):   at com.android.gallery3d.util.PriorityThreadFactory$1.run(PriorityThreadFactory.java:43)

    E/BitmapUtils(  600): Caused by: java.lang.RuntimeException: setDataSource failed: status = 0x80000000

    E/BitmapUtils(  600):   at android.media.MediaMetadataRetriever.setDataSource(Native Method)

    E/BitmapUtils(  600):   ... 14 more

    E/BitmapUtils(  600): createVideoThumbnail

    E/BitmapUtils(  600): java.lang.reflect.InvocationTargetException

    E/BitmapUtils(  600):   at java.lang.reflect.Method.invokeNative(Native Method)

    E/BitmapUtils(  600):   at java.lang.reflect.Method.invoke(Method.java:511)

    E/BitmapUtils(  600):   at com.android.gallery3d.common.BitmapUtils.createVideoThumbnail(BitmapUtils.java:237)

    E/BitmapUtils(  600):   at com.android.gallery3d.data.LocalVideo$LocalVideoRequest.onDecodeOriginal(LocalVideo.java:157)

    E/BitmapUtils(  600):   at com.android.gallery3d.data.ImageCacheRequest.run(ImageCacheRequest.java:63)

    E/BitmapUtils(  600):   at com.android.gallery3d.data.LocalVideo$LocalVideoRequest.run(LocalVideo.java:146)

    E/BitmapUtils(  600):   at com.android.gallery3d.data.ImageCacheRequest.run(ImageCacheRequest.java:28)

    E/BitmapUtils(  600):   at com.android.gallery3d.util.JobLimiter$JobWrapper.run(JobLimiter.java:112)

    E/BitmapUtils(  600):   at com.android.gallery3d.util.ThreadPool$Worker.run(ThreadPool.java:124)

    E/BitmapUtils(  600):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)

    E/BitmapUtils(  600):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)

    E/BitmapUtils(  600):   at java.lang.Thread.run(Thread.java:856)

    E/BitmapUtils(  600):   at com.android.gallery3d.util.PriorityThreadFactory$1.run(PriorityThreadFactory.java:43)

    E/BitmapUtils(  600): Caused by: java.lang.RuntimeException: setDataSource failed: status = 0x80000000

    E/BitmapUtils(  600):   at android.media.MediaMetadataRetriever.setDataSource(Native Method)

    E/BitmapUtils(  600):   ... 13 more

    W/ImageCacheRequest(  600): decode orig failed /local/video/item/60,THUMB

    W/ImageCacheRequest(  600): decode orig failed /local/video/item/63,MICROTHUMB

    E/BitmapUtils(  600): createVideoThumbnail

    E/BitmapUtils(  600): java.lang.reflect.InvocationTargetException

    E/BitmapUtils(  600):   at java.lang.reflect.Method.invokeNative(Native Method)

    E/BitmapUtils(  600):   at java.lang.reflect.Method.invoke(Method.java:511)

    E/BitmapUtils(  600):   at com.android.gallery3d.common.BitmapUtils.createVideoThumbnail(BitmapUtils.java:237)

    E/BitmapUtils(  600):   at com.android.gallery3d.data.LocalVideo$LocalVideoRequest.onDecodeOriginal(LocalVideo.java:157)

    E/BitmapUtils(  600):   at com.android.gallery3d.data.ImageCacheRequest.run(ImageCacheRequest.java:63)

    E/BitmapUtils(  600):   at com.android.gallery3d.data.LocalVideo$LocalVideoRequest.run(LocalVideo.java:146)

    E/BitmapUtils(  600):   at com.android.gallery3d.data.ImageCacheRequest.run(ImageCacheRequest.java:28)

    E/BitmapUtils(  600):   at com.android.gallery3d.util.JobLimiter$JobWrapper.run(JobLimiter.java:112)

    E/BitmapUtils(  600):   at com.android.gallery3d.util.ThreadPool$Worker.run(ThreadPool.java:124)

    E/BitmapUtils(  600):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)

    E/BitmapUtils(  600):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)

    E/BitmapUtils(  600):   at java.lang.Thread.run(Thread.java:856)

    E/BitmapUtils(  600):   at com.android.gallery3d.util.PriorityThreadFactory$1.run(PriorityThreadFactory.java:43)

    E/BitmapUtils(  600): Caused by: java.lang.RuntimeException: setDataSource failed: status = 0x80000000

    E/BitmapUtils(  600):   at android.media.MediaMetadataRetriever.setDataSource(Native Method)

    E/BitmapUtils(  600):   ... 13 more

    W/ImageCacheRequest(  600): decode orig failed /local/video/item/61,MICROTHUMB

    D/dalvikvm(  600): GC_FOR_ALLOC freed 161K, 4% free 8654K/8967K, paused 46ms

    E/BitmapUtils(  600): createVideoThumbnail

    E/BitmapUtils(  600): java.lang.reflect.InvocationTargetException

    E/BitmapUtils(  600):   at java.lang.reflect.Method.invokeNative(Native Method)

    E/BitmapUtils(  600):   at java.lang.reflect.Method.invoke(Method.java:511)

    E/BitmapUtils(  600):   at com.android.gallery3d.common.BitmapUtils.createVideoThumbnail(BitmapUtils.java:237)

    E/BitmapUtils(  600):   at com.android.gallery3d.data.LocalVideo$LocalVideoRequest.onDecodeOriginal(LocalVideo.java:157)

    E/BitmapUtils(  600):   at com.android.gallery3d.data.ImageCacheRequest.run(ImageCacheRequest.java:63)

    E/BitmapUtils(  600):   at com.android.gallery3d.data.LocalVideo$LocalVideoRequest.run(LocalVideo.java:146)

    E/BitmapUtils(  600):   at com.android.gallery3d.data.ImageCacheRequest.run(ImageCacheRequest.java:28)

    E/BitmapUtils(  600):   at com.android.gallery3d.app.PhotoDataAdapter$ScreenNailJob.run(PhotoDataAdapter.java:502)

    E/BitmapUtils(  600):   at com.android.gallery3d.app.PhotoDataAdapter$ScreenNailJob.run(PhotoDataAdapter.java:493)

    E/BitmapUtils(  600):   at com.android.gallery3d.util.ThreadPool$Worker.run(ThreadPool.java:124)

    E/BitmapUtils(  600):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)

    E/BitmapUtils(  600):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)

    E/BitmapUtils(  600):   at java.lang.Thread.run(Thread.java:856)

    E/BitmapUtils(  600):   at com.android.gallery3d.util.PriorityThreadFactory$1.run(PriorityThreadFactory.java:43)

    E/BitmapUtils(  600): Caused by: java.lang.RuntimeException: setDataSource failed: status = 0x80000000

    E/BitmapUtils(  600):   at android.media.MediaMetadataRetriever.setDataSource(Native Method)

    E/BitmapUtils(  600):   ... 14 more

    W/ImageCacheRequest(  600): decode orig failed /local/video/item/63,THUMB

    E/BitmapUtils(  600): createVideoThumbnail

    E/BitmapUtils(  600): java.lang.reflect.InvocationTargetException

    E/BitmapUtils(  600):   at java.lang.reflect.Method.invokeNative(Native Method)

    E/BitmapUtils(  600):   at java.lang.reflect.Method.invoke(Method.java:511)

    E/BitmapUtils(  600):   at com.android.gallery3d.common.BitmapUtils.createVideoThumbnail(BitmapUtils.java:237)

    E/BitmapUtils(  600):   at com.android.gallery3d.data.LocalVideo$LocalVideoRequest.onDecodeOriginal(LocalVideo.java:157)

    E/BitmapUtils(  600):   at com.android.gallery3d.data.ImageCacheRequest.run(ImageCacheRequest.java:63)

    E/BitmapUtils(  600):   at com.android.gallery3d.data.LocalVideo$LocalVideoRequest.run(LocalVideo.java:146)

    E/BitmapUtils(  600):   at com.android.gallery3d.data.ImageCacheRequest.run(ImageCacheRequest.java:28)

    E/BitmapUtils(  600):   at com.android.gallery3d.util.JobLimiter$JobWrapper.run(JobLimiter.java:112)

    E/BitmapUtils(  600):   at com.android.gallery3d.util.ThreadPool$Worker.run(ThreadPool.java:124)

    E/BitmapUtils(  600):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)

    E/BitmapUtils(  600):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)

    E/BitmapUtils(  600):   at java.lang.Thread.run(Thread.java:856)

    E/BitmapUtils(  600):   at com.android.gallery3d.util.PriorityThreadFactory$1.run(PriorityThreadFactory.java:43)

    E/BitmapUtils(  600): Caused by: java.lang.RuntimeException: setDataSource failed: status = 0x80000000

    E/BitmapUtils(  600):   at android.media.MediaMetadataRetriever.setDataSource(Native Method)

    E/BitmapUtils(  600):   ... 13 more

    W/ImageCacheRequest(  600): decode orig failed /local/video/item/60,MICROTHUMB

    E/MetadataRetrieverClient(   73): failed to extract an album art

    E/MediaMetadataRetrieverJNI(  600): getEmbeddedPicture: Call to getEmbeddedPicture failed.

    I/OMXCodec(   73): [OMX.google.h264.decoder] AVC profile = 100 (High), level = 31

    I/OMXCodec(   73): [OMX.google.h264.decoder] video dimensions are 320 x 240

    I/OMXCodec(   73): [OMX.google.h264.decoder] Crop rect is 320 x 240 @ (0, 0)

    E/SoftAVC (   73): Decoder failed: -2

    E/OMXCodec(   73): [OMX.google.h264.decoder] ERROR(0x80001001, -1007)

    I/OMXCodec(   73): [OMX.google.h264.decoder] AVC profile = 100 (High), level = 31

    I/OMXCodec(   73): [OMX.google.h264.decoder] video dimensions are 320 x 240

    I/OMXCodec(   73): [OMX.google.h264.decoder] Crop rect is 320 x 240 @ (0, 0)

    E/SoftAVC (   73): Decoder failed: -2

    E/OMXCodec(   73): [OMX.google.h264.decoder] ERROR(0x80001001, -1007)

    E/MetadataRetrieverClient(   73): failed to capture a video frame

    E/MediaMetadataRetrieverJNI(  600): getFrameAtTime: videoFrame is a NULL pointer

    W/ImageCacheRequest(  600): decode orig failed /local/video/item/52,MICROTHUMB

    I/ActivityManager(  134): START {act=android.intent.action.VIEW dat=content://media/external/video/media/51 typ=video/* cmp=com.android.gallery3d/.app.MovieActivity (has extras)} from pid 600

    D/dalvikvm(  600): GC_CONCURRENT freed 313K, 5% free 9023K/9415K, paused 4ms+5ms

    I/AudioService(  134):  AudioFocus  requestAudioFocus() from android.media.AudioManager@410a7fd8

    I/OMXCodec(   73): [OMX.google.mpeg4.decoder] video dimensions are 352 x 288

    I/OMXCodec(   73): [OMX.google.mpeg4.decoder] Crop rect is 352 x 288 @ (0, 0)

    I/ActivityManager(  134): Displayed com.android.gallery3d/.app.MovieActivity: +709ms

    D/MediaPlayer(  600): getMetadata

    I/OMXCodec(   73): [OMX.google.mpeg4.decoder] video dimensions are 480 x 272

    I/OMXCodec(   73): [OMX.google.mpeg4.decoder] Crop rect is 480 x 272 @ (0, 0)

    I/OMXCodec(   73): [OMX.google.mpeg4.decoder] video dimensions are 480 x 272

    I/OMXCodec(   73): [OMX.google.mpeg4.decoder] Crop rect is 480 x 272 @ (0, 0)

    W/AudioPolicyManagerBase(   73): getOutput() could not find output for stream 3, samplingRate 0, format 0, channels 3, flags 0

    E/AwesomePlayer(   73): Starting the audio player failed w/ err -19

    E/MediaPlayer(  600): error (1, -19)

    E/MediaPlayer(  600): Error (1,-19)

    D/VideoView(  600): Error: 1,-19

    V/StateManager(  600): saveState

    V/StateManager(  600): saveState class com.android.gallery3d.app.AlbumSetPage

    V/StateManager(  600): saveState class com.android.gallery3d.app.AlbumPage

    V/StateManager(  600): saveState class com.android.gallery3d.app.PhotoPage

  • In case of ICS, you will not be able to use Gallery2 (com.android.gallery3d) without SGX libraries.

    This app uses OpenGLES 2.0 APIs which are supported only with SGX libraries.

    If you still wish to go ahead, you can try the following:

    In the BoardConfig.mk file for your device (e.g device/ti/am335xevm/BoardConfig.mk), change the following line:
    USE_OPENGL_RENDERER := true

    to

    USE_OPENGL_RENDERER := false

    and do a clean rebuild of the filesystem

    This forces Android to use software rendering and impacts system performance.

  •  I try to USE_OPENGL_RENDERER := false

    and rebuild the filesystem,but it can stiil not to play video.

    so I still to  USE_OPENGL_RENDERER :=true

    I see the logcat.

    the message as following

    I/OMXCodec(   63): [OMX.google.h263.decoder] Crop rect is 352 x 288 @ (0, 0)

    I/ActivityManager(  110): Displayed com.android.gallery3d/.app.MovieActivity: +1s124ms

    I/ARMAssembler(   60): generated scanline__00000077:03010102_00008004_00000000 [ 84 ipp] (103 ins) at [0x40ebda98:0x40ebdc34] in 274658 ns

    I/ARMAssembler(   60): generated scanline__00000077:03515102_00008001_00000000 [114 ipp] (135 ins) at [0x40ebdc38:0x40ebde54] in 244141 ns

    D/MediaPlayer(  506): getMetadata

    W/GraphicBufferAllocator(   60): alloc(352, 288, 842094169, 00002930, ...) failed -22 (Invalid argument)

    E/SurfaceFlinger(   60): GraphicBufferAlloc::createGraphicBuffer(w=352, h=288) failed (Invalid argument), handle=0x0

    E/SurfaceTexture(   60): [SurfaceView] dequeueBuffer: SurfaceComposer::createGraphicBuffer failed

    W/SoftwareRenderer(   63): Surface::dequeueBuffer returned error -22

    V/StateManager(  506): saveState

    V/StateManager(  506): saveState class com.android.gallery3d.app.AlbumSetPage

    V/StateManager(  506): saveState class com.android.gallery3d.app.AlbumPage

    V/StateManager(  506): saveState class com.android.gallery3d.app.PhotoPage

    W/ThrottleService(  110): unable to find stats for iface rmnet0