Re: [maemo-developers] Problem with GDB and threads...

2006-07-14 Thread Eero Tamminen
Hi,

 On the Nokia 770, the backtrace goes on forever and i have to kill gdb

Have you compiled your binary:
- without optimization (or used -fno-omit-frame-pointer)
- with -g
- not stripped it
?

If not, if you do that and try again, does the debugging work better?

If it still doesn't work, does it work if you install 'libc6-dbg'
package and run your program, or GDB starting your program, with:
LD_LIBRARY_PATH=/usr/lib/debug:$LD_LIBRARY_PATH gdb /path/app
?


 Has anyone else experienced this? Also, why is there an extra thread?

Thread manager polling the other threads?
(Using threads on ARM should be avoided unless absolutely necessary)


- Eero

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] SQLITE development in IT2006

2006-07-14 Thread Siarhei Siamashka
On Friday 14 July 2006 02:41, Steven Hill wrote:

 Can anyone tell me either:
 1. Where I can find an ARMEL version of libsqlite3-dev to use when
 developing for the Nokia 770 IT2006 version, OR
 2. Where I can find a port of the libsqlite0 package to the ARMEL IT2006
 version.

 Failing that, how do I install the libsqlite0 package to a Nokia 770
 device running IT2006? I know that the package is available at the
 repository, but can't figure out how to get at it using the package
 installer!!!

Until a solid repository with all widely used thirdparty libraries is set up,
I think the most easy way of using sqlite is just installing it from sources
in SDK and linking statically with application. You can always add
libsqlite3-dev dependency in the future any time you want :)
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] initfs hacking questions

2006-07-14 Thread Frantisek Dufka

Hello,

recently  I tried to modify initfs to allow dual booting and got some 
questions:


Is there a way to get code of pressed HW key in /linuxrc script? There 
is command that waits  for keypress. There is also something is sysfs 
for detecting battery door, shell, headphone jack state but nothing 
simple for keys. Anything I missed or do I need to compile my own 
executable?


Which scratchbox uclibc toolchain should I use? There are two ones here
http://scratchbox.org/download/files/sbox-releases/0.9.8/tarball/
sf (softfloats) and non-sf.

What exactly is testserver? initfs is full in IT2006 so I need to delete 
something. I deleted testserver and its shared libraries and device 
seems to boot. Is this needed for device operation or it is really for 
factory testing or something like that so it never gets executed 
automatically on boot. How do I run those test anyway?


Can I distribute hacked initfs? If not, is binary patch OK?

Which functionality I loose when dsme is not executed from /linuxrc 
(battery charging?)


Is is a good idea to use cal-tool frequently (i.e on each boot) to set 
various flags (root device,..)? This get stored to flash, how it is with 
wear leveling of config partition?


Thanks for any answers.

Frantisek
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] initfs hacking questions

2006-07-14 Thread Igor Stoppa
On Fri, 2006-07-14 at 09:01 +0200, ext Frantisek Dufka wrote:
 Hello,
Hi,
I'll reply only to those points I'm 100% sure of, sorry for the
incomplete answer. Probabaly Devesh can provide some info on the legal
side.

 recently  I tried to modify initfs to allow dual booting and got some 
 questions:
 
 Is there a way to get code of pressed HW key in /linuxrc script? There 
 is command that waits  for keypress. There is also something is sysfs 
 for detecting battery door, shell, headphone jack state but nothing 
 simple for keys. Anything I missed or do I need to compile my own 
 executable?
 
 Which scratchbox uclibc toolchain should I use? There are two ones here
 http://scratchbox.org/download/files/sbox-releases/0.9.8/tarball/
 sf (softfloats) and non-sf.
 
 What exactly is testserver? initfs is full in IT2006 so I need to delete 
 something. I deleted testserver and its shared libraries and device 
 seems to boot. Is this needed for device operation or it is really for 
 factory testing or something like that so it never gets executed 
 automatically on boot. 
Only for test mode and factory. And you are right: it's a good target to
free space =)

 How do I run those test anyway?
 
 Can I distribute hacked initfs? If not, is binary patch OK?
 
 Which functionality I loose when dsme is not executed from /linuxrc 
 (battery charging?)
WDs kicking, sw watchdog for processes, battery charging, device mode control 
and backlighting(almost certainly).

 Is is a good idea to use cal-tool frequently (i.e on each boot) to set 
 various flags (root device,..)? This get stored to flash, how it is with 
 wear leveling of config partition?
 
 Thanks for any answers.
 
 Frantisek
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://maemo.org/mailman/listinfo/maemo-developers
-- 
Cheers,
   Igor

