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.

couldn't open framebuffer HAL (No such device)" No display is coming after this.

Other Parts Discussed in Thread: AM3517

Hi All,
 I am trying port roboat Android version(Eclair+dsp) to devkit8000,  i am able to
build the kernel and filesystem.
while booting i am getting error as "couldn't open framebuffer HAL (No
such device)" No display is coming after this.
below is logcat:
I/DEBUG   (  808): Build fingerprint: 'timll/devkit8000/
devkit8000/:2.1-update1/ECLAIR/eng.dsp-test.20110810.174646:eng/test-
keys'
I/DEBUG   (  808): pid: 855, tid: 861  >>> system_server <<<
I/DEBUG   (  808): signal 11 (SIGSEGV), fault addr ffffff00
I/DEBUG   (  808):  r0 00116d38  r1 00000002  r2 4508fd54  r3 ffffff00
I/DEBUG   (  808):  r4 4508fdc0  r5 00000001  r6 4508fd9c  r7 00000000
I/DEBUG   (  808):  r8 00100000  r9 a9d1c1d5  10 44f90000  fp 001382b0
I/DEBUG   (  808):  ip acd291e0  sp 4508fd50  lr ac41d869  pc
ffffff00  cpsr 00000010
I/DEBUG   (  808):          #00  pc ffffff00
I/DEBUG   (  808):          #01  pc 0001d866  /system/lib/libui.so
I/DEBUG   (  808):          #02  pc 00016228  /system/lib/
libsurfaceflinger.so
I/DEBUG   (  808):          #03  pc 000166ca  /system/lib/
libsurfaceflinger.so
I/DEBUG   (  808):          #04  pc 0002067c  /system/lib/
libsurfaceflinger.so
I/DEBUG   (  808):          #05  pc 0001bdce  /system/lib/libutils.so
I/DEBUG   (  808):          #06  pc 0001c23c  /system/lib/libutils.so
I/DEBUG   (  808):          #07  pc 00010014  /system/lib/libc.so
I/DEBUG   (  808):          #08  pc 0000fae0  /system/lib/libc.so
I/DEBUG   (  808):
I/DEBUG   (  808): code around lr:
I/DEBUG   (  808): ac41d858 0015f06f 6d53b162 21024610 4798aa01
I/DEBUG   (  808): ac41d868 db052800 46314628 46239a01 ff48f7ff
I/DEBUG   (  808): ac41d878 bf00bd7c 47706880 6941b901 69c2040b
I/DEBUG   (  808):
I/DEBUG   (  808): stack:
I/DEBUG   (  808):     4508fd10  ac708a40  /system/lib/libEGL.so
I/DEBUG   (  808):     4508fd14  ac7087f8  /system/lib/libEGL.so
I/DEBUG   (  808):     4508fd18  ac708970  /system/lib/libEGL.so
I/DEBUG   (  808):     4508fd1c  ac704ae3  /system/lib/libEGL.so
I/DEBUG   (  808):     4508fd20  00000001
I/DEBUG   (  808):     4508fd24  ac705b2f  /system/lib/libEGL.so
I/DEBUG   (  808):     4508fd28  ac708b14  /system/lib/libEGL.so
I/DEBUG   (  808):     4508fd2c  00000002
I/DEBUG   (  808):     4508fd30  00000001
I/DEBUG   (  808):     4508fd34  ac708940  /system/lib/libEGL.so
I/DEBUG   (  808):     4508fd38  00000000
I/DEBUG   (  808):     4508fd3c  00000000
I/DEBUG   (  808):     4508fd40  4508fd4c
I/DEBUG   (  808):     4508fd44  ac702ba5  /system/lib/libEGL.so
I/DEBUG   (  808):     4508fd48  df002777
I/DEBUG   (  808):     4508fd4c  e3a070ad
I/DEBUG   (  808): #01 4508fd50  00000001
I/DEBUG   (  808):     4508fd54  4508fd9c
I/DEBUG   (  808):     4508fd58  001492a8  [heap]
I/DEBUG   (  808):     4508fd5c  acd29118  /system/lib/
libsurfaceflinger.so
I/DEBUG   (  808):     4508fd60  00000001
I/DEBUG   (  808):     4508fd64  acd1622b  /system/lib/
libsurfaceflinger.so
I/DEBUG   (  808): debuggerd committing suicide to free the zombie!
D/Zygote  (  849): Process 855 terminated by signal (11)
I/Zygote  (  849): Exit zygote because system server (855) has
terminated
I/DEBUG   (  865): debuggerd: Aug  5 2011 17:12:16
I/ServiceManager(  805): service 'media.audio_flinger' died
I/ServiceManager(  805): service 'media.player' died
I/ServiceManager(  805): service 'media.camera' died
I/ServiceManager(  805): service 'media.audio_policy' died
D/AndroidRuntime(  867):
D/AndroidRuntime(  867): >>>>>>>>>>>>>> AndroidRuntime START
<<<<<<<<<<<<<<
D/AndroidRuntime(  867): CheckJNI is ON
D/dalvikvm(  867): creating instr width table
D/AndroidRuntime(  867): --- registering native functions ---
I/SamplingProfilerIntegration(  867): Profiler is disabled.
I/Zygote  (  867): Preloading classes...
D/dalvikvm(  867): GC freed 793 objects / 50568 bytes in 3ms
D/dalvikvm(  867): GC freed 251 objects / 16168 bytes in 3ms
D/dalvikvm(  867): GC freed 295 objects / 18768 bytes in 4ms
D/dalvikvm(  867): GC freed 214 objects / 13712 bytes in 5ms
I/omx-dsp (  866): 1023435323 [INTERFACE.INFO] Construct interface
class
I/omx-dsp (  866): 1023435567 [INTERFACE.INFO] EngineInit IN
I/omx-dsp (  866): 1023448079 [INTERFACE.ERROR] Failed to open engine
'codecServer': 3
I/        (  866): ServiceManager: 0xc138
E/ALSALib (  866): external/alsa-lib/src/control/control.c:909:
(snd_ctl_open_noupdate) Invalid CTL AndroidOut
W/AudioHardwareALSA(  866): Unable to attach mixer to device
AndroidOut: No such file or directory
D/dalvikvm(  867): GC freed 411 objects / 26320 bytes in 6ms
E/ALSALib (  866): external/alsa-lib/src/control/control.c:909:
(snd_ctl_open_noupdate) Invalid CTL AndroidIn
W/AudioHardwareALSA(  866): Unable to attach mixer to device
AndroidIn: No such file or directory
I/CameraService(  866): CameraService started: pid=866
D/AudioHardwareALSA(  866): openOutputStream called for devices:
0x00000002
D/ALSAModule(  866): open called for devices 00000002 in mode 0...
E/ALSALib (  866): external/alsa-lib/src/pcm/pcm.c:2201:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback_Speaker_normal
E/ALSALib (  866): external/alsa-lib/src/pcm/pcm.c:2201:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback_Speaker
E/ALSALib (  866): external/alsa-lib/src/pcm/pcm.c:2201:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback
D/skia    (  867): ------ build_power_table 1.4
D/skia    (  867): ------ build_power_table 0.714286
D/dalvikvm(  867): GC freed 422 objects / 28816 bytes in 6ms
I/ALSAModule(  866): Initialized ALSA PLAYBACK device default
I/AudioFlinger(  866): AudioFlinger's thread 0x38c80 ready to run
D/ALSAModule(  866): route called for devices 00000002 in mode 0...
D/dalvikvm(  867): Trying to load lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm(  867): Added shared lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm(  867): Trying to load lib /system/lib/libexif.so 0x0
D/dalvikvm(  867): Added shared lib /system/lib/libexif.so 0x0
D/dalvikvm(  867): GC freed 2314 objects / 121392 bytes in 8ms
D/dalvikvm(  867): Trying to load lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm(  867): Shared lib '/system/lib/libmedia_jni.so' already
loaded in same CL 0x0
D/dalvikvm(  867): Trying to load lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm(  867): Shared lib '/system/lib/libmedia_jni.so' already
loaded in same CL 0x0
D/dalvikvm(  867): Trying to load lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm(  867): Shared lib '/system/lib/libmedia_jni.so' already
loaded in same CL 0x0
D/dalvikvm(  867): Trying to load lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm(  867): Shared lib '/system/lib/libmedia_jni.so' already
loaded in same CL 0x0
D/dalvikvm(  867): GC freed 3790 objects / 196992 bytes in 14ms
D/dalvikvm(  867): GC freed 461 objects / 26328 bytes in 13ms
D/dalvikvm(  867): GC freed 294 objects / 17024 bytes in 14ms
D/dalvikvm(  867): GC freed 204 objects / 11432 bytes in 15ms
D/dalvikvm(  867): GC freed 178 objects / 9576 bytes in 16ms
D/dalvikvm(  867): Trying to load lib /system/lib/libsrec_jni.so 0x0
D/dalvikvm(  867): Added shared lib /system/lib/libsrec_jni.so 0x0
D/dalvikvm(  867): Trying to load lib /system/lib/libsrec_jni.so 0x0
D/dalvikvm(  867): Shared lib '/system/lib/libsrec_jni.so' already
loaded in same CL 0x0
D/dalvikvm(  867): GC freed 296 objects / 34784 bytes in 16ms
D/dalvikvm(  867): GC freed 123 objects / 24480 bytes in 23ms
D/dalvikvm(  867): GC freed 337 objects / 38432 bytes in 24ms
D/dalvikvm(  867): GC freed 418 objects / 25808 bytes in 25ms
D/dalvikvm(  867): Trying to load lib /system/lib/libwebcore.so 0x0
D/dalvikvm(  867): Added shared lib /system/lib/libwebcore.so 0x0
D/dalvikvm(  867): GC freed 432 objects / 25144 bytes in 25ms
D/dalvikvm(  867): GC freed 489 objects / 30688 bytes in 26ms
D/dalvikvm(  867): GC freed 349 objects / 28968 bytes in 26ms
D/dalvikvm(  867): GC freed 309 objects / 21912 bytes in 26ms
D/dalvikvm(  867): GC freed 913 objects / 79824 bytes in 33ms
D/dalvikvm(  867): GC freed 664 objects / 35936 bytes in 30ms
D/dalvikvm(  867): GC freed 709 objects / 41176 bytes in 30ms
D/dalvikvm(  867): GC freed 735 objects / 40640 bytes in 30ms
D/dalvikvm(  867): GC freed 14041 objects / 475408 bytes in 36ms
D/dalvikvm(  867): GC freed 10462 objects / 448184 bytes in 38ms
D/dalvikvm(  867): GC freed 10803 objects / 465336 bytes in 40ms
D/dalvikvm(  867): GC freed 7966 objects / 462072 bytes in 40ms
D/dalvikvm(  867): GC freed 7711 objects / 462560 bytes in 41ms
D/dalvikvm(  867): GC freed 9042 objects / 518528 bytes in 42ms
D/dalvikvm(  867): GC freed 6569 objects / 394400 bytes in 41ms
D/dalvikvm(  867): GC freed 847 objects / 51240 bytes in 39ms
D/dalvikvm(  867): GC freed 540 objects / 38816 bytes in 39ms
D/dalvikvm(  867): GC freed 460 objects / 31344 bytes in 40ms
D/dalvikvm(  867): GC freed 426 objects / 29848 bytes in 40ms
I/Zygote  (  867): ...preloaded 1942 classes in 8768ms.
D/dalvikvm(  867): GC freed 117 objects / 14840 bytes in 40ms
I/Zygote  (  867): Preloading resources...
D/dalvikvm(  867): GC freed 5 objects / 224 bytes in 40ms
W/Zygote  (  867): Preloaded drawable resource #0x1080093 (res/
drawable-mdpi/sym_def_app_icon.png) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080002 (res/
drawable-mdpi/arrow_down_float.png) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x10800b4 (res/
drawable/btn_check.xml) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x10800b7 (res/
drawable-mdpi/btn_check_label_background.9.png) that varies with
configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x10800b8 (res/
drawable-mdpi/btn_check_off.png) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x10800bd (res/
drawable-mdpi/btn_check_on.png) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080004 (res/
drawable/btn_default.xml) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080005 (res/
drawable/btn_default_small.xml) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080006 (res/
drawable/btn_dropdown.xml) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080008 (res/
drawable/btn_plus.xml) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080007 (res/
drawable/btn_minus.xml) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080009 (res/
drawable/btn_radio.xml) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x108000a (res/
drawable/btn_star.xml) that varies with configuration!!
D/dalvikvm(  867): GC freed 396 objects / 23960 bytes in 41ms
W/Zygote  (  867): Preloaded drawable resource #0x1080125 (res/
drawable/btn_toggle.xml) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080187 (res/
drawable-mdpi/ic_emergency.png) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080012 (res/
drawable-mdpi/divider_horizontal_bright.9.png) that varies with
configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080014 (res/
drawable-mdpi/divider_horizontal_dark.9.png) that varies with
configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080016 (res/
drawable/edit_text.xml) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080161 (res/
drawable/expander_group.xml) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080062 (res/
drawable/list_selector_background.xml) that varies with
configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080217 (res/
drawable-mdpi/menu_background.9.png) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080218 (res/
drawable-mdpi/menu_background_fill_parent_width.9.png) that varies
with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080219 (res/
drawable/menu_selector.xml) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080224 (res/
drawable-mdpi/panel_background.9.png) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x108022e (res/
drawable-mdpi/popup_bottom_bright.9.png) that varies with
configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x108022f (res/
drawable-mdpi/popup_bottom_dark.9.png) that varies with
configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080230 (res/
drawable-mdpi/popup_bottom_medium.9.png) that varies with
configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080231 (res/
drawable-mdpi/popup_center_bright.9.png) that varies with
configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080232 (res/
drawable-mdpi/popup_center_dark.9.png) that varies with
configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080235 (res/
drawable-mdpi/popup_full_dark.9.png) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080238 (res/
drawable-mdpi/popup_top_bright.9.png) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080239 (res/
drawable-mdpi/popup_top_dark.9.png) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x108006d (res/
drawable/progress_indeterminate_horizontal.xml) that varies with
configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x108023f (res/
drawable/progress_small.xml) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080240 (res/
drawable/progress_small_titlebar.xml) that varies with configuration!!
D/dalvikvm(  867): GC freed 452 objects / 31800 bytes in 41ms
W/Zygote  (  867): Preloaded drawable resource #0x1080262 (res/
drawable-mdpi/scrollbar_handle_horizontal.9.png) that varies with
configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080263 (res/
drawable-mdpi/scrollbar_handle_vertical.9.png) that varies with
configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080071 (res/
drawable/spinner_dropdown_background.xml) that varies with
configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x1080326 (res/
drawable-mdpi/title_bar_shadow.9.png) that varies with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x10801c6 (res/
drawable-mdpi/indicator_code_lock_drag_direction_green_up.png) that
varies with configuration!
W/Zygote  (  867): Preloaded drawable resource #0x10801c7 (res/
drawable-mdpi/indicator_code_lock_drag_direction_red_up.png) that
varies with configuration!!
D/dalvikvm(  867): GC freed 207 objects / 11600 bytes in 41ms
W/Zygote  (  867): Preloaded drawable resource #0x10801c8 (res/
drawable-mdpi/indicator_code_lock_point_area_default.png) that varies
with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x10801c9 (res/
drawable-mdpi/indicator_code_lock_point_area_green.png) that varies
with configuration!!
W/Zygote  (  867): Preloaded drawable resource #0x10801ca (res/
drawable-mdpi/indicator_code_lock_point_area_red.png) that varies with
configuration!!
I/Zygote  (  867): ...preloaded 48 resources in 510ms.
I/Zygote  (  867): ...preloaded 15 resources in 9ms.
D/dalvikvm(  867): GC freed 142 objects / 11888 bytes in 41ms
D/dalvikvm(  867): GC freed 127 objects / 5096 bytes in 41ms
D/dalvikvm(  867): GC freed 14 objects / 496 bytes in 41ms
I/dalvikvm(  867): Splitting out new zygote heap
I/dalvikvm(  867): System server process 873 has been created
I/Zygote  (  867): Accepting command socket connections
D/dalvikvm(  873): Trying to load lib /system/lib/
libandroid_servers.so 0x0
D/dalvikvm(  873): Added shared lib /system/lib/libandroid_servers.so
0x0
E/BatteryService(  873): Could not open /sys/class/power_supply
I/sysproc (  873): Entered system_init()
I/sysproc (  873): ServiceManager: 0x136cf0
I/SurfaceFlinger(  873): SurfaceFlinger is starting
I/SurfaceFlinger(  873): SurfaceFlinger's main thread ready to run.
Initializing graphics H/W...
E/SurfaceFlinger(  873): Couldn't open /sys/power/wait_for_fb_sleep
or /sys/power/wait_for_fb_wake
E/FramebufferNativeWindow(  873): couldn't open framebuffer HAL (No
such device)
D/libEGL  (  873): loaded /system/lib/egl/libGLES_android.so
D/libEGL  (  873): loaded /system/lib/egl/libEGL_POWERVR_SGX530_121.so
D/libEGL  (  873): loaded /system/lib/egl/
libGLESv1_CM_POWERVR_SGX530_121.so
D/libEGL  (  873): loaded /system/lib/egl/
libGLESv2_POWERVR_SGX530_121.so
W/libEGL  (  873): 0: eglInitialize(0x1) failed (EGL_BAD_ALLOC)
I/DEBUG   (  865): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***

  • Hi Panibushan,

        May I know which platform you are working and what are your bootargs? Looks like it is FB memory issue.

    Regards,

    Aditya

  • Hi Aditya,

    Iam using Eclair+DSP version and kernel 2.6.32 and am using boot args:
    setenv bootargs  console=ttyS2,115200n8 noinitrd root=/dev/mmcblk0p2
    init=/init rootdelay=1 vram=12M omapdss.def_disp=lcd omapfb:mode:
    480x272
    omapfb.vram=0:12M omapdss.debug=y mem=128M

    and using Ubuntu PC for building.
    Regards,
    Pani.

  • Hi Phani,

                Can you please try to reduce vram size from 12M to something like 4M / 2M ? We have seen similar issues in the past on some platforms.

    Regards,

    Aditya

     

  • Hi Aditya,

     I have tried both options same Error.

     

    Regards,

    Pani.

  • Hi Pani,

             On which TI platform (board) are you working? Can you please attach full logcat and dmesg logs?  Also after the Android boots, can you check what all kernel modules are inserted? (run "lsmod" on board).

          Please note that unless it is essential, we always encourage to use gingerbread.

    Regards,

    Aditya

  • Copy <FS>/system/lib/hw/ gralloc.default.so to <FS>/system/vendor/lib/hw/. Then rename it to gralloc.omap4.so. 

    <FS> is the file system path. This works for me.

  • I'm having the exact same problem with the current 2.3.4 release.  What is the cause?  I have built everything exactly the way TI says it should be built but this happens on start up.

  • Chris,

             On which platform you observe the issue?  Could you please verify all the suggestions described in the previous posts? Also it would help if you can provide logcat output.

    Regards,

    Aditya

     

  • Ok lets get started.  First off I'm using an am3715evm from Logic PD.  Second off I'm using the latest repo sync of gingerbread rowboat.  Everything builds ok.  I then tar the root with a copy of the system directory (~40MB) to an SD card where it gets un-tared.  Upon boot I recieve the first problem in the log.

    init: cannot execve('/system/bin/sgx/rc.pvr'): Permission denied

    Apparently you are not setting the permissions to execute for this file to run from exec.  If you were, you are not anymore.  Please verify.

    secondly if I fix this manually, you get the following console output.

    # warning: `zygote' uses 32-bit capabilities (legacy support in use)
    request_suspend_state: wakeup (3->0) at 13228790286 (2000-01-01 00:00:11.602722169 UTC)
    init: untracked pid 919 exited
    request_suspend_state: wakeup (0->0) at 21017425540 (2000-01-01 00:00:19.391357423 UTC)
    init: untracked pid 1010 exited

    this is due to the SurfaceFlinger failling on SGX driver crash/failure to run.  You can see this from the logcat output

    I am also troubled by the AlsaControl, AlsaLib, and AudioHardwareALSA errors as well!

    --------- beginning of /dev/log/main
    I/DEBUG   (  916): debuggerd: Mar 27 2012 17:21:35
    I/Netd    (  915): Netd 1.0 starting
    --------- beginning of /dev/log/system
    I/Vold    (  914): Vold 2.1 (the revenge) firing up
    D/Vold    (  914): USB mass storage support is not enabled in the kernel
    D/Vold    (  914): usb_configuration switch is not enabled in the kernel
    D/Vold    (  914): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
    D/Vold    (  914): Volume sdcard state changing 0 (No-Media) -> 2 (Pending)
    D/Vold    (  914): Volume sdcard state changing 2 (Pending) -> 1 (Idle-Unmounted)
    D/AndroidRuntime(  918):
    D/AndroidRuntime(  918): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
    D/AndroidRuntime(  918): CheckJNI is ON
    D/dalvikvm(  918): creating instr width table
    I/        (  919): ServiceManager: 0xad50
    E/ALSALib (  919): external/alsa-lib/src/control/control.c:909:(snd_ctl_open_noupdate) Invalid CTL AndroidPlayback
    W/AudioHardwareALSA(  919): Unable to attach mixer to device AndroidPlayback: No such file or directory
    E/ALSALib (  919): external/alsa-lib/src/control/control.c:909:(snd_ctl_open_noupdate) Invalid CTL AndroidCapture
    W/AudioHardwareALSA(  919): Unable to attach mixer to device AndroidCapture: No such file or directory
    D/TIALSAModule(  919): TI ALSA module opened
    D/TIALSAModule(  919): Initializing devices for TI ALSA module
    I/CameraService(  919): CameraService started (pid=919)
    D/AudioHardwareALSA(  919): openOutputStream called for devices: 0x00000002
    D/TIALSAModule(  919): open called for devices 00000002 in mode 0...
    E/ALSAControl(  919): Control 'HeadsetR Mixer AudioR1' cannot get element info: -2
    E/ALSAControl(  919): Control 'HeadsetL Mixer AudioL1' cannot get element info: -2
    E/ALSAControl(  919): Control 'Headset Playback Volume' cannot get element info: -2
    I/TIALSAModule(  919): Initialized ALSA PLAYBACK device default
    I/AudioFlinger(  919): AudioFlinger's thread 0x1f520 ready to run
    D/TIALSAModule(  919): route called for devices 00000002 in mode 0...
    E/AudioHardwareALSA(  919): CALLING STANDBY
    I/SamplingProfilerIntegration(  918): Profiler is disabled.
    I/Zygote  (  918): Preloading classes...
    D/dalvikvm(  918): GC_EXPLICIT freed 47K, 78% free 232K/1024K, external 0K/0K, paused 4ms
    D/dalvikvm(  918): GC_EXPLICIT freed 1K, 73% free 282K/1024K, external 0K/0K, paused 3ms
    D/dalvikvm(  918): GC_EXPLICIT freed 20K, 70% free 315K/1024K, external 0K/0K, paused 4ms
    D/dalvikvm(  918): GC_EXPLICIT freed 17K, 66% free 353K/1024K, external 0K/0K, paused 4ms
    D/dalvikvm(  918): GC_EXPLICIT freed 26K, 63% free 381K/1024K, external 0K/0K, paused 5ms
    D/dalvikvm(  918): GC_EXPLICIT freed 22K, 58% free 440K/1024K, external 0K/0K, paused 5ms
    W/MediaProfiles(  918): could not find media config xml file
    D/dalvikvm(  918): GC_EXPLICIT freed 98K, 48% free 542K/1024K, external 0K/0K, paused 8ms
    D/dalvikvm(  918): GC_EXPLICIT freed 271K, 24% free 881K/1155K, external 0K/0K, paused 15ms
    D/dalvikvm(  918): GC_EXPLICIT freed 21K, 20% free 929K/1155K, external 0K/0K, paused 13ms
    D/RenderScript_jni(  918): RenderScript JNI library not found!
    D/dalvikvm(  918): GC_EXPLICIT freed 24K, 21% free 970K/1219K, external 0K/0K, paused 12ms
    D/dalvikvm(  918): GC_EXPLICIT freed 24K, 6% free 1276K/1347K, external 0K/0K, paused 19ms
    D/dalvikvm(  918): GC_EXPLICIT freed 24K, 4% free 1306K/1347K, external 0K/0K, paused 19ms
    D/dalvikvm(  918): GC_EXPLICIT freed 28K, 6% free 1331K/1411K, external 0K/0K, paused 23ms
    D/dalvikvm(  918): GC_EXPLICIT freed 14K, 3% free 1372K/1411K, external 0K/0K, paused 19ms
    W/Zygote  (  918): Class not found for preloading: android.widget.TextView$SelectionModifierCursorController$1
    D/dalvikvm(  918): GC_EXPLICIT freed 28K, 6% free 1397K/1475K, external 0K/0K, paused 20ms
    D/dalvikvm(  918): GC_EXPLICIT freed 31K, 3% free 1436K/1475K, external 0K/0K, paused 21ms
    D/dalvikvm(  918): GC_EXPLICIT freed 38K, 6% free 1453K/1539K, external 0K/0K, paused 21ms
    D/dalvikvm(  918): GC_EXPLICIT freed 41K, 5% free 1468K/1539K, external 0K/0K, paused 21ms
    D/dalvikvm(  918): GC_EXPLICIT freed 55K, 8% free 1481K/1603K, external 0K/0K, paused 22ms
    D/dalvikvm(  918): GC_FOR_MALLOC freed 2890K, 57% free 2232K/5123K, external 0K/0K, paused 63ms
    D/dalvikvm(  918): GC_EXPLICIT freed 2439K, 52% free 2485K/5123K, external 0K/0K, paused 58ms
    D/dalvikvm(  918): GC_EXPLICIT freed 128K, 51% free 2545K/5123K, external 0K/0K, paused 40ms
    D/dalvikvm(  918): GC_EXPLICIT freed 73K, 50% free 2571K/5123K, external 0K/0K, paused 41ms
    D/dalvikvm(  918): GC_EXPLICIT freed 36K, 50% free 2589K/5123K, external 0K/0K, paused 41ms
    D/dalvikvm(  918): GC_EXPLICIT freed 30K, 50% free 2612K/5123K, external 0K/0K, paused 41ms
    D/dalvikvm(  918): GC_EXPLICIT freed 38K, 49% free 2635K/5123K, external 0K/0K, paused 41ms
    I/Zygote  (  918): ...preloaded 1829 classes in 5622ms.
    D/dalvikvm(  918): GC_EXPLICIT freed 18K, 49% free 2632K/5123K, external 0K/0K, paused 41ms
    I/Zygote  (  918): Preloading resources...
    D/dalvikvm(  918): GC_EXTERNAL_ALLOC freed <1K, 49% free 2634K/5123K, external 0K/0K, paused 41ms
    D/dalvikvm(  918): GC_EXPLICIT freed 15K, 48% free 2673K/5123K, external 414K/521K, paused 41ms
    D/dalvikvm(  918): GC_EXTERNAL_ALLOC freed 7K, 48% free 2683K/5123K, external 516K/521K, paused 42ms
    I/Zygote  (  918): ...preloaded 51 resources in 582ms.
    I/Zygote  (  918): ...preloaded 15 resources in 18ms.
    D/dalvikvm(  918): GC_EXPLICIT freed 14K, 48% free 2707K/5123K, external 716K/1038K, paused 42ms
    D/dalvikvm(  918): GC_EXPLICIT freed 8K, 48% free 2699K/5123K, external 716K/1038K, paused 43ms
    D/dalvikvm(  918): GC_EXPLICIT freed 1K, 48% free 2697K/5123K, external 716K/103warning: `zygote' uses 32-bit capabilities (legacy support in use)
    8K, paused 43ms
    I/dalvikvm(  918): System server process 1000 has been created
    I/Zygote  (  918): Accepting command socket connections
    E/BatteryService( 1000): acOnlinePath not found
    E/BatteryService( 1000): usbOnlinePath not found
    E/BatteryService( 1000): batteryStatusPath not found
    E/BatteryService( 1000): batteryHealthPath not found
    E/BatteryService( 1000): batteryPresentPath not found
    E/BatteryService( 1000): batteryCapacityPath not found
    E/BatteryService( 1000): batteryVoltagePath not found
    E/BatteryService( 1000): batteryTemperaturePath not found
    E/BatteryService( 1000): batteryTechnologyPath not found
    I/sysproc ( 1000): Entered system_init()
    I/sysproc ( 1000): ServiceManager: 0x8d6e0
    I/SurfaceFlinger( 1000): SurfaceFlinger is starting
    I/SurfaceFlinger( 1000): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
    E/FramebufferNativeWindow( 1000): couldn't open framebuffer HAL (No such device)
    I/DEBUG   (  916): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    I/DEBUG   (  916): Build fingerprint: 'TI/am3517evm/am3517evm:2.3.4/GRJ22/eng.chris.20120327.171501:eng/test-keys'
    I/DEBUG   (  916): pid: 1000, tid: 1008  >>> system_server <<<
    I/DEBUG   (  916): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000005c
    I/DEBUG   (  916):  r0 0000d410  r1 4376ddc4  r2 00000001  r3 00000000
    I/DEBUG   (  916):  r4 0008f5f0  r5 0008f6e8  r6 fffffec0  r7 00000000
    I/DEBUG   (  916):  r8 ac52b730  r9 00193ad8  10 00100000  fp 00000001
    I/DEBUG   (  916):  ip ac52b78c  sp 4376dd68  lr af904a10  pc ac518bc8  cpsr 60000030
    I/DEBUG   (  916):  d0  0000000000000000  d1  4148207265666665
    I/DEBUG   (  916):  d2  6461657268742076  d3  7420796461657269
    I/DEBUG   (  916):  d4  49202e6e7572206f  d5  7a696c616974696e
    I/DEBUG   (  916):  d6  7061726720676e69  d7  0000000073636968
    I/DEBUG   (  916):  d8  0000000000000000  d9  0000000000000000
    I/DEBUG   (  916):  d10 0000000000000000  d11 0000000000000000
    I/DEBUG   (  916):  d12 0000000000000000  d13 0000000000000000
    I/DEBUG   (  916):  d14 0000000000000000  d15 0000000000000000
    I/DEBUG   (  916):  d16 00000000405fd010  d17 3fe999999999999a
    I/DEBUG   (  916):  d18 42eccefa43de3400  d19 3fbc71c71c71c71c
    I/DEBUG   (  916):  d20 4008000000000000  d21 3fd99a27ad32ddf5
    I/DEBUG   (  916):  d22 3fd24998d6307188  d23 3fcc7288e957b53b
    I/DEBUG   (  916):  d24 3fc74721cad6b0ed  d25 3fc39a09d078c69f
    I/DEBUG   (  916):  d26 0000000000000000  d27 0000000000000000
    I/DEBUG   (  916):  d28 0000000000000000  d29 0000000000000000
    I/DEBUG   (  916):  d30 0000000000000000  d31 0000000000000000
    I/DEBUG   (  916):  scr 20000012
    I/DEBUG   (  916):
    I/DEBUG   (  916):          #00  pc 00018bc8  /system/lib/libsurfaceflinger.so
    I/DEBUG   (  916):          #01  pc 000190ec  /system/lib/libsurfaceflinger.so
    I/DEBUG   (  916):          #02  pc 00023dfc  /system/lib/libsurfaceflinger.so
    I/DEBUG   (  916):          #03  pc 0001c8c8  /system/lib/libutils.so
    I/DEBUG   (  916):          #04  pc 0001ce3a  /system/lib/libutils.so
    I/DEBUG   (  916):          #05  pc 000118ec  /system/lib/libc.so
    I/DEBUG   (  916):          #06  pc 000114b0  /system/lib/libc.so
    I/DEBUG   (  916):
    I/DEBUG   (  916): code around pc:
    I/DEBUG   (  916): ac518ba8 ffb8f7ff edd06ca0 23000a0b 6ec7a917
    I/DEBUG   (  916): ac518bb8 0a07edc4 0a0ced90 0450f8df 0a08ed84
    I/DEBUG   (  916): ac518bc8 7a17edd7 edc44478 64e37a09 e886f7fe
    I/DEBUG   (  916): ac518bd8 9817b940 024cf104 1434f8df 44796945
    I/DEBUG   (  916): ac518be8 4798682b e42cf8df 0924f10d ad182600
    I/DEBUG   (  916):
    I/DEBUG   (  916): code around lr:
    I/DEBUG   (  916): af9049f0 e1853f92 e3530000 1afffffa e8bd8070
    I/DEBUG   (  916): af904a00 e92d4070 e1a04000 e1a05001 ebffffd4
    I/DEBUG   (  916): af904a10 e1950f9f e0802004 e1853f92 e3530000
    I/DEBUG   (  916): af904a20 1afffffa e8bd8070 e1a01000 e3e00000
    I/DEBUG   (  916): af904a30 eafffff2 e1a01000 e3a00001 eaffffef
    I/DEBUG   (  916):
    I/DEBUG   (  916): stack:
    I/DEBUG   (  916):     4376dd28  0008f75c
    I/DEBUG   (  916):     4376dd2c  ac52b730
    I/DEBUG   (  916):     4376dd30  00100000
    I/DEBUG   (  916):     4376dd34  ab91b11f  /system/lib/libui.so
    I/DEBUG   (  916):     4376dd38  00100000
    I/DEBUG   (  916):     4376dd3c  afd13ec7  /system/lib/libc.so
    I/DEBUG   (  916):     4376dd40  0008f5f0
    I/DEBUG   (  916):     4376dd44  00000000
    I/DEBUG   (  916):     4376dd48  0008f638
    I/DEBUG   (  916):     4376dd4c  0008f6e8
    I/DEBUG   (  916):     4376dd50  fffffec0
    I/DEBUG   (  916):     4376dd54  ac518b2d  /system/lib/libsurfaceflinger.so
    I/DEBUG   (  916):     4376dd58  0008f5f0
    I/DEBUG   (  916):     4376dd5c  0008f6e8
    I/DEBUG   (  916):     4376dd60  df002777
    I/DEBUG   (  916):     4376dd64  e3a070ad
    I/DEBUG   (  916): #00 4376dd68  ac5261be  /system/lib/libsurfaceflinger.so
    I/DEBUG   (  916):     4376dd6c  a811cda9  /system/lib/libutils.so
    I/DEBUG   (  916):     4376dd70  fffffff8
    I/DEBUG   (  916):     4376dd74  00193ad8
    I/DEBUG   (  916):     4376dd78  00000000
    I/DEBUG   (  916):     4376dd7c  0008f650
    I/DEBUG   (  916):     4376dd80  00000000
    I/DEBUG   (  916):     4376dd84  00193ad8
    I/DEBUG   (  916):     4376dd88  00000001
    I/DEBUG   (  916):     4376dd8c  a811ccb3  /system/lib/libutils.so
    I/DEBUG   (  916):     4376dd90  00000000
    I/DEBUG   (  916):     4376dd94  00000000
    I/DEBUG   (  916):     4376dd98  00000000
    I/DEBUG   (  916):     4376dd9c  00000000
    I/DEBUG   (  916):     4376dda0  00000000
    I/DEBUG   (  916):     4376dda4  00000001
    I/DEBUG   (  916):     4376dda8  00000000
    I/DEBUG   (  916):     4376ddac  00100000
    I/DEBUG   (  916):     4376ddb0  00001000
    I/DEBUG   (  916):     4376ddb4  00000000
    I/DEBUG   (  916):     4376ddb8  00000000
    I/DEBUG   (  916):     4376ddbc  0008f6a8
    I/DEBUG   (  916):     4376ddc0  fffffff8
    I/DEBUG   (  916):     4376ddc4  0008f648
    I/DEBUG   (  916):     4376ddc8  0008f648
    I/DEBUG   (  916):     4376ddcc  00000001
    I/DEBUG   (  916):     4376ddd0  00000000
    I/DEBUG   (  916):     4376ddd4  ac5261be  /system/lib/libsurfaceflinger.so
    I/DEBUG   (  916):     4376ddd8  0008f664
    I/DEBUG   (  916):     4376dddc  0008f654
    I/DEBUG   (  916):     4376dde0  00000000
    I/DEBUG   (  916):     4376dde4  a811cd9b  /system/lib/libutils.so
    I/DEBUG   (  916):     4376dde8  00000000
    I/DEBUG   (  916):     4376ddec  0008f650
    I/DEBUG   (  916):     4376ddf0  a811ccf9  /system/lib/libutils.so
    I/DEBUG   (  916):     4376ddf4  0008f598
    I/DEBUG   (  916):     4376ddf8  4376de84
    I/DEBUG   (  916):     4376ddfc  0008f240
    I/DEBUG   (  916):     4376de00  0008f5f0
    I/DEBUG   (  916):     4376de04  00193ad8
    I/DEBUG   (  916):     4376de08  00100000
    I/DEBUG   (  916):     4376de0c  ac519163  /system/lib/libsurfaceflinger.so
    I/DEBUG   (  916):     4376de10  0008f680
    I/DEBUG   (  916):     4376de14  ac519177  /system/lib/libsurfaceflinger.so
    I/DEBUG   (  916):     4376de18  0008f680
    I/DEBUG   (  916):     4376de1c  a8114b8f  /system/lib/libutils.so
    I/DEBUG   (  916):     4376de20  0008f5f0
    I/DEBUG   (  916):     4376de24  521574f1
    I/DEBUG   (  916):     4376de28  ac52bc4c
    I/DEBUG   (  916):     4376de2c  0008f5f0
    I/DEBUG   (  916):     4376de30  00000000
    I/DEBUG   (  916):     4376de34  4376de84
    I/DEBUG   (  916):     4376de38  0008f240
    I/DEBUG   (  916):     4376de3c  0008f5f0
    I/DEBUG   (  916):     4376de40  00193ad8
    I/DEBUG   (  916):     4376de44  00100000
    I/DEBUG   (  916):     4376de48  00000001
    I/DEBUG   (  916):     4376de4c  ac5190f1  /system/lib/libsurfaceflinger.so
    I/DEBUG   (  916): #01 4376de50  0008f1b0
    I/DEBUG   (  916):     4376de54  ac52a7cc
    I/DEBUG   (  916):     4376de58  4376de84
    I/DEBUG   (  916):     4376de5c  ac523e01  /system/lib/libsurfaceflinger.so
    D/Zygote  (  918): Process 1000 terminated by signal (11)
    I/Zygote  (  918): Exit zygote because system server (1000) has terminated
    request_suspend_state: wakeup (3->0) at 13763519289 (2000-01-01 00:00:12.125549318 UTC)
    I/ServiceManagerinit: untracked pid 919 exited
    (  913): service 'media.audio_flinger' died
    I/ServiceManager(  913): service 'media.player' died
    I/ServiceManager(  913): service 'media.camera' died
    I/ServiceManager(  913): service 'media.audio_policy' died
    D/AndroidRuntime( 1018):
    D/AndroidRuntime( 1018): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
    D/AndroidRuntime( 1018): CheckJNI is ON
    D/dalvikvm( 1018): creating instr width table
    I/        ( 1016): ServiceManager: 0xad50
    E/ALSALib ( 1016): external/alsa-lib/src/control/control.c:909:(snd_ctl_open_noupdate) Invalid CTL AndroidPlayback
    W/AudioHardwareALSA( 1016): Unable to attach mixer to device AndroidPlayback: No such file or directory
    E/ALSALib ( 1016): external/alsa-lib/src/control/control.c:909:(snd_ctl_open_noupdate) Invalid CTL AndroidCapture
    W/AudioHardwareALSA( 1016): Unable to attach mixer to device AndroidCapture: No such file or directory
    D/TIALSAModule( 1016): TI ALSA module opened
    D/TIALSAModule( 1016): Initializing devices for TI ALSA module
    I/CameraService( 1016): CameraService started (pid=1016)
    D/AudioHardwareALSA( 1016): openOutputStream called for devices: 0x00000002
    D/TIALSAModule( 1016): open called for devices 00000002 in mode 0...

  • Chris,

         Could you please (lsmod to) check if the pvrsrvkm and omaplfb  modules are inserted on the platform? If not you may have to start  the service using the following command -

    /system/bin/sgx/rc.pvr  start.

          Also what are the bootargs on your platform? You may have to set vram size in the bootargs command line appropriately.

    Regards,

    Aditya

     

  • lsmod reveals:

    omaplfb 10738 0 - Live 0xbf031000
    pvrsrvkm 153950 1 omaplfb, Live 0xbf000000

    so looks like they are running.

    Kernel pass arguments are:

    console=ttyO2,115200n8 androidboot.console=ttyO2 mem=256M root=/dev/mmcblk0p2 rw rootfstype=ext3 rootdelay=1 init=/init ip=off omap_vout.vid1_static_vrfb_alloc=y vram=8M omapfb.vram=0:8M

  • I got it to work!  Seems I missed using the mktarball.sh step.  Sorry for the false alarm.  I'm not really sure what this does but I know it's only useful when you are building an SD card.  We build android with the Google paradigm now where the system directory is tarred up and dumped onto the system partition.  The rootfs skeleton is linked in the kernel as the initramfs with the init and init.rc files included in it for a skeleton of only 160k.  For some reason, the SD card needs all that fs_stating to work properly.  This is a real pain so I guess I should write up how to use the system we use ehh.  Also, the YAFFS drivers need to be updated to the most recent in the repo as the old ones had lots of bugs and would keep you from doing what we do with the root fs.

  • Chris Westervelt said:

    ...  Also, the YAFFS drivers need to be updated to the most recent in the repo as the old ones had lots of bugs and would keep you from doing what we do with the root fs.

    Could you post your patches to our community rowboat group for review? This would be useful for other users too and might be integrated to TI Android DevKit in future.

    http://groups.google.com/group/rowboat

  • I would but I need to issue a whole set of files and folders.  Basically, you git the latest release of yaffs2 from http://www.yaffs.net/.  In the git you will find in the root a patch-ker.sh script that will run and update the kernel when you point it to that directory.  Afterwards, rebuild the kernel and your up to date and ready to test.  I can send you what I have if you can tell me where to deposit the tar ball.

  • Thanks, we shall try this out.

  • I'm back to trying to run the Gingerbread build the way I use it in the classic Android boot/system/userdata/cache partition way.  In Froyo I was able to make this work but in Gingerbread I am back to resolving the original problem I opened up this thread about.  I really need to understand what mktarball.sh does to fix up the files so they will start up properly and how what it does could be applied to the out/target/product/am3517/system directory of files.  For one, I noticed that the system/bin/sgx/*.ko and .rc file get chnaged to executable.  I saw this on the SD card after I un-tarred it.  I do not see this before in the raw system directory.  In Froyo, all I had to do was bzip all the files in system folder and untar it to the yaffs2 system partition after starting up a kernel with a cut up init.rc file and a custom etc/install-recovery.sh file and it works.  See attached install-recovery.sh and init.rc file.  It seems that it is still dying when the servicemanager can't continue as shown in previous logcat output.

    ## init.rc for recovery install of system partition

    on early-init
        symlink /initlogo.rle.bak /initlogo.rle

    sysclktz 0

    on init
        write /sys/class/leds/backlight/brightness 250
        export PATH /data/busybox:/sbin:/system/sbin:/system/bin:/system/xbin
        export LD_LIBRARY_PATH /system/lib
        export ANDROID_BOOTLOGO 1
        export ANDROID_ROOT /system
        export ANDROID_ASSETS /system/app
        export ANDROID_DATA /data
        export EXTERNAL_STORAGE /mnt/sdcard
        export ASEC_MOUNTPOINT /mnt/asec
        export BOOTCLASSPATH /system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar

        mount yaffs2 mtd@userdata /data nosuid nodev
        chown system system /data
        chmod 0771 /data

        # Create dump dir and collect dumps.
        # Do this before we mount cache so eventually we can use cache for
        # storing dumps on platforms which do not have a dedicated dump partition.
       
        mkdir /data/dontpanic
        chown root log /data/dontpanic
        chmod 0750 /data/dontpanic

        # Collect apanic data, free resources and re-arm trigger
        copy /proc/apanic_console /data/dontpanic/apanic_console
        chown root log /data/dontpanic/apanic_console
        chmod 0640 /data/dontpanic/apanic_console

        copy /proc/apanic_threads /data/dontpanic/apanic_threads
        chown root log /data/dontpanic/apanic_threads
        chmod 0640 /data/dontpanic/apanic_threads

        write /proc/apanic_console 1
        mkdir /data/local
        chmod 0750 /data/local

    # mount the installer needed partitions
        mount ext2 /dev/block/sdb2 /data ro

    # mount sdcard third partition on /part-3
        mkdir /part-3
        mount vfat /dev/block/mmcblk0p3 /part-3/

    on boot
        ifup lo
        hostname localhost
        domainname localdomain

        class_start default

    service logcat /system/bin/logcat
        console

    service console /system/bin/sh
        console

    service flash_recovery /system/etc/install-recovery.sh
        oneshot

    ### install-recovery.sh custom file ###

    #! /system/bin/sh
    echo '**************************************' > /dev/ttyS2
    echo '******* Mounting System NAND *********' > /dev/ttyS2
    echo '**************************************' > /dev/ttyS2

    ## show user we are programming

    echo 254 > /sys/class/leds/red/brightness
    mount -t yaffs2 /dev/block/mtdblock5 /sdcard
    cd /sdcard

    echo '**************************************' > /dev/ttyS2
    echo '******** Removing Old Files **********' > /dev/ttyS2
    echo '**************************************' > /dev/ttyS2

    rm -r *

    echo '**************************************' > /dev/ttyS2
    echo '******* Installing New System ********' > /dev/ttyS2
    echo '**************************************' > /dev/ttyS2

    busybox tar -xjvf /system.tar.bz2 > /dev/ttyS2
    rm /system/app/Launcher2.apk

    echo '**************************************' > /dev/ttyS2
    echo '******* Updating System **********' > /dev/ttyS2
    echo '**************************************' > /dev/ttyS2

    busybox cp /part-3/*.apk /sdcard/app
    busybox cp /part-3/keypad_comm /sdcard/bin
    chmod 755 /sdcard/bin/keypad_comm
    busybox cp /part-3/bootanimation.zip /data/local
    busybox cp /part-3/boot.wav /sdcard/media


    echo 0 > /sys/class/leds/red/brightness

    ### let user know we are done ###

    echo 254 > /sys/class/leds/green/brightness

    alsa_aplay /boot.wav

    echo '**************************************' > /dev/ttyS2
    echo '************ Finished  ***************' > /dev/ttyS2
    echo '**************************************' > /dev/ttyS2


    # reboot





  • Chris Westervelt said:

    I really need to understand what mktarball.sh does to fix up the files so they will start up properly and how what it does could be applied to the out/target/product/am3517/system directory of files.  For one, I noticed that the system/bin/sgx/*.ko and .rc file get chnaged to executable.  I saw this on the SD card after I un-tarred it.  I do not see this before in the raw system directory.

    You can always review the code. It is a script file...

    If I recall correctly, the script changes the owner/group and permissions based on the type and location of the file before tarring it up.

  • I thought that that was what was happening although I did not see that in the finished product tar ball.  In short, the one thing I see in the Froyo after boot is an empty /acct/uid directory.  In the SD Gingerbread boot, I see an /acct/uid with a lot of different user id folders.  Do you know why Android uses different users to start services and where it expects to get the initial set of user ids from?  I almost feel like its the cart before the horse syndrome.  Is the init.rc file a manifestation of the rowboat team?  If so, is the original init.rc from Google available some where specifically you know?

  • There is a file which lists the various users/groups and their IDs. Unfortunately, I am unable to recall its name or location in the android sources.

    Regarding the location of AOSP init.rc: it is in system/core/rootdir, this is overwritten by the one in device/<product>/init.rc in rowboat builds.