Re: [android-porting] porting android on beagle board
can see what happens when you 'boot', instead of a saveenvreset? btw - u missed 'saveenv', so even if u reset, uboot got nothing to boot. and 2 hours is way long., reset happens in couple of seconds.. if not there's some problem. a power cycle should have completed after 'reset' command., On Fri, Apr 9, 2010 at 10:14 AM, ajish zacharias ajishzachar...@gmail.com wrote: Sir , I tried procedure mentioned in http://code.google.com/p/rowboat/wiki/ConfigureAndBuild. Then i got terminal window shown in below.In that procedure i didn't use saveenv command In my previous attempt i use it,the result was same.I got message resetting ,i wait for almost 2 hour but there is nochange in terminal. OMAP3530-GP ES3.0, CPU-OPP2 L3-165MHz OMAP3 Beagle board + LPDDR/NAND DRAM: 128 MB NAND: 256 MiB In: serial Out: serial Err: serial Board revision Ax/Bx Die ID #5ac4000304013f8901001001 Hit any key to stop autoboot: 0 OMAP3 beagleboard.org # OMAP3 beagleboard.org # mmc init mmc1 is available OMAP3 beagleboard.org # mmc1 is available OMAP3 beagleboard.org # setenv bootcmd 'mmc init;fatload mmc 1 8020 uImage; bootm 8020' OMAP3 beagleboard.org # Unknown command '' - try 'help' OMAP3 beagleboard.org # setenv bootargs 'mem=128M androidboot.console=ttyS2 console=tty0 console=ttyS2,115200n8 root=/ dev/mmcblk0p1 rw init=/init rootwait omapfb.viedo_mode=640x480mr...@60' OMAP3 beagleboard.org # reset resetting ... thanking advance with regards Ajish Zacharias(CAIR,DRDO) -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting To unsubscribe, reply using remove me as the subject. -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting
[android-porting] Re: Alsa Audio Support? OMAP24xx cpu
yes im aware alsa needs the nodes in that folder which would be fine for one of the devices i am developing for (nokia n810) whoes audio codec creates said files but the other device - nokia n800 does not as although alsa detects the audio system it does not create pcm devices as i think everything has to go though the dsp to get sound on the 800 ? On Apr 9, 3:00 am, Chih-Wei cwhu...@linux.org.tw wrote: Your sound device nodes must appear in /dev/snd/, the Android's init creates them in that dir. Or you must have troubles. BTW, the modern alsa lib doesn't need asound.conf anymore. So don't bother about it. On 3月21日, 上午5時15分, DJ_Steve steve103...@gmail.com wrote: hello, my first post here, im currently working on porting android and hopfulyl getting it fully running on the Nokia Internet Tablets (n800,n810,n900) currently we have a base system that boots and works, the on screen keyboard on this is basicly broken though, and also no sound or bluetooth. but i have got the linux kernel to detect the n810 sound chip and show it as usable it seems, dmesg info : 6[ 7.165435] Advanced Linux Sound Architecture Driver Version 1.0.18rc3. 6[ 7.181548] ASoC version 0.13.2 6[ 7.195220] AIC3X Audio Codec 0.2 6[ 7.209686] asoc: tlv320aic3x - omap-mcbsp-dai-(link_id) mapping ok 6[ 7.241729] clock: clksel_round_rate_div: sys_clkout2 target_rate 1200 6[ 7.254577] clock: new_div = 8, new_rate = 1200 6[ 7.266692] ALSA device list: 6[ 7.278442] #0: N810 (tlv320aic3x) /dev contails these files (/dev not /dev/snd - not sure whats going on their) - i have remove a few ofthe nodes shown as i dontthink their relevent. # ls /dev vcsa1 vcs1 usb1 block controlC0 pcmC0D0c pcmC0D0p seq timer mtd dsperr dsptwch dspmem dspctl i2c-2 i2c-1 ppp vcsa vcs kmsg urandom random zero null rtc1 rtc0 input network_throughput network_latency cpu_dma_latency alarm keychord android_adb android_adb_enable watchdog log binder hw_random ashmem retu tahvo ptmx logcat outputs to following errors : E/AudioHardwareALSA( 685): Unable to attach mixer to device AndroidPlayback: No such file or directory E/AudioHardwareALSA( 685): Unable to attach mixer to device default: No such file or directory E/AudioHardwareALSA( 685): Unable to attach mixer to device AndroidRecord: No such file or directory E/AudioHardwareALSA( 685): Unable to attach mixer to device default: No such file or directory any ideas build im trying currently is cupcake -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting To unsubscribe, reply using remove me as the subject.
Re: Fwd: [android-porting] Touchscreen support for 7 Inch LCD panel
Hi Kanru, We applied patch of https://www.codeaurora.org/gitweb/quic/la/?p=platform/frameworks/base... Once we compile we got below error.Please help us. Copying out/target/common/obj/APPS/ContactsProvider_intermediates/ classes-full-debug.jar Install: out/target/product/generic/system/app/ContactsProvider.apk Copying out/target/common/obj/APPS/Development_intermediates/classes- full-debug.jar Install: out/target/product/generic/system/app/Development.apk Copying out/target/common/obj/APPS/DownloadProvider_intermediates/ classes-full-debug.jar Install: out/target/product/generic/system/app/DownloadProvider.apk Copying out/target/common/obj/APPS/DrmProvider_intermediates/classes- full-debug.jar Install: out/target/product/generic/system/app/DrmProvider.apk Copying out/target/common/obj/APPS/GlobalSearch_intermediates/classes- full-debug.jar Install: out/target/product/generic/system/app/GlobalSearch.apk Copying out/target/common/obj/APPS/GoogleSearch_intermediates/classes- full-debug.jar Install: out/target/product/generic/system/app/GoogleSearch.apk Copying out/target/common/obj/APPS/HTMLViewer_intermediates/classes- full-debug.jar Install: out/target/product/generic/system/app/HTMLViewer.apk target Non-prelinked: libicudata-us (out/target/product/generic/ symbols/system/lib/libicudata.so) target thumb C++: libui = frameworks/base/libs/ui/EventHub.cpp In file included from frameworks/base/libs/ui/EventHub.cpp:19: frameworks/base/include/ui/ITSLib.h:8:19: error: tslib.h: No such file or directory In file included from frameworks/base/include/ui/ITSLib.h:9, from frameworks/base/libs/ui/EventHub.cpp:19: frameworks/base/include/ui/IInputDriver.h:24: warning: 'class android::IInputDriver' has virtual functions but non-virtual destructor frameworks/base/libs/ui/EventHub.cpp:73: error: prototype for 'android::EventHub::device_t::device_t(int32_t, const char*)' does not match any in class 'android::EventHub::device_t' frameworks/base/include/ui/EventHub.h:116: error: candidates are: android::EventHub::device_t::device_t(const android::EventHub::device_t) frameworks/base/include/ui/EventHub.h:126: error: android::EventHub::device_t::device_t(int32_t, const char*, const char*) frameworks/base/libs/ui/EventHub.cpp: In constructor 'android::EventHub::device_t::device_t(int32_t, const char*)': frameworks/base/libs/ui/EventHub.cpp:75: error: class 'android::EventHub::device_t' does not have any field named 'driver' frameworks/base/libs/ui/EventHub.cpp: At global scope: frameworks/base/libs/ui/EventHub.cpp:104: error: no 'void android::EventHub::onFirstRef()' member function declared in class 'android::EventHub' frameworks/base/libs/ui/EventHub.cpp:256: error: prototype for 'bool android::EventHub::getEvent(android::InEvent*)' does not match any in class 'android::EventHub' frameworks/base/include/ui/EventHub.h:100: error: candidate is: virtual bool android::EventHub::getEvent(int32_t*, int32_t*, int32_t*, int32_t*, uint32_t*, int32_t*, nsecs_t*) frameworks/base/libs/ui/EventHub.cpp: In member function 'bool android::EventHub::getEvent(android::InEvent*)': frameworks/base/libs/ui/EventHub.cpp:318: error: 'struct android::EventHub::device_t' has no member named 'driver' frameworks/base/libs/ui/EventHub.cpp:319: error: 'struct android::EventHub::device_t' has no member named 'driver' frameworks/base/libs/ui/EventHub.cpp: In member function 'int android::EventHub::open_device(const char*)': frameworks/base/libs/ui/EventHub.cpp:536: error: no matching function for call to 'android::EventHub::device_t::device_t(unsigned int, const char*)' frameworks/base/include/ui/EventHub.h:126: note: candidates are: android::EventHub::device_t::device_t(int32_t, const char*, const char*) frameworks/base/include/ui/EventHub.h:116: note: android::EventHub::device_t::device_t(const android::EventHub::device_t) frameworks/base/libs/ui/EventHub.cpp:596: error: 'struct android::EventHub::device_t' has no member named 'driver' frameworks/base/libs/ui/EventHub.cpp:597: error: 'struct android::EventHub::device_t' has no member named 'driver' frameworks/base/libs/ui/EventHub.cpp:597: error: 'struct android::EventHub::device_t' has no member named 'driver' frameworks/base/libs/ui/EventHub.cpp:598: error: 'struct android::EventHub::device_t' has no member named 'driver' frameworks/base/libs/ui/EventHub.cpp:599: error: 'struct android::EventHub::device_t' has no member named 'driver' make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/ libui_intermediates/EventHub.o] Error 1 Regards --Gokul On Apr 8, 1:11 pm, Kan-Ru Chen ka...@0xlab.org wrote: Hi Gokul, You have to integrate the tslib to EventHub. Here is the example:https://www.codeaurora.org/gitweb/quic/la/?p=platform/frameworks/base... Regards, Kanruhttp://0xlab.org On Thu, Apr 8, 2010 at 4:02 PM, Gokul Nagarajan nagarajan1...@gmail.com wrote: Hi Ashwin, Once we run the ts_calibrate apllication,we test the touchscreen through ts_test
Re: [android-porting] 3GP audio support in Eclair
Hi, - have ever seen a file inside gallery or music app? after booting eclair for first time, i always have to wait like 5 minutes for mediascanner to finish loading files.. manually you can trigger like menu - Dev Tools - Mediascanner, and wait for /sdcard scan to complete.. - rename .3gp as like .mp4 and see if it gets played under gallery app.. i've tried this on a broken setup, where Music app will crash on opening.. - regarding command line testing, alsa_aplay can test raw and selected formats.. u can use mediaframework tests to test audio/video record/playback via command line (adb/shell) source location: ./frameworks/base/media/tests/MediaFrameworkTest build command: ./make mediaframeworktest sample test command to play amr ./adb shell am instrument -e class com.android.mediaframeworktest.functional.MediaPlayerApiTest#testAMRGetDuration -w com.android.mediaframeworktest/.MediaFrameworkTestRunner -Deva On Fri, Apr 9, 2010 at 10:31 AM, Uander uandro...@gmail.com wrote: I want to check if I m able to play those files in command line in Android . what is the command to play a .3gp audio file . ? Thanks : Uander On Thu, Apr 8, 2010 at 10:51 PM, Uander uandro...@gmail.com wrote: Thanks Deva . I am also using Eclair Android 2.0 . but donno what bad happened with my luck . Does anyone faced this problem if Yes please put some points here How to look around with this oor what all I should cross check on my file system / opencore / codecs etc ?. Thanks : Uander On Thu, Apr 8, 2010 at 8:13 AM, Deva R r.deva...@gmail.com wrote: Hi Uander, both the files were listed under Music app.., and plays fine for me. i use android eclair latest.., nothing much, but attached log from the exercise below.. -deva # cd /sdcard # ls te* test_n_3gp.3gp test_n_amr.amr # # # W/IInputConnectionWrapper( 1357): showStatusIcon on inactive InputConnection I/ActivityManager( 837): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x1020 cmp=com.android.music/.MusicBrowserActivity } I/ActivityManager( 837): Starting activity: Intent { act=android.intent.action.PICK dat= typ=vnd.android.cursor.dir/artistalbum flg=0x400 cmp=com.android.music/.ArtistAlbumBrowserActivity (has extras) } D/dalvikvm( 837): GC freed 18389 objects / 958944 bytes in 88ms I/ActivityManager( 837): Displayed activity com.android.music/.ArtistAlbumBrowserActivity: 413 ms (total 429 ms) E/MusicUtils( 1357): Trying to unbind for unknown Context E/gralloc ( 837): [unregister] handle 0x4ada60 still locked (state=4001) I/ActivityManager( 837): Starting activity: Intent { act=android.intent.action.PICK dat= typ=vnd.android.cursor.dir/track cmp=com.android.music/.TrackBrowserActivity (has extras) } I/ActivityManager( 837): Displayed activity com.android.music/.TrackBrowserActivity: 274 ms (total 274 ms) W/MediaPlayer( 1357): info/warning (1, 44) D/AudioMIO( 1307): Before: ADJ_CLK old clock -462 original correction 462 correction 462 new clock 0 D/AudioMIO( 1307): After: ADJ_CLK old clock -462 correction 462 new clock 0 D/AudioMIO( 1307): Before: ADJ_CLK old clock -461 original correction 461 correction 461 new clock 0 D/AudioMIO( 1307): After: ADJ_CLK old clock -461 correction 461 new clock 0 I/ActivityManager( 837): Starting activity: Intent { flg=0x400 cmp=com.android.music/.MediaPlaybackActivity } I/MediaPlayer( 1357): Info (1,44) D/AudioHardwareALSA( 1307): INFO: EPIPE D/AudioMIO( 1307): Before: ADJ_CLK old clock 230 original correction -137 correction -137 new clock 93 D/AudioMIO( 1307): After: ADJ_CLK old clock 230 correction -137 new clock 93 D/AudioMIO( 1307): Before: ADJ_CLK old clock 230 original correction -137 correction -137 new clock 93 D/AudioMIO( 1307): After: ADJ_CLK old clock 230 correction -137 new clock 93 I/ActivityManager( 837): Displayed activity com.android.music/.MediaPlaybackActivity: 311 ms (total 311 ms) D/AudioMIO( 1307): Before: ADJ_CLK old clock 245 original correction 34 correction 34 new clock 279 D/AudioMIO( 1307): After: ADJ_CLK old clock 245 correction 34 new clock 279 D/AudioMIO( 1307): Before: ADJ_CLK old clock 617 original correction 33 correction 33 new clock 650 D/AudioMIO( 1307): After: ADJ_CLK old clock 617 correction 33 new clock 650 D/dalvikvm( 1357): GC freed 8717 objects / 576920 bytes in 57ms D/AudioHardwareALSA( 1307): INFO: EPIPE D/AudioHardwareALSA( 1307): INFO: EPIPE D/AudioHardwareALSA( 1307): INFO: EPIPE D/AudioHardwareALSA( 1307): INFO: EPIPE W/IInputConnectionWrapper( 1357): showStatusIcon on inactive InputConnection D/AudioHardwareALSA( 1307): INFO: EPIPE D/AudioHardwareALSA( 1307): INFO: EPIPE D/AudioHardwareALSA( 1307): INFO: EPIPE D/dalvikvm( 987): GC freed 4432 objects / 204272 bytes in 51ms D/dalvikvm( 1357): GC freed 4616 objects / 279040 bytes in 52ms On Thu, Apr 8, 2010 at 5:17 PM, Uander uandro...@gmail.com wrote:
Re: Fwd: [android-porting] Touchscreen support for 7 Inch LCD panel
Hi, looks like you are missing complete TSLIB package.. can you port complete TSLIB and update android UI libarary, from below location (its donut based)? TSLIB - http://gitorious.org/android-omap3logic/external-tslib Android Changes - http://gitorious.org/android-omap3logic/frameworks-base On Fri, Apr 9, 2010 at 2:21 PM, Gokul Nagarajan nagarajan1...@gmail.com wrote: Hi Kanru, We applied patch of https://www.codeaurora.org/gitweb/quic/la/?p=platform/frameworks/base... Once we compile we got below error.Please help us. Copying out/target/common/obj/APPS/ContactsProvider_intermediates/ classes-full-debug.jar Install: out/target/product/generic/system/app/ContactsProvider.apk Copying out/target/common/obj/APPS/Development_intermediates/classes- full-debug.jar Install: out/target/product/generic/system/app/Development.apk Copying out/target/common/obj/APPS/DownloadProvider_intermediates/ classes-full-debug.jar Install: out/target/product/generic/system/app/DownloadProvider.apk Copying out/target/common/obj/APPS/DrmProvider_intermediates/classes- full-debug.jar Install: out/target/product/generic/system/app/DrmProvider.apk Copying out/target/common/obj/APPS/GlobalSearch_intermediates/classes- full-debug.jar Install: out/target/product/generic/system/app/GlobalSearch.apk Copying out/target/common/obj/APPS/GoogleSearch_intermediates/classes- full-debug.jar Install: out/target/product/generic/system/app/GoogleSearch.apk Copying out/target/common/obj/APPS/HTMLViewer_intermediates/classes- full-debug.jar Install: out/target/product/generic/system/app/HTMLViewer.apk target Non-prelinked: libicudata-us (out/target/product/generic/ symbols/system/lib/libicudata.so) target thumb C++: libui = frameworks/base/libs/ui/EventHub.cpp In file included from frameworks/base/libs/ui/EventHub.cpp:19: frameworks/base/include/ui/ITSLib.h:8:19: error: tslib.h: No such file or directory In file included from frameworks/base/include/ui/ITSLib.h:9, from frameworks/base/libs/ui/EventHub.cpp:19: frameworks/base/include/ui/IInputDriver.h:24: warning: 'class android::IInputDriver' has virtual functions but non-virtual destructor frameworks/base/libs/ui/EventHub.cpp:73: error: prototype for 'android::EventHub::device_t::device_t(int32_t, const char*)' does not match any in class 'android::EventHub::device_t' frameworks/base/include/ui/EventHub.h:116: error: candidates are: android::EventHub::device_t::device_t(const android::EventHub::device_t) frameworks/base/include/ui/EventHub.h:126: error: android::EventHub::device_t::device_t(int32_t, const char*, const char*) frameworks/base/libs/ui/EventHub.cpp: In constructor 'android::EventHub::device_t::device_t(int32_t, const char*)': frameworks/base/libs/ui/EventHub.cpp:75: error: class 'android::EventHub::device_t' does not have any field named 'driver' frameworks/base/libs/ui/EventHub.cpp: At global scope: frameworks/base/libs/ui/EventHub.cpp:104: error: no 'void android::EventHub::onFirstRef()' member function declared in class 'android::EventHub' frameworks/base/libs/ui/EventHub.cpp:256: error: prototype for 'bool android::EventHub::getEvent(android::InEvent*)' does not match any in class 'android::EventHub' frameworks/base/include/ui/EventHub.h:100: error: candidate is: virtual bool android::EventHub::getEvent(int32_t*, int32_t*, int32_t*, int32_t*, uint32_t*, int32_t*, nsecs_t*) frameworks/base/libs/ui/EventHub.cpp: In member function 'bool android::EventHub::getEvent(android::InEvent*)': frameworks/base/libs/ui/EventHub.cpp:318: error: 'struct android::EventHub::device_t' has no member named 'driver' frameworks/base/libs/ui/EventHub.cpp:319: error: 'struct android::EventHub::device_t' has no member named 'driver' frameworks/base/libs/ui/EventHub.cpp: In member function 'int android::EventHub::open_device(const char*)': frameworks/base/libs/ui/EventHub.cpp:536: error: no matching function for call to 'android::EventHub::device_t::device_t(unsigned int, const char*)' frameworks/base/include/ui/EventHub.h:126: note: candidates are: android::EventHub::device_t::device_t(int32_t, const char*, const char*) frameworks/base/include/ui/EventHub.h:116: note: android::EventHub::device_t::device_t(const android::EventHub::device_t) frameworks/base/libs/ui/EventHub.cpp:596: error: 'struct android::EventHub::device_t' has no member named 'driver' frameworks/base/libs/ui/EventHub.cpp:597: error: 'struct android::EventHub::device_t' has no member named 'driver' frameworks/base/libs/ui/EventHub.cpp:597: error: 'struct android::EventHub::device_t' has no member named 'driver' frameworks/base/libs/ui/EventHub.cpp:598: error: 'struct android::EventHub::device_t' has no member named 'driver' frameworks/base/libs/ui/EventHub.cpp:599: error: 'struct android::EventHub::device_t' has no member named 'driver' make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/ libui_intermediates/EventHub.o]
[android-porting] How to send an event to User space?
Hi, I would like to send an event to user space from my driver. My driver will check the interrupt. Once it happened, an event will be send to filesystem. How can i do this scenario? Is that possible to use uevent? kobject_uevent(psy-dev-kobj, KOBJ_CHANGE); Thanks for help.. -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting To unsubscribe, reply using remove me as the subject.
[android-porting] Re: after referring the group,to uch screen can only respond at top bar
god,nobody reply? Thanks --Weber On 4月4日, 下午11时21分, Weber qvbs...@gmail.com wrote: I found a strange thing: if I do not change the owner of /sys/android_power/ acquire_partial_wake_lock ,to radio system ,then the libhardware.so complain that permission denied,and the touch screen can respond at top bar. but ,if the owner of acquire_partial_wake_lock are changed to radio system ,the complaints disappeared,however,the touch screen don't respond anymore. and if the permission is ok, in hardware/libhardware/power/power.c. 1.the acquire_wake_lock() function can return true 2.the acquire_partial_wake_lock can be opened and written a word wake in function set_screen_state() so I conducted a mix test by hack the /power/power.c to found who makes the ts don't respond. and found that: only the the condition that acquire_wake_lock() function can NOT return true and the acquire_partial_wake_lock can NOT be written ,the ts can respond. I am very confused of these things ,anyone tell me what happened and how to do? Thanks -Weber On 3月22日, 下午9时28分, Weber qvbs...@gmail.com wrote: when i add some LOG in EventHub.cpp,I found that:when open acquire_partial_wake_lock ,it return permission denied I/power ( 679): *** set_screen_state 1 I/power ( 679): go_to_sleep now=44106449000 g_error=Permission denied so I changed the mod in init.rc chmod 0666 /sys/android_power/acquire_partial_wake_lock this time it can be open but the ts has no response now ,it has top bar slide before the mod being changed and my new logcat is attached,here are some of it 604 I/SurfaceFlinger( 659): Client API: OpenGL ES 605 I/EGLDisplaySurface( 659): using (fd=21) 606 I/EGLDisplaySurface( 659): id = s3cfb 607 I/EGLDisplaySurface( 659): xres = 240 px 608 I/EGLDisplaySurface( 659): yres = 320 px 609 I/EGLDisplaySurface( 659): xres_virtual = 240 px 610 I/EGLDisplaySurface( 659): yres_virtual = 640 px 611 I/EGLDisplaySurface( 659): bpp = 16 612 I/EGLDisplaySurface( 659): r = 11:5 613 I/EGLDisplaySurface( 659): g = 5:6 614 I/EGLDisplaySurface( 659): b = 0:5 615 I/EGLDisplaySurface( 659): width = 240 mm (25.40 dpi) 616 I/EGLDisplaySurface( 659): height = 320 mm (25.40 dpi) 617 I/EGLDisplaySurface( 659): refresh rate = 2.21 Hz 878 I/power ( 659): acquire_wake_lock lock=1 id='KeyEvents' 879 I/power ( 659): Weber@ partial_wake_lock,fd='39' 880 E/EventHub( 659): could not get driver version for /dev/input/ ts0, Invalid argument 881 I/EventHub( 659): Weber@,could not get idstring for /dev/input/ event1, No such file or directory 882 I/EventHub( 659): add device 1: /dev/input/event1 883 I/EventHub( 659): bus: 0013 884 I/EventHub( 659): vendor dead 885 I/EventHub( 659): product beef 886 I/EventHub( 659): version 0101 887 I/EventHub( 659): name: S3C-TouchScreen 888 I/EventHub( 659): location: input(ts) 889 I/EventHub( 659): id: 890 I/EventHub( 659): version: 1.0.0 961 I/EventHub( 659): New device: path=/dev/input/event1 name=S3C- TouchScreen id=0x1 (of 0x1) index=1 fd= 47 classes=0x2 1044 I/EventHub( 659): New device: path=/dev/input/event0 name=s3c- keypad id=0x10001 (of 0x2) index=2 fd=50 cl asses=0x1 1046 I/EventHub( 659): Reporting device opened: id=0x10001, name=/dev/ input/event0 1047 I/KeyInputQueue( 659): Device added: id=0x0, name=s3c-keypad, classes=1 1048 I/power ( 659): acquire_wake_lock lock=1 id='PowerManagerService' 1049 I/power ( 659): Weber@ partial_wake_lock,fd='39' 1050 I/EventHub( 659): Reporting device opened: id=0x1, name=/dev/ input/event1 1051 I/KeyInputQueue( 659): Device added: id=0x1, name=null, classes=2 1052 I/KeyInputQueue( 659): X: min=0 max=240 flat=0 fuzz=0 1053 I/KeyInputQueue( 659): Y: min=0 max=320 flat=0 fuzz=0 1054 I/KeyInputQueue( 659): Pressure: min=0 max=1 flat=0 fuzz=0 1055 I/KeyInputQueue( 659): Size: unknown values 4465 I/ActivityManager( 659): Process android.process.acore (pid 744) has died. 4466 I/WindowManager( 659): WIN DEATH: Window{435785e0 com.android.launcher/com.android.launcher.Launcher} thank you all --Weber On Mar 12, 11:32 am, Weber qvbs...@gmail.com wrote: Hi,guys Following Achim's advice (Thank you ,Achim ),I added some LOGI in EventHub.cpp,and the output of logcat is as follows: E/EventHub( 679): could not get driver version for /dev/input/ts0, Invalid argument I/EventHub( 679): New device: path=/dev/input/event1 name=S3C TouchScreen id=0x1 (of 0x1) index=1 fd=40 classes=0x4 E/EventHub( 679): could not get driver version for /dev/input/mouse0, Not a typewriter E/EventHub( 679): could not get driver version for /dev/input/mice, Not a typewriter I/EventHub(
Re: [android-porting] 3GP audio support in Eclair
Followed by your comments , plz find my inline replies : On Fri, Apr 9, 2010 at 2:42 PM, Deva R r.deva...@gmail.com wrote: Hi, - have ever seen a file inside gallery or music app? after booting eclair for first time, i always have to wait like 5 minutes for mediascanner to finish loading files.. manually you can trigger like menu - Dev Tools - Mediascanner, and wait for /sdcard scan to complete.. Tried this MediaScanner to scan sdcard . .3gp not scanned though . - rename .3gp as like .mp4 and see if it gets played under gallery app.. i've tried this on a broken setup, where Music app will crash on opening.. renamed .3gp to .mp4 . test_n_3gp.mp4 also not detected in Music and Gallery app . - regarding command line testing, alsa_aplay can test raw and selected formats.. alsa_aplay sdcard/test_n_3gp.3gp gives Playing raw data 'sdcard/test_n_3gp.3gp' : Unsigned 8 bit, Rate 8000 Hz, Mono for 2 minutes and then exited . no sound yet . u can use mediaframework tests to test audio/video record/playback via command line (adb/shell) source location: ./frameworks/base/media/tests/MediaFrameworkTest build command: ./make mediaframeworktest sample test command to play amr ./adb shell am instrument -e class com.android.mediaframeworktest.functional.MediaPlayerApiTest#testAMRGetDuration -w com.android.mediaframeworktest/.MediaFrameworkTestRunner Tried this on minicom for device . output comes as : com.android.mediaframeworktest.functional.MediaPlayerApiTest: Failure in testAMRGetDuration: junit.framework.AssertionFailedError: AMR getDuration at com.android.mediaframeworktest.functional.MediaPlayerApiTest.testAMRGetDuration(MediaPlayerApiTest.java:101) at java.lang.reflect.Method.invokeNative(Native Method) at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:205) at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:195) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:449) at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1447) Test results for MediaFrameworkTestRunner=.F Time: 0.74 FAILURES!!! Tests run: 1, Failures: 1, Errors: 0 Thanks : Uander -Deva On Fri, Apr 9, 2010 at 10:31 AM, Uander uandro...@gmail.com wrote: I want to check if I m able to play those files in command line in Android . what is the command to play a .3gp audio file . ? Thanks : Uander On Thu, Apr 8, 2010 at 10:51 PM, Uander uandro...@gmail.com wrote: Thanks Deva . I am also using Eclair Android 2.0 . but donno what bad happened with my luck . Does anyone faced this problem if Yes please put some points here How to look around with this oor what all I should cross check on my file system / opencore / codecs etc ?. Thanks : Uander On Thu, Apr 8, 2010 at 8:13 AM, Deva R r.deva...@gmail.com wrote: Hi Uander, both the files were listed under Music app.., and plays fine for me. i use android eclair latest.., nothing much, but attached log from the exercise below.. -deva # cd /sdcard # ls te* test_n_3gp.3gp test_n_amr.amr # # # W/IInputConnectionWrapper( 1357): showStatusIcon on inactive InputConnection I/ActivityManager( 837): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x1020 cmp=com.android.music/.MusicBrowserActivity } I/ActivityManager( 837): Starting activity: Intent { act=android.intent.action.PICK dat= typ=vnd.android.cursor.dir/artistalbum flg=0x400 cmp=com.android.music/.ArtistAlbumBrowserActivity (has extras) } D/dalvikvm( 837): GC freed 18389 objects / 958944 bytes in 88ms I/ActivityManager( 837): Displayed activity com.android.music/.ArtistAlbumBrowserActivity: 413 ms (total 429 ms) E/MusicUtils( 1357): Trying to unbind for unknown Context E/gralloc ( 837): [unregister] handle 0x4ada60 still locked (state=4001) I/ActivityManager( 837): Starting activity: Intent { act=android.intent.action.PICK dat= typ=vnd.android.cursor.dir/track cmp=com.android.music/.TrackBrowserActivity (has extras) } I/ActivityManager( 837): Displayed activity com.android.music/.TrackBrowserActivity: 274 ms (total 274 ms) W/MediaPlayer( 1357): info/warning (1, 44) D/AudioMIO( 1307): Before: ADJ_CLK old clock -462 original correction 462 correction 462 new clock 0 D/AudioMIO( 1307): After: ADJ_CLK old clock -462 correction 462 new clock 0 D/AudioMIO( 1307): Before: ADJ_CLK old clock -461 original correction 461 correction 461 new clock 0 D/AudioMIO( 1307): After: ADJ_CLK old clock -461 correction 461 new clock 0 I/ActivityManager( 837): Starting activity: Intent { flg=0x400
Re: [android-porting] Power button functionality (sleep/resume/wakeup)
Jebediah, Yeah I got the power button functionality working. I'm working with the Donut 1.6 release from Rowboat and I looked at the newer Eclair code as it deals with the POWER button and the handling is changed. So I backported just the changes from one file and the power button now functions as it should. Plus, when I hold the power button down for some longer duration, I get the Power Off dialog.. So check out http://android.git.kernel.org/?p=platform/frameworks/policies/base.git;a=blob;f=phone/com/android/internal/policy/impl/PhoneWindowManager.java and compare it to what you have.. Regards -- Ashwin On Fri, Apr 9, 2010 at 2:38 AM, Jebediah Huang jebediah.hu...@gmail.com wrote: Ashwin, Did you get solution to this problem? I've see in testing: - screen timeout can suspend , no problem - wake from power button , no problem - cannot suspend from power button pressing power button when system active: # getevent add device 1: /dev/input/event0 name: keys /dev/input/event0: 0001 0074 0001 /dev/input/event0: /dev/input/event0: 0001 0074 /dev/input/event0: $74 = 116 = KeyEvent.KEYCODE_POWER Can help me some advice? Regards --Jebediah On Wed, Mar 10, 2010 at 12:37 AM, Ashwin Bihari abih...@gmail.com wrote: Girish, The device on which we are using Android shouldn't have the keygaurd enabled, so I've disabled all of that functionality. The device gets to the home screen on bootup, and the idea is to let the screen timeout for it to lock itself or use the power button to force the lock and the only the power button will unlock/wake up the device back to the home screen or wherever it was.. Do you know where specifically the power button is handled within Android to show the lock screen or go to sleep? I've been searching for a bit but haven't followed all the source through.. Regards -- Ashwin On Mon, Mar 8, 2010 at 12:09 PM, girish neo.driz...@gmail.com wrote: did you check if hitting the power button locks the screen? You might need to look into that first... -Girish On Mon, Mar 8, 2010 at 9:20 AM, Ashwin Bihari abih...@gmail.com wrote: Girish, I do have the power management code within the Kernel enabled since my screen timeout causes the system to go into the suspend state. I can then hit the Power button to wake up the system nicely. When I do press the Power button while the system is active, I don't see any messages related to early_suspend, any ideas on what exactly I should be looking for?? Regards -- Ashwin On Sat, Feb 27, 2010 at 2:53 AM, girish neo.driz...@gmail.com wrote: Ok, I get your point. Mapping the power key is the first thing to do. Rest android should take care... Can you attach your defconfig file, need to check if all the proper power flags are enabled..which is important for android power frmwork to work. Also, when you press the power key do you see any early_suspend dumps on the terminal? if it does and doesn't go any further to suspend to RAM that means someone is holding a wake_lock. -Girish -- Forwarded message -- From: Ashwin Bihari abih...@gmail.com Date: Fri, Feb 26, 2010 at 8:41 AM Subject: Re: [android-porting] Power button functionality (sleep/resume/wakeup) To: girish neo.driz...@gmail.com Girish, No, I don't want the power button to turn the device off, I've already implemented that at the Kernel level through a different scheme. I want to invoke the Linux Power Manage suspend and resume functionality with the power button through Android. If you take any Android phone right now, there's usually a single button (the top button on the Motorola Droid for example) that when pressed will put the device to sleep if it was awake or wake it up if it was asleep. In the sleep mode the LCD is turned off and the touchscreen doesn't respond to anything. It's basically what happens when you let the screen timeout and the device goes to sleep. The power button allows you to put the device to sleep faster, and that's the functionality I'm trying to implement. I have the power button mapped to KeyEvent.KEYCODE_POWER in my Android build, but that doesn't do anything.. Regards -- Ashwin On Fri, Feb 26, 2010 at 12:05 AM, girish neo.driz...@gmail.com wrote: I guess you intend to power off the device when you hit the power button right? First, the keycode as you mentioned should map Android power key. Secondly, you should have proper hook in baseport level for pm_power_off() for DEVICE OFF. -Girish On Wed, Feb 24, 2010 at 9:16 AM, Ashwin Bihari abih...@gmail.com wrote: I've got a custom board designed around the OMAP3530 and we have a power button the device that we want to use to cause Android to go to sleep or wakeup based on it's current state. I've done a few searches and have
[android-porting] eMMC and Suspend/Resume
I've got a board that has a eMMC and I'm using the Donut 1.6 release of Android from Rowboat..I added Kernel s2.6.29-rc3 upport for my custom board. We are using MMC1 for the SD card and MMC2 for the eMMC. I've made the necessary changes to get the SD card and eMMC recognized during boot. Once the device is suspended, I press the power button to resume it and it tries to do so. The SD card is properly resumed but the first command to the eMMC (CMD0) never completes, and thus the MMC code is waiting forever and thus the resume process is stuck.. I've seen that there a are a few of you using eMMC's on this list, and I'm wondering if any of you had to do anything special to get this stuff to work or if there was anything special that needs to be done. MMC1 (SD card) is powered by VMMC1 out of the PMIC, while MMC2 (eMMC) is powered separately with 3 and 1.8 volts..and I've confirmed that these voltages are always on..I've been running around this problem for a little while now and would appreciate any insights.. Regards -- Ashwin -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting To unsubscribe, reply using remove me as the subject.
[android-porting] Why Android 2.1 works so slow
Hi! On my target platform, based on s3c6410 (armv6) Android works very slow! I use 16 bpp with resolution 800x480. Screen updates slow, seldom i see some blinking, when i quickly type on soft keyboard, or if to change desktop. Is there anybody has the same problem, is it possible to fix it? -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting To unsubscribe, reply using remove me as the subject.
Re: [android-porting] Re: How to disable Android screen locking
Hi, The keycode used is '0x3B' (59).. which maps to keycode.KEYCODE_SHIFT_LEFT Not sure how this meta-key is responsible to unlock keyguard.. below is the log collected for below sequence -wait for screen to lock, and unlock., -enable logcat, trace input events. -press unlock key (not a single keypress, but needs to be kept pressed down for a duration) # logcat # getevent # add device 1: /dev/input/event0 name: omap_keypad add device 2: /dev/input/event2 name: Synaptic TM12XX TouchPoint 1 add device 3: /dev/input/event1 name: Synaptic TM12XX TouchPoint 1 I/power ( 825): *** set_screen_state 0 E/power ( 825): Failed setting last user activity: g_error=0 W/InputManagerService( 825): Window already focused, ignoring focus gain of: com.android.internal.view.iinputmethodclient$stub$pr...@437dd6b0 D/dalvikvm( 910): GC freed 1246 objects / 86080 bytes in 47ms /dev/input/eventrequest_suspend_state: wakeup (0-0) at 5582947052051 (2000-01-01 01:32:59.897705087 UTC) 0: 0001 003b 0001 D/KeyguardViewMediator( 825): wakeWhenReadyLocked(82) D/KeyguardViewMediator( 825): handleWakeWhenReady(82) D/KeyguardViewMediator( 825): pokeWakelock(5000) I/power ( 825): *** set_screen_state 1 /dev/input/event0: 0001 003b /dev/input/event0: 0001 003b 0001 D/KeyguardViewMediator( 825): pokeWakelock(5000) W/InputManagerService( 825): Window already focused, ignoring focus gain of: com.android.internal.view.iinputmethodclient$stub$pr...@4373aae0 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 E/gralloc ( 825): [unregister] handle 0x417a00 still locked (state=4001) /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b 0002 /dev/input/event0: 0001 003b On Fri, Apr 2, 2010 at 8:38 PM, supermaximus79 andruschenk...@mail.ru wrote: Thanks a lot! Could you tell me, what is the name of lock/unlock button in Android. I know that Back button, which return Android to previous screen, calls KEY_BACK in Linux. I added it to my platform. What about lock/unlock? On Apr 1, 2:23 pm, Deva R r.deva...@gmail.com wrote: Alternatively, set a negative value to screen_off_timeout in settings.db by SQLite access through adb connection. real neat way!!! : but when i reboot, the phone boots with locked screen.. i have to unlock once, and then it stays unlocked forever.. is controls of /data/data/com.android.providers.settings/databases/settings.db documented somewhere?? looks handy. thanks, deva On Thu, Apr 1, 2010 at 3:00 PM, mizmit1222 mizmit1...@gmail.com wrote: Alternatively, set a negative value to screen_off_timeout in settings.db by SQLite access through adb connection. $ adb shell # cd /data/data/com.android.providers.settings/databases # sqlite3 settings.db sqlite update system set value=-1 where name=screen_off_timeout; sqlite .quit $ On Apr 1, 4:43 pm, Deva R r.deva...@gmail.com wrote: I guess you are tocking about UI lock.. i can't unlock it. you can unlock a locked UI, by pressing and dragging the 'lock' button upwards.. we also mapped a hot key to unlock the screen., will check what keyevent it publishes. how to disable ANDROID to lock screen You can get handle to the keyguard manager in App, and disable it.. somebody posted a snippet for this (source:http://www.androidsnippets.org/snippets/43/) KeyguardManager keyguardManager = (KeyguardManager)getSystemService(Activity.KEYGUARD_SERVICE); KeyguardLock lock = keyguardManager.newKeyguardLock(KEYGUARD_SERVICE); lock.disableKeyguard(); in androidmanifest: uses-permission android:name=android.permission.DISABLE_KEYGUARD/uses-permission 2010/4/1 íÁËÓÉÍ áÎÄÒÕÝÅÎËÏ andruschenk...@mail.ru: Hi. I have no Android power driver. I
[android-porting] Re: Touchscreen : values,unit...
Hi Deva R, Do you know what are the minimum and the maximum accepted by Android? (min=0?) Is it 16 bits or 32bits? Thanks you, Best Regards, Arnaud Frigout -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting To unsubscribe, reply using remove me as the subject.
Re: [android-porting] Power button functionality (sleep/resume/wakeup)
Ashwin, Did you get solution to this problem? I've see in testing: - screen timeout can suspend , no problem - wake from power button , no problem - cannot suspend from power button pressing power button when system active: # getevent add device 1: /dev/input/event0 name: keys /dev/input/event0: 0001 0074 0001 /dev/input/event0: /dev/input/event0: 0001 0074 /dev/input/event0: $74 = 116 = KeyEvent.KEYCODE_POWER Can help me some advice? Regards --Jebediah On Wed, Mar 10, 2010 at 12:37 AM, Ashwin Bihari abih...@gmail.com wrote: Girish, The device on which we are using Android shouldn't have the keygaurd enabled, so I've disabled all of that functionality. The device gets to the home screen on bootup, and the idea is to let the screen timeout for it to lock itself or use the power button to force the lock and the only the power button will unlock/wake up the device back to the home screen or wherever it was.. Do you know where specifically the power button is handled within Android to show the lock screen or go to sleep? I've been searching for a bit but haven't followed all the source through.. Regards -- Ashwin On Mon, Mar 8, 2010 at 12:09 PM, girish neo.driz...@gmail.com wrote: did you check if hitting the power button locks the screen? You might need to look into that first... -Girish On Mon, Mar 8, 2010 at 9:20 AM, Ashwin Bihari abih...@gmail.com wrote: Girish, I do have the power management code within the Kernel enabled since my screen timeout causes the system to go into the suspend state. I can then hit the Power button to wake up the system nicely. When I do press the Power button while the system is active, I don't see any messages related to early_suspend, any ideas on what exactly I should be looking for?? Regards -- Ashwin On Sat, Feb 27, 2010 at 2:53 AM, girish neo.driz...@gmail.com wrote: Ok, I get your point. Mapping the power key is the first thing to do. Rest android should take care... Can you attach your defconfig file, need to check if all the proper power flags are enabled..which is important for android power frmwork to work. Also, when you press the power key do you see any early_suspend dumps on the terminal? if it does and doesn't go any further to suspend to RAM that means someone is holding a wake_lock. -Girish -- Forwarded message -- From: Ashwin Bihari abih...@gmail.com Date: Fri, Feb 26, 2010 at 8:41 AM Subject: Re: [android-porting] Power button functionality (sleep/resume/wakeup) To: girish neo.driz...@gmail.com Girish, No, I don't want the power button to turn the device off, I've already implemented that at the Kernel level through a different scheme. I want to invoke the Linux Power Manage suspend and resume functionality with the power button through Android. If you take any Android phone right now, there's usually a single button (the top button on the Motorola Droid for example) that when pressed will put the device to sleep if it was awake or wake it up if it was asleep. In the sleep mode the LCD is turned off and the touchscreen doesn't respond to anything. It's basically what happens when you let the screen timeout and the device goes to sleep. The power button allows you to put the device to sleep faster, and that's the functionality I'm trying to implement. I have the power button mapped to KeyEvent.KEYCODE_POWER in my Android build, but that doesn't do anything.. Regards -- Ashwin On Fri, Feb 26, 2010 at 12:05 AM, girish neo.driz...@gmail.com wrote: I guess you intend to power off the device when you hit the power button right? First, the keycode as you mentioned should map Android power key. Secondly, you should have proper hook in baseport level for pm_power_off() for DEVICE OFF. -Girish On Wed, Feb 24, 2010 at 9:16 AM, Ashwin Bihari abih...@gmail.com wrote: I've got a custom board designed around the OMAP3530 and we have a power button the device that we want to use to cause Android to go to sleep or wakeup based on it's current state. I've done a few searches and have figured out the the function goToSleep within the PowerManager handles this functionality. For the power button handler, I'm sending the KEY_POWER eventcode into Android..this is mapped appropriately into Andriod as KeyEvent.KEYCODE_POWER. However, pressing the button doesn't cause anything to happen with Android..what am I missing in making my connections? Regards -- Ashwin -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -- unsubscribe:
[android-porting] Re: Removing battery icon from the Home screen
Managed to do it by changing the visibility service.setIconVisibility(mBatteryIcon, false); in frameworks/base/services/java/com/android/server/status/ StatusBarPolicy.java On Apr 2, 2:53 pm, pysup supriyakara...@gmail.com wrote: Hello All, I am trying to remove the battery and RSSI bar icon from theHome screen but I dont know where to look for it. Is it in the packages/ apps/launcher? Thanks -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting
[android-porting] Re: Question on building modified framework code + windows emulator
Hi MB, Thanks for response. Alas, my progress was shortlived. I couldn't find an answer for the 'layoutlib already defined' issue, so I tried rebuilding an SDK for a Cupcake PDK I have since my issue was just to rebuild aapt.exe to handle a resources.asrc file greater than 2M. Cupcake build died trying to rebuild emulator, so I removed that and other targets and just left 'aapt' in my 'make_windows_sdk.mk'. Building that got me back to the '-mno-cygwin' failure. After investigating that more, it turns out newer cygwin uses gcc-4 compiler which eliminated that option. That option creates object files that don't require cygwin DLLs. My cygwin also had gcc-3 executables, so I changed 'gcc' and 'g++' symbolic links to point to the '3' versions and it built my aapt executable successfully, but the 'aapt.exe' wouldn't run because it still required cygwin DLLs. I assumed there was something I missed and I found an 2005 edition of cygwin on my laptop that used version 3 by default. Same result there. It still required cygwin DLLs. So, I now have an exe that requires cygwin/bin to be in my path to run, which is okay for me. I am convinced that Google does not follow the instructions they give to build the Windows SDK. I did see one post somewhere that mentioned they were moving away from cygwin and were going to directly use the mingw compiler to generate Win SDK. mark On Apr 7, 4:55 pm, MBethDev mbeth...@gmail.com wrote: Hi Mark, I basically abandoned this approach and went with a different approach with using a shared library sdk addon. Seems to work but I'm running into other issues now that is now sorta unrelated with my originalquestion. Once I'll find the time, I'll reexplorebuildingthewindowsemulatorfrom the sdk. Good luck and sorry if I couldn't answer yourquestion. MB On Apr 7, 12:16 pm, mark m1krob...@gmail.com wrote: Hi MBethDev, Have you gotten any further with this? I had your exact issue and found my JDK wasn't in my environment 'path' variable. When I added it, it found javac and the -mno-cygwin error magically disappeared. I think there is a Win option to disable old DOS name formatting (8.3), so that could also be why cygwin didn't find your javac. Not sure about the README file you saw. The cygwin instructions to make Win SDK says: When installing Cygwin, set Default Text File Type to Unix/binary, not DOS/text. I now get a different error and I haven't found an answer to it yet. My new error has been seen elsewhere at link below (with no answer): http://groups.google.com/group/android-platform/browse_thread/thread/... Building... including vendor/aosp/vendorsetup.sh PLATFORM_VERSION_CODENAME=Eclair PLATFORM_VERSION=Eclair TARGET_PRODUCT=generic TARGET_BUILD_VARIANT=eng TARGET_SIMULATOR= TARGET_BUILD_TYPE=release TARGET_ARCH=arm HOST_ARCH=x86 HOST_OS=windows HOST_BUILD_TYPE=release BUILD_ID=ECLAIR build/core/find-jdk-tools-jar.sh: line 9: [: /cygdrive/c/Program: binary operator expected build/core/main.mk:378: sdk-only: javac available. /bin/bash: line 0: cd: development/tools/layoutopt/app/src/resources: No such file or directory build/core/base_rules.mk:117: *** frameworks/base/tools/layoutlib: MODULE.HOST.JAVA_LIBRARIES.temp_layoutlib already defined by fr ameworks/base/tools/layoutlib. Stop. Error: Build failed Aborting thanks mark On Mar 24, 2:48 pm, MBethDev mbeth...@gmail.com wrote: Hi Jett, thanks for replying. Tried following your suggestion but ran into issues. Are you able to build successfully? Anyway, here's the errors I get: 1) After running make_windows_sdk.sh, I get what looks like an error from find-jdk-tools-jar.sh: build/core/find-jdk-tools-jar.sh: line 5: [: /c/Program: binary operator expected The problem being my javac is installed in Program Files and cygwin wasn't able to parse the whitespace properly. Yet the build continued. I'm not sure if this is critical though, but I let the build continue anyway 2) After some time I get the following build error: gcc: gcc: gcc: gcc: The -mno-cygwin flag has been removed; use a mingw- targeted cross-compiler. The -mno-cygwin flag has been removed; use a mingw-targeted cross- compiler. The -mno-cygwin flag has been removed; use a mingw-targeted cross- compiler.The -mno-cygwin flag has been removed; use a mingw-targeted cross-compiler. make: *** [out/host/windows-x86/obj/EXECUTABLES/emulator_intermediates/ distrib/zlib-1.2.3/adler 32.o] Error 1 make: *** Waiting for unfinished jobs make: *** [out/host/windows-x86/obj/EXECUTABLES/emulator_intermediates/ distrib/zlib-1.2.3/defla te.o] Error 1 make: *** [out/host/windows-x86/obj/EXECUTABLES/emulator_intermediates/ distrib/zlib-1.2.3/crc32 .o] Error 1 make: ***
[android-porting] Re: vold can't mount multi MMC device
Hi, Jerry Juan~ Very intresting task Well, to manage 2 sd-card at the same time: 1. patch vold in several places, to allow it manage multi-devices at same time. But, vold is just tip of the iceberg 2. patch/add a lt of component on framework level. As there are located the main concept of sd-card usage in Android OS. 3. and as last, you have to read the next thread. ;) http://groups.google.com/group/android-developers/browse_thread/thread/70566347c0953488/5466def3ced9bfde?show_docid=5466def3ced9bfde Best regards, Dmitry. On 9 апр, 12:26, Jerry Juan yilch...@gmail.com wrote: Really? It seems the source code only support one MMC device in the same time. And the state follow first MMC device, that should bethe reason of why the eMMC can't be mounted when SD card is inserted. I am still finding the solution for this case. I can't let eMMC work with VOLD when SD card is inserted. On 4月8日, 下午10時21分, Deva R r.deva...@gmail.com wrote: Hi, I was also told that, android cant dynamically support two MMC/SD cards., and android always treats boot device as single flash device (assumes nand). Curious to know why/how its like this.. -Deva On Thu, Apr 8, 2010 at 11:34 AM, Jerry Juan yilch...@gmail.com wrote: Hello all, My device got two MMCdevice, one is eMMC the other is for SD card. It seems vold can't mount eMMC when SD card is exist. My vold.conf want to use eMMC to replace SD card. SD card will be used for other purpose When the SD card is exist, eMMC can't be mounted automatically. It shows below log. D/MountListener( 59): handleEvent volume_nomedia:/sdcard D/MountListener( 59): handleEvent ums_disabled D/MountListener( 59): handleEvent ums_disconnected When SD card is not exist, the vold mount eMMC successfully. Does anyone met this problem? BTW, it seems the MountListener.java only can handle one device, right? Anyone have experience to handle above two MMC device via vold? -- unsubscribe: android-porting+unsubscr...@googlegroups.com website:http://groups.google.com/group/android-porting To unsubscribe, reply using remove me as the subject. -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting
Re: [android-porting] Why Android 2.1 works so slow
do you have hardware graphics acceleration or are you relying solely on software rendering ? 2010/4/9 Максим Андрущенко andruschenk...@mail.ru Hi! On my target platform, based on s3c6410 (armv6) Android works very slow! I use 16 bpp with resolution 800x480. Screen updates slow, seldom i see some blinking, when i quickly type on soft keyboard, or if to change desktop. Is there anybody has the same problem, is it possible to fix it? -- unsubscribe: android-porting+unsubscr...@googlegroups.comandroid-porting%2bunsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting To unsubscribe, reply using remove me as the subject. -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting
[android-porting] Re: Why Android 2.1 works so slow
I have built in chip s3c6410 2d and 3d hardware graphics accelerators, but i don't use them with Android. I just implemented in my framebuffer driver double buffering and pan function, which change offset from frame buffer start. I this not enough to make Android drawing fast? I know that it's possible to use hardware accelerators with Android, but i didn't find an examples. I downloaded Samsung i5700 mobile phone Android sources, this phone based on chip i use - s3c6410, but found nothing about graphics accelerators in them. Could you help me with information about hardware accelerations with Android. Where from should i start? Thanks! On Apr 9, 8:22 pm, David Turner di...@android.com wrote: do you have hardware graphics acceleration or are you relying solely on software rendering ? 2010/4/9 Максим Андрущенко andruschenk...@mail.ru Hi! On my target platform, based on s3c6410 (armv6) Android works very slow! I use 16 bpp with resolution 800x480. Screen updates slow, seldom i see some blinking, when i quickly type on soft keyboard, or if to change desktop. Is there anybody has the same problem, is it possible to fix it? -- unsubscribe: android-porting+unsubscr...@googlegroups.comandroid-porting%2bunsubscr...@googlegroups.com website:http://groups.google.com/group/android-porting To unsubscribe, reply using remove me as the subject. -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting
[android-porting] Re: Dalvik test cases failure
On Apr 8, 1:49 am, Rakesh Kumar rakesh.y...@gmail.com wrote: I am trying to run the dalvik test cases on the desktop using the script run-all-tests. And I am getting this error /usr/bin/dx : unrecognized parameter: [1] (use -help to get usage information) build exit status: 1 Unless you have installed Dalvik's conversion utility in /usr/bin, the text script is picking up an unrelated program called dx. You may need to adjust your path so that the directory with the Dalvik dx utility comes first. -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting To unsubscribe, reply using remove me as the subject.
[android-porting] Re: killpg implementation missing in bionic signal.h
On Apr 7, 3:44 pm, Kaushik Prajapati kaushikprajap...@gmail.com wrote: I am trying to build the third party source code using the Android bionic toolchain. One of the problem that I see is that there is no killpg in side signal.h . A future version of bionic libc will provide killpg(). You may want to provide a substitute to ease porting. From the Linux man page: On Linux, killpg() is implemented as a library function that makes the call kill(-pgrp, sig). -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting To unsubscribe, reply using remove me as the subject.
[android-porting] Re: java.lang.VerifyError and custom library sdk addon
On Apr 7, 2:26 pm, MBethDev mbeth...@gmail.com wrote: I've googled around for the solution and sounds to me it has something to do with the jar file inclusion of the custom library to my application. I verified that I followed the steps that the app client should do (I added a user-library in the client's manifest file as well as modifed the clients Android.mk to link to the custom library, Presumably you meant uses-library. What does the VerifyError look like? Can you paste the relevant lines from the logcat output? -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting To unsubscribe, reply using remove me as the subject.
[android-porting] Re: eMMC and Suspend/Resume
Nevermind...figured out the problem.. Turned out that the 2.6.29-rc3 code was mistakenly setting the voltage of MMC2 to 3v, and the eMMC is set to operate at 1.8v as is MMC2..so fixing that got the thing working again.. Regards -- Ashwin On Fri, Apr 9, 2010 at 8:20 AM, Ashwin Bihari abih...@gmail.com wrote: I've got a board that has a eMMC and I'm using the Donut 1.6 release of Android from Rowboat..I added Kernel s2.6.29-rc3 upport for my custom board. We are using MMC1 for the SD card and MMC2 for the eMMC. I've made the necessary changes to get the SD card and eMMC recognized during boot. Once the device is suspended, I press the power button to resume it and it tries to do so. The SD card is properly resumed but the first command to the eMMC (CMD0) never completes, and thus the MMC code is waiting forever and thus the resume process is stuck.. I've seen that there a are a few of you using eMMC's on this list, and I'm wondering if any of you had to do anything special to get this stuff to work or if there was anything special that needs to be done. MMC1 (SD card) is powered by VMMC1 out of the PMIC, while MMC2 (eMMC) is powered separately with 3 and 1.8 volts..and I've confirmed that these voltages are always on..I've been running around this problem for a little while now and would appreciate any insights.. Regards -- Ashwin -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting To unsubscribe, reply using remove me as the subject.