Igor Stoppa (Nokia M - OSSO / Tampere)
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] dspmpeg4sink

2006-07-14 Thread cmonst

Hi!

Does anyone get dspmpeg4sink gstreamer plugin working with video on
new maemo release?


--
Bart
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] Tinymail using mmap() gets killed by the kernel of the device

2006-07-14 Thread Philip Van Hoof
When I run tinymail behind a camel with the mmap() patch, on the device,
it will get killed by the kernel (it's not a Segfault, it's a kill by
the kernel).

When I run tinymail (behind a camel with the mmap..) on my desktop or in
scratchbox, everything works perfectly.

The OOM killer?

-- 
Philip Van Hoof, software developer at x-tend 
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
work: vanhoof at x-tend dot be 
http://www.pvanhoof.be - http://www.x-tend.be

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] Re: Tinymail using mmap() gets killed by the kernel of the device

2006-07-14 Thread Philip Van Hoof
On Fri, 2006-07-14 at 11:41 +0200, Philip Van Hoof wrote:
 When I run tinymail behind a camel with the mmap() patch, on the device,
 it will get killed by the kernel (it's not a Segfault, it's a kill by
 the kernel).
 
 When I run tinymail (behind a camel with the mmap..) on my desktop or in
 scratchbox, everything works perfectly.
 
 The OOM killer?

In this blog entry I describe how you can compile tinymail with this
mmap() patch. There's also binaries.

http://pvanhoof.be/blog/index.php/2006/07/13/its-not-a-release-but-its-available-for-your-nokia-770


-- 
Philip Van Hoof, software developer at x-tend 
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
work: vanhoof at x-tend dot be 
http://www.pvanhoof.be - http://www.x-tend.be

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] Re: Tinymail using mmap() gets killed by the kernel of the device

2006-07-14 Thread Ross Burton
On Fri, 2006-07-14 at 11:41 +0200, Philip Van Hoof wrote:
 When I run tinymail behind a camel with the mmap() patch, on the device,
 it will get killed by the kernel (it's not a Segfault, it's a kill by
 the kernel).
 
 When I run tinymail (behind a camel with the mmap..) on my desktop or in
 scratchbox, everything works perfectly.
 
 The OOM killer?

Check dmesg, the kernel logs when it OOMs.

Ross
-- 
Ross Burton mail: [EMAIL PROTECTED]
  jabber: [EMAIL PROTECTED]
 www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF



___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Re: Tinymail using mmap() gets killed by the kernel of the device

2006-07-14 Thread Philip Van Hoof
On Fri, 2006-07-14 at 11:15 +0100, Ross Burton wrote:
 On Fri, 2006-07-14 at 11:41 +0200, Philip Van Hoof wrote:
  When I run tinymail behind a camel with the mmap() patch, on the device,
  it will get killed by the kernel (it's not a Segfault, it's a kill by
  the kernel).
  
  When I run tinymail (behind a camel with the mmap..) on my desktop or in
  scratchbox, everything works perfectly.
  
  The OOM killer?
 
 Check dmesg, the kernel logs when it OOMs.

I don't remember a OOM message in dmesg. But at the terminal it prints
Killed (if it would have been a segfault, it would have printed
Segmentation fault).

