[android-porting] media server interactions

2010-04-21 Thread Uander
Can anybody  tell me how media server inetracts with audio flinger and
surface flinger  works in android ?

how media player service intraction happen with opencore ?


Thanks :
Uander

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting


[android-porting] Re: SMDK 6410 Latest Android

2010-04-21 Thread gronlund
I havent tested any other versions...
i guess my main problem is really Samsung support, ive talked to
people that got latest Android to work on the same board, apparently,
their boards where delivered with lots and lots of linux / android / u-
boot sourcess..
I managed to get the u-boot sources from friend who works at another
company, they used a 3rd party vendor board though so that was all
they had...

Now i really would like to compile Android 2.1, put it on the board (i
have working booloader) and see it come alive, how would you go about
compiling Androig from source to the smdk6410... is there any
documentation at all for us who where not so blessed by Samsung to
actually get documentation... (Note: Documentation that Meritech,
supplier of the board, ensured me that i could get from Samsung..)


On 19 Apr, 17:13, jack alim.akh...@gmail.com wrote:
 Are you able to port and run some older version on android on
 smdk6410?
 if not, try out these links:
 1http://www.linuxforum.net/forum/gshowflat.php?Cat=Board=embeddedNum...

 2http://github.com/leemgs/samsung-s3c6410-android.1.0

 3http://translate.googleusercontent.com/translate_c?hl=ensl=zh-CNu=h...

 On Apr 19, 3:41 pm, Alexander Grönlund alegr...@student.liu.se
 wrote:





  How do all of you who managed this get u-boot working? when downloading
  u-boot i only get support for smdk6400.. although i have seen many
  references to smdk6410 support..

  I even found the smdk6410.h file.. have they removed it in later u-boot
  releases? does anyone know where i can download a u-boot with the missing
  files?

  2010/4/19 Alexander Grönlund alegr...@student.liu.se

   Thanks,

   I donw have a JTAG connector though.. all i have is serial and usb..

   I belive i have compiled the linux kernel for ARM at this point, but i 
   cant
   seem to get it to the board, tried the application that followed the board
   (DNW.exe) without success..
   Cant seem to find any info about jumper configurations either, im sure 
   some
   of them would have to be changed to be able to transfer the kernel...

   On Thu, Apr 15, 2010 at 6:59 PM, Michael Trimarchi 
   trimar...@gandalf.sssup.it wrote:

   Hi,

   gronlund wrote:

   Hi,

   I was wondering if anyone has information about getting Android 2.x
   onto a SMDK6410..
   I have heard Samsung provides prebuilt Android images but i cant
   manage to find them.. and Samsung support has as of yet not been
   helpful..

   If you have a jtag connector you can try to load the uboot images and use
   it
   instead of eboot or you can use eboot to load an uboot images in memory.
   After that you need to boot you kernel for the board. These are the first
   basic
   steps.

   Michael

   --
   unsubscribe: 
   android-porting+unsubscr...@googlegroups.comandroid-porting%2Bunsubscribe@
­googlegroups.com
   website:http://groups.google.com/group/android-porting

   To unsubscribe, reply using remove me as the subject.

   --
   MVH
   Alexander Grönlund - 073-50 99 479
   CC - Kassör -  www.festeriet-cc.se
   IP - AMO -  www.innovativprogrammering.se
   Admittansen - Vice ordförande -  www.admittansen.se

  --
  MVH
  Alexander Grönlund - 073-50 99 479
  CC - Kassör -  www.festeriet-cc.se
  IP - AMO -  www.innovativprogrammering.se
  Admittansen - Vice ordförande -  www.admittansen.se

  --
  unsubscribe: android-porting+unsubscr...@googlegroups.com
  website:http://groups.google.com/group/android-porting-Hide quoted text -

  - Show quoted text -

 --
 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


[android-porting] Re: playing YUV files from generated by the PVplayer test

2010-04-21 Thread George C
Ravi,

Thanks. It is working fine now.

George


