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.

TI ICS android is hanging in AM335X



HI all,

I have created a new SD card for our AM335x custom board. I have made some changes on the kernel for porting other than that there is no other changes. Now the android is hanging after working for some time. But at the same time linux kernel is working , I can access it  through UART. I don't know where I am  going wrong. Can any one suggest where to look?

Regards

Anandu

  • Hi Anandu,

    Can you post the logcat and dmesg output?

    Regards,

    Arun

  • Hi Arun ,

    Thanks for the reply...!

    Please find the attached pdf for debug messages and logcat messages.  Once the crash happens the root will be accessible through UART . At the same time ADB and none of the peripheral will respond.

    6082.Debug_messages.pdf

     Best Regards

    Anandu

  • Looks like there were some audio errors seen on the logcat. What is the application you are running? Is this hang reproducible always?

    Regards,

    Arun

  • Hi Arun, 

      Thanks for the response..

    When crash happening I am not running any application on the board. This crash is happening always . It is not happening at regular intervals, its varying, Most of the time it will happen in half an hour. Eventhough we are using a custom board the only major diffrence between  the Sitara EVM and ours is we have removed the Ethernet. When the crash happens sometimes the touch screen responds  other peripherals wont work some times both wont work.

    The kernel is responding so is there any way to debug this issue through kernel. I am using the same file system I downloaded for Sitara EVM from TI website. Even I tried a

    custom build file system also then also the same issues. Do I have to do something with the hardware? Please help me out in solving this Issue

  • Hi Anandu,

    I went through the debug messages and could not find any error which can cause a hang which you have described.

    Can you check "getevent" to see if the touch screen is responding? What is the memory of the custom device? Is the logcat keep running when the hang is occuring?

    Regards,

    Arun

  • Hi Arun,

        When the hang happening none of the peripherals(Bluetooth, WiFi, USB ) are working (But sometimes I have seen that touch screen is working but other peripherals wont work ). ADB  is  not responding when hang  happening , So logcat messages are not coming. The memory of the custom board is same as the  sitara Evaluation board memory(256MB).  

    Regards

    Anandu 

  • Hi Anandu,

    Can you run "procrank" to see the available free memory on the system?

  • Dear Arun,

       Please find the result of memory analysis by procrank

    root@android:/ # procrank
      PID      Vss           Rss          Pss          Uss          cmdline
      206   47828K   47716K   17936K   12284K  com.android.systemui
      117   26100K   26100K   17883K   12780K  /system/bin/surfaceflinger
      126   42444K   42392K   14744K   11620K  system_server
      382   36140K   36076K    9259K    6500K    android.process.acore
      316   36620K   36568K    9036K    6248K    com.android.launcher
      109   36260K   36144K    7751K    4620K    zygote
      432   34488K   34428K    7744K    4408K    com.cdl.mircam
      298   31688K   31640K    6592K    4904K    com.android.phone
      521   30936K   30876K    5910K    4232K    com.android.email
      282   31368K   31308K    5689K    3932K    com.android.inputmethod.latin
      343   30440K   30380K    5355K    3764K    android.process.media
      260   30380K   30320K    5252K    3500K    com.android.settings
      465   29944K   29860K    5047K    3396K    com.android.contacts
      236   29476K   29392K    4464K    2872K    com.android.bluetooth
      553   29376K   29288K    4433K    2888K    com.android.providers.calendar
      573   29260K   29168K    4422K    2732K    com.android.calendar
      490   28616K   28528K    4236K    2748K    com.android.exchange
      506   28900K   28820K    3967K    2404K    com.android.deskclock
      367   26956K   26860K    3167K    1596K    com.android.smspush
       67    6172K      6172K      2352K    1968K    /system/bin/mediaserver
       66    3960K      3960K      1113K     952K      /system/bin/drmserver
      183   1276K     1276K       862K      780K      /system/bin/bluetoothd
      603    656K       648K        469K       464K      procrank
       61    1016K    1012K       434K        364K     /system/bin/netd
       68    796K      788K          379K        280K     /system/bin/dbus-daemon
       59    768K      764K          338K        316K     /system/bin/vold
       63     608K     600K         196K         180K     /system/bin/rild
       70     540K     532K         181K         168K     /system/bin/keystore
      202   192K     192K          176K         176K     /sbin/adbd
      597   404K     396K          171K         104K     /system/bin/sh
       71     396K     388K         167K         100K     /system/bin/sh
        1     196K     196K          142K         104K     /init
       50    164K     164K          126K         88K       /sbin/ueventd
       69     324K     316K         122K         116K     /system/bin/installd
       60     320K     312K         114K         108K     /system/bin/uim-sysfs
       58     280K     272K         101K         96K       /system/bin/servicemanager
      602    272K     264K          97K          92K       /system/bin/debuggerd
                                                   ------          ------         ------
                                                 150444K  103884K  TOTAL

    RAM: 251480K total, 18500K free, 7812K buffers, 100332K cached, 292K shmem, 8192K slab

    As per the result  free memory available it is only 18500K is it OK for the normal working of the android.

    Regards

    Anandu