I'm not at a location where I can get Internet access over wifi and I've
been using tinymail using the non-mmap patch (causing it to overwrite my
summary files with ones that can't be opened with the mmap code). So I
can't test at this moment. I will probably recheck the dmesg logs
tomorrow or this evening.

I do know that the mmap() and munmap() syscalls don't make the kill
happen. I know this because I mmap() before I know whether the summary
file has the right version or not. It's also detecting an incorrect
version, so it can at least read the first bytes (for sure). So it must
be something that happens while parsing the memory block.

I know I had to use some guint32's, maybe those are differently written
to the file on ARM?

Regretfully I don't have a debugger for the device (afaik) so I can't
check where or what's happening.

Running tinymail with gdb on SDK_ARMEL also isn't working :-(


-- 
Philip Van Hoof, software developer at x-tend 
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
work: vanhoof at x-tend dot be 
http://www.pvanhoof.be - http://www.x-tend.be

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Re: Tinymail using mmap() gets killed by the kernel of the device

2006-07-14 Thread Eero Tamminen
Hi,

 I know I had to use some guint32's, maybe those are differently written
 to the file on ARM?

On ARM memory accesses have to be aligned (e.g. long = 4 bytes,
so long accesses have to be aligned to 4 bytes).

AFAIK ANSI-C standard guarantees that structure members are always in
the same order (needed for NFS/RPC from the 80's I think :)), but
compiler will align the structure sizes.


- Eero

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] Maemo 2 EDS Tutorial

2006-07-14 Thread Luca Donaggio
Does a tutorial for the Evolution Data Server API (I'm especially interested to libecal) implemented for Maemo 2 / IT2006 exists? If yes, where can I find it?TIA,Luca Donaggio
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] Re: Maemo 2 EDS Tutorial

2006-07-14 Thread Ross Burton
On Fri, 2006-07-14 at 13:20 +0200, Luca Donaggio wrote:
 Does a tutorial for the Evolution Data Server API (I'm especially
 interested to libecal) implemented for Maemo 2 / IT2006 exists? If
 yes, where can I find it?

libecal isn't on the device.  For libebook documentation, see the
official API documentation at:

 http://www.gnome.org/projects/evolution/developer.shtml.

We (OpenedHand) will be releasing Dates 0.1 for the Nokia 770 shortly,
which will come with libecal.  I'll try and get it into the contrib
repository too.

Ross
-- 
Ross Burton mail: [EMAIL PROTECTED]
  jabber: [EMAIL PROTECTED]
 www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF



___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Re: Maemo 2 EDS Tutorial

2006-07-14 Thread Luca Donaggio
2006/7/14, Ross Burton [EMAIL PROTECTED]:
 libecal isn't on the device.For libebook documentation, see theofficial API documentation at: http://www.gnome.org/projects/evolution/developer.shtml
.We (OpenedHand) will be releasing Dates 0.1 for the Nokia 770 shortly,which will come with libecal.I'll try and get it into the contribrepository too.RossThanks Ross! I already took a look at the official API reference, but I was looking for something more straightforward, just to understand how the whole thing works: I won't need all the functionalities and looking at function's reference only is a little bit confusing for me!
Anyway, do you at OpendHand plan to release a ToDo after Dates, too?Luca Donaggio
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] USB Mouse

2006-07-14 Thread Bob Herrmann


I've connected a USB Keyboard and USB Ethernet with no problems (via a 
powered hub)...  So I thought I try using a USB mouse. 

Alas, it seems the mouse isn't recognized.  Is there some magic I need 
to do to tell Xomap about the USB Mouse? (ie. like use the USB mouse an 
enable a pointer.)


(I didnt send this to the users list, because I assumed this is pretty 
far off the typical user path.)

Thanks!
-bob

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] D-BUS question

2006-07-14 Thread Dionisis Petromanolakis



Hi all,

i want to make an application running on a normal 
desktop computer to communicate with maemo. Has anyone done something similar, 
are there any sources, tutorial available that could help me?

Can i do this usingD-BUS or i have to do it 
through normal unix sockets? I ve read about D-BUS and everywhere says that it 
is created for applications placed in the same computer. All the sample code i 
can find is about communication on a single computer, but in the site of d-bus 
it says that it can alsobe used for application that are not in the same 
machine.

any ideas are more than welcome,

regards,
dionysis

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] Re: D-BUS question

2006-07-14 Thread Ross Burton
On Fri, 2006-07-14 at 19:55 +0300, Dionisis Petromanolakis wrote:
 Hi all,
  
 i want to make an application running on a normal desktop computer to
 communicate with maemo. Has anyone done something similar, are there
 any sources, tutorial available that could help me?
  
 Can i do this using D-BUS or i have to do it through normal unix
 sockets? I ve read about D-BUS and everywhere says that it is created
 for applications placed in the same computer. All the sample code i
 can find is about communication on a single computer, but in the site
 of d-bus it says that it can also be used for application that are not
 in the same machine.

You can do D-Bus over TCP, but it's not advised.  You'd be better
creating your own protocol, or re-using an existing one.

Ross

-- 
Ross Burton mail: [EMAIL PROTECTED]
  jabber: [EMAIL PROTECTED]
 www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF



___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Re: D-BUS question

2006-07-14 Thread Dionisis Petromanolakis


- Original Message - 
From: Ross Burton [EMAIL PROTECTED]

To: maemo-developers@maemo.org
Sent: Friday, July 14, 2006 8:03 PM
Subject: [maemo-developers] Re: D-BUS question



On Fri, 2006-07-14 at 19:55 +0300, Dionisis Petromanolakis wrote:

Hi all,

i want to make an application running on a normal desktop computer to
communicate with maemo. Has anyone done something similar, are there
any sources, tutorial available that could help me?