On Apr 20, 8:09 pm, RaviY yend...@pv.com wrote:
 This is how I play using mplayer on linux 
 mplayer test_player_openplaystop_test_mp4_video.dat -demuxer rawvideo -
 rawvideo w=176:h=144:fps=6

 -Ravi

 On Apr 20, 5:30 pm, George C georgec2...@gmail.com wrote:



  Hello,

  I am trying  to visualize the out put of PVPlayer unit tests.
  I ran the PVPlayer  Test Case 1. It looks that it ran successfully.
  Then I tried to play/visualize  the output file generated by this test
  i.e. test_player_openplaystop_test_mp4_video.dat. My understanding
  is that  the output is a YUV 420 file, however the tools I used
  ( YUVPlayer Deluxe and YUVTools3.0 ) cannot play it or more precisely
  the output displayed is bogus (nothing to do with the input test file
  test.mp4, just a bunch of distorted colors). The same happened when I
  ran other tests (for instance Test 54). Any suggestion why these files
  cannot be played/visualized?

  Thanks,

  George

  --
  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+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting


[android-porting] Re: SMDK 6410 Latest Android

2010-04-21 Thread gronlund
oh, i forgot my other question, when you have compiled the android
kernel, what are the steps to get it onto the board?
I guess your would download it with your bootloader, but i think i
need a step-by-step guide here, not the one you posted thoug as i have
no ideao what memory addresses to use and when to use nand write and
clear and such..

On 19 Apr, 17:13, jack alim.akh...@gmail.com wrote:
 Are you able to port and run some older version on android on
 smdk6410?
 if not, try out these links:
 1http://www.linuxforum.net/forum/gshowflat.php?Cat=Board=embeddedNum...

 2http://github.com/leemgs/samsung-s3c6410-android.1.0

 3http://translate.googleusercontent.com/translate_c?hl=ensl=zh-CNu=h...

 On Apr 19, 3:41 pm, Alexander Grönlund alegr...@student.liu.se
 wrote:





  How do all of you who managed this get u-boot working? when downloading
  u-boot i only get support for smdk6400.. although i have seen many
  references to smdk6410 support..

  I even found the smdk6410.h file.. have they removed it in later u-boot
  releases? does anyone know where i can download a u-boot with the missing
  files?

  2010/4/19 Alexander Grönlund alegr...@student.liu.se

   Thanks,

   I donw have a JTAG connector though.. all i have is serial and usb..

   I belive i have compiled the linux kernel for ARM at this point, but i 
   cant
   seem to get it to the board, tried the application that followed the board
   (DNW.exe) without success..
   Cant seem to find any info about jumper configurations either, im sure 
   some
   of them would have to be changed to be able to transfer the kernel...

   On Thu, Apr 15, 2010 at 6:59 PM, Michael Trimarchi 
   trimar...@gandalf.sssup.it wrote:

   Hi,

   gronlund wrote:

   Hi,

   I was wondering if anyone has information about getting Android 2.x
   onto a SMDK6410..
   I have heard Samsung provides prebuilt Android images but i cant
   manage to find them.. and Samsung support has as of yet not been
   helpful..

   If you have a jtag connector you can try to load the uboot images and use
   it
   instead of eboot or you can use eboot to load an uboot images in memory.
   After that you need to boot you kernel for the board. These are the first
   basic
   steps.

   Michael

   --
   unsubscribe: 
   android-porting+unsubscr...@googlegroups.comandroid-porting%2Bunsubscribe@
­googlegroups.com
   website:http://groups.google.com/group/android-porting

   To unsubscribe, reply using remove me as the subject.

   --
   MVH
   Alexander Grönlund - 073-50 99 479
   CC - Kassör -  www.festeriet-cc.se
   IP - AMO -  www.innovativprogrammering.se
   Admittansen - Vice ordförande -  www.admittansen.se

  --
  MVH
  Alexander Grönlund - 073-50 99 479
  CC - Kassör -  www.festeriet-cc.se
  IP - AMO -  www.innovativprogrammering.se
  Admittansen - Vice ordförande -  www.admittansen.se

  --
  unsubscribe: android-porting+unsubscr...@googlegroups.com
  website:http://groups.google.com/group/android-porting-Hide quoted text -

  - Show quoted text -

 --
 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


Re: [android-porting] Re: Android Gadget driver on PXA27X board

2010-04-21 Thread Michael Trimarchi

Hi,

Dark Knight wrote:

Hi Everyone,

I have some more information regarding this. Its seems the driver is
not able to create bulk end points. I added some debug prints in
f_adb.c and epautoconf.c Here is the output

