did u try changing ownership of the device? chown radio /dev/s3c2410_serial0
(from openmoko http://activationrecord.net/radekp/openmoko/android/init.rc ) On Tue, Nov 16, 2010 at 8:56 PM, Dudero <[email protected]> wrote: > 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 serial device %s: %s", device, > strerror(errno) ); > return; > } > > even though I've placed the permission of the device in init.rc file > with > > chmod 0666 /dev/s3c2410_serial0 > > In the adb shell i can read the NMEA-messages without any permission- > error ?! > (cat /dev/s3c2410_serial0) > > Any suggestions? > > -- > unsubscribe: > [email protected]<android-porting%[email protected]> > website: http://groups.google.com/group/android-porting > -- Regards, Deva www.bittoggler.com -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