Can i do this using D-BUS or i have to do it through normal unix
sockets? I ve read about D-BUS and everywhere says that it is created
for applications placed in the same computer. All the sample code i
can find is about communication on a single computer, but in the site
of d-bus it says that it can also be used for application that are not
in the same machine.


You can do D-Bus over TCP, but it's not advised.  You'd be better
creating your own protocol, or re-using an existing one.

Ross

--
Ross Burton mail: [EMAIL PROTECTED]
 jabber: [EMAIL PROTECTED]
www: http://www.burtonini.com./
PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF



___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers




hi Ross,

do you have any links for a protocol that i could use or at least use as a 
reference to create mine?


thanx
dionysis 




___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Re: D-BUS question

2006-07-14 Thread alessandro pasotti
It's from The art of computer programming by Eric Raymond
Ooops: it was of UNIX programming obviously.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] D-BUS question

2006-07-14 Thread Ted Zlatanov
On 14 Jul 2006, [EMAIL PROTECTED] wrote:

 i want to make an application running on a normal desktop computer
 to communicate with maemo. Has anyone done something similar, are
 there any sources, tutorial available that could help me?

The choice of protocol depends on what you are communicating, but you
can probably use HTTP calls (unless you have a lot of binary data or
your communication is bidirectional).  HTTP is easy to test, trace,
and automate.  It has a small overhead for text data.

Ted
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] strange thin crack in hardware... see fotos

2006-07-14 Thread Collin R. Mulliner
check out: http://www.mulliner.org/nokia770/pool/fotos/broken_hw/

..it shows my device with a thin crack on the connector panel at the
lower part of the device. The device still works 100% as far as I can
tell. I can't recall dropping my device other then once from about 15cm
to the carpet (this was some weeks ago). Today I discovered the strange
crack which seems to go right through the connector panel. Check out
the 4 fotos I made.


... Collin

--
Collin R. Mulliner [EMAIL PROTECTED]
BETAVERSiON Systems [www.betaversion.net]
info/pgp: finger [EMAIL PROTECTED]
The truth is usually just an excuse for lack of imagination. --Garak

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] strange thin crack in hardware... see fotos

2006-07-14 Thread Andrew Barr
On Friday 14 July 2006 19:33, Collin R. Mulliner wrote:
 check out: http://www.mulliner.org/nokia770/pool/fotos/broken_hw/

 ..it shows my device with a thin crack on the connector panel at the
 lower part of the device. The device still works 100% as far as I can
 tell. I can't recall dropping my device other then once from about 15cm
 to the carpet (this was some weeks ago). Today I discovered the strange
 crack which seems to go right through the connector panel. Check out
 the 4 fotos I made.

I have a similar crack in my device. It's been there for a few months now and 
it's not gotten worse. I don't recall if I dropped it or not. I'll post some 
photos as well if anyone cares to see it.

-- 
Andrew Barr | http://www.oakcourt.dyndns.org/~andrew/ | GPG: 0xAD9AE76A
Those who would trade liberty for security deserve neither. -- B. Franklin
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


RE: [maemo-developers] strange thin crack in hardware... see fotos

2006-07-14 Thread Jason Mills
A huge number of us have cracks, some people had them within hours or days of
buying their 770. See the muliple threads on
http://www.InternetTabletTalk.com/ forums.

-JMills. Estonian build, USB to headphone crack, no drops.


-Original Message-
From: [EMAIL PROTECTED] on behalf of Andrew Barr
Sent: Fri 14-Jul-06 16:44
To: maemo-developers@maemo.org
Subject: Re: [maemo-developers] strange thin crack in hardware... see fotos
 
On Friday 14 July 2006 19:33, Collin R. Mulliner wrote:
 check out: http://www.mulliner.org/nokia770/pool/fotos/broken_hw/

 ..it shows my device with a thin crack on the connector panel at the
 lower part of the device. The device still works 100% as far as I can
 tell. I can't recall dropping my device other then once from about 15cm
 to the carpet (this was some weeks ago). Today I discovered the strange
 crack which seems to go right through the connector panel. Check out
 the 4 fotos I made.

I have a similar crack in my device. It's been there for a few months now and
it's not gotten worse. I don't recall if I dropped it or not. I'll post some 
photos as well if anyone cares to see it.

-- 
Andrew Barr | http://www.oakcourt.dyndns.org/~andrew/ | GPG: 0xAD9AE76A
Those who would trade liberty for security deserve neither. -- B. Franklin
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers