Re: [android-porting] copybit format conversion issue, for help

2011-09-08 Thread Michael Trimarchi
Hi all

On 08/24/2010 12:23 PM, Simon Chan wrote:
 Hi, all,
 
 I have encountered a format coversion issue when manage to add copybit
 module for some hw 2D core.
 
 There are a lot of blit operations from COPYBIT_FORMAT_RGBA_ to
 COPYBIT_FORMAT_RGB_565 when do menu rendering.
 

I have the exact same question. Is it sufficient to change here?

 switch (format) { // TODO: take h/w into account
 case PIXEL_FORMAT_TRANSPARENT:
 case PIXEL_FORMAT_TRANSLUCENT:
-format = PIXEL_FORMAT_RGBA_;
+format = PIXEL_FORMAT_BGRA_;
 break;
 case PIXEL_FORMAT_OPAQUE:
 format = PIXEL_FORMAT_RGB_565;

Michael

 It looks the layout of android COPYBIT_FORMAT_RGBA_ format is as figure 1.
 
 31 ...  0
 -
 | A | B | G | R |  (1)
 -
 
 but unfortunately, for 8:8:8:8 image, the 2d hw in question only
 supports layout as figure 2.
 
 31 ...  0
 -
 | A | R | G | B |  (2)
 -
 
 So my question is there any thing I can do to work aound it, and will
 not hurt performance significantly?
 eg. by some way I can force ARGB src image data.
 
 Suggestion is welcome and much appreciated. Thanks a lot.
 
 BR.
 Simon Chan
 

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


Re: [android-porting] Questions of writing data to gsm modem in vchanneld.c in freerunner froyo

2011-03-01 Thread Michael Trimarchi
On 03/01/2011 12:10 PM, Jacky.S.Mu wrote:
 Hello,
 
 Maybe there is misunderstanding for me while reading the code
 freerunner/froyo/hardware/ril/vchanneld.c when I port it to my current
 device.
 
 static int vch_write_data(struct virtual_channel *vch, char *ptr, int
 len)
 {
   int tmp;
 struct phy_device *phy = vch-phy;
 tmp = (len  phy-max_length) ? phy-max_length : len;
 
 while (len  0) {
 gsm0710_write(vch, GSM0710_DATA, ptr,
 tmp); // ???
 ptr += tmp;
 len -= tmp;
   }
 
 return len;
 }
 

Not tested

static int vch_write_data(struct virtual_channel *vch, char *ptr, int len)
{
struct phy_device *phy = vch-phy;

while ((len - phy-max_length)  0) {
gsm0710_write(vch, GSM0710_DATA, ptr, phy-max_length);
ptr += phy-max_length;
len -= phy-max_length;
}

gsm0710_write(vch, GSM0710_DATA, ptr, len);

return len;
}

Michael

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


Re: [android-porting] my wifi can scan AP ,but can't connect to the AP .Thanks for any suggestions.

2010-10-19 Thread Michael Trimarchi
Hi
maybe you need to implement some android specific request

http://gitorious.org/flow-g1-5/platform_external_wpa_supplicant/commit/0079ce31faa15d882272891661493ce734e5ab3e

Michael
 and why the DRIVER EVENT  reply FAIL ?

 --~--~-~--~~~---~--~~
 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] Performance problems (CPU usage up to 100%)

2010-09-15 Thread Michael Trimarchi

Retti wrote:

Hello,
i have a 5 touchdisplay with a at91g45 400 Mhz CPU and a ported
Froyo.

If I touch the screen, the system_server uses up to 100% of CPU.
Also the touchinputs are very slow.
  

Maybe your touch screen doesn't deactivate irq when you press it and receive
a lot of them.
Michael

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


[android-porting] android reboot on the master branch

2010-06-25 Thread Michael Trimarchi

Hi all

I have upload my system to the master branch and I have a problem in 
continus reboot.


W/ActivityManager( 1874): Timeout of broadcast BroadcastRecord{43ca0930 
android.intent.action.TIME_TICK} - 
receiver=android.app.activitythread$packageinfo$receiverdispatcher$innerrecei...@43b75628
W/ActivityManager( 1874): Receiver during timeout: 
BroadcastFilter{43b5fac0 ReceiverList{43b5fa48 1874 system/1000 
local:43b75628}}

I/Process ( 1874): Sending signal. PID: 1874 SIG: 3
I/dalvikvm( 1874): threadid=3: reacting to signal 3



Then

/Watchdog_N(  916): Unable to open stack of tid 978 : 2 (No such file or 
directory)
E/Watchdog_N(  916): Unable to open stack of tid 980 : 2 (No such file 
or directory)
E/Watchdog_N(  916): Unable to open stack of tid 982 : 2 (No such file 
or directory)
E/Watchdog_N(  916): Unable to open stack of tid 1005 : 2 (No such file 
or directory)

D/dalvikvm(  916): GC_FOR_MALLOC freed 3294 objects / 374544 bytes in 72ms
I/Process (  916): Sending signal. PID: 916 SIG: 9
W/Watchdog(  916): *** WATCHDOG KILLING SYSTEM PROCESS: null
I/Zygote  (  875): Exit zygote because system server (916) has terminated
I/ServiceManager(  871): service 'isms' died
I/ServiceManager(  871): service 'simphonebook' died
I/ServiceManager(  871): service 'iphonesubinfo' died
I/ServiceManager(  871): service 'phone' died
I/ServiceManager(  871): service 'devicestoragemonitor' died
I/ServiceManager(  871): service 'location' died


Any idea to look deep in this issue?

Michael Trimarchi

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


Re: [android-porting] Re: Guide on adding WiFi drivers to Android

2010-05-26 Thread Michael Trimarchi

Hi,

Nicu Pavel wrote:

The differences is that driver_wext.c expects the wifi kernel driver
to implement the SIOCSIWPRIV ioctl and respond to android commands
like RSSI, MACADDR etc, while driver_awext.c replies to android
commands by using standard wireless extensions ioctls and works for
most wifi drivers.
Basically driver_awext.c is a wrapper for driver_wext.c and only
reimplements function wpa_driver_priv_driver_cmd().

Direct link to the patch:
http://www.linuxconsulting.ro/android/patches/0001-Added-a-separate-driver-awext-to-emulate-Android-dri.patch
  
I have done somenthing different using your code. Instead of creating a 
new file just emulate the call in wext part


http://gitorious.org/flow-g1-5/platform_external_wpa_supplicant/commit/0079ce31faa15d882272891661493ce734e5ab3e

What do you think? (NEED TO BE TEST)

Michael Trimarchi

Thanks,
Nicu Pavel.

On Mon, May 10, 2010 at 9:25 PM, dimitr...@android.com
dimitr...@android.com wrote:
  

Hi Nicu,

I am not sure what the difference between driver_awext.c and
driver_wext.c.
And the last one has the necessary changes.
Thanks,

Dmitry

On May 10, 9:24 am, Nicu Pavel npa...@ituner.com wrote:


Thanks Dimitry,

I updated the guide. On second look I found out why it the android private
namespace socket didn't work for me.If /data/system/wpa_supplicant folder
exists the ifname will be built incorrect in wifi.c wpa_ctrl_open()
function.

Do you think I should submit the wpa driver that emulates android
priv_driver_cmd() (driver_awext.c) to android source review ?

Thanks,
Nicu  Pavel

On Fri, May 7, 2010 at 10:21 PM, dimitr...@android.com 





dimitr...@android.com wrote:
  

Very good and useful guide. Just want to add to wpa_supplicant socket
control.
Despite you can use it as you mentioned the idea was to use special
socket pair implementation like this:

wpa_supplicant.conf:

 ctrl_interface=wlan0

init.xxx.rc:

service wpa_supplicant /system/bin/wpa_supplicant \
   -D -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
socket wpa_wlan0 dgram 660 wifi wifi
disabled
   oneshot

On May 6, 4:09 am, Nicu Pavel npa...@ituner.com wrote:


I've written a how-to guide for adding WiFi driver to android and
configuring the necessary software:
  
http://blog.linuxconsulting.ro/2010/04/porting-wifi-drivers-to-androi...
  
Regards,

Nicu Pavel
  
--

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

--
unsubscribe: 
android-porting+unsubscr...@googlegroups.comandroid-porting%2Bunsubscribe@ 
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




  


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


Re: [android-porting] Booting Android from NAND

2010-04-28 Thread Michael Trimarchi

xingchao wang wrote:

hi ,

generally speaking there're BSP specific tools to flash Filesystem images to
NAND.
You have no such tools at hand?
  
Boot from ramdisk, mount the partition and using the tar command to 
unzip the filesystem for example,

or create the jffs2 file and using uboot for writing on the nand or etc.

Michael Trimarchi

2010/4/28 hadhami riahi riahi.hadh...@gmail.com

  

Hello,
I'm trying to boot Android from NAND.
I was able to write the kernel to NAND but I don't know how to write
the Android file system to NAND!
I tried to put it in a SD card and then fatload it but it doesn't seem
to work!
Can anyone please help?
Thanks

--
unsubscribe: 
android-porting+unsubscr...@googlegroups.comandroid-porting%2bunsubscr...@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-23 Thread Michael Trimarchi

Hi

Matt Reimer wrote:

On Wed, Apr 21, 2010 at 9:41 AM, Michael Trimarchi
trimar...@gandalf.sssup.it wrote:
  

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.



I have some patches to pxa27x_udc that get the Android composite
gadget driver working with f_adb, f_mass_storage, f_rndis, and
(probably, untested) f_acm, simultaneously. I've tested them on a
pxa320 (pinging over rndis while using adb shell and md5sum of a file
from a f_mass_storage device) but I think they'll work on other pxa3xx
and on pxa27x processors.

I'll try to get them pushed upstream soon, but it will probably take a
bit longer since I'll have to make a case for an additional controller
driver hook ep_autoconfig.
  
Can you send to us a preview of that. I have done a quite similar work 
and the only problem

was plug/unplug on the 2.6.32 kernel

Michael


Matt

  


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


Re: [android-porting] SMDK 6410 Latest Android

2010-04-15 Thread Michael Trimarchi

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

To unsubscribe, reply using remove me as the subject.


[android-porting] Music application

2010-03-09 Thread Michael Trimarchi

Hi,

I would like to know why these files are not present in master

#res/drawable-mdpi-finger/buttonbar_active.png
#res/drawable-mdpi-finger/buttonbar_focused.png
#res/drawable-mdpi-finger/buttonbar_inactive.png
#res/drawable-mdpi-finger/buttonbar_pressed.png

and a lot of files have these names

deleted:res/drawable-land-hdpi-finger/btn_music_highlight.9.png
#deleted:res/drawable-land-hdpi-finger/btn_music_normal.9.png
#deleted:res/drawable-land-hdpi-finger/btn_music_pressed.9.png
#deleted:res/drawable-land-mdpi-finger/btn_music_highlight.9.png
#deleted:res/drawable-land-mdpi-finger/btn_music_normal.9.png
#deleted:res/drawable-land-mdpi-finger/btn_music_pressed.9.png
#deleted:res/drawable-mdpi-finger/album_border_large.9.png

Is it correct if the device is a mdpi the Music Application will crash 
(like in htc-dream)?


Best regards
Michael Trimarchi


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


Re: [android-porting] Need help on how to execute a ARM executable on Zoom2 board

2010-02-04 Thread Michael Trimarchi

pavan savoy wrote:

you need to build it statically or write an android.mk for it, to link
with android libraries.
simplest method is to use --static file, if the utility is simple.

regards,
Pavan

On Thu, Feb 4, 2010 at 4:50 PM, priya priyaopr...@gmail.com wrote:
  

Hi,

I have built a ARM executable using CodeSourcery tool chain (the same
tool chain which I used to compile Android source code).

The file type is

ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux
2.6.14, dynamically linked (uses shared libs), stripped.

Now I have placed this in the Android Root File System and booted
Zoom2.
On the teraterm prompt I tried to execute this binary

./book2png
. .book2png
. ./book2png
book2png


Or
LD_LIBRARY_PATH=/sdcard/lib ./book2png
Michael

All the above commands results in book2png not found.

Need help on how to execute a ARM compatible executable on Android
Zoom2 phone

Thanks in advance.

--
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] Eclair on Nokia N900

2010-01-23 Thread Michael Trimarchi

Hi Brandon

Brandon wrote:

I am trying to port android to an omap3430 based device, (nokia n900).
I'm using kernel 2.6.28 with the android drivers patched in, and I can
build the donut branch and boot it on the n900, but the eclair branch
always exits with a Segmentation Fault. I've tried running init, /
system/bin/sh, /system/xbin/strace, but they all crash with a
Segmentation Fault and no log.

http://www.mail-archive.com/android-porting@googlegroups.com/msg08893.html

Maybe this thread can help you :)

Michael

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


Re: [android-porting] Re: request_firmware

2010-01-14 Thread Michael Trimarchi

Hi,

pavan savoy wrote:

yes, got it. Thanks.

I replaced it by main so that the release to a local GIT tree
becomes simpler (different project location than the one's which come
from Google)

Also, has this been published in the Googe's GIT ?

regards,
Pavan
  
Sorry but devices.c can be used to load firmware in the /etc/firmware 
directory?

Why add a new hotplug script?

Michael


On Tue, Nov 10, 2009 at 3:39 PM, Chih-Wei cwhu...@linux.org.tw wrote:
  

Yes, you can use it. The code is Apache License 2.0.

It is a utility of the toolbox, you don't need to change hotplug_main.
Just make the android tree and it will be compiled as a part of
toolbox,
and the symlinks /system/bin/hotplug and /sbin/hotplug will be
created.

On 11月9日, 下午5時18分, pavan savoy pavan.sa...@gmail.com wrote:


Hi Chih-Wei,
Would it be ok, for me to make use of the same code, and release it to
my internal GIT.
What should I be licensing it as ? GPL ?

regards,
Pavan



On Tue, Nov 3, 2009 at 3:20 PM, pavan savoy pavan.sa...@gmail.com wrote:
  

Hi,

Thanks for the tool. But how do I use it ?

I am working on a normal android FS and don't have a toolbox/
directory and no method to call hotplug_main.

I did build the hotplug executable and change the hotplug_main to

main, but somehow running hotplug firmware doesn't seem to be
working out.
So my doubt is the env variables like ACTION, FIRMWARE being set or
not, and didn't see them in the hotplug.log (created by you either).

Note:

Hard-coding what is required, i.e from the cmd line if I perform a
$ echo 1  /sys/.../loading
$ echo ..firmware_file.  /sys/.../data
$ echo 0  /sys/.../loading
does seem to be working !!


--
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] Reference Board for Android Porting

2010-01-07 Thread Michael Trimarchi

Hi,

Apoorv wrote:

Hi,
I am a newbie in the world of Android.
I want to learn Android Porting.
In order to do that I am looking for a reference board with which I
can get started.
Please let me know which is the best reference board for learning
Android Porting.
  
I'm working in my spare time in two projects. Android on freerunner and 
android

on flow1 device

The first one is the gta02 by openmoko

http://code.google.com/p/android-on-freerunner/

The second one is from gizmoforyou and it's on early stage

http://www.gizmoforyou.com
http://gitorious.org/flow-g1-5

They are openhardware and can be used as a mobile too

Michael




Michael


Thanking you.
Best Regards,
Apoorv
  


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

Re: [android-porting] Re: mini2440 Kernel Panic

2010-01-07 Thread Michael Trimarchi

Hi,

why you don't use the android on freerunner project as a good start point?

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

Re: [android-porting] how to intergrate a graphic card driver to Android Kernel

2009-12-28 Thread Michael Trimarchi
D.M wrote:
 Dear All:

 I am trying to port Android to a new HW which is a marvell board. And
 after a few days, i could access the Android shell through serial
 port. But on the screen , there was nothing .

 On the board , there is a graphic card which is able to run the
 normally Linux Kernel. However , when compile the Android Kernel i
 could not find the proper device driver which i can use in the normal
 Linux. So i want to know whether i can intergrate the driver to drive
 the graphic card and how to intergrate , or there are the other ways
 to solve it .
   
Android use the framebuffer device, can you send a logcat to us?
Maybe you have two /dev/graphics/fbx devices

Michael

 Thank you all !

   

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


Re: [android-porting] Touch Calibration problem in the latest codebase

2009-12-22 Thread Michael Trimarchi
Hi,

John Cola wrote:
 Dear All
 In the latest open source, the InputDevice.java has been modified a
 lot.
 And I cannot have a touch calibration successfully after
 ts_calibrate.

 Following is the formula

 if (device.tInfo != null){ //system/etc/pointercal exist!!
reportData[j + MotionEvent.SAMPLE_X] = (device.tInfo.x1 * ??? +
  
 device.tInfo.y1 * ??? +
  
 device.tInfo.z1) / device.tInfo.s;
 }else
reportData[j + MotionEvent.SAMPLE_X] =
 ((reportData[j + MotionEvent.SAMPLE_X]-
 absX.minValue)
 / absX.range) * w;

 Which parameter should be assigned for ??? ? I've tried reportData[j
 + MotionEvent.SAMPLE_X]  and reportData[j + MotionEvent.SAMPLE_Y]  but
 still unable to work.

 BR
 John

   
Can you try this one?

Michael

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-portingdiff --git a/services/java/com/android/server/InputDevice.java b/services/java/com/android/server/InputDevice.java
index 6eb6242..f1ed013 100644
--- a/services/java/com/android/server/InputDevice.java
+++ b/services/java/com/android/server/InputDevice.java
@@ -22,6 +22,9 @@ import android.view.MotionEvent;
 import android.view.Surface;
 import android.view.WindowManagerPolicy;
 