pxa27x_udc: version 2008-04-18
android init
android_bind
mass_storage_function_add
usb_add_function:
usb_configuration label=android
usb_function name= usb_mass_storage
 name[epautoconf.c: ep_matches] ep-Name=ep1out-bulk ,
[epautoconf.c: ep_matches] ep-Name=ep2in-bulk ,
[epautoconf.c: ep_matches] ep-Name=ep1out-bulk ,
android_usb gadget: Number of LUNs=1
adb_function_add
usb_add_function:
usb_configuration label=android
usb_function name= adb
 name7android_usb gadget: adb_function_bind dev: c39b89a0
[epautoconf.c: ep_matches] ep-Name=ep1out-bulk ,
[epautoconf.c: ep_matches] Ep Claimed. Returning
[epautoconf.c: ep_matches] ep-Name=ep2in-bulk ,
[epautoconf.c: ep_matches] Ep Claimed. Returning
[epautoconf.c: ep_matches] ep-Name=ep3in-iso ,
[epautoconf.c: ep_matches] ep-Name=ep4out-iso ,
[epautoconf.c: ep_matches] ep-Name=ep5in-int ,
adb_function_bind: create_bulk_endpoints failure
adb gadget driver failed to initialize
usb_add_config failed
pxa27x-udc pxa27x-udc: bind to driver android_usb -- error -19

It seems, it is not able to search and find the required free
endpoint. So how do I take this issue further? Is there any solution
for this?
  
There is a static matching on the pxa27xx driver usb and you have only 
two bulk (in/out) so you can use gadget and no the storage.
One solution that give the possibilty to have more bulk point is to 
create manually in the static table. I have tried this but I have some

problem of stability.

Michael Trimarhci

