[android-porting] GPS-Driver: Permission denied

2010-11-16 Thread Dudero
Hello, I'm in Integration a GPS driver into my Android (2.1) and always get the following error message: "Permission denied" from: do { state->fd = open( /dev/s3c2410_serial0, O_RDWR ); } while (state->fd < 0 && errno == EINTR); if (state->fd < 0) { LOGE("could not open gps

[android-porting] Building/test a new hal implementation

2010-11-23 Thread Dudero
Hello, how it is possible to build only one libary and not the whole system? --> like: "make libgps.so" Is it also possible to develope a hal implementation without the complete android build system -> NDK? And my last question is which possibilities are there to test a new hal implementation?

[android-porting] Re: Building/test a new hal implementation

2010-11-24 Thread Dudero
m/lib/libcamera_client.so > Install: out/target/product/blaze/system/lib/libmedia.so > Install: out/target/product/blaze/system/lib/libvorbisidec.so > Install: out/target/product/blaze/system/lib/libstagefright_amrnb_common.so > Install: out/target/product/blaze/system/lib/libstagefright_avc_com

[android-porting] libgps.so on emulator?

2010-11-26 Thread Dudero
Hello, I do not understand why I can not find the "libgps.so" at "/system/ lib" in the emulator (Eclair 2.1 with GPS support enabled). The gps test app GPSStatus works well and receives the NMEA-Messages via Telnet... Does the emulator not require this libary? Best Regards, Andreas -- unsubs

[android-porting] Re: Building/test a new hal implementation

2010-12-02 Thread Dudero
# just run this command ;-) This is so nice - just few seconds till the libary is built ! Greetz Andreas Hornsteiner On 24 Nov., 13:50, Dudero wrote: > Hello Deva, > > thanks for your advise! > > To my last question: > > Yes, I mean how to test a hal implementation o

[android-porting] Problems by compiling native code

2010-12-09 Thread Dudero
Hello Guys, I have to understand is how I compile native code correctly. My target is an ARM11-Platform and I use the following Cross- Toolchain: CodeSourcery: arm-none-linux-gnueabi-4.3.2 (arm-2008q3) for compiling the kernel. This works with no problems, when I set the make params: "ARCH=ar

[android-porting] Re: Problems by compiling native code

2010-12-09 Thread Dudero
On 9 Dez., 11:30, Dudero wrote: > Hello Guys, > > I have to understand is how I compile native code correctly. > > My target is an ARM11-Platform and I use the following Cross- > Toolchain: > > CodeSourcery: arm-none-linux-gnueabi-4.3.2 (arm-2008q3) for compiling >

[android-porting] Re: Problems by compiling native code

2010-12-12 Thread Dudero
Thanks guys for your advice! But now I have another problem with native code ;-) Accessing a shared libary by an C executable: I have built a simple library: "libhello.so" "hello.h" extern void hello(void); "hello.c" ---

[android-porting] Re: Problems by compiling native code

2010-12-13 Thread Dudero
rom LOCAL_SHARED_LIBRARIES and try > again. > This is for creating executable or for creating shared lib ? I believe > its for generating exe. > Reg, robin. > > On Dec 12, 4:33 am, Dudero wrote: > > > > > > > > > Thanks guys for your advice! > > > But now I

[android-porting] Boot-Loader support?

2010-12-14 Thread Dudero
Hi, I have a question about the android open source project: Android has its own boot-loader, or is it necessary to take someone like U-Boot? Greetz dudero -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] Re: Boot-Loader support?

2010-12-14 Thread Dudero
y the AOSP? Greetz dudero On 14 Dez., 19:09, Ashwin Bihari wrote: > Android is based on the Linux Kernel, so you need to determine what it > takes to load the Kernel. U-Boot is traditionally is used to boot > Linux. I know Motorola has a custom boot loader for the Droid (as an > example).

[android-porting] Android emulator: kernel console output and tab completion

2010-12-14 Thread Dudero
Hello Guys, does anybody know a way to get the kernel console output? Or need I only read from a /dev/ttySX device? On the emulator I only found "sh", but I want tab-completion - do I have therefore build al shell binary for the goldfish like "ash" or is there an easier

[android-porting] Android Requirements

2010-12-21 Thread Dudero
th MMU are also needed? Greetz Dudero -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] Android Requirements

2010-12-21 Thread Dudero
U are also important? Greetz Dudero -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] ADB udev problem

