[android-porting] Re: [android-developers] GPRS in my Android doesn't work .....

2008-11-11 Thread David Turner
-cc android-developers +cc android-porting what about using strace to see what the problem might be ? On Mon, Nov 10, 2008 at 9:18 AM, Wang Xiaoguang [EMAIL PROTECTED]wrote: I have successfully created a GPRS connection to my ISP, # busybox ifconfig ppp0 ppp0 Link encap:Point-to-Point

[android-porting] Re: Android x86?

2008-11-13 Thread David Turner
be no direct requirement for using a flash device specific filesystem like yaffs. As far as I know the only specific requirement is that read-write mmap has to be possible. Are there other dependencies on flash storage? Best Regards, Gergely On Tue, Nov 11, 2008 at 10:28 AM, David Turner [EMAIL

[android-porting] Re: [Android porting] Bionic libc build error [undefined reference to `__aeabi_unwind_cpp_pr0']

2008-11-13 Thread David Turner
it's an error in your toolchain, not in Bionic :-) you should really use the toolchain provided with Android. Anything else is not supported. On Thu, Nov 13, 2008 at 8:46 AM, Shankar [EMAIL PROTECTED] wrote: Hi All, I am trying to build Android with our toolchain, this toolchain (libgcc.a)

[android-porting] Re: Building Android Against glibc

2008-11-14 Thread David Turner
, David Turner [EMAIL PROTECTED] wrote: no, you can't, unless you provide your executable as a static executable, which makes it unusable from JNI. On Thu, Nov 13, 2008 at 3:57 PM, JayBird [EMAIL PROTECTED] wrote: Hi Folks, I'm getting start with Android, so please forgive me

[android-porting] Re: User Space Hardware Abstraction layer

2008-11-25 Thread David Turner
as far as I remember: ramdisk.img contains a small initial root file system used to boot the system system.img contains the filesystem containing all system files (including system libraries and system apps) userdata.img contains the initial content of the /data partition there are no

[android-porting] Re: timer_create problem

2008-12-05 Thread David Turner
was mine, but even then aren't they system calls, and shouldn't I be looking in the kernel for implementation ?? regards, Pavan On Thu, Dec 4, 2008 at 1:56 PM, David Turner [EMAIL PROTECTED] wrote: the functionality might not break if the callback is used to handled exceptional signals, i.e

[android-porting] Re: Running App without a Android Make file

2008-12-05 Thread David Turner
it looks like a permission problem, did you set the executable bit on the copied filed with chmod +x ? On Fri, Dec 5, 2008 at 1:39 PM, pavan savoy [EMAIL PROTECTED] wrote: Hey In fact it does get into strace... execve(./app, [./app], [/* 9 vars */]) = -1 ENOENT (No such file or directory)

[android-porting] Re: GPRS in my Android doesn't work .....

2008-12-09 Thread David Turner
, especially whichwill be used by other applications outside the module which defines it, but unfortunately there are still some misuses in Linux's kernel. On 11月11日, 下午5时24分, David Turner [EMAIL PROTECTED] wrote: -cc android-developers +cc android-porting what about using strace

[android-porting] Re: GPRS in my Android doesn't work .....

2008-12-10 Thread David Turner
the SIM Card is accessed through the AT command channel, i.e. through the RIL. normally, there is no need for a specific kernel driver, or additionnal code. On Wed, Dec 10, 2008 at 10:45 AM, Maxime Petazzoni [EMAIL PROTECTED] wrote: Hi, On Dec 9, 3:23 pm, David Turner [EMAIL PROTECTED

[android-porting] Re: how to use the rild on OMAP2430

2008-12-15 Thread David Turner
use adb logcat -b radio to display the radio log. this includes traces from both the reference-ril library and the GSM stack that talk to it (including AT commands). that should help you diagnose the problem much more easily. It's also easy to add additionnal traces to reference-ril if you need

[android-porting] Re: Adapting bionic libc for non-Linux kernels.

2008-12-19 Thread David Turner
Hi Benno, I think you should really consider creating a branch for this purpose. There is very little chance that any other technique is going to end up very not nasty at that point. Better create your own branch, and do whatever crazy things you want to do there Also keep in mind that there are

[android-porting] Re: Build for 32bit

2008-12-20 Thread David Turner
I believe it should already be built as 32-bit. In case of doubt, check build/core/combo/linux-x86.mk which contains all compiler/link flags definitions for linux x86 (also used on x86_64 machines) On Sat, Dec 20, 2008 at 11:07 AM, squix dani.eichh...@squix.ch wrote: How can I make sure that

[android-porting] Re: How to compile android source code with a different toolchain

2008-12-23 Thread David Turner
have a look at build/core/combo/linux-arm.mk and modify it accordingly. Good luck, there is no guarantee that this is going to work, but the result might be interesting On Tue, Dec 23, 2008 at 1:58 PM, Nimit Manglick nimitandr...@gmail.comwrote: Hi All, I want to compile the complete android

Re: 回复: [android-porting] Re: How to l aunch emulator from the built source?

2009-01-05 Thread David Turner
The emulator doesn't emulate *any* ARMv6 instruction at the moment (ARMv5TE max) 2009/1/5 Jean-Baptiste Queru j...@google.com If I remember correctly the current emulator does not emulate all ARMv6 instructions. I might be wrong. JBQ On 1/5/09, jasperr mengdong_...@hotmail.com wrote:

[android-porting] Re: About gnu-ld version

2009-01-06 Thread David Turner
About a year ago, I implemented something similar in the Android system. It was essentially the same thing than GNU-style hash with minor modifications (e.g. forcing power-of-2 table sizes to avoid the horribly slow modulo operation on ARM during lookups, plus selecting smaller table sizes by

[android-porting] Re: RIL implementation

2009-01-07 Thread David Turner
, Jan 7, 2009 at 4:39 PM, David Turner di...@android.com wrote: you need to start the rild daemon in your init config/script have a look at the content of /system/etc/init*.(rc|sh) for examples On Wed, Jan 7, 2009 at 11:32 AM, Nimit Manglick nimitandr...@gmail.comwrote: Hi David, Its showing

[android-porting] Re: RIL implementation

2009-01-08 Thread David Turner
might like. Best regards, Mikkel On Jan 7, 7:27 am, David Turner di...@android.com wrote: that looks correct. can you show the whole radio log, there should be some RILD messages telling you if there was a failure opening the device file (which could be caused by permission problems). You

[android-porting] Re: Packages inclusion in Android

2009-01-09 Thread David Turner
you will need to write one or more Android.mk files describing how to build your project. thanks god we don't use auto-tools :-) On Fri, Jan 9, 2009 at 1:30 PM, gulshan karmani gulshan.karm...@gmail.comwrote: Hi All, I would like to know how to include new packages inside Android, is

[android-porting] Re: RIL data service flow path

2009-01-14 Thread David Turner
your assumption is not correct, because data does not go through ttyS0 but through a different channel. which device exactly depends on the RIL implementation, you should have a look at the ril-reference.c code and see what devices it tries to open. I believe it's another device that provides a

[android-porting] Re: Trying to compile Android on to a Full blown ubuntu/linux distro

2009-01-14 Thread David Turner
On Linux, it is possible to build the Android simulator, which runs many parts of the platform in a single Unix process (so no real security for you), doesn't use the custom C library, etc... if you don't want to go this route, you will need to patch your kernel to integrate a few

[android-porting] Re: /cache use by android

2009-01-14 Thread David Turner
for the record, in the current emulator, the /cache partition is re-created empty on each new emulator start, so it's normal you don't see anything here. for the record, a future release of the SDK will feature virtual machines, where each VM corresponds to a directory holding persistent disk

[android-porting] Re: /cache use by android

2009-01-15 Thread David Turner
at the moment, things work as follows: userdata-qemu.img is the persistent partition image for /data userdata.img is the *initial* version of /data that gets copied into userdata-qemu.img when you do -wipe-data sdcard.img, if present or specified with -sdcard file, corresponds to /sdcard

[android-porting] Re: Trying to compile Android on to a Full blown ubuntu/linux distro

2009-01-16 Thread David Turner
running on top of a linux kernel that wouldn't have those modules. JBQ On Wed, Jan 14, 2009 at 4:56 PM, drew andrewjohnyo...@gmail.com wrote: Peace! @David Turner I think you've thought of this already and made a lot of pros and cons, thanks ... I think your right, my

[android-porting] Re: ADB over TCP IP

2009-01-21 Thread David Turner
. Mike On Wed, Jan 21, 2009 at 7:04 AM, David Turner di...@android.com wrote: This is not currently possibe. First of all, you need to understand that there are 3 components to ADB: - the 'adbd' daemon that runs on the device - the 'adb server' that runs as a background process

[android-porting] Re: Why so many .d files after make the android source code

2009-01-22 Thread David Turner
they should all be located under out/ if they are in the top directory, something is wrong with your build configuration. can you tell us how you configured your build, which exact commands you made, etc.. ? On Thu, Jan 22, 2009 at 2:06 PM, max max.xi...@gmail.com wrote: Hi Dianne, Thanks

[android-porting] Re: timer is not working on the latest code base

2009-01-22 Thread David Turner
Hmmm, do you have a small and complete source file for a test that exhibit the problem ? timer management has been modified to properly implement SIGEV_THREAD timers, however SIGEV_SIGNAL ones should not be impacted. are you sure you don't have the signal blocked ? On Thu, Jan 22, 2009 at 2:17

[android-porting] Re: timer is not working on the latest code base

2009-01-22 Thread David Turner
. How do it send them? I dont see any option to attach source code. On Jan 22, 4:42 pm, David Turner di...@android.com wrote: Hmmm, do you have a small and complete source file for a test that exhibit the problem ? timer management has been modified to properly implement SIGEV_THREAD

[android-porting] Re: aplay gives audio open error

2009-01-23 Thread David Turner
it is in libgcc.a, provided by the toolchain. I guess you are not building the binary with the Android toolchain. If this is the case, don't expect your code to run except by pure luck (unless you statically link to GLibc) On Fri, Jan 23, 2009 at 1:15 AM, pavan savoy pavan.sa...@gmail.com wrote:

[android-porting] Re: aplay gives audio open error

2009-01-23 Thread David Turner
, vishal bhoj vishalb...@gmail.com wrote: Hi David, This is irrelavant to the topic being discussed here . Is it possible to add a normal glibc for android and use it.I actually want to build external packages for andorid. Is it possible to do that ? On Fri, Jan 23, 2009 at 5:15 AM, David

[android-porting] Re: timer is not working on the latest code base

2009-01-23 Thread David Turner
AM, ravikbsh ravik...@gmail.com wrote: Hi David, I have sent you the code. Please let me know if you have any clue. Thanks, -Ravi On Jan 22, 5:53 pm, David Turner di...@android.com wrote: please send them to me directly (di...@android.com) (or if the source is small, just inline

[android-porting] Re: Help Needed in compilation when TARGET_BUILD_VARIANT is set as user.

2009-01-27 Thread David Turner
try defining DISABLE_DEXPREOPT=true in your environment, this will disable the Dex pre-optimization pass that needs to run in the emulator. On Tue, Jan 27, 2009 at 10:26 PM, Praveen Kumar praveenkm...@gmail.comwrote: Hi I have downloaded the code from http://source.android.com/ and try

[android-porting] Re: CHROOT problem

2009-01-28 Thread David Turner
/system/bin/sh is a regular file, not a directory. I assume the problem is the parameter passed to chroot() On Wed, Jan 28, 2009 at 1:02 AM, Rajesh N rajesh.andr...@gmail.com wrote: Hi Friends, I am in last stage of porting android over imx31 platform , when the shell script is executed to

[android-porting] Re: How to develop more than 20 timer parallely..

2009-01-31 Thread David Turner
Maybe by using a single signal with a sorted timer queue ? Or using one thread per timer, each one simply doing a timed wait ? Any code that requires 25 signals is not going to work, on any platform On Fri, Jan 30, 2009 at 1:16 AM, kd.itbhu kd.it...@gmail.com wrote: Hi; I need around 25

[android-porting] Re: How to develop more than 20 timer parallely..

2009-02-01 Thread David Turner
us how to develop timer functionality in parallel. Regards Girish On Feb 1, 8:26 am, David Turner di...@android.com wrote: Maybe by using a single signal with a sorted timer queue ? Or using one thread per timer, each one simply doing a timed wait ? Any code that requires 25 signals

[android-porting] Re: Dual display support?

2009-02-02 Thread David Turner
://www.phonewreck.com/wiki/index.php?title=T-Mobile_G1 for developers ... those who have an ADP1 on some license? Would Android-Team/HTC be able to disclose the hardware details or the data-sheets of the LCD controller for instance? Thanks and regards, Rajesh.S On Feb 2, 12:12 pm, David Turner di

[android-porting] Re: How to develop more than 20 timer parallely..

2009-02-02 Thread David Turner
can understand the scenario, Is there anyways to use a single user space (SIGUSR1) signal to hanldle multiple timers in parallel ? Is there anything like soft timers ? Can you give us some clues ? Regards Girish On Feb 2, 7:33 am, David Turner di...@android.com wrote: the cupcake C library

[android-porting] Re: questions on builtin function call

2009-02-04 Thread David Turner
the builtins are provided by the compiler. Whether they are implemented in hardware or through emulation depends on how the toolchain was setup. I believe that in the current case, this is done through the CLZ instruction, since we build for ARMv5 binaries. On Wed, Feb 4, 2009 at 8:20 AM, Andy

[android-porting] Re: How to call shell script from JNI?

2009-02-11 Thread David Turner
you can't use system() to call a shell script, you need to invoke the shell interpreter instead, with something like /system/xbin/sh /system/xbin/test.sh On Wed, Feb 11, 2009 at 1:54 PM, Corey uvic2...@gmail.com wrote: Currently I am trying to write an application in Android GUI. One of the

[android-porting] Re: How to call shell script from JNI?

2009-02-11 Thread David Turner
Actually, I retract that, after checking our implementation, it always do a sh -c parameters so calling a shell script should work. Have you tried checking the return value and errno after the call ? On Wed, Feb 11, 2009 at 10:35 PM, David Turner di...@android.com wrote: On Wed, Feb 11, 2009

[android-porting] Re: automating net.dns1 configuration

2009-02-12 Thread David Turner
net.eth0.dns1 is a legacy system property that is not used by the resolver anymore. the official way is to define one of: net.dns1 net.dns2 ... additionally, you can use a process-specific list with: net.dns1.pid net.dns2.pid ... where pid is the numerical process identifier of your program.

[android-porting] Re: How to develop more than 20 timer parallely..

2009-02-12 Thread David Turner
Yes, it is, but frankly you should be using a single SIGEV_THREAD timer with your own sorted timer list On Thu, Feb 12, 2009 at 2:14 PM, Girish htgir...@gmail.com wrote: Hi, Is SIGEV_THREAD is part of open source and cupcake code now ? With SIGEV_THREAD also i guess we should be able to

[android-porting] Re: How to call shell script from JNI?

2009-02-12 Thread David Turner
-1 means you should look at errno / strerror(errno) for information about the error a = 0 would correspond to the exit status of the process you invoked On Fri, Feb 13, 2009 at 1:43 AM, Dig dig.ge...@gmail.com wrote: I also try to do something(a command, not a script) with system(), it always

[android-porting] Re: Integrating my external library

2009-02-16 Thread David Turner
If you have a daemon, you should probably be able to run it as is on Android, provided it is started with the appropriate permissions. (Started by init if real crucial to the platform, or otherwise on demand by something else if needed). Then, you should provide a Java API that would be

[android-porting] Re: timer_create problem

2009-02-16 Thread David Turner
this one's for me :-) Can you send me a small compilable test program to reproduce this (it'd be much better for me since I don't know what your timer_handler function is doing there). It might be a bug in the SIGEV_THREAD timer implementation, I checked and tested it for correctness but didn't

[android-porting] Re: timer_create problem

2009-02-16 Thread David Turner
ok, I found the bug in the timer implementation, a fix is coming soon. On Mon, Feb 16, 2009 at 10:27 AM, David Turner di...@android.com wrote: this one's for me :-) Can you send me a small compilable test program to reproduce this (it'd be much better for me since I don't know what your

[android-porting] Re: Android toolchain

2009-02-16 Thread David Turner
the /bin directory contains the cross-toolchain programs with the arm-eabi- prefix, e.g. arm-eabi-gcc, arm-eabi-nm, etc.. the /arm-eabi/bin contains the same programs without the prefix (gcc, nm, etc...) Apart from that, I believe they are the same programs. I don't know exactly why we can't

[android-porting] Re: Android porting on Qemu

2009-02-16 Thread David Turner
Hmmm, maybe you could try the Android emulator, which is a QEMU derivative, with full source code available under the GPL ? On Mon, Feb 16, 2009 at 3:23 PM, indra indrad...@gmail.com wrote: Hi all, I am planning to do some reverse engineering on Android. Can somebody explain me what does it

[android-porting] Re: Android porting on Qemu

2009-02-16 Thread David Turner
: Yes that's logical, but I want to port the whole customized system by myself. It would be great if you can provide help on that. On Mon, Feb 16, 2009 at 8:01 PM, David Turner di...@android.com wrote: Hmmm, maybe you could try the Android emulator, which is a QEMU derivative, with full source

[android-porting] Re: Native Library Porting in Android[Windows]

2009-02-16 Thread David Turner
What is Windows Android ? Android doesn't support .dll files, it uses Linux shared objects instead. And there is currently no support for producing these at the moment for deployable applications On Mon, Feb 16, 2009 at 3:45 PM, Syed Malgimani syedmalgim...@lge.comwrote: Hi Android experts,

[android-porting] Re: Removing external components in Android Build

2009-02-17 Thread David Turner
This is not supposed to happen. What kind of change are you talking about ? Sounds like a build system bug. You should not have to rebuild Webkit if you change something that is unrelated. For the record, you can still use standard GNU Make -B option to mm or mmm to force a rebuild without having

[android-porting] Re: timer_create problem

2009-02-17 Thread David Turner
, David Turner di...@android.com wrote: ok, I found the bug in the timer implementation, a fix is coming soon. On Mon, Feb 16, 2009 at 10:27 AM, David Turner di...@android.com wrote: this one's for me :-) Can you send me a small compilable test program to reproduce this (it'd be much

[android-porting] Re: How to set a UID of my apk to AID_ROOT or AID_SYSTEM?

2009-02-18 Thread David Turner
You can't, all applications must have an UID that is = 1 on Android. Do you seriously expect to run an application as root ? On Wed, Feb 18, 2009 at 10:59 AM, Alex yu.linu...@gmail.com wrote: I use the SystemProperties.set, but it failed when check the permit, how could I set my.apk to

[android-porting] Re: Can't open /dev/ttyVSP0 in mainloop() which located in reference-ril.c,why???????

2009-02-19 Thread David Turner
the value of errno should give you more information about the error. I suspect a permission problem, but I don't know how these are setup in the system for device files. On Thu, Feb 19, 2009 at 11:04 AM, dephon...@gmail.com dephon...@gmail.comwrote: Hi, all: I am porting Android GSM CALL

[android-porting] Re: Can't open /dev/ttyVSP0 in mainloop() which located in reference-ril.c,why???????

2009-02-20 Thread David Turner
On Fri, Feb 20, 2009 at 9:10 AM, Jack stone lsb6...@sina.com wrote: David Turner , thank for your reply. And now my /dev/ttyVSP0 can't be opened in android, if it is opened ,then kernel panic. It' s big problem. mmm, it certainly means a buggy driver in your kernel. There is no way a user

[android-porting] Re: Questions on ramdisk, userdata, and system img files

2009-02-21 Thread David Turner
ramdisk.img is a small partition image that is mounted read-only by the kernel at boot time. It only contains /init and a few config files. It is used to start init which will mount the rest of the system images properly and run the init procedure. A Ramdisk is a standard Linux feature.

[android-porting] Re: How to debug android c programs by gdbserver on G1

2009-02-24 Thread David Turner
You can use adb forward tcp:1234 tcp:1234 to forward the local port on your development machine to the local port 1234 on the device/emulator. After that, you can do target remote localhost:1234 in gdb to connect to your target through gdbserver. On Tue, Feb 24, 2009 at 2:18 AM, Maxwell Li

[android-porting] Re: STL library in Android

2009-03-03 Thread David Turner
, Is there any new update about STL support in Android? Thanks, Archer On Feb 1, 3:17 am, F H expelia...@googlemail.com wrote: Thanks Gents - you don't happen to have an STLport configured for Android lying around anywhere? On 1/31/09, David Turner di...@android.com wrote

[android-porting] Re: Libraries and Services Questions

2009-03-03 Thread David Turner
Very likely not, but it really depends on whay your driver does, so it's not possible to answer your question. It is also likely that upcoming versions of the platforms will run on 2.6.27 instead of 2.6.25. Again, YMMV On Tue, Mar 3, 2009 at 8:10 AM, asyen sheng.hung...@gmail.com wrote: Dear

[android-porting] Re: Android for higher resolution screens

2009-03-10 Thread David Turner
On Tue, Mar 10, 2009 at 6:20 PM, Mattaku Betsujin mattaku.betsu...@gmail.com wrote: Really? I thought cupcake will be the first release to support non-HVGA screen sizes. Has this changed? This hasn't changed, it's still in the roadmap, but as Dianne said it's still not *officially*

[android-porting] Re: Segmentation fault if i run dalvikvm on ppc

2009-03-11 Thread David Turner
0xdeadd00d is a special address used by the dvmAbort() function to voluntarily crash the VM. Can you provide a stack trace ? that would give more information regarding the reason for this failure. On Wed, Mar 11, 2009 at 8:28 PM, an...@android android.an...@gmail.comwrote: hey guys, i could

[android-porting] Re: Andorid on Beagle : how to set dns server using setprop

2009-03-12 Thread David Turner
net.eth0.dns1 is deprecated, the properties you're looking for are: net.dns1 net.dns2 ... On Tue, Mar 10, 2009 at 11:45 AM, harish harishpres...@gmail.com wrote: Dear all, I am running android on beagle board which is built from source via NFS mounting. My linux host machine ip setting

[android-porting] Re: Where can i get the patch of timer_create() routine??

2009-03-18 Thread David Turner
the fix is already in the cupcake branch of the open source tree (bionic/libc/bionic/pthread-timers.c) I believe it's going to reach the master branch soon when we integrate the cupcake one into it. On Wed, Mar 18, 2009 at 6:53 AM, Eric hex...@gmail.com wrote: hi David, I have noticed that

[android-porting] Re: Where can i get the patch of timer_create() routine??

2009-03-18 Thread David Turner
/pthread-timers.c has no difference with the master branch. Did i make some mistakes when i checked out the cupcake branch? Or could you give me a copy of pthread-timers.c directly if i can merge it to my old branch? thanks On Mar 19, 1:51 am, David Turner di...@android.com wrote: the fix

[android-porting] Re: android-porting only ARM or X86 ?

2009-03-19 Thread David Turner
No, efforts to port the platform to other CPUs are welcomed in android-porting. Can you tell us exactly what difficulties you're encountering. I assume you started by modifying the build system and porting the C library, right ? On Thu, Mar 19, 2009 at 12:59 AM, adik adik...@gmail.com wrote:

[android-porting] Re: How to build libgps_qemu.c?

2009-03-20 Thread David Turner
You should not need to modify gps_qemu.c at all, and this source file doesn't correspond to a stand-alone library; instead, it is part of libhardware.so. What you should do is write your own libgps.so that provides the following function: const GpsInterface* gps_get_interface(); which shall

[android-porting] Re: How to build libgps_qemu.c?

2009-03-20 Thread David Turner
David Turner di...@android.com It might be that there is already another module named gps_hardware somewhere in the build process, and that the error message is related to that. You should really try to call it gps_fnord.c, assuming fnord is a name related to your specific hardware. Or just name

[android-porting] Re: system image building error

2009-03-24 Thread David Turner
It would be nice if you could tell us exactly what you're trying to build, and how you did setup the build. On Tue, Mar 24, 2009 at 5:40 AM, Andy Quan androidr...@gmail.com wrote: Hi, Anybody understands what the following error message means? I got these errors during system image building.

[android-porting] Re: Why was bionic/libc/include/sys/shm.h removed?

2009-03-25 Thread David Turner
On Wed, Mar 25, 2009 at 9:34 AM, Girish htgir...@gmail.com wrote: For ARM is this available or removed is my doubt. The patch talks of Add missed IPC syscalls for x86 Note that there is no guarantee that the syscalls will be supported by the Android kernel though Regards Girish

[android-porting] Re: alsa run on real board

2009-03-25 Thread David Turner
Do you have ALSA drivers built in your kernel ? I looks like not. 2009/3/25 susanner zsusan...@163.com after I compiled alsa-lib and alsa-utils, I use aplay on real hard board and it shows: aplay ALSA lib external/alsa-lib/src/confmisc.c:670:(snd_func_card_driver) cannot find card '0'

[android-porting] Re: Why was bionic/libc/include/sys/shm.h removed?

2009-03-25 Thread David Turner
ashmem only deals with shared memory buffers. There is no proper documentation about them as far as I know at the moment :-( On Thu, Mar 26, 2009 at 1:36 AM, Girish htgir...@gmail.com wrote: Is this ashmem can be used for inter thread communication also ? Is it similar to system V message

[android-porting] Re: daylight timezone varible missing in time.h

2009-03-26 Thread David Turner
no, it only means that the C library is not built with this symbols, because they are guarded by macros like: #if HAVE_DAYLIGHT int daylight; #endif and HAVE_DAYLIGHT is not defined when building the C library. Solving the issue requires changing the build script for the C library. However,

[android-porting] Re: MIPS toolchain for droid

2009-03-30 Thread David Turner
the Dalvik VM would need modifications for MIPS? If so, would it be similar to the changes necessary for bionic (replace some ARM assembler functions/macros with MIPS assembler functions/macros) or would it be more involved? Thanks, Peter On Mar 28, 2009, at 1:19 AM, David Turner wrote

[android-porting] Re: how to make multiple .so files from one Android.mk

2009-03-30 Thread David Turner
Yes, you can, you the following: - define LOCAL_PATH *once* at the start of the Android.mk, e.g.: LOCAL_PATH := $(call my-dir) - to start a module, use CLEAR_VARS to clear all global variables related to module-specific definitions include $(CLEAR_VARS) - define your module's variable (e.g.

[android-porting] Re: Problem when initing root file systems

2009-03-31 Thread David Turner
the init program cannot be a shell script as far as I know. It really must be an executable that the kernel should be able to launch directly. On Tue, Mar 31, 2009 at 12:02 PM, huymq85 huym...@gmail.com wrote: I have created a kernel image (zImage) from samsung-s3c6410-android. 1.0 using

[android-porting] Re: Error about building adb for windows

2009-04-01 Thread David Turner
If you only want to build adb, you should try the following: . build/envsetup.sh lunch generic-eng m adb that should be sufficient to rebuild adb.exe only, which will be located in out/host/windows/bin/adb.exe On Wed, Apr 1, 2009 at 5:48 AM, allendroid allenshao.andr...@gmail.comwrote: Hi

[android-porting] Re: Why do we need external/fdlibm other than use libm in Bionic?

2009-04-02 Thread David Turner
I don't know the real reason, I assume it's mostly historical. I'll try to ask some engineers on the Android team On Thu, Apr 2, 2009 at 5:24 AM, KevinWang xuepu.w...@gmail.com wrote: Hello, I saw the code is using fdlibm in external/, I tried to modify the code to make Android to use the

[android-porting] Re: repo sync - no response

2009-04-16 Thread David Turner
It looks like the na;e android.git.kernel.org is not resolved by your DNS server. On Thu, Apr 16, 2009 at 1:38 PM, raj.10788 raj.10...@gmail.com wrote: Hi, I downloaded the source code one week back. But when I try to sync with repo yesterday, I given repo sync in the android root dir, but

[android-porting] Re: why in emulator, /dev/eac is connected with the audio?

2009-04-17 Thread David Turner
On Fri, Apr 17, 2009 at 10:51 AM, max max.xi...@gmail.com wrote: Hi Buddies, I wanna get understood that why in emulator dev/eac is the device of audio, historical reason, but mostly because that's what the emulator-specific kernel supports as I know, in external/qemu/audio, there is

[android-porting] Re: Porting Andorid for MIPS

2009-04-17 Thread David Turner
sources - testing, testing, testing... I advise you to send patches for review on Gerrit so we can see what you're trying to do and tell you if it's ok, etc.. 2009/4/17 manjunatha srinivasan manjunatha.sriniva...@gmail.com Hi David Turner Thanks for reply . From link below i found

[android-porting] Re: start android on top of moblin/ubuntu

2009-04-19 Thread David Turner
in short, no, Android requires its own init system, specific kernel drivers that are probably not in the moblin/ubuntu one, etc... there are probably some hacks that could make the two systems co-exist (e.g. like running Debian in a chroot under Android), but they probably require a few

[android-porting] Re: how to connect adb to a target that uses DHCP to get IP addr

2009-04-28 Thread David Turner
No, ADB doesn't support this at all at the moment. The easy fix is to configure your DHCP server to always return the same IP address for your board, based in its MAC address. On Tue, Apr 28, 2009 at 10:36 PM, twebb taliaferr...@gmail.com wrote: I'm debugging on an OMAP target running android.

[android-porting] Re: vold vs. mountd

2009-05-02 Thread David Turner
for the record, the file lives in /system/etc/vold.conf On Fri, May 1, 2009 at 5:18 PM, twebb taliaferr...@gmail.com wrote: I'm using the new sdk-1.5 and see that vold is now used instead of mountd. It appears that volmgr_bootstrap() uses vold.conf, but I don't see that file in the rootdir.

[android-porting] Re: why in emulator, /dev/eac is connected with the audio?

2009-05-02 Thread David Turner
- kernel (mach-goldfish/audio.c) - emulator (external/qemu/goldfish_audio.c - QEMU audio sub-system - system-specific audio backend) - system sound API Hope this helps Thanks On Apr 17, 5:48 pm, David Turner di...@android.com wrote: On Fri, Apr 17, 2009 at 10:51 AM, max max.xi...@gmail.com

[android-porting] Re: vold vs. mountd

2009-05-04 Thread David Turner
On Mon, May 4, 2009 at 3:30 PM, twebb taliaferr...@gmail.com wrote: for the record, the file lives in /system/etc/vold.conf I didn't find it there, at least not in the git I'm looking at...

[android-porting] Re: after running envsetup.sh , and press m , it shows command not found

2009-05-05 Thread David Turner
you must source build/envsetup.sh, since this will modify your shell environment by adding the m command and others. if you simply run the script, it modifies the environment of the new process you invoked, which then exits, losing any changes. On Tue, May 5, 2009 at 6:06 AM, bryan.c.hsu

[android-porting] Re: RIL implementation

2009-05-07 Thread David Turner
On Wed, May 6, 2009 at 11:00 AM, Daniel Baeyens daniel.baey...@gmail.comwrote: Hi Nimit (and all the list), How did you solve this problem? I think now I'm facing a similar problem. I'm trying to test a 3G USB dongle with Android. For this: - I've needed to discard Android emulator

[android-porting] Re: RIL implementation

2009-05-07 Thread David Turner
Kind regards, On Thu, May 7, 2009 at 12:02 PM, David Turner di...@android.com wrote: On Wed, May 6, 2009 at 11:00 AM, Daniel Baeyens daniel.baey...@gmail.com wrote: Hi Nimit (and all the list), How did you solve this problem? I think now I'm facing a similar problem. I'm trying

[android-porting] Re: Contribute SuperH code to Android

2009-05-11 Thread David Turner
Yes, you should provide a series of patches as advertised. Ideally, each patch should be self-contained, only deal with one specific aspect of the problem, be as small as possible, etc.. I would assume that you could start with the following: 1 - a patch to the build system Makefiles to add

[android-porting] Re: How does Android init work?

2009-05-25 Thread David Turner
You could try reading the documentation that comes with the sources: http://android.git.kernel.org/?p=platform/system/core.git;a=blob;f=init/readme.txt;h=665090bad7dfdc93112f9fe13261095dcef5d3e4;hb=7be77b5ba8ae21dad91019a02bc2c5d38dba081f On Fri, May 22, 2009 at 5:00 AM,

[android-porting] Re: Providing BACK/HOME/MENU as software buttons(instead of hardware buttons)

2009-05-26 Thread David Turner
the Android system relies on the fact that these button presses are sent as from the Linux kernel as input event with specific codes. Doing anything reliably with intents is not supported (and opens a whole can of worms security wise, so don't expect this to be available). On Tue, May 26, 2009 at

[android-porting] Re: Everyone in google IO gets a free phone --Ha ha ha ha..... -eom

2009-05-28 Thread David Turner
it's short for end of message, which really means that everything is in the title, and nothing in the message body. I find it confusing myself, but hey... On Thu, May 28, 2009 at 5:24 AM, liuhy liuhuaiy...@gmail.com wrote: eom? what is it? On Thu, May 28, 2009 at 1:49 AM, Yi Sun

[android-porting] Re: Building Kernel - comparison

2009-05-28 Thread David Turner
the kernel itself is hosted at android.git.kernel.org but is not typically downloaded by repo.so you should do something like: git clone git://git.android.kernel.org/kernel/common.git kernel-common to get it on your machine. On Tue, May 26, 2009 at 4:11 PM, ja...@work jamai5...@gmail.com

[android-porting] Re: How to package other data files with JNI library?

2009-06-02 Thread David Turner
There is no other way at the moment, however you can simply put the file into res/raw and copy them to /data/data/appname when your app starts for the first time. On Fri, May 29, 2009 at 11:18 PM, efu ericf...@gmail.com wrote: I am building an app using JNI library. The JNI library needs to

[android-porting] Re: sd card not working :(

2009-06-02 Thread David Turner
you probably need a custom /system/etc/vold.conf file that tells the mound daemon (vold) which device/partition to mount at boot time On Wed, Jun 3, 2009 at 12:21 AM, hairypothead...@googlemail.com hairypothead...@googlemail.com wrote: hey! iv got android running in virtualbox on my advent

[android-porting] Re: How to use external modem in emulator

2009-06-03 Thread David Turner
On Wed, Jun 3, 2009 at 11:24 AM, sram sayiram.koth...@gmail.com wrote: Hi i am trying to connect USB external modem(my Motorola Phone) on to Android emulator. i have tried the following command emulator -radio ttyACM0 -verbose -debug all and from the ADB shell tried echo ATD1234 ttyS1

[android-porting] Re: telnetd problem on android

2009-06-11 Thread David Turner
See http://developer.android.com/guide/developing/tools/emulator.html#emulatornetworking especially the section titled Setting up Redirections through the Emulator Console On Thu, Jun 11, 2009 at 2:03 PM, nearfuture yaoming@gmail.com wrote: I want to open the telnet port on android, so I

[android-porting] Re: Can't adjust backlight in our built emulator from source?

2009-06-11 Thread David Turner
backlight emulation works as follows in 1.5 (this may change in future system images though): 1/ hardware/qemu/liblights/lights.c is compiled into /system/lib/hw/ liblights.goldfish.so 2/ libhardware recognize at runtime that it is running in the emulator (goldfish) system, then loads it 3/ the

[android-porting] Re: pre compiler macro for andriod

2009-06-14 Thread David Turner
Use ANDROID:-) On Sat, Jun 13, 2009 at 6:28 AM, shiva dudeofin...@gmail.com wrote: Hi all... I have a C++ code, which i am porting on Android. This code actually made for Windows system. So, there are many Windows specific header files are used. So, i want to build same code on Android

[android-porting] Re: Something goes wrong on vold randomly or due to wifi

2009-06-15 Thread David Turner
do you have details on how to reproduce this. What hardware platform are you using, which system image are you building, etc... On Mon, Jun 15, 2009 at 12:30 PM, Luca Belluccini lucabellucc...@gmail.comwrote: Vold crashes and/or starts notifying phone storage space low randomly or seems that

[android-porting] Re: pre compiler macro for andriod

2009-06-15 Thread David Turner
file, it will be declared?? On Jun 15, 12:50 am, David Turner di...@android.com wrote: Use ANDROID:-) On Sat, Jun 13, 2009 at 6:28 AM, shiva dudeofin...@gmail.com wrote: Hi all... I have a C++ code, which i am porting on Android. This code actually made for Windows system. So

  1   2   >