Regards,
Regards
--
Vaisakh P S
(http://www.google.com/profiles/VaisakhRulez)

  


--
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting


[android-porting] Re: Support HID Mouse?

2010-04-21 Thread allein
Hi,

I am having the same issue right now.  My plan is to run Eclair on a
Freescale iMX51 demo board.  We don't have the touchscreen, so just
use a LCD monitor, with USB keyboard and mouse.  The keyboard works
fine.  But with the USB mouse, logcat has the following error:

I/EventHub( 2011): New device: path=/dev/input/event2 name=Microsoft
Microsoft Basic Optical Mouse v2.0  id=0x10004
(of 0x5) index=5 fd=62 classes=0x40
E/EventHub( 2011): could not get driver version for /dev/input/mouse1,
Not a typewriter
I/KeyInputQueue( 2011): Device added: id=0x10004, name=Microsoft
Microsoft Basic Optical Mouse v2.0 , classes=40

It seems that KeyInputQueue recognizes the mouse.  But in frameworks/
base/libs/ui/EventHub.cpp, the ioctl() fails.  The mouse does not work
at all.

Could you please share how you solved the ioctl() issue?  Thanks in
advance.

On May 20 2009, 10:06 pm, myroot hi.r...@gmail.com wrote:
 i solved it

 hid device also support evdev.

 On May 21, 11:26 am, myroot hi.r...@gmail.com wrote:

  i know about that.
  so, i patched mouse cursor support for Android on 
  X86http://code.google.com/p/patch-hosting-for-android-x86-support/downlo...

  E/EventHub(   71):couldnotgetdriverversionfor /dev/input/mouse0,
  Inappropriate ioctl for device

  it's clearly a problem of EventHub

  EventHub just support only event devices.

  i need patch for hid-input in EventHub

  this is a logcat output

  E/EventHub(   71):couldnotgetdriverversionfor /dev/input/mouse0,
  Inappropriate ioctl for device

  this is eventHub code
      if(ioctl(fd, EVIOCGVERSION, version)) {
          LOGE(couldnotgetdriverversionfor %s, %s\n, deviceName,
  strerror(errno));
          //return -1;
      }
  it use ioctl call but hid devicenotsupport ioctl call

  On May 21, 10:32 am, Dianne Hackborn hack...@android.com wrote:

   Android doesn't support mouse input at all; this is far larger than just 
   the
   event hub.

   On Wed, May 20, 2009 at 6:19 PM, myroot hi.r...@gmail.com wrote:

hi. everyone

I need to use USB Mouse.

but android is seem tonotbe support HID Mouse.

--
in frameworks/base/libs/ui/EventHub.cpp

it use
ioctl(fd, EVIOCGVERSION, version)
but hid-input isnotsupport ioctl call

do you know about a patch to support HID

   --
   Dianne Hackborn
   Android framework engineer
   hack...@android.com

   Note: please don't send private questions to me, as I don't have time to
   provide private support, and so won't reply to such e-mails.  All such
   questions should be posted on public forums, where I and others can see 
   and
   answer them.



-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting


[android-porting] adding package to system image

2010-04-21 Thread flame on
Hi,

I want to add an application to system image, do i have to do anything
special to do this. I have added folder for my application to packages/
apps and written a make file and manifest file similar to those
present in other applications in packages/apps
So now if apps like AlarmClock etc get built and get included in
system image then my application should also get included in system
image. Even though, it gets built, when I hit make, its not visible in
menu.

Am I missing some step over here?

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting


[android-porting] Re: FAT32 file size limited to 2GB

2010-04-21 Thread Hedge
I have a lot of updates on this thread, but no breakthroughs:
---
I enabled NTFS support in my 2.6.32 kernel build:
  Steps: edit the .config file, added CONFIG_NTFS_FS=y and
CONFIG_NTFS_RW=y
The ADP1 still would not recognize an NTFS-formatted memory card.

I also did more digging into why OpenCORE fails to play back a 2.1GB
file.  In PVMFRecognizerRegistryImpl::CheckForDataAvailability(), it
calls iDataStream-OpenSession().  iDataStream is a
PVMIDataStreamSyncInterfaceRefImpl object.
Internally it creates a new iFileObject [result == 0].
Then it seeks to the end of the file to try to determine file size
[iFileNumBytes = (TOsclFileOffsetInt32)iFileObject-Tell()] before
trying to reset the file position back to the beginning.

Next, PVMFRecognizerRegistryImpl::CheckForDataAvailability() calls
iDataStream-QueryReadCapacity().
This calls GetCurrentPointerPosition(), which calls iFileObject-
Tell(), which returns -1 and causes a Leave 103.  It looks like an I/
O limitation.
---
Other things I've discovered:  On 
http://opencore.net/files/OpenCORE_roadmap.pdf,
PV plans to add large file support to MP4 in May of 2010.  In my
Donut_plus_aosp build, I see OSCL_HAS_LARGE_FILE_SUPPORT = 1 in
osclconfig_io.h.  Does anyone know what a large file is by PV's
standards?
---

Thanks for any ideas,
~Andrew

On Mar 14, 10:07 pm, Hedge awoo...@gmail.com wrote:
 Specifically I'm trying to playback files in OpenCORE, not with an NDK
 app, but as a test app it might be useful.  Using NTFS sounds like it
 might pan out too.
 Thanks for the tips everyone, and I'll try them out when I get back in
 the office.

 On Mar 13, 6:48 pm, Dianne Hackborn hack...@android.com wrote:

  On Fri, Mar 12, 2010 at 4:50 PM, Hedge awoo...@gmail.com wrote:
   Has anyone heard if this will be fixed in Android 3.0?

  I haven't even heard of Android 3.0.

  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com

  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see and
  answer them.



-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting


Re: [android-porting] adding package to system image

2010-04-21 Thread Deva R
see if this helps...

touch a java file in the AlarmClock application, and then do a
  'make showcommands'
That will show you the build steps executed, and you will know how the code
from the java file makes all the way to the system.img
Now, touch a java file in your app, and do the same.  You can find why it
fails to make its way to system.img.

courtesy: 
http://groups.google.com/group/android-platform/browse_thread/thread/cece835cd31cc8fd

On Wed, Apr 21, 2010 at 10:18 PM, flame on flameonmy...@gmail.com wrote:

 Hi,

 I want to add an application to system image, do i have to do anything
 special to do this. I have added folder for my application to packages/
 apps and written a make file and manifest file similar to those
 present in other applications in packages/apps
 So now if apps like AlarmClock etc get built and get included in
 system image then my application should also get included in system
 image. Even though, it gets built, when I hit make, its not visible in
 menu.

 Am I missing some step over here?

 --
 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


[android-porting] Re: How to make my libreference-ril.so work in the HTC dream unlock developer phone?

2010-04-21 Thread Weber
Hi
I have the same problem with Bo
There is codes in reference-ril.c
if ( fd = 0  !memcmp( s_device_path, /dev/ttyS,
9 ) ) {maybe ttyS should be changed to ttyHS or ...
/* disable echo on serial ports */
struct termios  ios;
tcgetattr( fd, ios );
ios.c_lflag = 0;  /* disable ECHO, ICANON, etc...
*/
tcsetattr( fd, TCSANOW, ios );
}
in fact,I have changed 'ttyS ,9' to'ttyUSB,11'(ttyUSB is  my
device file ) ,but it  still not work
Could anyone tell me how to do?
Thanks
--Weber
On 4月19日, 下午1时04分, Bo zhaobo...@gmail.com wrote:
 Dear Sir:

 I want to make myRILimplementation (hardware/ril) work in the HTC
 dream unlock developer phone. I want the HTC dream android to use my /
 system/lib/libreference-ril.so instead of libhtc_ril.so

 From the posts of this group,  I know it should work on android
 emulator by
 manually /system/bin/rild -l /system/lib/libreference-ril.so -- -d /
 dev/ttyS0
 or do it in init.rc
 serviceril-daemon /system/bin/rild -l /system/lib/libreference-ril.so
 -- -d
 /dev/ttyS0
 or the configure the rild.libpath and rild.libargs in the /out/target/
 product/dream-open/system/build.prop
 however, in the original file build.prop, it only indicate the
 rild.libpath=/system/lib/libhtc_ril.so, but does not indicate the
 parameter rild.libargs

 The problem is that in the /dev/ of HTC phone, I can not find ttyS0. I
 tried to use tty, ttyHS0, ttyMSM0 and ppp in folder /dev/ of HTC
 phone. It always reported RADIO_UNAVAILABLE in radio trace below.

 The code of main function of /hardware/ril/rild shows that the
 RIL_RadioFunctions of libhtc_ril.so got the tty device, but I do not
 have the code of libhtc_ril.so. So I do not which tty device HTC phone
 uses.

 I guess I selected wrong the serial device. Could anyone tell how to
 make my libreference-ril.so work on HTC phone instead of its
 libhtc_ril.so?

 I/RIL    (   33): Opening tty device /dev/ppp
 I/RILC    (   33): libril: new connection
 I/RILC    (   33):RILDaemon version: android reference-ril1.0
 I/RILJ    (   91): Connected to 'rild' socket
 D/RILJ    (   91): [UNSL] UNSOL_RESPONSE_RADIO_STATE_CHANGED
 RADIO_UNAVAILABLE
 W/GSM     (   91): Can't open /system/etc/voicemail-conf.xml
 W/GSM     (   91): Can't open /system/etc/spn-conf.xml
 D/GSM     (   91): [DSAC DEB] registerForPsRestrictedEnabled
 D/GSM     (   91): [DSAC DEB] registerForPsRestrictedDisabled
 D/RILJ    (   91): [] GET_CURRENT_CALLS
 D/RIL    (   33): onRequest: GET_CURRENT_CALLS
 D/RILJ    (   91): [] GET_CURRENT_CALLS error:
 com.android.internal.telephony.gsm.CommandException:
 RADIO_NOT_AVAILABLE
 D/GSM     (   91): Poll ServiceState done:  oldSS=[1 home null null
 null ] newSS=[1 home null null null ] oldGprs=1 newGprs=1
 oldType=unknown newType=unknown
 D/GSM     (   91): [DataConnectionTracker] Radio is off and clean up
 all connection
 D/GSM     (   91): [DataConnectionTracker] Clean up connection due to
 radioTurnedOff
 D/GSM     (   91): [DataConnection] Stop poll NetStat
 D/GSM     (   91): [DataConnectionTracker] setState: IDLE
 D/GSM     (   91): [DataConnection] Stop poll NetStat
 D/GSM     (   91): [DataConnectionTracker] ***trySetupData due to
 roamingOff
 D/GSM     (   91): [DSAC DEB] trySetupData with mIsPsRestricted=false
 D/GSM     (   91): [DataConnectionTracker] trySetupData: Not ready for
 data:  dataState=IDLE gprsState=1 sim=false UMTS=false phoneState=IDLE
 dataEnabled=true roaming=false dataOnRoamingEnable=false ps
 restricted=false
 D/GSM     (   91): [GsmSimCard] Broadcasting intent
 SIM_STATE_CHANGED_ACTION NOT_READY reason null

 Thank you!
 Regards,
 BO

 --
 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