2011-01-12 Thread Dudero
art the adb-server with root- privileges, but I do not think this is a good solution... Any suggestions? Greetz dudero -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] Setting default screen-orientation

2011-01-13 Thread Dudero
t.rc"-file? In addition it would be a nice feature if it is possible to swich the orientation by using a adb-shell-command? Greetz dudero -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] Android HAL understanding

2011-01-18 Thread Dudero
: static{ System.load("/system/lib/libmokoid_runtime.so"); } Why come the other Android own hardware-services without this? Which is the offical way to integrate new Hardware into the HAL? Greetz dudero -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://grou

[android-porting] Android kernel-debugger

2011-02-24 Thread Dudero
Hello, I don't understand the sense of the kernel-debugger addtions in the android-linux-kernel. Is it only to debug the kernel for the porting procedure? Greetz dudero -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] SDK support for new Services

2011-03-28 Thread Dudero
Hey, I want to add new Hardware Services to the Application Framework of my Android port. What must I do to get SDK support for this new Services in Eclipse? Build and add a new android.jar? Greetz dudero -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http

[android-porting] Re: SDK support for new Services

2011-03-29 Thread Dudero
I have found out that I have to update the api description and build a new sdk with the following cmds: 1. make update-api 2. make sdk I will tell you, if it works... -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] Native supported processor architecure

2011-03-31 Thread Dudero
Hello, which are the native supported processor architecures of official AOSP. Is it an ARM with ARMv5TE or ARMv7-A instruction set - or is it just an issue of optimization, so that generally all ARM processors >=ARM9 are supported? Greetz dudero -- unsubscribe: android-porting+unsub

[android-porting] Android-Linux-Kernel versions

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

[android-porting] Re: Android-Linux-Kernel versions

2011-04-05 Thread Dudero
I found on a presentation the following: Android Linux Kernel 1.5 - Cupcake - 2.6.27 1.6 - Donout - 2.6.29 2.0/2.1 Eclair - 2.6.29 2.2 - Froyo - 2.6.32 2.3 - Gingerbread - 2.6.35 Can anybody approve this? -- unsubscribe: android-porting+unsubscr...@goog

[android-porting] SDK: support for building/porting Android

2011-04-05 Thread Dudero
- just for porting steps. Greetz Dudero -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] Change group to "system"

2011-04-05 Thread Dudero
Hello, I want to change the group of my device node form "root" to "system", but if I run: "chgrp system /dev/mynode" chgrp sasy that the group "system" is unknown. I don't understand this, because "chown system /dev/mynode" works fine?!

[android-porting] Adding new hardware to libhardware

2011-04-06 Thread Dudero
ister this into libhardware? Greetz Dudero -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] Re: Change group to "system"

2011-04-06 Thread Dudero
thank you freakingtux, you made my day! On 6 Apr., 11:04, freakingtux wrote: > Hi > > On Tuesday, April 5, 2011 5:44:53 PM UTC+2, Dudero wrote: > > > Hello, > > > I want to change the group of my device node form "root" to "system", > > but if

[android-porting] Logging for system components

2011-04-08 Thread Dudero
Hello, I have added my own service+manager into the android framework. I'm just in debugging, but I can't see any logcat messages which are sent from my manager. My manager is locatet at frameworks/base/core/java/android/os/ MyManager.java And my test application can get an instance of it (the r

[android-porting] Re: Adding a new module in Android

2011-04-08 Thread Dudero
orks/base/services/java/com/android/server/SystemServer.java For more details look at the existing Services, like HardwareService. Greetz Dudero On 8 Apr., 09:22, Srinidhi K V wrote: > Hi, > > I have a Thermal management code written in C for a custom EVM board. I want > to add this as a

[android-porting] chmod by init.rc

2011-04-08 Thread Dudero
Hello, I have added a new kernel module in my Android Eclair 2.1 which is loaded in init.rc and makes a device node at /dev/mynode. My problem is about setting the permission of this node: If I do it by myself: "chmod 0777 /dev/mynode" the rights will be set, till next reboot - but if I do this

[android-porting] Re: chmod by init.rc

2011-04-09 Thread Dudero
started by init.rc: service setPermission /system/bin/sh myscript.sh oneshot But I also would like to know why this is so a crux - does it give any possibility to "debug" the init.rc execution without rewriting init? Greetz Dudero -- unsubscribe: android-porting+unsubscr...@google

[android-porting] Re: chmod by init.rc

2011-04-09 Thread Dudero
?! Greetz Dudero On 8 Apr., 17:57, Pankaj Bharadiya wrote: > Hi, > Please try with the following. > > create a script somewhere, for example, /system/bin/mymod.rc > #!/system/bin/sh >    chmod 0777 /dev/mynode > > - add the following in /init.rc: >   service mymod /system/

[android-porting] Re: Logging for system components

2011-04-09 Thread Dudero
rting site on source.android.com Does anybody now some good background information about this topic? Greetz Dudero On 8 Apr., 10:24, Dudero wrote: > Hello, > > I have added my own service+manager into the android framework. I'm > just in debugging, but I can't see any log

[android-porting] Complete source code of a current handset

2011-04-12 Thread Dudero
? Greetz Dudero -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] Synchronisation in ApplicationContext