+import java.io.FileInputStream;
+import java.util.StringTokenizer;
+
 public class InputDevice {
 static final boolean DEBUG_POINTERS = false;
 static final boolean DEBUG_HACKS = false;
@@ -29,8 +32,10 @@ public class InputDevice {
 /** Amount that trackball needs to move in order to generate a key event. */
 static final int TRACKBALL_MOVEMENT_THRESHOLD = 6;
 
+static final String CALIBRATION_FILE = /system/etc/pointercal;
+
 /** Maximum number of pointers we will track and report. */
-static final int MAX_POINTERS = 10;
+static final int MAX_POINTERS = 2;
 
 final int id;
 final int classes;
@@ -39,6 +44,7 @@ public class InputDevice {
 final AbsoluteInfo absY;
 final AbsoluteInfo absPressure;
 final AbsoluteInfo absSize;
+final TransformInfo tInfo;
 
 long mKeyDownTime = 0;
 int mMetaKeysState = 0;
@@ -595,15 +601,29 @@ public class InputDevice {
 final AbsoluteInfo absSize = device.absSize;
 for (int i=0; inumPointers; i++) {
 final int j = i * MotionEvent.NUM_SAMPLE_DATA;
+float x = reportData[j + MotionEvent.SAMPLE_X];
+float y = reportData[j + MotionEvent.SAMPLE_Y];
 
 if (absX != null) {
-reportData[j + MotionEvent.SAMPLE_X] =
-((reportData[j + MotionEvent.SAMPLE_X]-absX.minValue)
-/ absX.range) * w;
+if (device.tInfo != null)
+reportData[j + MotionEvent.SAMPLE_X] =
+(device.tInfo.x1 * x +
+ device.tInfo.y1 * y +
+ device.tInfo.z1) / device.tInfo.s;
+else
+reportData[j + MotionEvent.SAMPLE_X] =
+((reportData[j + MotionEvent.SAMPLE_X]-absX.minValue)
+/ absX.range) * w;
 }
 if (absY != null) {
-reportData[j + MotionEvent.SAMPLE_Y] =
-((reportData[j + MotionEvent.SAMPLE_Y]-absY.minValue)
+if (device.tInfo != null)
+reportData[j + MotionEvent.SAMPLE_Y] =
+(device.tInfo.x2 * x +
+ device.tInfo.y2 * y +
+ device.tInfo.z2) / device.tInfo.s;
+else
+reportData[j + MotionEvent.SAMPLE_Y] =
+((reportData[j + MotionEvent.SAMPLE_Y]-absY.minValue)
 / absY.range) * h;
 }
 if (absPressure != null) {
@@ -769,7 +789,17 @@ public class InputDevice {
 int flat;
 int fuzz;
 };
-
+
+static class TransformInfo {
+float x1;
+float y1;
+float z1;
+float x2;
+float y2;
+float z2;
+float s;
+};
+
 InputDevice(int _id, int _classes, String _name,
 AbsoluteInfo _absX, AbsoluteInfo _absY,
 AbsoluteInfo _absPressure, AbsoluteInfo _absSize) {
@@ -780,5 +810,34 @@ public class InputDevice {
 absY = _absY;
 absPressure = _absPressure;
 absSize = _absSize;
+TransformInfo t = null;
+try {
+FileInputStream is = new FileInputStream(CALIBRATION_FILE);
+byte[] mBuffer = new byte[64];
+int len = is.read(mBuffer);
+is.close();
+if (len  0) {
+int i;
+for (i = 0 ; i  len ; i++) {
+   

Re: [android-porting] Re: /dev files

2009-12-19 Thread Michael Trimarchi
shivap wrote:
 Michael

 what should i do in these files (system/core/init/devices.c and system/
 core/init/init.c) which will help me create proper device nodes? i
 know its a dumb question but
 i am fairly new to all this.

 bye
 shivap
   

These files are used to create device node

Micheal

 On Dec 18, 4:00 pm, Michael Trimarchi trimar...@gandalf.sssup.it
 wrote:
   
 shivap wrote:
 
 hello all
 i got android kernel 2.6.27 (downloaded from android git) running on
 my mainstone II dev.board. now i want to add android over this. when i
 build android source code i get three images system.img , userdata.img
 and ramdisk.img. i unpacked system and userdata images using unyaff
 tool and ramdisk with gzip/cpio tool. i get dev directory which is
 empty. so how to create my device nodes? should i just copy device
 nodes from my working linux rootfs? while building android kernel i
 have enabled binder and ashmem. i see that these two will be added to /
 dev directory. but the dev directory i hav is empty? how to link
 android kernel with android source code? what is the right way of
 building android? please help me. i am under lot of confusion.
 thanks in advance
   
 system/core/init/devices.c and system/core/init/init.c

 Michael



 
 bye
 shivap- Hide quoted text -
   
 - Show quoted text -
 

   

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


Re: [android-porting] /dev files

2009-12-18 Thread Michael Trimarchi
shivap wrote:
 hello all
 i got android kernel 2.6.27 (downloaded from android git) running on
 my mainstone II dev.board. now i want to add android over this. when i
 build android source code i get three images system.img , userdata.img
 and ramdisk.img. i unpacked system and userdata images using unyaff
 tool and ramdisk with gzip/cpio tool. i get dev directory which is
 empty. so how to create my device nodes? should i just copy device
 nodes from my working linux rootfs? while building android kernel i
 have enabled binder and ashmem. i see that these two will be added to /
 dev directory. but the dev directory i hav is empty? how to link
 android kernel with android source code? what is the right way of
 building android? please help me. i am under lot of confusion.
 thanks in advance
   
system/core/init/devices.c and system/core/init/init.c

Michael

 bye
 shivap

   

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


Re: [android-porting] Re: Porting to S3C2443

2009-12-17 Thread Michael Trimarchi
wang jintong wrote:
 Hi, all :

 Thank you very much , I have got toolchain .

 Now, I have some problem.. Like this :

 target SharedLib: libc 
 (out/target/product/generic/obj/SHARED_LIBRARIES/libc_intermediates/LINKED/libc.so)
 out/target/product/generic/obj/STATIC_LIBRARIES/libc_common_intermediates/libc_common.a(abort.o):
  
 In function `abort':
 /home/workspace/eclair/bionic/libc/unistd/abort.c:126: relocation 
 truncated to fit: R_ARM_THM_JUMP11 against symbol 
 `__libc_android_abort' defined in .glue_7 section in 
 /home/workspace/eclair/prebuilt/linux-x86/toolchain/armv4t-android-eabi-4.2.1/bin/../lib/gcc/armv4t-android-eabi/4.2.1/interwork/libgcc.a(_clz.o)
 collect2: ld returned 1 exit status

 Help me !  Thank you ..



 On Wed, Dec 16, 2009 at 8:39 PM, tommy tommy hongjiuj...@gmail.com 
 mailto:hongjiuj...@gmail.com wrote:

 great job

 2009/12/16 Michael Trimarchi trimar...@gandalf.sssup.it
 mailto:trimar...@gandalf.sssup.it

 http://gitorious.org/android-on-freerunner

 Michael

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




 -- 
 Achievement provides the only real pleasure in life!

 -- 
 unsubscribe: android-porting+unsubscr...@googlegroups.com
 mailto:android-porting%2bunsubscr...@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-portingdiff --git a/libc/unistd/abort.c b/libc/unistd/abort.c
index 3e3aab0..f323941 100644
--- a/libc/unistd/abort.c
+++ b/libc/unistd/abort.c
@@ -39,13 +39,8 @@
 #define debug_log(format, ...)  \
 __libc_android_log_print(ANDROID_LOG_DEBUG, libc-abort, (format), ##__VA_ARGS__ )
 
-#ifdef __arm__
-void
-__libc_android_abort(void)
-#else
 void
 abort(void)
-#endif
 {
 	struct atexit *p = __atexit;
 	static int cleanup_called = 0;
@@ -102,29 +97,3 @@ abort(void)
 	(void)kill(getpid(), SIGABRT);
 	_exit(1);
 }
-
-#ifdef __arm__
-/*
- * abort() does not return, which gcc interprets to mean that it doesn't
- * need to preserve any of the callee-save registers.  Unfortunately this
- * includes the link register, so if LR is used there is no way to determine
- * which function called abort().
- *
- * We work around this by inserting a trivial stub that doesn't alter
- * any of the interesting registers and thus doesn't need to save them.
- * We can't just call __libc_android_abort from C because gcc uses bl
- * without first saving LR, so we use an asm statement.  This also has
- * the side-effect of replacing abort() with __libc_android_abort() in
- * the stack trace.
- *
- * Ideally __libc_android_abort would be static, but I haven't figured out
- * how to tell gcc to call a static function from an asm statement.
- */
-void
-abort(void)
-{
-asm (b __libc_android_abort);
-_exit(1);   /* suppress gcc noreturn warnings */
-}
-#endif
-


Re: [android-porting] Re: Porting to S3C2443

2009-12-16 Thread Michael Trimarchi
http://gitorious.org/android-on-freerunner

Michael

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


Re: [android-porting] eclair display performance

2009-12-15 Thread Michael Trimarchi
Michael Trimarchi wrote:
 Hi,

 Ben Robinson wrote:
   
 We are migrating our Android port from cupcake to eclair. Since we
 changed over, animations have been slower and less smooth than they
 were in cupcake.

 Does anyone know of any configuration issues or similar that could
 hurt performance?
   
 
 Yes I have the same problem some performance delay but seem related not 
 to the
 display itself (rotation is good) keyboard feedback is good. Seem a 
 general delay
 on event processing. I don't fine the reason I stin investigate on it

 Michael
   
Can you try to remove the surface validation?

Michael

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-portingdiff --git a/libs/ui/Surface.cpp b/libs/ui/Surface.cpp
index f51ca7a..a02f031 100644
--- a/libs/ui/Surface.cpp
+++ b/libs/ui/Surface.cpp
@@ -396,6 +396,7 @@ bool Surface::isValid() {
 
 status_t Surface::validate(SharedClient const* cblk) const
 {
+#if 0
 spSurfaceComposerClient client(getClient());
 if (mToken0 || mClient==0) {
 LOGE(invalid token (%d, identity=%u) or client (%p), 
@@ -418,6 +419,7 @@ status_t Surface::validate(SharedClient const* cblk) const
 mToken, mIdentity, identity);
 return NO_INIT;
 }
+#endif
 return NO_ERROR;
 }
 


[android-porting] Eclair reject incoming call (gprs connected)

2009-12-15 Thread Michael Trimarchi
Hi all,

If I have a gprs open connection, the eclair subsystem reject my 
incoming call,

is there any good reason?

D/AT  (  876): MUX[primary]: AT %CPI: 1,7,1,0,1,0,+39xx45,,17,0
D/RILJ(  958): [0082] DEACTIVATE_DATA_CALL
D/AT  (  876): MUX[primary]: AT OK
D/RIL (  876): onRequest: GET_CURRENT_CALLS
D/AT  (  876): MUX[primary]: AT AT+CLCC
D/RILJ(  958): [0083] GET_CURRENT_CALLS  
D/AT  (  876): MUX[primary]: AT OK
D/RILJ(  958): [0084] GET_CURRENT_CALLS  
D/GSM (  958): [PdpConnection] DataConnection.handleMessage()
D/GSM (  958): [PdpConnection] Notify PDP disconnect
D/GSM (  958): [PdpConnection] DataConnection.clearSettings()
D/GSM (  958): [PdpConnection] PDP Connection Deactivated
D/GSM (  958): [GsmCallTracker] missed/rejected call, 
conn.cause=NOT_DISCONNECTED
D/GSM (  958): [GsmCallTracker] setting cause to INCOMING_MISSED
D/GSM (  958): [GSMConn] onDisconnect: cause=INCOMING_MISSED
D/GSM (  958): [GSMConn] releaseWakeLock

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


Re: [android-porting] eclair display performance

2009-12-10 Thread Michael Trimarchi
Hi,

Ben Robinson wrote:
 We are migrating our Android port from cupcake to eclair. Since we
 changed over, animations have been slower and less smooth than they
 were in cupcake.

 Does anyone know of any configuration issues or similar that could
 hurt performance?
   
Yes I have the same problem some performance delay but seem related not 
to the
display itself (rotation is good) keyboard feedback is good. Seem a 
general delay
on event processing. I don't fine the reason I stin investigate on it

Michael

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


Re: a2dp (WAS Re: [android-porting] fix alsa compilation problem Eclair)

2009-12-04 Thread Michael Trimarchi
Hi,

can anyone check this patch?

Michael

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-portingFix compilation issue in Eclair of a2dp.

Signed-off-by: Michael Trimarchi mich...@panicking.kicks-ass.org
---
diff --git a/libs/audioflinger/Android.mk b/libs/audioflinger/Android.mk
index f5c03bb..716cbfd 100644
--- a/libs/audioflinger/Android.mk
+++ b/libs/audioflinger/Android.mk
@@ -34,16 +34,8 @@ endif
 
 LOCAL_MODULE:= libaudiointerface
 
-ifeq ($(BOARD_HAVE_BLUETOOTH),true)
-  LOCAL_SRC_FILES += A2dpAudioInterface.cpp
-  LOCAL_SHARED_LIBRARIES += liba2dp
-  LOCAL_CFLAGS += -DWITH_BLUETOOTH -DWITH_A2DP
-  LOCAL_C_INCLUDES += $(call include-path-for, bluez)
-endif
-
 include $(BUILD_STATIC_LIBRARY)
 
-
 include $(CLEAR_VARS)
 
 LOCAL_SRC_FILES:=   \
@@ -85,7 +77,7 @@ LOCAL_SRC_FILES:=   \
 LOCAL_SHARED_LIBRARIES := \
 libcutils \
 libutils \
-	libbinder \
+libbinder \
 libmedia \
 libhardware_legacy \
 libaudiopolicygeneric
@@ -106,8 +98,10 @@ endif
 LOCAL_MODULE:= libaudioflinger
 
 ifeq ($(BOARD_HAVE_BLUETOOTH),true)
-  LOCAL_CFLAGS += -DWITH_BLUETOOTH -DWITH_A2DP
+  LOCAL_SRC_FILES += A2dpAudioInterface.cpp
   LOCAL_SHARED_LIBRARIES += liba2dp
+  LOCAL_CFLAGS += -DWITH_BLUETOOTH -DWITH_A2DP
+  LOCAL_C_INCLUDES += $(call include-path-for, bluez)
 endif
 
 ifeq ($(AUDIO_POLICY_TEST),true)


Re: [android-porting] Re: eclair patch for arm920 s3c244x family

2009-12-04 Thread Michael Trimarchi
Hi,

Alexey Roslyakov wrote:
 Thanks, Michael,
 great work.

 Now bionic code (libc/arch-arm/*.s) is armv4-friendly. You can safely
 use original bionic/libc/Android.mk - optimized versions of memcpy,
 strlen and memcmp.
 Android will run faster a little bit;)
   
I have redone a rebase and use now the memcpu of bionic but with same 
result in
performance. I will continue to investigate but I think that it can be 
related
to the new graphics abstraction. I have compiled alsa, but it is far away
to work. Have you done some work on it?

Michael

 On 27 ноя, 03:25, Michael Trimarchi trimar...@gandalf.sssup.it
 wrote:
   
 Hi,

 this is my patch to boot android. The PAN display ioctl is only for 
 openmoko, hope that can help
 some user.

 The overall performance are not good but the keyboard is three time faster 
 from cupcake version :)

 Michael

  eclair.patch
 50KПросмотретьЗагрузить
 

   

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


Re: a2dp (WAS Re: [android-porting] fix alsa compilation problem Eclair)

2009-12-04 Thread Michael Trimarchi
Hi,

thanks, I'm not updated :(

Michael

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


Re: a2dp (WAS Re: [android-porting] fix alsa compilation problem Eclair)

2009-12-04 Thread Michael Trimarchi
Hi,

Jim Ancona wrote:
 Michael,

 I'll try your patches this weekend. Since I assume you're willing to
 contribute your patches back to the AOSP, you might be better off
 discussing this in android-platform.

 Also, are you working against the eclair or master branch? I think all
 submissions to AOSP must be against master.
   
I'm working on eclair branch for the freerunner. Now the boot is ok and 
the device
is up, the gprs seems more stable, but I have some trouble when I try to 
receive
call and the data connection is active. BTW, I have just integrated the 
radio
part and it works. Now I would like to test the audio with the recent 
patches
sent by wind river.

Michael
 Jim

 On Dec 4, 5:05 am, Michael Trimarchi trimar...@gandalf.sssup.it
 wrote:
   
 Hi,

 can anyone check this patch?

 Michael

  a2dp_compilation.patch
 1KViewDownload
 

   

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


a2dp (WAS Re: [android-porting] fix alsa compilation problem Eclair)

2009-12-03 Thread Michael Trimarchi
Michael Trimarchi wrote:
 Hi,

 Michael Trimarchi wrote:
   
 Hi,

 I have fixed the alsa compilation problem on Eclair, I have to test because 
 I just create some stub fuction
 and I must read the source code of other device for understandig the new 
 interface. So it is just to have
 somenthing to start and compile.

 Michael

   
 
 I have missed two function :)

 Michael

   
out/target/product/fr/obj/STATIC_LIBRARIES/libaudiointerface_intermediates/libaudiointerface.a(A2dpAudioInterface.o):
 
In function `android::A2dpAudioInterface::A2dpAudioStreamOut::close_l()':
/home/michael/lavoro/android-eclair/frameworks/base/libs/audioflinger/A2dpAudioInterface.cpp:447:
 
undefined reference to `a2dp_cleanup'
out/target/product/fr/obj/STATIC_LIBRARIES/libaudiointerface_intermediates/libaudiointerface.a(A2dpAudioInterface.o):
 
In function `android::A2dpAudioInterface::A2dpAudioStreamOut::init()':
/home/michael/lavoro/android-eclair/frameworks/base/libs/audioflinger/A2dpAudioInterface.cpp:311:
 
undefined reference to `a2dp_init'
/home/michael/lavoro/android-eclair/frameworks/base/libs/audioflinger/A2dpAudioInterface.cpp:317:
 
undefined reference to `a2dp_set_sink'
out/target/product/fr/obj/STATIC_LIBRARIES/libaudiointerface_intermediates/libaudiointerface.a(A2dpAudioInterface.o):
 
In function 
`android::A2dpAudioInterface::A2dpAudioStreamOut::setAddress(char const*)':
/home/michael/lavoro/android-eclair/frameworks/base/libs/audioflinger/A2dpAudioInterface.cpp:410:
 
undefined reference to `a2dp_set_sink'
out/target/product/fr/obj/STATIC_LIBRARIES/libaudiointerface_intermediates/libaudiointerface.a(A2dpAudioInterface.o):
 
In function `android::A2dpAudioInterface::A2dpAudioStreamOut::standby()':
/home/michael/lavoro/android-eclair/frameworks/base/libs/audioflinger/A2dpAudioInterface.cpp:335:
 
undefined reference to `a2dp_stop'
out/target/product/fr/obj/STATIC_LIBRARIES/libaudiointerface_intermediates/libaudiointerface.a(A2dpAudioInterface.o):
 
In function `android::A2dpAudioInterface::A2dpAudioStreamOut::write(void 
const*, unsigned int)':
/home/michael/lavoro/android-eclair/frameworks/base/libs/audioflinger/A2dpAudioInterface.cpp:288:
 
undefined reference to `a2dp_write'
collect2: ld returned 1 exit status

Any example where I can try to implement this functions?

Michael

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


Re: a2dp (WAS Re: [android-porting] fix alsa compilation problem Eclair)

2009-12-03 Thread Michael Trimarchi
Michael Trimarchi wrote:
 Michael Trimarchi wrote:
   
 Hi,

 Michael Trimarchi wrote:
   
 
 Hi,

 I have fixed the alsa compilation problem on Eclair, I have to test because 
 I just create some stub fuction
 and I must read the source code of other device for understandig the new 
 interface. So it is just to have
 somenthing to start and compile.

 Michael

   
 
   
 I have missed two function :)

 Michael

   
 
 out/target/product/fr/obj/STATIC_LIBRARIES/libaudiointerface_intermediates/libaudiointerface.a(A2dpAudioInterface.o):
  
 In function `android::A2dpAudioInterface::A2dpAudioStreamOut::close_l()':
 /home/michael/lavoro/android-eclair/frameworks/base/libs/audioflinger/A2dpAudioInterface.cpp:447:
  
 undefined reference to `a2dp_cleanup'
 out/target/product/fr/obj/STATIC_LIBRARIES/libaudiointerface_intermediates/libaudiointerface.a(A2dpAudioInterface.o):
  
 In function `android::A2dpAudioInterface::A2dpAudioStreamOut::init()':
 /home/michael/lavoro/android-eclair/frameworks/base/libs/audioflinger/A2dpAudioInterface.cpp:311:
  
 undefined reference to `a2dp_init'
 /home/michael/lavoro/android-eclair/frameworks/base/libs/audioflinger/A2dpAudioInterface.cpp:317:
  
 undefined reference to `a2dp_set_sink'
 out/target/product/fr/obj/STATIC_LIBRARIES/libaudiointerface_intermediates/libaudiointerface.a(A2dpAudioInterface.o):
  
 In function 
 `android::A2dpAudioInterface::A2dpAudioStreamOut::setAddress(char const*)':
 /home/michael/lavoro/android-eclair/frameworks/base/libs/audioflinger/A2dpAudioInterface.cpp:410:
  
 undefined reference to `a2dp_set_sink'
 out/target/product/fr/obj/STATIC_LIBRARIES/libaudiointerface_intermediates/libaudiointerface.a(A2dpAudioInterface.o):
  
 In function `android::A2dpAudioInterface::A2dpAudioStreamOut::standby()':
 /home/michael/lavoro/android-eclair/frameworks/base/libs/audioflinger/A2dpAudioInterface.cpp:335:
  
 undefined reference to `a2dp_stop'
 out/target/product/fr/obj/STATIC_LIBRARIES/libaudiointerface_intermediates/libaudiointerface.a(A2dpAudioInterface.o):
  
 In function `android::A2dpAudioInterface::A2dpAudioStreamOut::write(void 
 const*, unsigned int)':
 /home/michael/lavoro/android-eclair/frameworks/base/libs/audioflinger/A2dpAudioInterface.cpp:288:
  
 undefined reference to `a2dp_write'
 collect2: ld returned 1 exit status

 Any example where I can try to implement this functions?
   
Sorry find :( external/bluetooth for sure :)
 Michael

   

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


Re: [android-porting] no response when touch the touchscreen

2009-12-02 Thread Michael Trimarchi
Weber wrote:
 Hi,guys
 I have ported android 2.6.25 to my s3c smdk6410,and the filesystem is
 donut that I built from the source code.Now I can boot it up and see
 the main window.But when touching the item ,it does not have any
 response at all.

 My touchscreen driver src file is s3c_ts.c.

 I built tslib and  calibrated it without android running,generating a
 pointercal file.But it still didn't work.

 Here are my debug info:
 # logcat *:E
 E/MountListener(  527): Failed to connect to vold
 E/MountListener(  527): java.lang.IllegalStateException
 E/MountListener(  527): at
 com.android.server.MountListener.listenToSocket(MountListener.java:
 254)
 E/MountListener(  527): at com.android.server.MountListener.run
 (MountListener.java:274)
 E/MountListener(  527): at java.lang.Thread.run(Thread.java:
 1060)
 E/MountListener(  527): Failed to connect to vold
   
Sorry but this is unrelated to the touchscreen problem :)
Michael
 # ls /dev/input
 event0  event1  ts0
 # cat /proc/bus/input/devices
 I: Bus=0019 Vendor=0001 Product=0001 Version=0001
 N: Name=s3c-keypad
 P: Phys=s3c-keypad/input0
 S: Sysfs=/devices/platform/s3c-keypad/input/input0
 U: Uniq=
 H: Handlers=kbd event0
 B: EV=13
 B: KEY=1fffe

 I: Bus=0013 Vendor=dead Product=beef Version=0101
 N: Name=S3C TouchScreen
 P: Phys=input(ts)
 S: Sysfs=/devices/virtual/input/input1
 U: Uniq=
 H: Handlers=event1 ts0
 B: EV=b
 B: KEY=20 0 0 0 0 0 0 0 0 0 0
 B: ABS=103

 # cat /proc/bus/input/handlers
 N: Number=0 Name=kbd
 N: Number=1 Name=evdev Minor=64
 N: Number=2 Name=tsdev Minor=128

 What is the difference btw event1 and ts0?

 and my env for tslib are:
 export TSLIB_TSEVENTTYPE INPUT
 export TSLIB_CONSOLEDEVICE none
 export TSLIB_FBDEVICE /dev/graphics/fb0
 export TSLIB_TSDEVICE /dev/input/event1   //I had tried ts0,still the
 same
 export TSLIB_CALIBFILE /system/etc/pointercal
 export TSLIB_CONFFILE /system/etc/tslib/ts.conf
 export TSLIB_PLUGINDIR /system/lib/ts

 # getevent
 tsdev (compaq touchscreen emulation) is scheduled for removal.
 See Documentation/feature-removal-schedule.txt for details.
 could not get driver version for /dev/input/ts0, Invalid argument
 add device 1: /dev/input/event1
   name: S3C TouchScreen
 add device 2: /dev/input/event0
   name: s3c-keypad
 /dev/input/event1:   
 /dev/input/event1: 0003  0505
 /dev/input/event1: 0003 0001 0870
 /dev/input/event1: 0003 0018 0001
 /dev/input/event1:   
 /dev/input/event1: 0003  0506
 /dev/input/event1: 0003 0001 0879
 /dev/input/event1:   
 /dev/input/event1: 0003 0018 
 /dev/input/event1:   
 /dev/input/event1: 0003  06b6

 and then I open the DEBUG in s3c_ts.c,when touching it,the console
 prints:
   #D
D
D
 T: 853507, X: 28791, Y: 31853
 T: 878508, X: 28404, Y: 32080
D
 T: 603508, X: 31842, Y: 18032
 T: 628524, X: 31689, Y: 18009
D
 T: 818507, X: 44988, Y: 16935
 T: 843508, X: 44818, Y: 17687
 T: 868506, X: 45122, Y: 17618
 T: 893508, X: 45248, Y: 18344
D
 T: 648508, X: 45725, Y: 43406
 T: 673508, X: 45500, Y: 43828
D
 T: 478507, X: 24101, Y: 19161
 T: 503508, X: 23650, Y: 19044
 T: 528508, X: 23943, Y: 18982
 It seems that android didn't get my input coordinate  but the kernel
 did

 and the post
 http://groups.google.com/group/android-porting/browse_thread/thread/fb64af66b1f877fa/c72fc79b31c83dca?lnk=gstq=Touch+Screen+%3F4%3F%3F_done=%2Fgroup%2Fandroid-porting%2Fbrowse_thread%2Fthread%2Ffb64af66b1f877fa%2Fc72fc79b31c83dca%3Flnk%3Dgst%26q%3DTouch%2BScreen%2B%253F4%253F%253F
  says that  Power Management support  is necessary ,so I chose it
 and rebuilt ,but it still has no response .

 so could anyone tell me what are my problems ?and How should i do to
 make the touchscreen work?
 Thanks!
 ---Weber

   

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


Re: [android-porting] Re: Android Eclair -- hangs after gralloc/mapFrameBufferLocked

2009-11-20 Thread Michael Trimarchi
Hi,

Alexey Roslyakov wrote:
 Can you share your diff and/or logcat output?
   
sorry, I will try to send tomorow. I would like to restart and merge the 
two patches
Michael
 On Nov 20, 12:22 am, Michael Trimarchi trimar...@gandalf.sssup.it
 wrote:
   
 Hi,

 Alexey Roslyakov wrote:
 
 I added LOGI just before return from fb_device_open.
   
 I/gralloc (  713): fb_device_open res: 0
   
 fb device initialized successfully. Problem is not here.
 But where?
   
 maybe we have the same architecture. I'm compiling eclair for openmoko but
 the issue that I have is a crash in opencore. I'm trying to find the
 related problem,
 can you share with us your configuration for compile on the armv4t
 architecture?

 Michael
 

   

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


Re: [android-porting] Re: Android Eclair -- hangs after gralloc/mapFrameBufferLocked

2009-11-19 Thread Michael Trimarchi
Hi,

Alexey Roslyakov wrote:
 I added LOGI just before return from fb_device_open.

 I/gralloc (  713): fb_device_open res: 0

 fb device initialized successfully. Problem is not here.
 But where?

   

maybe we have the same architecture. I'm compiling eclair for openmoko but
the issue that I have is a crash in opencore. I'm trying to find the 
related problem,
can you share with us your configuration for compile on the armv4t 
architecture?

Michael

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


Re: [android-porting] in search for hardware/driver support infos

2009-11-16 Thread Michael Trimarchi
r3wDy wrote:
 Hi Folkz!

 me and a couple of friends are porting android to the Meizu M8.
 We already have it up an running and stuff, but without the support
 for the built in hardware.
 So at this time, no GSM Wifi bluetooth etc is working, and i searched
 the net a thousand times for informations regearding linux and the
 hardware components.
 So i decieded to write to this list in hope of finding someone who can
 give a clue of where to find infos on these components.

 First: The phone uses a samsung s3c6410 processor, and is roughly
 based on the samsung smdk6410 bsd board.
 We have android running, eg touchscreen/usb/sound works and now we are
 trying to get some comunications to work,

 1) Wlan: Its a SPI Samsung swl-2480 card, which is powerd by a marvell
 8686 wlan chip. Driver for this module can be found in the kernel
 wireless parts. The problem here is the spi interface.
 Im trying to get a generic s3c_spi driver to compile and load. My
 question is: would this be eneugh for android? can i assume that the
 wlancard works with a spi master driver, or are such devices
 controlled directyl trhough the interface without the need of a
 driver?

 2) GSM baseband.
 There is a infineon s-gold 2 (pmb 8876) edge baseband processor used
 in the device. Problem with this: i dont know nothing about it and
 there are not much informations about this on the internet.
 i already tried to send some AT to every UART but didnt got an answer.
 I think the chip must be connected through an uart with the main cpu
 and should roughly behave like a hayes compatible modem. But because
 there no answers on the uart the chips is
 a) not powerd on. Is there a need for such chips to get powerd on?
 b) the device just dont answers to AT command like i expect.
 c) the device is not connected through uart
   
It's possible that it start at lowspeed, do you have some error on the uart
when try to talk to him?

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


Re: [android-porting] Re: RIL: s_listen_event is not triggered

2009-11-16 Thread Michael Trimarchi
Hi,

Xingwen Huang wrote:
 Michael:
 Thanks for your concern!
 I had found that, I missed the connection to the 'rild' socket. And 
 modify the code in RIL.java to make sure the host and client socket is 
 matched.

 BTW:
 In RIL.java,  class RILReceiver,
  493 try {
  494 InputStream is = mSocket.getInputStream();
  495
  496 for (;;) {
  497 Parcel p;
  498
  499 length = readRilMessage(is, buffer);
  500
  501 if (length  0) {
  502 // End-of-stream reached
  503 break;
  504 }
  505
  506 p = Parcel.obtain();
  507 p.unmarshall(buffer, 0, length);
  508 p.setDataPosition(0);
  509
  510 Log.v(LOG_TAG, Read packet:  + length + 
  bytes);
  511
  512 processResponse(p);
  513 p.recycle();
  514 }

 RIL.java can write packet to rild, and Read packet from rild.
 But, when i dial, it shows that network is not registered.
 What's the problem?
 When it exec processResponse(p),  processSolicited,
 1871 if (rr.mResult != null) {
 1872 AsyncResult.forMessage(rr.mResult, ret, null);
 1873 rr.mResult.sendToTarget();
 1874 }
 Where dose the Message go? Which application will get the Message? How 
 does the application show the Message? I'm not clear about the android 
 application/framworks level. :-(
Android send message to the RILD daemon and wait form some answer, 
AT+CPIN etc. When the SIM is READY it ask for network.
The best thing is having the logcat and radio logcat to understand what 
happen. Maybe the problem is in the format of the answer
that is not correct and raise a crash in android.

Michael

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


[android-porting] Re: RIL: s_listen_event is not triggered

2009-10-16 Thread Michael Trimarchi

Xingwen Huang wrote:
 any idea? please

 On Wed, Sep 30, 2009 at 10:18 AM, simon hxwsi...@gmail.com 
 mailto:hxwsi...@gmail.com wrote:

 hi, all experts:
 my log:
 D/AT  (   29): AT +CREG: 1, 247C, 0E26, 0
 D/RIL (   29): in onUnsolicited *reference-ril.c***
 D/RIL (   29): unsol_response_network_state_changed
 D/RILC(   29): sendResponseRaw in ril.cpp
 D/RILC(   29): s_fdCommand socket number = -1***
 D/RILC(   29): in internalRequestTimedCallback**
 D/RILC(   29): **fd = -1 in ril_event_set
 D/RILC(   29): *initialize an event in
 ril_event_set,ril_event.cpp in libril
 D/RILC(   29): fd is -1, in internalRequestTimedCallback
 D/RILC(   29): *triggerEvLoop in
 ril.cpp*s_fdWakeupWrite=7
 D/RIL (   29): out onUnsolicited*
 D/RILJ(   77): WAKE_LOCK_TIMEOUT  mReqPending=0 mRequestList=0

 focused on this log, it received the CREG unsolicited response. It
 will write datas to the socket-- s_fdCommand, then the application
 will get it.
 That's my idea!
 But s_fdCommand is -1. I traced the code, and found that,
 in ril.cpp, listenCallback func:
 s_fdCommand = accept(s_fdlisten, (sockaddr *)peeraddr, socklen);

 this code doesn't run at any time!!
 And, in my opinion, listenCallback is the func of the event
 s_listen_event.
 Is s_listen_event not triggered? Or others?
 any idea???

Can you send a complete log of all the event. Seem the referecne ril go 
in timeout
and close connection.

Michael

 Thanks  regards

 simon 



 


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



[android-porting] Re: V4L2 Camera interface

2009-10-01 Thread Michael Trimarchi
praj wrote:
 Hi Harish,

 I'm trying out something similar. I'm able to see /dev/video0.

 Can you pass me a link to the V4L2 patch?

 Thanks in advance.


 On Sep 13, 1:55 pm, Harishkumar V harishpres...@gmail.com wrote:
   
 Hi,
 i am using logitech webcam

 Thanks and Regards,
 HarishKumar.V

 On Wed, Sep 9, 2009 at 4:00 PM, deepak singal deesin...@gmail.com wrote:
 
 Hi Harish,
   
 Can you share your USB Webcam name and specification.
   
 Thanks  Regards
 Deepak
   
 --
 Thanks and Regards,
 Harish Kumar. V
 

 

   


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

 camera/libcameraservice/Android.mk |   34 +--
 camera/libcameraservice/CameraHardware.cpp |  362 +++
 camera/libcameraservice/CameraHardware.h   |  136 +
 camera/libcameraservice/CameraService.cpp  |3 +-
 camera/libcameraservice/V4L2Camera.cpp |  430 
 camera/libcameraservice/V4L2Camera.h   |   67 +
 6 files changed, 1010 insertions(+), 22 deletions(-)
 create mode 100644 camera/libcameraservice/CameraHardware.cpp
 create mode 100644 camera/libcameraservice/CameraHardware.h
 create mode 100644 camera/libcameraservice/V4L2Camera.cpp
 create mode 100644 camera/libcameraservice/V4L2Camera.h

diff --git a/camera/libcameraservice/Android.mk b/camera/libcameraservice/Android.mk
index 96cc512..03b9ff6 100644
--- a/camera/libcameraservice/Android.mk
+++ b/camera/libcameraservice/Android.mk
@@ -1,34 +1,26 @@
 LOCAL_PATH:= $(call my-dir)
 
 #
-# Set USE_CAMERA_STUB for non-emulator and non-simulator builds, if you want
-# the camera service to use the fake camera.  For emulator or simulator builds,
-# we always use the fake camera.
-
-ifeq ($(USE_CAMERA_STUB),)
-USE_CAMERA_STUB:=false
-ifneq ($(filter sooner generic sim,$(TARGET_DEVICE)),)
-USE_CAMERA_STUB:=true
-endif #libcamerastub
-endif
-
-ifeq ($(USE_CAMERA_STUB),true)
-#
-# libcamerastub
+# libcamera
 #
 
 include $(CLEAR_VARS)
 
 LOCAL_SRC_FILES:=   \
-CameraHardwareStub.cpp  \
-FakeCamera.cpp
+CameraHardware.cpp \
+V4L2Camera.cpp
+
+LOCAL_MODULE:= libcamera
 
-LOCAL_MODULE:= libcamerastub
+LOCAL_SHARED_LIBRARIES:= \
+libui \
+libutils \
+libcutils
 
-LOCAL_SHARED_LIBRARIES:= libui
+LOCAL_STATIC_LIBRARIES:= \
+libjpeg
 
-include $(BUILD_STATIC_LIBRARY)
-endif # USE_CAMERA_STUB
+include $(BUILD_SHARED_LIBRARY)
 
 #
 # libcameraservice
@@ -43,7 +35,7 @@ LOCAL_SHARED_LIBRARIES:= \
 libui \
 libutils \
 libcutils \
-libmedia
+libmedia 
 
 LOCAL_MODULE:= libcameraservice
 
diff --git a/camera/libcameraservice/CameraHardware.cpp b/camera/libcameraservice/CameraHardware.cpp
new file mode 100644
index 000..ac76514
--- /dev/null
+++ b/camera/libcameraservice/CameraHardware.cpp
@@ -0,0 +1,362 @@
+/*
+**
+** Copyright 2008, The Android Open Source Project
+**
+** Licensed under the Apache License, Version 2.0 (the License);
+** you may not use this file except in compliance with the License.
+** You may obtain a copy of the License at
+**
+** http://www.apache.org/licenses/LICENSE-2.0
+**
+** Unless required by applicable law or agreed to in writing, software
+** distributed under the License is distributed on an AS IS BASIS,
+** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+** See the License for the specific language governing permissions and
+** limitations under the License.
+*/
+
+#define LOG_TAG CameraHardware
+#include utils/Log.h
+
+#include CameraHardware.h
+#include fcntl.h
+#include sys/mman.h
+
+#define VIDEO_DEVICE/dev/video0
+#define MIN_WIDTH   640
+
+#define MIN_HEIGHT  480
+#define PIXEL_FORMATV4L2_PIX_FMT_YUYV
+
+namespace android {
+
+wpCameraHardwareInterface CameraHardware::singleton;
+
+CameraHardware::CameraHardware()
+  : mParameters(),
+mHeap(0),
+mPreviewHeap(0),
+mRawHeap(0),
+	mPreviewFrameSize(0),
+mRawPictureCallback(0),
+mJpegPictureCallback(0),
+mPictureCallbackCookie(0),
+mPreviewCallback(0),
+mPreviewCallbackCookie(0),
+mAutoFocusCallback(0),
+mAutoFocusCallbackCookie(0),
+mCurrentPreviewFrame(0),
+previewStopped(true),
+nQueued(0),
+nDequeued(0)
+{
+initDefaultParameters();
+}
+
+void CameraHardware::initDefaultParameters()
+{
+CameraParameters p;
+
+p.setPreviewSize(MIN_WIDTH, MIN_HEIGHT);
+p.setPreviewFrameRate(15);
+p.setPreviewFormat(yuv422sp);
+
+p.setPictureSize(MIN_WIDTH, MIN_HEIGHT);
+p.setPictureFormat(jpeg);
+
+if 

[android-porting] Re: Android 1.5 ported?

2009-09-15 Thread Michael Trimarchi

Hi,

sanyanniesunney anniesunney wrote:
 Hi
 I formatted my card such that it has only 1 partition and this 
 partition is of vfat type...
 In this i copied the uImage(i had renamed as u suggested),MLO and 
 u-boot.bin
 i also tried with the uImage and the binaries that they 
 provided,android-beagle.ubi and
 0xkernel-beagle.bin
The uboot vfat subsystem has a series of BUG so if the uImage go in 
unreadeadble region just doesnt'
work. Try to copy again and rename the oldfile, try to find some good 
position. Basically a fresh formatted
partition gives no problem

Michael


 How can i verify whether i have formatted it correctly?i am sorry for 
 asking silly doubts but please help...

 thanks a lot!

 On Tue, Sep 15, 2009 at 6:17 PM, Jim Huang jserv.tw 
 http://jserv.tw@gmail.com http://gmail.com wrote:


 2009/9/15 sanyanniesunney anniesunney laurelsgal...@gmail.com
 mailto:laurelsgal...@gmail.com:
  U-Boot 1.3.3 (Jul 10 2008 - 16:33:09)
 
  OMAP3530-GP rev 2, CPU-OPP2 L3-165MHz
  OMAP3 Beagle Board + LPDDR/NAND
  DRAM:  128 MB
  NAND:  256 MiB
  In:serial
  Out:   serial
  Err:   serial
  Audio Tone on Speakers  ... complete
  Hit any key to stop autoboot:  0
  reading uImage
 

 Ok, it recognizes the kernel image.

  693740 bytes read
  ## Booting kernel from Legacy Image at 8030 ...
 Image Name:   Linux-2.6.29-omap1-g9985b01-dirt
 Image Type:   ARM Linux Kernel Image (uncompressed)
 Data Size:1956720 Bytes =  1.9 MB
 Load Address: 80008000
 Entry Point:  80008000
 Verifying Checksum ... Bad Data CRC
  ERROR: can't get kernel image!
 

 Could you please clarify if your SD card is well formatted or not?
 It usually comes with physical problem instead of software.

 Sincerely,
 Jim Huang (jserv)
 http://0xlab.org/




 


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



[android-porting] Re: V4L2 Camera interface

2009-09-01 Thread Michael Trimarchi

Hi,

Great work here. I just add to the freerunner and I will test
on it using an usb camera

Michael

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



[android-porting] Re: rild reboot repeatly because of EOS. Closing command socket.

2009-08-20 Thread Michael Trimarchi

Hi,

edwardlee lee wrote:
 Hi Michael,

 Thanks for your code!

 I have tried it and get the same result as gsm0710muxd. I commented
 some at command such as at+cfun because of our modem not allow such
 command after power on.

 Now I can run pppd but it failed with unrecognized option
 '/dev/pts/1' and Couldn't attach to PPP unit 1: m.


 Would you please tell me what is wrong with pppd?


 I have found there are device nodes /dev/pts/0 and /dev/pts1 created.


 I have tried the following methods:
 1. /system/bin/pppd $*


 2. /system/xbin/pppd /dev/pts/1 115200 mru 1280 mtu 1280 nodetach
 debug dump defaultroute usepeerdns novj noauth novjccomp noipdefault
 ipcp-accept-local ipcp-accept-remote connect-delay 5000
   
I think that you can use all my code with the freerunner-ril.so too.
It creates a pppd.conf file and I start pppd with

service pppd_gprs /system/xbin/pppd debug file /data/ppp/options.gprs
disabled
oneshot

Michael



 Many thanks in advance!


 Best Regards,


 Edward


 Attached pppd log:


 E/pppd( 1034): unrecognized option '/dev/pts/1'
 D/pppd( 1042): using channel 5
 I/pppd( 1042): Using interface ppp0
 I/pppd( 1042): Connect: ppp0 -- /dev/pts/1
 D/pppd( 1042): sent P
 D/pppd( 1042): rcvd P
 D/pppd( 1042): sent P
 D/pppd( 1042): rcvd P
 D/pppd( 1042): sent P
 D/pppd( 1042): rcvd P
 D/pppd( 1042): sent P
 D/pppd( 1042): rcvd P
 D/pppd( 1042): sent P
 D/pppd( 1042): rcvd P
 D/pppd( 1042): sent P
 D/pppd( 1042): rcvd P
 D/pppd( 1042): sent P
 D/pppd( 1042): rcvd P
 D/pppd( 1042): sent P
 D/pppd( 1042): rcvd P
 D/pppd( 1042): sent P
 D/pppd( 1042): rcvd P
 D/pppd( 1042): sent P
 D/pppd( 1042): rcvd P
 D/pppd( 1042): sent P
 D/pppd( 1042): rcvd P
 D/pppd( 1042): sent P
 D/pppd( 1042): rcvd P
 D/pppd( 1042): sent P
 D/pppd( 1042): rcvd P
 D/pppd( 1042): sent P
 D/pppd( 1042): rcvd P
 D/pppd( 1042): sent P
 D/pppd( 1042): rcvd P
 D/pppd( 1042): sent P
 D/pppd( 1050): using channel 5
 E/pppd( 1050): Couldn't attach to PPP unit 1: m
 I/pppd( 1042): Modem hangup
 I/pppd( 1042): Connection terminated.



 On Wed, Aug 19, 2009 at 10:52 PM, Michael
 Trimarchitrimar...@gandalf.sssup.it wrote:
   
 Hi,

 do you try it? Do you have some patches for your device?

 Michael

 

 
   


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



[android-porting] Re: rild reboot repeatly because of EOS. Closing command socket.

2009-08-19 Thread Michael Trimarchi

Hi,

do you try it? Do you have some patches for your device?

Michael

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



[android-porting] Re: rild reboot repeatly because of EOS. Closing command socket.

2009-08-07 Thread Michael Trimarchi

Samuel wrote:
 Hi Michael,

 Nice work!!

 Would you like to tell me how to browse this source codes just updated
 online as well as download them?

 Thanks.


 B. R.
 Samuel
   
Hi,
you can use git pull to take a look at the code. I don't have git web in 
the panicking
web site :(.

Michael

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



[android-porting] Re: rild reboot repeatly because of EOS. Closing command socket.

2009-08-05 Thread Michael Trimarchi

Hi
edwardlee lee wrote:
 I have got your new update. Thanks very much.

 Yes, would you please help me how to use it?

 Thanks again!
   
You find a readme.txt that explain how to change the init.rc. In the 
vchanneld you must
change the modem reset sequence (freerunner specific and the serial device).

Michael
 On Tue, Aug 4, 2009 at 11:24 PM, Michael
 Trimarchitrimar...@gandalf.sssup.it wrote:
   
 Hi,

 do you need some help to use vchanneld?

 Michael

 

 

   


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



[android-porting] Re: rild reboot repeatly because of EOS. Closing command socket.

2009-08-04 Thread Michael Trimarchi

Hi,

edwardlee lee wrote:
 Hi Michael,

 I have got it. I git it at git://panicking.kicks-ass.org/ril.git.
It's an old one. I must push other changes? Maybe today. Can you wait a 
little bit?

Michael

 Thank for your contribution.

 Edward

 On Tue, Aug 4, 2009 at 9:15 AM, edwardlee leeedwardlee.2...@gmail.com wrote:
 Hi Michael,

 Where is your vchanneld source code?

 Would you please send me a copy of vchanneld source code and tell me
 how to use it?

 Best Regards,

 Edward

 On Tue, Aug 4, 2009 at 12:36 AM, Michael
 Trimarchitrimar...@gandalf.sssup.it wrote:
 edwardlee lee wrote:
 Thank for your reply. I used gsm0710muxd that comes from git.omapzoom.org.
 On Mon, Aug 3, 2009 at 9:08 PM, Michael
 Trimarchitrimar...@gandalf.sssup.it wrote:
 I use my daemon vchanneld on the freerunner :), it's very quite similar to
 the gsm710muxd... and I can connect using gprs

 Michael
 Michael
 3Freezing of user space  aborted
 Freezing of user space  aborted


 Restarting tasks ... Restarting tasks ... done.
 done.
 D/AT  (  800): AT NO CARRIER
 D/AT  (  800): AT *PSCALL: 11,0
 D/RILJ(  865): [UNSL] UNSOL_RESPONSE_CALL_STATE_CHANGED
 W/RILC(  800): EOS.  Closing command socket.
 I/RILJ(  977): Connected to 'rild' socket
 I/RILC(  800): libril: new connection


 The whole log of radio please see the attachment.



 



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



[android-porting] Re: rild reboot repeatly because of EOS. Closing command socket.

2009-08-04 Thread Michael Trimarchi

Hi,

edwardlee lee wrote:
 OK, thanks you very much!

 On Tue, Aug 4, 2009 at 3:12 PM, Michael
 Trimarchitrimar...@gandalf.sssup.it wrote:
   
 Hi,

 edwardlee lee wrote:
 
 Hi Michael,

 I have got it. I git it at git://panicking.kicks-ass.org/ril.git.
   
 It's an old one. I must push other changes? Maybe today. Can you wait a
 little bit?

 Michael
 
Now I have updated with the latest change.

Michael
 Thank for your contribution.

 Edward

 On Tue, Aug 4, 2009 at 9:15 AM, edwardlee leeedwardlee.2...@gmail.com 
 wrote:
   
 Hi Michael,

 Where is your vchanneld source code?

 Would you please send me a copy of vchanneld source code and tell me
 how to use it?

 Best Regards,

 Edward

 On Tue, Aug 4, 2009 at 12:36 AM, Michael
 Trimarchitrimar...@gandalf.sssup.it wrote:
 
 edwardlee lee wrote:
   
 Thank for your reply. I used gsm0710muxd that comes from 
 git.omapzoom.org.
 On Mon, Aug 3, 2009 at 9:08 PM, Michael
 Trimarchitrimar...@gandalf.sssup.it wrote:
 
 I use my daemon vchanneld on the freerunner :), it's very quite similar to
 the gsm710muxd... and I can connect using gprs

 Michael
   
 Michael
   
 3Freezing of user space  aborted
 Freezing of user space  aborted


 Restarting tasks ... Restarting tasks ... done.
 done.
 D/AT  (  800): AT NO CARRIER
 D/AT  (  800): AT *PSCALL: 11,0
 D/RILJ(  865): [UNSL] UNSOL_RESPONSE_CALL_STATE_CHANGED
 W/RILC(  800): EOS.  Closing command socket.
 I/RILJ(  977): Connected to 'rild' socket
 I/RILC(  800): libril: new connection


 The whole log of radio please see the attachment.

 
 

 

   


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



[android-porting] Re: rild reboot repeatly because of EOS. Closing command socket.

2009-08-04 Thread Michael Trimarchi

Hi,

do you need some help to use vchanneld?

Michael

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



[android-porting] Re: rild reboot repeatly because of EOS. Closing command socket.

2009-08-03 Thread Michael Trimarchi

edwardlee lee wrote:
 Thank for your reply. I used gsm0710muxd that comes from git.omapzoom.org.
 On Mon, Aug 3, 2009 at 9:08 PM, Michael
 Trimarchitrimar...@gandalf.sssup.it wrote:
I use my daemon vchanneld on the freerunner :), it's very quite similar to
the gsm710muxd... and I can connect using gprs

Michael

 Michael
 3Freezing of user space  aborted
 Freezing of user space  aborted


 Restarting tasks ... Restarting tasks ... done.
 done.
 D/AT  (  800): AT NO CARRIER
 D/AT  (  800): AT *PSCALL: 11,0
 D/RILJ(  865): [UNSL] UNSOL_RESPONSE_CALL_STATE_CHANGED
 W/RILC(  800): EOS.  Closing command socket.
 I/RILJ(  977): Connected to 'rild' socket
 I/RILC(  800): libril: new connection


 The whole log of radio please see the attachment.



 



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



[android-porting] Re: rild reboot repeatly because of EOS. Closing command socket.

2009-08-03 Thread Michael Trimarchi

Hi,

this is my log :)

D/RIL (  856): onRequest: SETUP_DEFAULT_PDP
D/GSM (  901): [DataConnectionTracker] setState: INITING
D/RIL (  856): requesting data connection to APN 'web.omnitel.it'
D/RILJ(  901): [0402] DTMF_STOP
D/AT  (  856): MUX[gprs]: AT ATH
D/AT  (  856): MUX[gprs]: AT OK
D/AT  (  856): MUX[gprs]: AT AT+CGDCONT=1,IP,web.omnitel.it,,0,0
D/AT  (  856): MUX[gprs]: AT OK
D/AT  (  856): MUX[gprs]: AT AT+CGQREQ=1
D/AT  (  856): MUX[gprs]: AT OK
D/AT  (  856): MUX[gprs]: AT AT+CGQMIN=1
D/AT  (  856): MUX[gprs]: AT OK
D/AT  (  856): MUX[gprs]: AT AT+CGEREP=1,0
D/AT  (  856): MUX[gprs]: AT OK
D/AT  (  856): MUX[gprs]: AT AT+CGACT=1,0
D/AT  (  856): MUX[gprs]: AT ERROR
D/AT  (  856): MUX[gprs]: AT ATD*99***1#
D/AT  (  856): MUX[gprs]: AT CONNECT

Michael

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



[android-porting] Re: sensors on cupcake

2009-07-16 Thread Michael Trimarchi

Hi,

Max wrote:
 Hello Michael
 I've to write a sensor lib like yours, I need help but I cannot access
 your git repository.

 Could you explain me the step in develop sensor lib ?
   
No problem the repository is down, I provide to you the possibility to 
checkout

git clone git://feanor.sssup.it/libsensors.git

Try now
Michael
 thanks
 Massimo

 On May 27, 10:45 pm, Michael Trimarchi trimar...@gandalf.sssup.it
 wrote:
   
 Hi,



 pramod gurav wrote:
 
 On Sat, May 23, 2009 at 4:19 PM, Michael Trimarchi
 trimar...@gandalf.sssup.it wrote:
   
 Hi all,
 
 Is there a good example or an howto to write a libsensors library or
 just take a look
 at the includes and frameworks code to understand how it works?
 
 Michael
 
 Hi Michael,
 You can refer the qemusensorimplementation to write your ownsensorlibrary.
 Look at development/emulator/sensors/
 Even look at hardware/libhardware/include/hardware/sensors.h for reference.
   
 I write thesensordriver and the code can be used as an example here:

 http://git.moko.serdar-dere.net/?p=projects/hardware/libsensors.git;a...
 f=sensors.c;h=4b64ee7156823c060e331c7ca339c6a71030f607;hb=HEAD

 But I have some few question:
 - is it possible to have two accelerometer in android?
 - and I take the event from poll function but I don't obtain all the
 rotation.

 These are some data:

 D/sensors (  844): sensors_poll:sensorevent -1.260855, 9.546474, -1.260855

 D/sensors (  844): sensors_poll:sensorevent 9.006107, 0.180122,
 -1.080733 == first rotation

 D/sensors (  844): sensors_poll:sensorevent -0.720489, -11.347695,
 -0.720489 == no rotation
 D/sensors (  844): sensors_poll:sensorevent 8.465741, 0.900611,
 -0.900611 == no rotation

 D/sensors (  844): sensors_poll:sensorevent -1.080733, 9.366352,
 -1.801221 == rotation

 I think that the data is correct but I don't understand exactly how the
 rotation works

 Michael


 

 

   


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



[android-porting] Re: where is fdatasync(int) implemented?

2009-07-02 Thread Michael Trimarchi


Hi,

Kenny wrote:
 Yes, it is. The linker ld fails to find the symbol fdatasync. How to
 get it found? And trick in Android.mk?
 Kenny
   
Add to the bionic SYSCALL.txt and call the python script gensyscall.py. 
I hope
that it fix your issue

Michael
 On Jul 2, 8:16 pm, Michael Trimarchi trimar...@gandalf.sssup.it
 wrote:
   
 Kenny Yu wrote:
 
 I am porting a C program. Very simple - it refers to a C function
 declared in BIONIC libc:
   
 device/bionic/libc/include/unistd.h
 at line 142 (CUPCAKE version) as
 extern int fdatasync(int);
   
 Link failure is seen because libc.so doesn't have the implementation:
 external/sysstat/sadc.c:901: undefined reference to `fdatasync'
 collect2: ld returned 1 exit status
   
 Can anyone figure out where the function fdatasync() is implemented?
   
 I think that is a syscall so just add to the syscall list.
 Michael



 
 It should call syscall fdatasync eventually.
   
 Kenny- Hide quoted text -
   
 - Show quoted text -
 
 

   


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



[android-porting] Re: USSD feature on Android

2009-06-26 Thread Michael Trimarchi

Henrik Persson wrote:
 Hi there,

   
 From: android-porting@googlegroups.com
 
 [mailto:android-port...@googlegroups.com] On Behalf Of Rakesh Kumar
   
 Sent: den 26 juni 2009 09:35
 To: android-porting@googlegroups.com;
 
 omapandroid-discuss...@omapzoom.org
   
 Subject: [android-porting] USSD feature on Android

  
 Hi,
I am working on USSD feature on Android. USSD data is coming as
 
 Unsolicited response whem I am giving AT+CUSD command. Now , Please help
 me how to handle these data.

 I guess you are trying to implement this in the RIL. It should be as
 simple as parsing the +CUSD unsolicited response and sending it to the
 android framework as an RIL_UNSOL_ON_USSD unsolicited response.
   
I start to work on it, but I don't terminated because, there is 
somenthing wrong
in the response. Put in
static void onUnsolicited (const char *s, const char *sms_pdu)
{
...

else if (strStartsWith(s, +CUSD:)) {
char *response[2] = { NULL, NULL };
char **cur;
char *tmp;

line = strdup(s);
tmp = line;
at_tok_start(tmp);

err = at_tok_nextstr(tmp, (response[0]));
if (err  0) {
LOGE(Error code not present);
goto out;
}

err = at_tok_nextstr(tmp, (response[1]));

RIL_onUnsolicitedResponse(
RIL_UNSOL_ON_USSD,
response, sizeof(response));
}

Maybe you have time and you can fix
Michael

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



[android-porting] Re: rild options priority

2009-06-18 Thread Michael Trimarchi

hikeit wrote:
 Quick question for the community...
 It seems that setting the RILD library path and tty can be done in
 multiple locations.

 In boot.img it can be set in default.prop as:
 rild.libpath=/system/lib/libreference-ril.so
 rild.libargs=-d /dev/smd0

   

 In boot.img it can be set in init.rc as:
 service ril-daemon /system/bin/rild -l /system/lib/libreference-ril.so
 -- -d /dev/smd0
   
Look at the code, seems that it check the -l option and then it looks 
for the
property database to load the library. I don't know the difference 
between the
system.prop and build.prop
Michael
 In system.img it can be set in build.prop as:
 rild.libpath=/system/lib/libreference-ril.so
 rild.libargs=-d /dev/smd0


 What takes precedence? If different arguments are specified in each
 one, which will actually take effect?
 I'll be testing it out empirically, but if someone already knows the
 answer, that'd be quicker :D

 Thanks!
 

   


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



[android-porting] Re: touchscreen tsc2102 on I.mx27

2009-06-16 Thread Michael Trimarchi

Hi,

xro wrote:
 i'm alone... please help
 

   
Can you write to me? michael at panicking.kicks-ass.org

so I can help you and share my experience on freerunner.

Michael

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



[android-porting] Re: touchscreen tsc2102 on I.mx27

2009-06-12 Thread Michael Trimarchi

Yes
xro wrote:
 nobody have an idea???

 i use a tsc2102 touchscreen... the driver is the 210x_ts and it use
 the tslib

 please help me!
   
Can you apply the same patches of the neo freerunner, that use 
tslib.conf file
http://git.moko.serdar-dere.net/?p=platform/frameworks/base.git;a=commitdiff;h=2a64d1c9d0406c3abd57729b583df5933da908f7


Regards Michael
 

   


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



[android-porting] Re: touchscreen tsc2102 on I.mx27

2009-06-12 Thread Michael Trimarchi

xro wrote:
 I tried the patch and it's not better...

 should i modify the driver tsc2102_ts.c and compile my kernel again?

 that's my driver:


 #include linux/errno.h
 #include linux/kernel.h
 #include linux/module.h
 #include linux/input.h
 #include linux/init.h
 #include linux/platform_device.h
 #include linux/kbd_kern.h

 #include linux/spi/tsc2102.h

 #define DRIVER_NAME TSC210x Touchscreen

 struct input_dev *dev;

 static void tsc210x_touch(int touching)
 {
   if (!touching) {
   input_report_abs(dev, ABS_X, 0);
   input_report_abs(dev, ABS_Y, 0);
   input_report_abs(dev, ABS_PRESSURE, 0);
   input_sync(dev);
   }

   input_report_key(dev, BTN_TOUCH, touching);


   //do_poke_blanked_console = 1;
 }

 static void tsc210x_coords(int x, int y, int z1, int z2)
 {
   int p;

   /* Calculate the touch resistance a la equation #1 */
   if (z1 != 0)
   p = x * (z2 - z1) / (z1  4);
   else
   p = 1;
   

   input_report_abs(dev, ABS_X, x);
   input_report_abs(dev, ABS_Y, y);
   
Can you try to report the BTN_TOUCH too?
input_report_key(dev, BTN_TOUCH, 1);

Michael



   input_report_abs(dev, ABS_PRESSURE, p);
   input_sync(dev);
 }

 static int tsc210x_ts_probe(struct platform_device *pdev)
 {
   int status;

   dev = input_allocate_device();
   if (!dev)
   return -ENOMEM;

   status = tsc210x_touch_cb(tsc210x_touch);
   if (status) {
   goto error;
   }

   status = tsc210x_coords_cb(tsc210x_coords);
   if (status) {
   goto error;
   }

   dev-name = DRIVER_NAME;
   dev-dev.parent = pdev-dev;
   dev-evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
   dev-keybit[BIT_WORD(BTN_TOUCH)] |= BIT_MASK(BTN_TOUCH);
   dev-absbit[0] = BIT_MASK(ABS_X) | BIT_MASK(ABS_Y) | BIT_MASK
 (ABS_PRESSURE);
   status = input_register_device(dev);
   if (status) {
   printk(KERN_INFO Unable to register TSC210x as input device 
 !\n);
   goto error;
   }

   printk(DRIVER_NAME  driver initialized\n);
   return 0;

 error:
   input_free_device(dev);
   return status;
 }

 static int tsc210x_ts_remove(struct platform_device *pdev)
 {
   tsc210x_touch_cb(0);
   tsc210x_coords_cb(0);
   input_unregister_device(dev);
   return 0;
 }

 static int
 tsc210x_ts_suspend(struct platform_device *pdev, pm_message_t state)
 {
   /* Nothing yet */
   return 0;
 }

 static int tsc210x_ts_resume(struct platform_device *pdev)
 {
   /* Nothing either */
   return 0;
 }

 static struct platform_driver tsc210x_ts_driver = {
   .probe  = tsc210x_ts_probe,
   .remove = tsc210x_ts_remove,
   .suspend= tsc210x_ts_suspend,
   .resume = tsc210x_ts_resume,
   .driver = {
   .name   = tsc210x-ts,
   },
 };

 static int __init tsc210x_ts_init(void)
 {
   int ret;

   ret = platform_driver_register(tsc210x_ts_driver);
   if (ret)
   return -ENODEV;

   return 0;
 }

 static void __exit tsc210x_ts_exit(void)
 {
   platform_driver_unregister(tsc210x_ts_driver);
 }

 module_init(tsc210x_ts_init);
 module_exit(tsc210x_ts_exit);

 MODULE_AUTHOR(Andrzej Zaborowski);
 MODULE_DESCRIPTION(Touchscreen input driver for TI TSC210x.);
 MODULE_LICENSE(GPL);
 

   


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



[android-porting] Re: ppp daemon not starting

2009-06-12 Thread Michael Trimarchi

Hi,

Rakesh Kumar wrote:
 Hi,
 When I am trying to connect to GPRS. I am getting an error related 
 with ppp daemon, because of which ppp0 interface is not getting 
 created. Can somebody look at the following logs and tell me what is 
 the problem here.

 
 D/AT  (  720): AT AT+CGQREQ=1
 D/AT  (  720): AT OK
 D/AT  (  720): AT AT+CGQMIN=1
 D/AT  (  720): AT OK
 D/AT  (  720): AT AT+CGACT=1
 D/AT  (  720): AT OK
 D/AT  (  720): AT ATD*99***1#

 #
 # init: sys_prop: Unable to start service ctl [pppd_gprs] uid: 1001 
 pid:926
Can you try
http://git.moko.serdar-dere.net/?p=platform/system/core.git;a=commitdiff;h=84ad5817e23c26400959a36ad42d5806b1a4512d

My pppd daemon connect using a virtual channel. What is your pppd entry 
in init.rc

Michael



Michael

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



[android-porting] Re: Android support pthread_setschedprio() ????

2009-06-07 Thread Michael Trimarchi

Hi,

venu wrote:
 Hi Yogi,
  
 In case you are getting that error it means that it is not supported 
 by you use the one which michael suggested but that can only done 
 during thread creation time not dynamically... these are nothing to do 
 with anriod but it dependent on posix library used in the
 anriod.
but I think that the second one is dynamically because
the code use the sys_sched_setscheduler that change the policy and the 
priority of the thread. Maybe is possible to create a stub of the
setprio, just take the current sched_param, change the prio field and 
call the pthread_setschedparam
  
 Cheers,
 Venu
Michael

 On Sun, Jun 7, 2009 at 2:39 PM, Michael Trimarchi 
 trimar...@gandalf.sssup.it mailto:trimar...@gandalf.sssup.it wrote:


 Hi,

 Yogi wrote:
  Hi All,
 
  I want to change the pthread priority which i have created using
  pthread_create() function.
  I tried with pthread_setschedprio() pthread function, but i throws
  linking error as below:
 
  undefined reference to `pthread_setschedprio'
 
 pthread_attr_setschedparam
 pthread_setschedparam

 The two funtions are implemented. You can see the code in the
 bionic. I
 never used them
 but I think that they do the right thing.

 Michael
  Is pthread pthread_setschedprio() function supported on android?
  Can you please suggest how I can resolve this error?
 
  Thanks  Regards,
  Yogesh
 
  
 
 



 -- 
 - J. Venumadhav

 


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



[android-porting] Re: GSM Modem

2009-06-06 Thread Michael Trimarchi

Hi,

Sean McNeil wrote:
 IMHO this would be a really bad feature and a severe security hole. 
 Android should never allow this. This is one reason I've always opposed 
 a separate multiplexer daemon as it would allow more than just the RIL 
 to talk directly to the modem.
   
I'm agree with Sean. I'm doing the same thing with my vchanneld 
multiplexer and move to
the RIL, but not only for security reason but for a better stability of 
gprs channel.
Michael
 fgilani wrote:
   
 Is it possible to send AT commands directly to the GSM modem on the
 HTC dream or any other android handset? Doesn't seem like there's any
 way to do that other than to write a radio specific code.

 Thanks.
 
 
   
 


 

   


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



[android-porting] copybit hw device

2009-06-01 Thread Michael Trimarchi

Hi all,

I think that is not strictly related to the android, but how can I open 
and mmap the /dev/mem
device?
I give to it the root:graphics and 660 but the open operation is not 
permitted. I use it
to map my graphics register.

Micahel

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



[android-porting] Re: Soft Keyboard stopped unexpectedly...

2009-05-25 Thread Michael Trimarchi

Hi,

ertan...@gmail.com wrote:
 So is there anything we can do to solve it?

 I didn't change anything related to permissions, why would a problem
 like this occur?
   
Can you send me the crash. The best thing is to understand
where the crash is and look at the code. The code is under
packages/inputmethods/LatinIme/src I think.
Michael


 On May 23, 6:54 am, Jim Pai chiji...@gmail.com wrote:
   
 I have met the situation, but it's happened on PinyinIME.
 I checked the log, seems the permission so that the CandidateView
 can't be create.

 On 5月23日, 上午12時32分, ertan...@gmail.com ertan...@gmail.com wrote:

 
 Can somebody guide me on how to debug this please?
   
 LatinIME is not working on my device. How can I debug it?
   
 

   


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



[android-porting] sensors on cupcake

2009-05-23 Thread Michael Trimarchi

Hi all,

Is there a good example or an howto to write a libsensors library or 
just take a look
at the includes and frameworks code to understand how it works?

Michael

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



[android-porting] Re: sensors on cupcake

2009-05-23 Thread Michael Trimarchi

Hi,

pramod gurav wrote:
 On Sat, May 23, 2009 at 4:19 PM, Michael Trimarchi
 trimar...@gandalf.sssup.it wrote:
   
 Hi all,

 Is there a good example or an howto to write a libsensors library or
 just take a look
 at the includes and frameworks code to understand how it works?

 Michael

 
 Hi Michael,
 You can refer the qemu sensor implementation to write your own sensor library.
 Look at development/emulator/sensors/
 Even look at hardware/libhardware/include/hardware/sensors.h for reference.

   
Thank's a lot :).
Michael



   


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



[android-porting] Re: [android-porting]About RILD system

2009-05-20 Thread Michael Trimarchi

Song Johnny wrote:
 to be more, I wonder service layer will keep connecting the rild 
 socket so that the rild daemon listen thread will accept and build the 
 connection, but did that way work inefficiently?

 On Tue, May 19, 2009 at 2:15 PM, Song Johnny ayi.s...@gmail.com 
 mailto:ayi.s...@gmail.com
 wrote:

 Hi,

 Now I am looking RILD system in Android.  I have got some idea
 about the processing in RILD.  when dailing, phone service will
 process dail request and then get the rild socket to connect with
 rild daemon.  After connection, service layer will transfer the
 data package to rild daemon, and rild daemon will process the
 information included in the data package then rild daemon opens
 ttyS device to comunicate with modem. 

 To me, after response, rild daemon will send the data from modem
 to service layer through the same rild socket.  and that's the big
 picture of the whole procesure about RILD to process dail request.

 BUT, after that, rild daemon will close the rild socket, which
 means there is no permanent connection between phone service and
 rild daemon.  So, I cannot figure out the case when incoming call,
 how RILD would process the information and send it to phone
 service! because I have not found the socket connection request in
 RILD source.

Have you take a look at libril/ril.cpp. That file contains the message 
communition between
the rild and upper layer.
Michael

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



[android-porting] Re: Soft keyboard

2009-05-20 Thread Michael Trimarchi

Hi,

Elvis Dowson wrote:
 Hi Michael,
  I am working with android-sdk-1.5-pre branch at the
 moment. I briefly tried the official android-1.5-sdk but there was
 some compilation problems, so I decided to stick to the pre-release
 sdk version for the moment.

 Elvis
 

sqlite select * from secure;
1|bluetooth_on|0
2|data_roaming|0
3|install_non_market_apps|0
4|location_providers_allowed|network
5|network_preference|1
6|usb_mass_storage_enabled|1
7|wifi_on|0
8|wifi_networks_available_notification_on|1
9|mock_location|1

I change entry 20 and 21 but nothing happen.

20|enabled_input_methods|com.example.android.softkeyboard/.SoftKeyboard
21|default_input_method|com.example.android.softkeyboard/.SoftKeyboard
22|adb_enabled|1
sqlite

I try to change my settings.db.

Michael

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



[android-porting] Re: Soft keyboard

2009-05-20 Thread Michael Trimarchi

Michael Trimarchi wrote:
 Hi,

 Elvis Dowson wrote:
   
 Hi Michael,
  I am working with android-sdk-1.5-pre branch at the
 moment. I briefly tried the official android-1.5-sdk but there was
 some compilation problems, so I decided to stick to the pre-release
 sdk version for the moment.

 Elvis
 
 sqlite select * from secure;
 1|bluetooth_on|0
 2|data_roaming|0
 3|install_non_market_apps|0
 4|location_providers_allowed|network
 5|network_preference|1
 6|usb_mass_storage_enabled|1
 7|wifi_on|0
 8|wifi_networks_available_notification_on|1
 9|mock_location|1

 I change entry 20 and 21 but nothing happen.

 20|enabled_input_methods|com.example.android.softkeyboard/.SoftKeyboard
 21|default_input_method|com.example.android.softkeyboard/.SoftKeyboard
   
That is a try. I figured out what is the right value, anyone knows or 
give me a dump
of his settings.db

Michael
 22|adb_enabled|1
 sqlite

 I try to change my settings.db.

 Michael

 

   


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



[android-porting] Re: Soft keyboard

2009-05-20 Thread Michael Trimarchi

I fix my problem

Regards
Michael Trimarchi

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



[android-porting] Re: Ringtones in last build

2009-05-19 Thread Michael Trimarchi

Hi,

Luca Belluccini wrote:
 Nothing to do... Database is not rebuilt... Any hint?

 On Apr 17, 2:31 am, Dave Sparks davidspa...@android.com wrote:
I have the same problem:

W/AudioService(  794): MediaPlayer IOException: java.io.IOException: 
setDataSource failed.: status=0x8000
E/MediaPlayerService(  777): Couldn't open fd for 
content://settings/system/ringtone
E/MediaPlayer( 1121): Unable to to create media player
E/RingtoneManager( 1121): Failed to open ringtone 
content://settings/system/ringtone
E/MediaPlayer( 1121): Unable to to create media player
D/dalvikvm( 1121): GC freed 6212 objects / 451768 bytes in 143ms
W/Ringtone( 1121): Couldn't set the stream type
W/Ringtone( 1121): java.io.IOException: setDataSourceFD failed.: 
status=0x8000
W/Ringtone( 1121): at android.media.MediaPlayer.setDataSource(Native 
Method)
W/Ringtone( 1121): at 
android.media.Ringtone.openMediaPlayer(Ringtone.java:173)
W/Ringtone( 1121): at 
android.media.Ringtone.setStreamType(Ringtone.java:87)
W/Ringtone( 1121): at 
android.preference.VolumePreference$SeekBarVolumizer.initSeekBar(VolumePreference.java:154)


How this url are mapped in the filesystem?

Michael
 From the shell: wipe data

 On Apr 16, 2:33 pm, Luca Belluccini lucabellucc...@gmail.com wrote:

 Mh... There's a command line way to do this? I'm on a real eeepc. I
 don't think reset to default is able to fix this.
 On 16 Apr, 22:18, Dave Sparks davidspa...@android.com wrote:
 This should happen automatically. Did reset the data partition?
 On Apr 16, 2:51 am, Luca Belluccini lucabellucc...@gmail.com wrote:
 I built the installer image for x86 (added include frameworks/base/
 data/sounds/OriginalAudio.mk in mk files).
 The ogg files are correctly placed under system/media/audio/
 ringtones/.
 When I go in settings panel, no ringtone is displayed.
 In logcat, I can see:
 MediaPlayerService: Couldn't open fd for 
 content://settings/system/ringtone
 MediaPlayer: Unable to create media player
 RingtoneManager: Failed to open ringtone 
 content://settings/system/ringtone
 How to refresh content provider entries?

 



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



[android-porting] Re: Ringtones in last build

2009-05-19 Thread Michael Trimarchi

Hi,

Sean McNeil wrote:
 You need to read frameworks/base/data/sounds/AudioPackage2.mk.

 Basically, there are 2 sets of audio files now. One for limited flash 
 devices, one for those that have more room. So you have to include the 
 .mk for the set that fits your environment. This would be done in your 
 vendor/xxx/xxx/Android.mk or some place similar.
   
Thanks , I have done now :), you are great...
I have some trouble with the new patch on alsa. Maybe I fix with a 
revert of
your last commit, but It is
related to somenthing compilation issue under freerunner.

So when it try to open a device, it gives an error on the device 
subtype, but I'm
sure that always is correct. Do you have any idea. Last time I must 
readd the short-enums
option because crash in a function, but now every revert is impposible. 
You work a lot
on alsa side, can you give me some hint?

Michael
 Michael Trimarchi wrote:
   
 Hi,

 Luca Belluccini wrote:
   
 
 Nothing to do... Database is not rebuilt... Any hint?

 On Apr 17, 2:31 am, Dave Sparks davidspa...@android.com wrote:
 
   
 I have the same problem:

 W/AudioService(  794): MediaPlayer IOException: java.io.IOException: 
 setDataSource failed.: status=0x8000
 E/MediaPlayerService(  777): Couldn't open fd for 
 content://settings/system/ringtone
 E/MediaPlayer( 1121): Unable to to create media player
 E/RingtoneManager( 1121): Failed to open ringtone 
 content://settings/system/ringtone
 E/MediaPlayer( 1121): Unable to to create media player
 D/dalvikvm( 1121): GC freed 6212 objects / 451768 bytes in 143ms
 W/Ringtone( 1121): Couldn't set the stream type
 W/Ringtone( 1121): java.io.IOException: setDataSourceFD failed.: 
 status=0x8000
 W/Ringtone( 1121): at android.media.MediaPlayer.setDataSource(Native 
 Method)
 W/Ringtone( 1121): at 
 android.media.Ringtone.openMediaPlayer(Ringtone.java:173)
 W/Ringtone( 1121): at 
 android.media.Ringtone.setStreamType(Ringtone.java:87)
 W/Ringtone( 1121): at 
 android.preference.VolumePreference$SeekBarVolumizer.initSeekBar(VolumePreference.java:154)


 How this url are mapped in the filesystem?

 Michael
   
 
 From the shell: wipe data

 On Apr 16, 2:33 pm, Luca Belluccini lucabellucc...@gmail.com wrote:

   
 
 Mh... There's a command line way to do this? I'm on a real eeepc. I
 don't think reset to default is able to fix this.
 On 16 Apr, 22:18, Dave Sparks davidspa...@android.com wrote:
 
   
 This should happen automatically. Did reset the data partition?
 On Apr 16, 2:51 am, Luca Belluccini lucabellucc...@gmail.com wrote:
   
 
 I built the installer image for x86 (added include frameworks/base/
 data/sounds/OriginalAudio.mk in mk files).
 The ogg files are correctly placed under system/media/audio/
 ringtones/.
 When I go in settings panel, no ringtone is displayed.
 In logcat, I can see:
 MediaPlayerService: Couldn't open fd for 
 content://settings/system/ringtone
 MediaPlayer: Unable to create media player
 RingtoneManager: Failed to open ringtone 
 content://settings/system/ringtone
 How to refresh content provider entries?
 
   
   
 
 
   
 


 

   


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



[android-porting] Soft keyboard

2009-05-19 Thread Michael Trimarchi

Hi all,

where can I find why my softkeyboard doesn't show?

Michael

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



[android-porting] Re: Soft keyboard

2009-05-19 Thread Michael Trimarchi

Hi,

Elvis Dowson wrote:
 Hi Michael,
If you use android-1.5 SDK, the new soft keyboard 
 comes up directly. If you click on the google search bar it pops up.

 Elvis
No way, the softkeyboard doesn't appear. I think that is some stupid 
issue about
the configuration or such police. It is impossible to set on setting the 
use of softkeyboard
and I don't know exaclty where I can find how it is implemented.

Michael

 On Tue, May 19, 2009 at 2:07 PM, Michael Trimarchi 
 trimar...@gandalf.sssup.it mailto:trimar...@gandalf.sssup.it wrote:


 Hi all,

 where can I find why my softkeyboard doesn't show?

 Michael




 


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



[android-porting] Re: Soft keyboard

2009-05-19 Thread Michael Trimarchi

Hi,

Michael Trimarchi wrote:
 Hi,

 Elvis Dowson wrote:
   
 Hi Michael,
If you use android-1.5 SDK, the new soft keyboard 
 comes up directly. If you click on the google search bar it pops up.

 Elvis
 
 No way, the softkeyboard doesn't appear. I think that is some stupid 
 issue about
 the configuration or such police. It is impossible to set on setting the 
 use of softkeyboard
 and I don't know exaclty where I can find how it is implemented.

   
I use the cupcake branch :)... update at the last revision
Michael
 Michael
   
 On Tue, May 19, 2009 at 2:07 PM, Michael Trimarchi 
 trimar...@gandalf.sssup.it mailto:trimar...@gandalf.sssup.it wrote:


 Hi all,

 where can I find why my softkeyboard doesn't show?

 Michael




 


 

   



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



[android-porting] Re: Porting ANDROID on S3C2440 Platform

2009-05-08 Thread Michael Trimarchi

Hi,

Vinay R Rao wrote:
 Hi all,

 I am a newbie in ANDROID.

 My first question is : HAS ANYONE PORTED ANDROID ON S3C2440 (armv4
 Architecture ) PLATFORM SUCCESSFULLY?

 I am trying to port ANDROID on S3C2440 platform which is a arm920T and
 ARMv4 architecture.
 Linux version which i am using is 2.6.27. I have done the required
 changes in my Linux-2.6.27 kernel by looking into the diff of the
 ANDROID Linux-2.6.27 kernel which comes along with the ANDROID SDK.
 The kernel gets compiled successfully without any errors after the
 ANDROID support is given.

 I referred the benno's blog ( Android on ARMv4 (take 2) section )
 and applied the patches to the ANDROID SDK given in the benno's blog.
 I am using the arm-android-eabi- toolchain given in the benno's
 blog. ANDROID SDK gets compiled successfully but the init.rc file is
 not getting generated in android-SDK/out/target/product/generic/root
 directory.

 I copied all the required files and folders from the android-SDK/out/
 target/product/generic/root directory to my root file system. when i
 boot the Linux-2.6.27 kernel (with android related changes)  on the
 s3c2440 platform the following error occurs :

 Kernel panic - not syncing: Attempted to kill init!

 I don't know where exactly the problem is. Please help me in solving
 the problem. Where am i going wrong?
The koolu repository for the freerunner is a good starting point.
Michael


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



[android-porting] Re: Timer running in hciattach

2009-05-08 Thread Michael Trimarchi

Hi,

BHEEMSEN KULKARNI wrote:
 Hi,

 There is piece code in the hciattach poll(p, 1, 500), which is poll for
 every 500 msec.

 main()
 {   
 while (!__io_canceled) {
 p.revents = 0;
 err = poll(p, 1, 500);
In my code the poll is every 5000 seconds, but maybe is a different version
 if (err  0  errno == EINTR)
 continue;
 if (err)
 break;
 }
 what is this piece of this does exactly,because of polling off every 500
 msec causes the System not going to Sleep state.
Why the poll on a file descriptor cause the no sleep state?

 Can I increase timer value?

 Regards
 Bheemsen K

 


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



[android-porting] Re: Timer running in hciattach

2009-05-08 Thread Michael Trimarchi

BHEEMSEN KULKARNI wrote:
 HI Michael,

 Thanks for your reply,

 Which version of Bluez-utils are you using?

 This timer is not the System to go to sleep, basically in the system 
 Idle thread start when there is no activity on the system and it 
 should stay in the idle state for some time (in our case it is more 
 than 500 msec) to achieve the full system sleep (Core Off).
Now it is clear, you are talking about deep idle mode of the micro. I 
don't understand
why it works in polling mode and why you can't choose the timeout value.
I'm working on the git repository of koolu but and an old checkout of 
android I have the
same value. Are we talking about the vi ./utils/tools/hciattach.c file?

 On Fri, May 8, 2009 at 5:18 PM, Michael Trimarchi 
 trimar...@gandalf.sssup.it mailto:trimar...@gandalf.sssup.it wrote:


 Hi,

 BHEEMSEN KULKARNI wrote:
  Hi,
 
  There is piece code in the hciattach poll(p, 1, 500), which
 is poll for
  every 500 msec.
 
  main()
  {
  while (!__io_canceled) {
  p.revents = 0;
  err = poll(p, 1, 500);
 In my code the poll is every 5000 seconds, but maybe is a
 different version
  if (err  0  errno == EINTR)
  continue;
  if (err)
  break;
  }
  what is this piece of this does exactly,because of polling off
 every 500
  msec causes the System not going to Sleep state.
 Why the poll on a file descriptor cause the no sleep state?
 
  Can I increase timer value?
 
  Regards
  Bheemsen K
 
  





 


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



[android-porting] Re: power management cpu suspend not working - android-2.6.29 port to overo

2009-04-27 Thread Michael Trimarchi

Hi,

Elvis Dowson wrote:
 Hi,
   Within a minute, the system tries to suspend itself. I have
 enabled CPU suspend support in the kernel. However, the system tries
 to suspend itself and does not succeed, and keeps flickering the
 screen as it tires to go into suspend mode.

 How can I fix this?
   
You can avoid suspend setting the display timeout to no timeout,
if I remember or just stay awake when is powerup in the settings menu

 request_suspend_state: sleep (0-3) at 136781494130 (2000-01-01
 00:02:15.577270442 UTC)
 D/SurfaceFlinger(  873): About to give-up screen, flinger = 0x185220
 PM: Syncing filesystems ... done.
 Freezing user space processes ... (elapsed 0.00 seconds) done.
 Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
 Suspending console(s) (use no_console_suspend to debug)
 mmc0: card 05fd removed
 MMC: killing requests for dead queue
 PM: suspend devices took 0.351 seconds
 Class driver suspend failed for cpu0
 wakeup wake lock: mmc_delayed_work
 PM: resume devices took 0.140 seconds
 Restarting tasks ... 7hub 1-0:1.0: state 7 ports 1 chg  evt 

 Best regards,

 Elvis

 Here is the full log from when the system tries to sleep:

 request_suspend_state: sleep (0-3) at 136781494130 (2000-01-01
 00:02:15.577270442 UTC)
 D/SurfaceFlinger(  873): About to give-up screen, flinger = 0x185220
 PM: Syncing filesystems ... done.
 Freezing user space processes ... (elapsed 0.00 seconds) done.
 Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
 Suspending console(s) (use no_console_suspend to debug)
 mmc0: card 05fd removed
 MMC: killing requests for dead queue
 PM: suspend devices took 0.351 seconds
 Class driver suspend failed for cpu0
 wakeup wake lock: mmc_delayed_work
 PM: resume devices took 0.140 seconds
 Restarting tasks ... 7hub 1-0:1.0: state 7 ports 1 chg  evt 
 I/vold(  833): MMC card 'SD5done.
 12' (serial 2151005081) @ /classsuspend: exit suspend, ret = 0
 (2000-01-01 00:02:16.759246766 UTC)
 /mmc_host/mmc0/mmc0:05fd removed
 mmc0: mmc_rescan - card ocr from io_op=0x, err = -110
 mmc0: host does not support reading read-only switch. assuming write-
 enable.
 mmc0: new SD card at address 05fd
 I/vold(  833): New MMC card mmcblk1: mmc0:05fd SD512 488 MiB
 'SD512' (serial 2151005081) adde mmcblk1:d @ /class/mmc_host/mmc0/
 mmc0:05 p1fd
  p2
 mmc1: mmc_rescan - card ocr from io_op=0x, err = -110
 PM: Syncing filesystems ... done.
 Freezing user space processes ... (elapsed 0.00 seconds) done.
 Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
 Suspending console(s) (use no_console_suspend to debug)
 mmc0: card 05fd removed
 MMC: killing requests for dead queue
 PM: suspend devices took 0.351 seconds
 Class driver suspend failed for cpu0
 wakeup wake lock: mmc_delayed_work
 PM: resume devices took 0.140 seconds
 Restarting tasks ... 7hub 1-0:1.0: state 7 ports 1 chg  evt 
 I/vold(  833): MMC card 'SD5done.
 12' (serial 2151005081) @ /classsuspend: exit suspend, ret = 0
 (2000-01-01 00:02:18.539672854 UTC)
 /mmc_host/mmc0/mmc0:05fd removed
 mmc0: mmc_rescan - card ocr from io_op=0x, err = -110
 Spurious irq 95: 0xffdf, please flush posted write for irq 83
 Spurious irq 95: 0xffdf, please flush posted write for irq 83
 mmc0: host does not support reading read-only switch. assuming write-
 enable.
 mmc0: new SD card at address 05fd
 I/vold(  833): New MMC card mmcblk1: mmc0:05fd SD512 488 MiB
 'SD512' (serial 2151005081) adde mmcblk1:d @ /class/mmc_host/mmc0/
 mmc0:05 p1fd
  p2
 mmc1: mmc_rescan - card ocr from io_op=0x, err = -110
 PM: Syncing filesystems ... done.
 Freezing user space processes ... (elapsed 0.00 seconds) done.
 Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
 Suspending console(s) (use no_console_suspend to debug)
 mmc0: card 05fd removed
 MMC: killing requests for dead queue
 PM: suspend devices took 0.351 seconds
 Class driver suspend failed for cpu0
 wakeup wake lock: mmc_delayed_work
 PM: resume devices took 0.140 seconds
 Restarting tasks ... 7hub 1-0:1.0: state 7 ports 1 chg  evt 
 I/vold(  833): MMC card 'SD5done.
 12' (serial 2151005081) @ /classsuspend: exit suspend, ret = 0
 (2000-01-01 00:02:20.008361812 UTC)
 /mmc_host/mmc0/mmc0:05fd removed
 mmc0: mmc_rescan - card ocr from io_op=0x, err = -110
 Spurious irq 95: 0xffdf, please flush posted write for irq 83
 Spurious irq 95: 0xffdf, please flush posted write for irq 83
 mmc0: host does not support reading read-only switch. assuming write-
 enable.
 mmc0: new SD card at address 05fd
 I/vold(  833): New MMC card mmcblk1: mmc0:05fd SD512 488 MiB
 'SD512' (serial 2151005081) adde mmcblk1:d @ /class/mmc_host/mmc0/
 mmc0:05 p1fd
  p2
 mmc1: mmc_rescan - card ocr from io_op=0x, err = -110
 PM: Syncing filesystems ... done.
 Freezing user space processes ... (elapsed 0.00 seconds) done.
 Freezing remaining freezable tasks ... 

[android-porting] Re: page flipping error on Android Port to TI OMAP 3503

2009-04-24 Thread Michael Trimarchi

Hi,
Rupesh Gujare wrote:
 Elvis,

  Probably  you need this patch to support page flipping.

 http://labs.embinux.org/git/cgit.cgi/repo/kernel.git/commit/?id=f2f9b61674dbf2cc8b79b86f2cc63f1bc7c5629b

 Can you share work, about what all stuff you did to port android on overo ?

 Regards,

   
You must apply this patch too :)
Michael

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



[android-porting] Re: wpa_supplicant wifi problems no scan results

2009-04-24 Thread Michael Trimarchi

Gani Bhagavathula wrote:
 Luca:

 I thought I posted this yesterday, but looks like I sent it as a
 Author only reply.  I thought I would put this here for everyone's
 benefit.

 In the changes we both initially did in the wifi.c, the path to the
 module needs to be /lib/modules/ath5k.ko and not /system/lib/modules/
 ath5k.ko.  If you change that, the Module gets loaded properly.  Not
 that the WLAN works, but you dont go into the Airplane Mode.

 The next thing I did was to comment out the line set_prop
 (ctrl.status, WLAN_LOADER); since the logs showed that it was trying
 to load the firmware - ATH5K driver does not need any firmware as far
 as I know.  The error related to this goes away, but I am no closer to
 getting the driver to work.

 Gani

 On Apr 21, 9:41 pm, Luca Belluccini lucabellucc...@gmail.com wrote:
   
 It is not working for me. I did the same changes onwifi.c as you
 pasted here.
 In Android GUI, I can press Enablewifiand I get:
 -module insmodded
 -GUI locked for some seconds
 -reboot
 -Android in airplane mode
 I'm running on a real eeepc701.
 It seems the hot code causing error is:
 wifi_load_driver inwifi.c

 By the way I think we need wpa_supplicant (or it will be launched by
 Android?).
 The property wlan.driver.status must be set. But I don't know which
 value must be set.

 On 21 Apr, 19:40, Gani Bhagavathula gani.bhagavath...@gmail.com
 wrote:

 
 Luca:
   
 If I dont use WPA (and have no wpa_supplicant) is it OK just to change
 thewifi.c like this, and compile the module and make sure it is in
 the init.rc?  Will it connect to a WEP protected network at that
 point?
   
 static const char IFACE_DIR[]   = /data/system/
 wpa_supplicant;
 static const char DRIVER_MODULE_NAME[]  = ath5k;
 static const char DRIVER_MODULE_TAG[]   = ath5k ;
 static const char DRIVER_MODULE_PATH[]  = /system/lib/modules/
 ath5k.ko;
 static const char FIRMWARE_LOADER[] = wlan_loader;
 static const char DRIVER_PROP_NAME[]= wlan.driver.status;
   
 Regards,
 Gani
   
 On Apr 21, 3:54 pm, Luca Belluccini lucabellucc...@gmail.com wrote:
   
 I'm with the same module. I set it NOT built-in.
 You are planning to makewifiinteract with Android GUI?
 I modifiedwifi.c specifying the right path to module to be insmodded.
 By the way I'm having the same SIOCSIWAUTH error, starting manually
 the wpa_supplicant.
 I think it's the main problem.
 
 On 21 Apr, 12:59, Androidphan niels.kee...@tass.nl wrote:
 
 I have an Atheros 5007EG wireless network card at my hardware
 platform. I compiled the kernel(2.6.27) with ath5k built in.
   
 Then I compiled wpa_supplicant with CONFIG_WIRELESS_EXTENSIONS=y
 CONFIG_DRIVER_WEXT=y and CONFIG_CTRL_IFACE=y.
   
 Then in my init.rc :
 mkdir /data/misc/wifi0770wifiwifi
 mkdir /data/misc/wifi/sockets 0770wifiwifi
 mkdir /data/system/wpa_supplicant 0770wifiwifi
 mkdir /data/misc/dhcp 0770 dhcp dhcp
 chown dhcp dhcp /data/misc/dhcp
   
 ifup wlan0
   
 service wpa_supplicant /system/bin/logwrapper /system/bin/
 wpa_supplicant -Dwext -iwlan0 -c/system/etc/wifi/wpa_supplicant.conf -
 dd
 groupwifi
   
 My wpa_supplicant.conf at /system/etc/wifi/wpa_supplicant.conf :
   
 update_config=1
 ctrl_interface=DIR=/data/system/wpa_supplicant GROUP=system
   
 Then when I try to scan with: wpa_cli -p/data/system/wpa_supplicant -
 iwlan0 and then scan  scan_results, I'm getting no scan results, when
 I know there are definitly scan results. Because when I scanned with
 Windows, I do get to see scan results.
   
 What is wrong with my configuration?
   
 My logcat output from wpa_supplicant:
   
 I//system/bin/wpa_supplicant( 2127): Initializing interface 'wlan0'
 conf '/system/etc/wifi/wpa_supplicant.conf' driver 'wext'
 ctrl_interface 'N/A' bridge 'N/A'
 I//system/bin/wpa_supplicant( 2127): Configuration file '/system/etc/
 wifi/wpa_supplicant.conf' - '/system/etc/wifi/wpa_supplicant.conf'
 I//system/bin/wpa_supplicant( 2127): Reading configuration file '/
 system/etc/wifi/wpa_supplicant.conf'
 I//system/bin/wpa_supplicant( 2127): update_config=1
 I//system/bin/wpa_supplicant( 2127): ctrl_interface='DIR=/data/system/
 wpa_supplicant'
 I//system/bin/wpa_supplicant( 2127): Initializing interface (2)
 'wlan0'
 I//system/bin/wpa_supplicant( 2127): EAPOL: SUPP_PAE entering state
 DISCONNECTED
 I//system/bin/wpa_supplicant( 2127): EAPOL: KEY_RX entering state
 NO_KEY_RECEIVE
 I//system/bin/wpa_supplicant( 2127): EAPOL: SUPP_BE entering state
 INITIALIZE
 I//system/bin/wpa_supplicant( 2127): EAP: EAP entering state DISABLED
 I//system/bin/wpa_supplicant( 2127): EAPOL: External notification -
 portEnabled=0
 I//system/bin/wpa_supplicant( 2127): EAPOL: External notification -
 portValid=0
 I//system/bin/wpa_supplicant( 2127): SIOCGIWRANGE: WE(compiled)=22 WE
 (source)=21 enc_capa=0xf
 I//system/bin/wpa_supplicant( 2127):   capabilities: 

[android-porting] Re: wpa_supplicant wifi problems no scan results

2009-04-24 Thread Michael Trimarchi

Hi,

http://git.koolu.org/?p=platform/frameworks/base.git;a=commitdiff;h=7f4c20e7944916e25cc4425de46dbda26705ad74

Find here the revert patch

Michael

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



[android-porting] Re: wpa_supplicant wifi problems no scan results

2009-04-24 Thread Michael Trimarchi

Gani Bhagavathula wrote:
 Michael:

 I have read a reference to the java parser function in some other post
 too, but not sure what it means... Can you give me any more
 information to work with?
   
vi ./base/services/java/com/android/server/WifiService.java

take a look of the code and in particular here
   for (int i = lineBeg; i  lineEnd; ++i) {
- char ch = reply.charAt(i);
- /*
-  * Assume that the signal level starts 
with a '-'
-  */
- if (ch == '-') {
- /*
-  * Skip whatever instances of '-' we 
may have
-  * after we parse the signal level
-  */
- parsingScanResultLevel = 
(scanResultLevel == 0);
- } else if (parsingScanResultLevel) {

As you can see it expect a minus. You can obtain it in the 
wpa_supplicant response
or just revert this change and don't look for -. Add a print in this 
function to see
if it return the list of the wifi network and
good luck


 Regards,
 Gani

 On Apr 24, 9:21 am, Michael Trimarchi trimar...@gandalf.sssup.it
 wrote:
   
 Gani Bhagavathula wrote:
 
 Luca:
   
 I thought I posted this yesterday, but looks like I sent it as a
 Author only reply.  I thought I would put this here for everyone's
 benefit.
   
 In the changes we both initially did in the wifi.c, the path to the
 module needs to be /lib/modules/ath5k.ko and not /system/lib/modules/
 ath5k.ko.  If you change that, the Module gets loaded properly.  Not
 that the WLAN works, but you dont go into the Airplane Mode.
   
 The next thing I did was to comment out the line set_prop
 (ctrl.status, WLAN_LOADER); since the logs showed that it was trying
 to load the firmware - ATH5K driver does not need any firmware as far
 as I know.  The error related to this goes away, but I am no closer to
 getting the driver to work.
   
 Gani
   
 On Apr 21, 9:41 pm, Luca Belluccini lucabellucc...@gmail.com wrote:
   
 It is not working for me. I did the same changes onwifi.c as you
 pasted here.
 In Android GUI, I can press Enablewifiand I get:
 -module insmodded
 -GUI locked for some seconds
 -reboot
 -Android in airplane mode
 I'm running on a real eeepc701.
 It seems the hot code causing error is:
 wifi_load_driver inwifi.c
 
 By the way I think we need wpa_supplicant (or it will be launched by
 Android?).
 The property wlan.driver.status must be set. But I don't know which
 value must be set.
 
 On 21 Apr, 19:40, Gani Bhagavathula gani.bhagavath...@gmail.com
 wrote:
 
 Luca:
   
 If I dont use WPA (and have no wpa_supplicant) is it OK just to change
 thewifi.c like this, and compile the module and make sure it is in
 the init.rc?  Will it connect to a WEP protected network at that
 point?
   
 static const char IFACE_DIR[]   = /data/system/
 wpa_supplicant;
 static const char DRIVER_MODULE_NAME[]  = ath5k;
 static const char DRIVER_MODULE_TAG[]   = ath5k ;
 static const char DRIVER_MODULE_PATH[]  = /system/lib/modules/
 ath5k.ko;
 static const char FIRMWARE_LOADER[] = wlan_loader;
 static const char DRIVER_PROP_NAME[]= wlan.driver.status;
   
 Regards,
 Gani
   
 On Apr 21, 3:54 pm, Luca Belluccini lucabellucc...@gmail.com wrote:
   
 I'm with the same module. I set it NOT built-in.
 You are planning to makewifiinteract with Android GUI?
 I modifiedwifi.c specifying the right path to module to be insmodded.
 By the way I'm having the same SIOCSIWAUTH error, starting manually
 the wpa_supplicant.
 I think it's the main problem.
 
 On 21 Apr, 12:59, Androidphan niels.kee...@tass.nl wrote:
 
 I have an Atheros 5007EG wireless network card at my hardware
 platform. I compiled the kernel(2.6.27) with ath5k built in.
   
 Then I compiled wpa_supplicant with CONFIG_WIRELESS_EXTENSIONS=y
 CONFIG_DRIVER_WEXT=y and CONFIG_CTRL_IFACE=y.
   
 Then in my init.rc :
 mkdir /data/misc/wifi0770wifiwifi
 mkdir /data/misc/wifi/sockets 0770wifiwifi
 mkdir /data/system/wpa_supplicant 0770wifiwifi
 mkdir /data/misc/dhcp 0770 dhcp dhcp
 chown dhcp dhcp /data/misc/dhcp
   
 ifup wlan0
   
 service wpa_supplicant /system/bin/logwrapper /system/bin/
 wpa_supplicant -Dwext -iwlan0 -c/system/etc/wifi/wpa_supplicant.conf -
 dd
 groupwifi
   
 My wpa_supplicant.conf at /system/etc/wifi/wpa_supplicant.conf :
   
 update_config=1
 ctrl_interface=DIR=/data/system/wpa_supplicant GROUP=system
   
 Then when I try to scan with: wpa_cli -p/data/system/wpa_supplicant -
 iwlan0 and then scan  scan_results, I'm getting no scan results, when
 I know there are definitly scan results. Because when I

[android-porting] Re: W/ProcessState: Opening '/dev/binder' failed: Permission denied

2009-04-23 Thread Michael Trimarchi

Hi,

Elvis Dowson wrote:
 Hi Michael,
   I am using the android-2.6-sdk-pre.

 This is how the code looks like right now.

 #define FORBIDDEN_MMAP_FLAGS(VM_WRITE)

 I made the modifications like you suggested, but it still didn't work. 


 #if !defined(__i386__)  !defined(__arm__)
 #define FORBIDDEN_MMAP_FLAGS(VM_WRITE | VM_EXEC)
 #else
 #define FORBIDDEN_MMAP_FLAGS(VM_WRITE)
 #endif


 Here is an extract of the error messages from the console
It was correct.

 W/ProcessState( 1858): Opening '/dev/binder' failed: Permission denied

 Best regards,

 Elvis
ls -l /dev/binder, do you have? What are the permission? According to 
the code

static int
open_driver()
{
if (gSingleProcess) {
return -1;
}

int fd = open(/dev/binder, O_RDWR);
if (fd = 0) {
[...]
} else {
LOGW(Opening '/dev/binder' failed: %s\n, strerror(errno));
}





It fails if it can't open the device. So maybe the device don't exists 
or you don't have
permission over the device. You can find the code here 
frameworks/base/libs/utils/ProcessState.cpp. The binder is import for 
process communication,
android don't use the standard unix IPC channel.

Michael


 


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



[android-porting] Re: W/ProcessState: Opening '/dev/binder' failed: Permission denied

2009-04-23 Thread Michael Trimarchi

Hi,

Elvis Dowson wrote:
 Hi Michael,
  After I run ./init  it resets the permissions back to
 crw-rw 1 root root. I checked the init.rc file and it doesnn't
 alter the permissions. How is it being reset on init? Shouldn't the
 root user be able to read and write to the device, with the current
 set of permissions?

 I am using the ext2 file system. Do you think I should change the
 filesystem to ext3 as a quick check?

 Best regards,

 Elvis
 

   
Do you have any udevd process? I will take a look to my device for the 
permission.
If so kill it and try again

Michael



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



[android-porting] Re: W/ProcessState: Opening '/dev/binder' failed: Permission denied

2009-04-23 Thread Michael Trimarchi

Hi,

Michael Trimarchi wrote:
 Hi,

 Elvis Dowson wrote:
   
 Hi Michael,
  After I run ./init  it resets the permissions back to
 crw-rw 1 root root. I checked the init.rc file and it doesnn't
 alter the permissions. How is it being reset on init? Shouldn't the
 root user be able to read and write to the device, with the current
 set of permissions?

 I am using the ext2 file system. Do you think I should change the
 filesystem to ext3 as a quick check?

 Best regards,

 Elvis
 
   
 
 Do you have any udevd process? I will take a look to my device for the 
 permission.
 If so kill it and try again
   
Android change the persmission on startup and create the device node, so 
the permission
are ok, and are set by init process using the make_device function call.

Michael

 Michael



 

   


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



[android-porting] Re: W/ProcessState: Opening '/dev/binder' failed: Permission denied

2009-04-23 Thread Michael Trimarchi

Hi,

Elvis Dowson wrote:
 Hi Michael,
  Guess what, interestingly enough, I noticed that the
 mmcargs was over-riding the bootargs. Here is what I did..

 # setenv mmcargs setenv bootargs mem=128M console=ttyS2,115200n8 root
 =/dev/mmcblk0p2 rw rootfstype=ext3 init=/init rootwait

 It booted straight into android. However, I could not initialize the
 surface manager because I had disabled pmem. Now I am going to re-
 enable pmem and try again.
   
The pmem I think is not stricly necessay for initializa the surface 
manager. Can you send
you log to my email?
 Best regards,

 Elvis
 

   


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



[android-porting] Re: W/ProcessState: Opening '/dev/binder' failed: Permission denied

2009-04-22 Thread Michael Trimarchi

Elvis Dowson wrote:
 Hi,
  When I boot android on my TI OMAP 3503 platform, using linux-
 omap3-2.6.29 with all android-2.6.29 patches applied, I get the
 following error message when I run logcat:

 W/ProcessState (2583) : Opening '/dev/binder' failed: Permission
 denied

 How can I fix this?
   
Check the binder driver and apply this change. Maybe the sysmcore 
require an incompatible
mapping

#if !defined(__i386__)  !defined(__arm__)
#define FORBIDDEN_MMAP_FLAGS(VM_WRITE | VM_EXEC)
#else
#define FORBIDDEN_MMAP_FLAGS(VM_WRITE)
#endif
 Best regards,

 Elvis
 
   
Regards Michael


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



[android-porting] Re: MX27 Android porting problems

2009-04-21 Thread Michael Trimarchi

Drakou wrote:
 Hello,

 I am actually working on porting Android to an Mx27 custom board. That
 board is really close to the Mx27ADS. I used the Mx31 porting advices
 to make my own porting.

 I have a 2.6.25 kernel with freescale and android patches. I can start
 the system , get the animated ANDROID logo centered on screen  . But
 then nothing more happens. If I look into the log files, there is a
 lot of errors and warnings. But I am too new to android system to spot
 the critical one. So I request some help in analysing the log files. I
 made a little selection of all Warning and Errors lines and some
 usefull debug lines.

 If someone could tell me where to find to solve that problems.

 I/DEBUG   (  400): debuggerd: Apr  2 2009 14:18:20
 I/vold(  399): Android Volume Daemon version 2.0
 E/flash_image(  408): can't find recovery partition
 E/vold(  399): Unable to open '/sys/class/mmc_host' (m)
 E/vold(  399): Unable to open '/sys/class/switch' (m)
 D/vold(  399): Bootstrapping complete
 D/AndroidRuntime(  402):
 D/AndroidRuntime(  402):  AndroidRuntime START
 
 D/AndroidRuntime(  402): CheckJNI is ON
 I/(  403): ServiceManager: 0xac38
 W/AudioHardwareInterface(  403): Using stubbed audio hardware. No
 sound will be produced.
 E/MemoryHeapBase( 1464): error opening /dev/pmem: No such file or
 directory
 E/SurfaceFlinger( 1464): Couldn't open /sys/power/wait_for_fb_sleep
 or /sys/power/wait_for_fb_wake
   
These are not critical, but your android version is not ok:
the 2.6.25 use the /sys/android_power/ path instead of sys/power/path
 E/SurfaceFlinger( 1464): ioctl(20, VT_ACTIVATE, ...) failed, 6 (No
 such device or address) for 7
   
Increase the vt terminal in you kernel configuration
 E/GLLogger( 1464): couldn't load libhgl.so library (Cannot find
 library)
 W/HAL ( 1464): load: module=/system/lib/hw/copybit.intuitive.so
 error=Cannot find library
 W/HAL ( 1464): load: module=/system/lib/hw/copybit.default.so
 error=Cannot find library
 W/SurfaceFlinger( 1464): ro.sf.lcd_density not defined, using 160 dpi
 by default.
 W/HAL ( 1464): load: module=/system/lib/hw/copybit.intuitive.so
 error=Cannot find library
 W/HAL ( 1464): load: module=/system/lib/hw/copybit.default.so
 error=Cannot find library
 W/HAL ( 1464): load: module=/system/lib/hw/overlay.intuitive.so
 error=Cannot find library
 W/HAL ( 1464): load: module=/system/lib/hw/overlay.default.so
 error=Cannot find library
 E/GLLogger( 1464): couldn't load libhgl.so library (Cannot find
 library)
 E/PackageManager( 1464): Package com.android.providers.subscribedfeeds
 requires unavailable shared library com.google.android.gtalkservice;
 ignoring!
 E/PackageManager( 1464): Package com.android.development requires
 unavailable shared library com.google.android.maps; ignoring!
 W/PackageManager( 1464): Unknown permission
 com.google.android.googleapps.permission.GOOGLE_AUTH in package
 com.android.providers.contacts
 W/PackageManager( 1464): Unknown permission
 com.google.android.googleapps.permission.GOOGLE_AUTH.cp in package
 com.android.providers.contacts
 W/PackageManager( 1464): Unknown permission
 com.google.android.providers.gmail.permission.WRITE_GMAIL in package
 com.android.settings
 W/PackageManager( 1464): Unknown permission
 com.google.android.providers.gmail.permission.READ_GMAIL in package
 com.android.settings
 W/PackageManager( 1464): Unknown permission
 com.google.android.googleapps.permission.GOOGLE_AUTH in package
 com.android.settings
 W/PackageManager( 1464): Unknown permission
 com.google.android.googleapps.permission.GOOGLE_AUTH.mail in package
 com.android.calendar
 W/PackageManager( 1464): Unknown permission
 com.google.android.googleapps.permission.GOOGLE_AUTH in package
 com.android.providers.calendar
 W/PackageManager( 1464): Unknown permission
 com.google.android.googleapps.permission.GOOGLE_AUTH.cl in package
 com.android.providers.calendar
 W/PackageManager( 1464): Unknown permission
 com.google.android.googleapps.permission.GOOGLE_AUTH in package
 com.android.browser
 W/PackageManager( 1464): Unknown permission
 com.google.android.googleapps.permission.GOOGLE_AUTH.mail in package
 com.android.contacts
 W/ActivityManager( 1464): Unable to start service Intent
 { action=android.accounts.IAccountsService comp=
 {com.google.android.googleapps/
 com.google.android.googleapps.GoogleLoginSe
 rvice} }: not found
 W/AccountMonitor( 1464): Couldn't connect to Intent
 { action=android.accounts.IAccountsService comp=
 {com.google.android.googleapps/
 com.google.android.googleapps.GoogleLoginService
 } } (Missing service?)
 E/BatteryService( 1464): Could not open '/sys/class/power_supply/ac/
 online'
 E/BatteryService( 1464): Could not open '/sys/class/power_supply/usb/
 online'
 E/BatteryService( 1464): Could not open '/sys/class/power_supply/
 battery/present'
 E/BatteryService( 1464): Could not open '/sys/class/power_supply/
 battery/capacity'
 E/BatteryService( 1464): Could not 

[android-porting] Re: How to Apply Patches?

2009-04-21 Thread Michael Trimarchi

Hi,

Gani Bhagavathula wrote:
 So, if a file had three patches, then I would move to the base
 directory of the files mentioned in the .patch file, and then go

 patch -p1  patchfile.name
 patch -p2  patchfile.name
 patch -p3  patchfile.name
   
the px is not the patch number but the strip on the path as reported 
by the
manual (man patch)

/u/howard/src/blurfl/blurfl.c

setting -p0 gives the entire file name unmodified, -p1 gives

u/howard/src/blurfl/blurfl.c

without the leading slash, -p4 gives

blurfl/blurfl.c

Michael

PS: the man command can help you

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



[android-porting] Re: ALSA Compile Error

2009-04-03 Thread Michael Trimarchi
Harishkumar V wrote:
 Hi, able to proceed with the alsa_sound,

 now  during linking alsa_lib, its getting following errors,

 target arm C: libasound = 
 hardware/beagle/alsa-lib/src/control/control_shm.c
 hardware/beagle/alsa-lib/src/control/control_shm.c:28:21: error: 
 sys/shm.h: No such file or directory
 hardware/beagle/alsa-lib/src/control/control_shm.c: In function 
 'snd_ctl_shm_close':
 hardware/beagle/alsa-lib/src/control/control_shm.c:95: warning: 
 implicit declaration of function 'shmdt'
 hardware/beagle/alsa-lib/src/control/control_shm.c: In function 
 'snd_ctl_shm_open':
 hardware/beagle/alsa-lib/src/control/control_shm.c:523: warning: 
 implicit declaration of function 'shmat'
 hardware/beagle/alsa-lib/src/control/control_shm.c:523: warning: 
 assignment makes pointer from integer without a cast
 make: *** 
 [out/target/product/generic/obj/STATIC_LIBRARIES/libasound_intermediates/src/control/control_shm.o]
  
 Error

 have anybody went across this ?

 Regards,
 HarishKumar.V

  1M, Harishkumar V harishpres...@gmail.com 
 mailto:harishpres...@gmail.com wrote:

 Have anybody solved this issue of compiling ALSA, after making
 repo sync to updated the previous android source and then build.

 Regards,
 HarishKumar.V


 On Thu, Apr 2, 2009 at 7:29 AM, lihongxia8...@gmail.com
 mailto:lihongxia8...@gmail.com lihongxia8...@gmail.com
 mailto:lihongxia8...@gmail.com wrote:


 some method you do not write , maybe the method of openinputstream

 On Mar 25, 10:35 am, Sean McNeil seanmcne...@gmail.com
 mailto:seanmcne...@gmail.com wrote:
  archerypp wrote:
   I have updated my Android to the latest one using 'repo sync'.
 
  That was a mistake. The main Android repo is currently
 broken.ALSAwill
  not be updated until main can be compiled withoutALSA.
 
 
 
   But I met this error while compiling it.
   The log is :
   target arm C++: libaudio =
 hardware/alsa_sound/AudioHardwareALSA.cpp
   hardware/alsa_sound/AudioHardwareALSA.cpp: In function
   'android::AudioHardwareInterface* createAudioHardware()':
   hardware/alsa_sound/AudioHardwareALSA.cpp:65: error:
 cannot allocate
   an object of abstract type 'android::AudioHardwareALSA'
   hardware/alsa_sound/AudioHardwareALSA.h:208: note:  
 because the
   following virtual functions are pure within
   'android::AudioHardwareALSA':
   hardware/libhardware_legacy/include/hardware_legacy/
   AudioHardwareInterface.h:223: note: virtual
   android::AudioStreamIn*
   android::AudioHardwareInterface::openInputStream(int, int,
 uint32_t,
   android::status_t*, android::AudioSystem::audio_in_acoustics)
   make: *** [out/target/product/iM9815/obj/SHARED_LIBRARIES/
   libaudio_intermediates/AudioHardwareALSA.o] Error 1
 
   Has anybody met this before? How to resolve it?- Hide
 quoted text -
 
  - Show quoted text -




 


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

# this file is used to list all the syscalls that will be supported by
# the Bionic C library. It is used to automatically generate the syscall
# stubs, the list of syscall constants (__NR_) and the content of 
linux/_unitsd.h
#
# each non comment line has the following format:
#
# return_typefunc_name[:syscall_name[:call_id]]([parameter_list])  
(#syscall_number|stub)
#
# note that:
#  - syscall_name correspond to the name of the syscall, which may differ 
from
#the exported function name (example: the exit syscall is implemented 
by the _exit()
#function, which is not the same as the standard C exit() function 
which calls it)
#The call_id parameter, given that func_name and syscall_name have
#been provided, allows the user to specify dispatch style syscalls.
#For example, socket() syscall on i386 actually becomes:
#  socketcall(__NR_socket, 1, *(rest of args on stack)).
#
#  - each parameter type is assumed to be stored on 32 bits, there is no 
plan to support
#64-bit architectures at the moment
#
#  - it there is stub instead of a syscall number, the tool will not 
generate any
#assembler template for the syscall; it's up to the bionic 
implementation to provide
#a relevant C stub
#
# the file is processed by a python script named gensyscalls.py
#

# process management
void_exit:exit_group (int)  248,252
void_exit_thread:exit (int) 1
pid_t   __fork:fork (void)   2
pid_t   _waitpid:waitpid (pid_t, int*, int, struct rusage*)   -1,7
int waitid(int, pid_t, struct siginfo_t*, 

[android-porting] Re: build/target/board/Android.mk:35:

2009-04-02 Thread Michael Trimarchi

SiT wrote:
 I can't build the Android-Image for my EEE-PC 701.
 Could you help me?

 ---
 s...@sit-ubuntu:~$ TARGET_ARCH=x86 TARGET_PRODUCT=eee_701
 DISABLE_DEXPREOPT=true make -j4 installer_img
 build/core/product_config.mk:232: WARNING: adding test OTA key
 
 TARGET_PRODUCT=eee_701
 TARGET_BUILD_VARIANT=eng
 TARGET_SIMULATOR=
 TARGET_BUILD_TYPE=release
 TARGET_ARCH=x86
 HOST_ARCH=x86
 HOST_OS=linux
 HOST_BUILD_TYPE=release
 BUILD_ID=
 
 build/target/board/Android.mk:35: *** Please rename vendor/asus/
 eee_701/Android.mk to vendor/asus/eee_701/AndroidBoard.mk.
 Schluss.
 ---
 

   
Rename the file?
Michael


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



[android-porting] Re: cupcake error on start Phone application

2009-03-31 Thread Michael Trimarchi

Hi,

Jean-Baptiste Queru wrote:
 Do you have an actual crash?

 A number of errors are logged because some Google-specific components
 are missing, which should be made a lot less verbose and a lot less
 severe, and that might be what you're seeing.

 JBQ
   
Sorry the log was not exstaused. The application does't start, but I 
find that is related
only to the one linked in the desktop an not in the All panel.
So if I open the panel the same link to the application open it.
How can I post patches to android project? I clean up the patch of armv4 
in dalvik and
bionic and test in the openmoko freerunner and I fix somenthing in the 
vold daemon.
Currently I use the version on koolu that was recently merged with the 
cupcake branch

The new cupcake interface does't show anymore:

- the virtual screen
- add a ALL link to open a panel

Well I can give a try in i386 enviroment.

Michael

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



[android-porting] Re: Porting a WiFi Driver on a android supported platform

2009-03-27 Thread Michael Trimarchi

Hi,

Androidphan wrote:
 This is the output when starting wpa_supplicant:

 Initializing interface 'wlan0' conf '/system/etc/wifi/
 wpa_supplicant.conf'
 drive
 r 'wext' ctrl_interface 'N/A' bridge 'N/A'
 Configuration file '/system/etc/wifi/wpa_supplicant.conf' - '/system/
 etc/wifi/
 w
 pa_supplicant.conf'
 Reading configuration file '/system/etc/wifi/wpa_supplicant.conf'
 update_config=1
 ctrl_interface='DIR=/data/system/wpa_supplicant/ GROUP=system'
 eapol_version=1
 ap_scan=1
 fast_reauth=1
 Initializing interface (2) 'wlan0'
 EAPOL: SUPP_PAE entering state DISCONNECTED
 EAPOL: KEY_RX entering state NO_KEY_RECEIVE
 EAPOL: SUPP_BE entering state INITIALIZE
 EAP: EAP entering state DISABLED
 EAPOL: External notification - portEnabled=0
 EAPOL: External notification - portValid=0
 SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
   capabilities: key_mgmt 0xf enc 0xf
 WEXT: Operstate: linkmode=1, operstate=5
 Own MAC address: 00:22:43:2c:fa:a6
 wpa_driver_wext_set_wpa
 wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
 wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
 wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
 wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
 wpa_driver_wext_set_countermeasures
 ioctl[SIOCSIWAUTH]: Operation not supported on transport endpoint
 WEXT auth param 4 value 0x0 - wpa_driver_wext_set_drop_unencrypted
 Setting scan request: 0 sec 10 usec
 ctrl_interface_group=1000 (from group name 'system')
 Added interface wlan0
 RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
 RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
 Wireless event: cmd=0x8b06 len=8
 Ignore event for foreign ifindex 4
 RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
 RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
 State: DISCONNECTED - SCANNING
 CTRL-EVENT-STATE-CHANGE id=-1 state=2
 Starting AP scan (broadcast SSID)
 Trying to get current scan results first without requesting a new scan
 to
 speed
 up initial association
 Received 0 bytes of scan results (0 BSSes)
 Scan results: 0
 CTRL-EVENT-SCAN-RESULTS  Ready
   
Hi, test you wifi connection using the wpa_cli program. The parse 
function of the
scan result expect a - to the signal stregh (if I remember) to parse the 
result, otherwise
fail.

wpa_cli has an interractive mode to operate, and you can send command like:
scan and scan-results.
 No suitable AP found.
 Setting scan request: 0 sec 0 usec
 No enabled networks - do not scan
 State: SCANNING - INACTIVE
 CTRL-EVENT-STATE-CHANGE id=-1 state=1


 On 27 mrt, 11:39, Androidphan niels.kee...@tass.nl wrote:
   
 I'm getting the following error at the moment:
 D/WifiHW  ( 2325): Unable to open connection to supplicant on /data/
 system/wpa_supplicant/wlan0: No such file or directory

 I got wpa_supplicant running.

 # ls -l /data/system/wpa_supplicant/
 srwxrwx--- root system2009-03-27 11:39 wlan0

 So it exists.

 Why is this??
 
 

   
Regards Michael

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



Opencore (WAS Re: [android-porting] Re: Outstanding cupcake - master merge)

2009-03-24 Thread Michael Trimarchi
.

   

 --
 Jean-Baptiste M. JBQ Queru
 Android Engineer, Google.

 Questions sent directly to me that have no reason for being private
 will likely get ignored or forwarded to a public forum with no further
 warning.

 



   
Maybe this one can help someone to compile. I patch the koolu version of 
the opencore,
to compile on master.

Michael

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

The interface to the registerBuffers has changed. The user must allocate
a BufferHeap structure and use it for the registerBuffers.
Rename the setFrameCallback to setPreviewCallback

Signed-off-by: Michael Trimarchi mich...@panicking.kicks-ass.org
---
diff --git a/android/android_surface_output.cpp b/android/android_surface_output.cpp
index 262a329..1c22d3b 100755
--- a/android/android_surface_output.cpp
+++ b/android/android_surface_output.cpp
@@ -1045,7 +1045,12 @@ OSCL_EXPORT_REF bool AndroidSurfaceOutput::initCheck()
 LOGE(Error creating frame buffer heap);
 return false;
 }
-status_t ret = mSurface-registerBuffers(displayWidth, displayHeight, frameWidth, frameHeight, PIXEL_FORMAT_RGB_565, mFrameHeap);
+
+ISurface::BufferHeap buffer(
+displayWidth, displayHeight, frameWidth, frameHeight,
+PIXEL_FORMAT_RGB_565, 0, 0, mFrameHeap);
+
+status_t ret = mSurface-registerBuffers(buffer);
 
 // create frame buffers
 for (int i = 0; i  kBufferCount; i++) {
@@ -1075,7 +1080,11 @@ OSCL_EXPORT_REF bool AndroidSurfaceOutput::initCheck()
 mHeapPmem = new MemoryHeapPmem(master, 0);
 mHeapPmem-slap();
 master.clear();
-status_t ret = mSurface-registerBuffers(displayWidth, displayHeight, frameWidth, frameHeight, PIXEL_FORMAT_YCbCr_420_SP, mHeapPmem);
+ISurface::BufferHeap buffer(
+displayWidth, displayHeight, frameWidth, frameHeight,
+PIXEL_FORMAT_YCbCr_420_SP, 0, 0, mHeapPmem);
+
+status_t ret = mSurface-registerBuffers(buffer);
 
 // create frame buffers
 for (int i = 0; i  kBufferCount; i++) {
@@ -1123,7 +1132,12 @@ OSCL_EXPORT_REF PVMFStatus AndroidSurfaceOutput::WriteFrameBuf(uint8* aData, uin
 master.clear();
 
 // register frame buffers with SurfaceFlinger
-status_t ret = mSurface-registerBuffers(iVideoDisplayWidth, iVideoDisplayHeight, iVideoWidth, iVideoHeight, PIXEL_FORMAT_YCbCr_420_SP, mHeapPmem);
+ISurface::BufferHeap buffer(
+iVideoDisplayWidth, iVideoDisplayHeight,
+iVideoWidth, iVideoHeight,
+PIXEL_FORMAT_YCbCr_420_SP, 0, 0, mHeapPmem);
+
+status_t ret = mSurface-registerBuffers(buffer);
 
 mInitialized = true;
 }
diff --git a/android/author/android_camera_input.cpp b/android/author/android_camera_input.cpp
index 7d8fae9..ba6e75b 100644
--- a/android/author/android_camera_input.cpp
+++ b/android/author/android_camera_input.cpp
@@ -65,7 +65,7 @@ AndroidCameraInput::~AndroidCameraInput()
 {
 LOGV(destructor);
 if (mCamera != NULL) {
-mCamera-setFrameCallback(NULL, this, FRAME_CALLBACK_FLAG_NOOP);
+mCamera-setPreviewCallback(NULL, this, FRAME_CALLBACK_FLAG_NOOP);
 if ((mFlags  FLAGS_HOT_CAMERA) == 0) {
 LOGV(camera was cold when we started, stopping preview);
 mCamera-stopPreview();
@@ -887,7 +887,7 @@ PVMFStatus AndroidCameraInput::DoStart()
 {
 LOGV(DoStart);
 iState = STATE_STARTED;
-mCamera-setFrameCallback(preview_callback, this, FRAME_CALLBACK_FLAG_CAMCORDER);
+mCamera-setPreviewCallback(preview_callback, this, FRAME_CALLBACK_FLAG_CAMCORDER);
 AddDataEventToQueue(iMilliSecondsPerDataEvent);
 return PVMFSuccess;
 
@@ -923,7 +923,7 @@ PVMFStatus AndroidCameraInput::DoStop(const AndroidCameraInputCmd aCmd)
 {
 LOGV(DoStop);
 iDataEventCounter = 0;
-mCamera-setFrameCallback(NULL, this);
+mCamera-setPreviewCallback(NULL, this);
 
 // if no buffers pending, complete the stop command
 if (mFrameRefCount == 0) {


[android-porting] Re: imx31pdk

2009-03-01 Thread Michael Trimarchi

Hi,

mvniekerk wrote:
 Any help will be gladly accepted...
 Just a few pointers from my side with the Wifi - I hope you're in
 Europe / USA / China (or any place where CSR can export their Wifi
 source), otherwise you'll have problems with the APM module installed
 on it (propriety code)

 On Mar 1, 4:37 pm, Michael Trimarchi trimar...@gandalf.sssup.it
 wrote:
Yes I'm Italian and I live in Spain. Where can I download an initial 
patchset for my board?

Michael
 Hi,



 mvniekerk wrote:
 There's a whole lot of people that got it working. I got everything
 working but wifi is the only thing not working nicely
 On Feb 27, 3:37 pm, nagaraj attimani nagaraj.attim...@gmail.com
 wrote:
 You are the first person 2 do :)
 On Fri, Feb 27, 2009 at 6:52 PM, Michael Trimarchi 
 trimar...@gandalf.sssup.it wrote:
 Hi all,
 I will like to have android on imx31pdk. Is there some initial work done
 by other people?
 Michael
 --
 Best Regards
 Nagaraj
 Can I help you? I don't like to start again. I'm currently working on
 the freerunner,
 and I would like to move my experinece on pdk.

 Michael




 



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



[android-porting] imx31pdk

2009-02-27 Thread Michael Trimarchi

Hi all,

I will like to have android on imx31pdk. Is there some initial work done 
by other people?

Michael

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