2011-04-24 Thread Dudero
and "mSync" lock- objects: which is for what? Greetz Dudero -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] Re: Synchronisation in ApplicationContext

2011-04-24 Thread Dudero
I think "sSync" is for new Service-connection (by ServiceManager.getService(String name)) and "mSync" is for Managers that already have a Service-connection. Right? On 24 Apr., 13:53, Dudero wrote: > Hello, > > I want to add my Manager into the Appl

[android-porting] RIL understanding

2011-04-24 Thread Dudero
e are only speaking about "libril.so" and "rild"... Greetz Dudero -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] Re: RIL understanding

2011-04-25 Thread Dudero
Thank you Ravi! I would like to get more background for the "vchanneld"-daemon - what is the benefit of virual-channels? Is a "vchanneld"-daemon optional or is the "rild"-daemon alone not enough? Greetz Dudero On 25 Apr., 08:54, ravi thati wrote: > On Sun

[android-porting] Re: Synchronisation in ApplicationContext

2011-04-25 Thread Dudero
t; > On Sun, Apr 24, 2011 at 4:53 AM, Dudero wrote: > > Hello, > > > I want to add my Manager into the ApplicationContext, to get it via > > getSystemService(Context.MY_SERVICE). > > > /frameworks/base/core/java/android/app/ApplicationContext.java > > > So

[android-porting] Android initialization

2011-04-29 Thread Dudero
the "init.rc"-file is no good style -> better to outsource it... Where can I set the "hardware-platform"-variable, which is used by init to find the appropiate init..rc file? Is it perhaps set in the kernel-source, and not in the android- platform-source? Greetz Dudero -

[android-porting] Why porting takes so long?

2011-05-02 Thread Dudero
... Are the differences from esp. Eclair->Froyo->Gingerbread so big? I always thought this must be an easy task, also because of the most changes are in Java and not really depending on the speciffic hardware?! Greetz Dudero -- unsubscribe: android-porting+unsubscr...@googlegroups.com w

[android-porting] Re: Why porting takes so long?

2011-05-02 Thread Dudero
?! Greetz dudero On 2 Mai, 15:44, Hamilton Vera wrote: > "also because of the most changes are in Java and not really depending > on the speciffic hardware?" > > Not true, basic the hard work is made in kernel level and lots of > "rework" in libs (written in

[android-porting] Prefix in devices.c

2011-05-04 Thread Dudero
n have the values ​​0 or 1. Greetz Dudero -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] Re: Prefix in devices.c

2011-05-04 Thread Dudero
Thank you! On 4 Mai, 17:47, Matthias Kaehlcke wrote: > El Wed, May 04, 2011 at 08:18:37AM -0700 Dudero ha dit: > > > can somebody explain me for what the variable: "prefix" in the > > following struct is used for: > > > Android-sources/system/ini

[android-porting] Re: adb device naming

2011-05-05 Thread Dudero
This is not the device name: "ro.product.device". You mean the . I think this number is hardcoded in the platform sources - you can look at the adb deamon sources: /system/core/adb, esp. on "adb.c" from where the command "adb devices" get the serial numbers Gr

[android-porting] Re: adb device naming

2011-05-05 Thread Dudero
Right: in the adb kernel-module at: kernel/drivers/usb/android.c On 5 Mai, 15:22, hedwin wrote: > It is in the linux kernel. > > Hedwin > > > > > > > > On Thu, May 5, 2011 at 3:15 PM, Dudero wrote: > > This is not the device name: "ro.product.device&q