Re: Battery drain with Diablo 4.2008.23-14

2008-08-12 Thread Juan A. Suarez Romero
On Mon, 2008-08-11 at 21:59 +0200, olle wrote:
 Had a similar experience when upgrading an N800 a while ago.
 IIRCC the fix then was to delete and recreate the swap file.

Thanks for your tip. But I didn't use any swap file.

Anyway, seems that disabling RD mode fixes the problem.

Moreover, besides having that mode, I had activated usb-host-mode and
rd-flags=serial-console, so I'm not sure if some of this sets were
draining the battery.

But thank you everyone for your help!

B.R.


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


Re: Multi-boot Diablo and Chinook

2008-08-12 Thread David Greaves
Frantisek Dufka wrote:
 David Greaves wrote:
 I don't see anything wrong, few random hints
 
 - extract rootfs.jffs2 from .bin again and never mount it rw on desktop
 i.e. do 'mount -t jffs2 -o ro /tmp/mtdblock0 /tmp/jffs2' on PC. I've
 seen corruption of the image if mounted rw on PC.
 
 - use tar instead of rsync (should not make much difference)
 
 - performance tip - mount destination ext2 with noatime, run rsync with
 --inplace to prevent creating 2x more files in destination (one
 temporary, one real)

Well, I did that - and I also cleaned off the partition before copying the data
over - and something worked!

I'll try and determine if anything else was amiss

Thanks for the suggestions :)

David



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


Determining target kernel version in scratchbox

2008-08-12 Thread Andrew Zabolotny
Hello!

I'm implementing a kernel-dev package which should contain just the
important headers and kernel makefile system, which can be used to
easily build out-of-tree modules for ITOS.

The idea is that a kernel module source package will Build-Depend: on
the kernel-dev package, and then do something like:

make -C /lib/modules/$(KVER)/build M=$(CURDIR)/my_driver

and voila! you get a .ko file in my_driver/.

However, I don't know yet how to determine the value for KVER. In
Diablo and Chinook this is 2.6.21-omap1. Usually this is computed as
`uname -r`, but in scratchbox this won't work (will return the kernel
release for the host OS, not for Diablo).

Is there any easy way to determine the kernel version for target OS in
scratchbox?

Also a related question: what packages are installed
in autobuilder besides maemo-sdk-rootstrap? I see that the rootstrap
does not contain the gtk/hildon stuff, so some more packages are
somehow installed by default... Why I ask this - I found that somehow I
got the kernel-diablo-modules package installed in my scratchbox
environment, and it contains a link /lib/modules/current which contains
a link to /lib/modules/$(KVER), so you could do just 'make
-C /lib/modules/current/build' instead.

-- 
Andrew


signature.asc
Description: PGP signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Battery drain with Diablo 4.2008.23-14

2008-08-12 Thread Eero Tamminen
Hi,

ext Juan A. Suarez Romero wrote:
 On Mon, 2008-08-11 at 21:59 +0200, olle wrote:
 Had a similar experience when upgrading an N800 a while ago.
 IIRCC the fix then was to delete and recreate the swap file.
 
 Thanks for your tip. But I didn't use any swap file.
 
 Anyway, seems that disabling RD mode fixes the problem.
 
 Moreover, besides having that mode, I had activated usb-host-mode and
 rd-flags=serial-console, so I'm not sure if some of this sets were
 draining the battery.

Serial-console RD setting will definitely drain your battery and
if you don't have anything connected to the device serial connection
pins, it will cause random reboots and other funny effects (because
random serial input sometimes manages to match SysRq keyboard
shortcuts).

Note that RD settings aren't cleared when the device is flashed
and in general users should have any need for them...


 But thank you everyone for your help!


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


portaudio (again)

2008-08-12 Thread Chris Dobbs
Hi all,
I am trying to get portaudio working on the N800. I can compile and build 
everything ok but when I try to run the pa test programs on the N800 I get 
things this:


Nokia-N800-44-4:~# ./pa_devs-v19
Expression 'ioctl( devHandle, SNDCTL_DSP_CHANNELS, temp )' failed in 
'src/hostapi/oss/pa_unix_oss.c', line: 405
Expression 'ioctl( devHandle, SNDCTL_DSP_CHANNELS, temp )' failed in 
'src/hostapi/oss/pa_unix_oss.c', line: 405
PortAudio version number = 1899
PortAudio version text = 'PortAudio V19-devel (built Aug 11 2008)'
Number of devices = 0
--


I realised early on that PA used /dev/dsp so I did ln -s /dev/dsptask/pcm1 
/dev/dsp
I have tried various others but to no avail, can anyone help I know PA supports 
OSS and ALSA which are both installed on the N800, although I think esd is the 
default driver.

-Chris


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


WLAN driver for STLC4550 - 11n BT HomeHub2

2008-08-12 Thread Gottfried F. Zojer
Hello to all,

Can someone advise me where to find more information about the WLAN
connection of the N800.

I m aware that he is using a STLC4550 chip and was working fine so far with
all AP i was using.

That changed since i swapped to BT HomeHub2 what runs 11n.Since that time
the device isnot recognizing the new Hub.

Expect when I but the setting on ad hoc,then I can see the Hub but no
connection to internet possible.

I m running OS2007 Version 4.2007.26-8


Any feedback welcome


Best regards


Gottfried

www.wirtschaftswunder.co.uk
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Memory card mmc changed status to Read only file system (30)

2008-08-12 Thread Darius Jack
Hi,

OS2007HE worked fine, run shell scripts, applications.
Recently run wget in recursive mode.
Download to flash memory.
Learned  how to recorsive download to media memory card (MMC).
Copied downloaded html files from flash to memory card to make room on flash.

And finally tried to remove wget downloaded files from media memory card
and found out any, every, each file to be asterisked and can not be deleted.

run mount from command line
one entry for /media/mmc1

/dev/mcblk0.. on /media/mmc1 type vfat (rw, noauto, nodev, noexec, nosuid, 
utf8, uid=2, shortname=mixed, dmask=000)

chmod -x /media/mmc1
chmod: /media/mmc1: Read-only file system

I gvet used media card to save maps in maemo mapper,
today nbo chance to run maemo-mapper.

Please tell me how to have /media/mmc1 back read-write file system,
as changed nothing exceptionally to change status of media file system.


Darius

Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Memory card mmc changed status to Read only file system (30)

2008-08-12 Thread maemo
On Tue, 12 Aug 2008, Darius Jack wrote:

 OS2007HE worked fine, run shell scripts, applications.
 Recently run wget in recursive mode.
 Download to flash memory.
 Learned  how to recorsive download to media memory card (MMC).
 Copied downloaded html files from flash to memory card to make room on flash.
 
 And finally tried to remove wget downloaded files from media memory card
 and found out any, every, each file to be asterisked and can not be deleted.
 
 run mount from command line
 one entry for /media/mmc1
 
 /dev/mcblk0.. on /media/mmc1 type vfat (rw, noauto, nodev, noexec, nosuid, 
 utf8, uid=2, shortname=mixed, dmask=000)
 
 chmod -x /media/mmc1
 chmod: /media/mmc1: Read-only file system

Sometimes, a corrupt file-system will be forced into read-only mode. Take 
the card out and run some disk checking tool on a PC/Mac/Linux machine.



-- 
Aj.

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


Re: Maemo SDK scratchbox breaks with Debian lenny upgrade

2008-08-12 Thread Graham Cobb
On Sunday 10 August 2008 18:11:58 Graham Cobb wrote:
 I use UML on another system and it is a good compromise.  It achieves near
 native speed. My only problem is creating a reliable UML kernel.  I am
 hopeful I will eventually succeed!

In case anyone else hits this problem of using scratchbox on a Debian lenny 
64-bit system, I have got a workround.  I have a UML 32-bit kernel which 
seems to run on AMD64 (with latest lenny AMD64 kernel) and which supports 
building using scratchbox.

I have created a debian package for it (derived from the standard 
user-mode-linux package) which you can download from:

http://www.cobb.uk.net/NokiaIT/uml-maemo_2.6.25-1um-2maemo1_i386.deb

sources:

http://www.cobb.uk.net/NokiaIT/uml-maemo_2.6.25-1um-2maemo1.tar.gz

This installs on i386 but to install it on amd64 you have to force it:

dpkg --force-architecture -i uml-maemo_2.6.25-1um-2maemo1_i386.deb

To run the kernel, use /usr/bin/linux.uml.maemo.  Note that the kernel version 
number ends in -maemo-32 so that the modules (in /usr/lib/uml/modules) do not 
conflict with the standard user-mode-linux package.

Of course, to use this you have to create a disk image with the stuff you want 
installed, just as with any user-mode-linux (or qemu or vmware) emulator.

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


Xorg patches

2008-08-12 Thread Capn_Fish Zaurus
Where are the patches for the Xorg server for Xomap? I have the patched GIT
1.3.99.0 source, but I'd like the patches to possibly apply to newer
versions of Xorg, and doing a diff of a specific revision of an app isn't
really practical.

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


build status: UNKNOWN?

2008-08-12 Thread Pavel Rojtberg
on uploading a new version of my package, I get UNKNOWN as the build 
status. The mail itself contains:

[2008-08-12 23:05:02] Processing package youamp 0.3.8-2. Uploader: 
madman2k, builder: builder1
[2008-08-12 23:05:03] Building youamp 0.3.8-2 for target 
'maemo-diablo-i386-extras-devel'

is this due to todays OS upgrade and will go away on its on?
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: build status: UNKNOWN?

2008-08-12 Thread Ryan Abel

- Original message -
 on uploading a new version of my package, I get UNKNOWN as the build
 status. The mail itself contains:

 [2008-08-12 23:05:02] Processing package youamp 0.3.8-2. Uploader:
 madman2k, builder: builder1
 [2008-08-12 23:05:03] Building youamp 0.3.8-2 for target
 'maemo-diablo-i386-extras-devel'

 is this due to todays OS upgrade and will go away on its on?
 

The ISP firewalled off the builder or somesuch during the move. Give it a day 
or two.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Who have an internal GPS application demo?

2008-08-12 Thread dumganhar
Hi,all!
   I am developing a GPS application! have found   many  informations about GPS 
with bluetooth ,but I still can't find how to use interal GPS!Could someone 
help me and give me a demo written by C? Thanks!
2008-08-13 



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


How to get he WLAN MAC address?

2008-08-12 Thread dumganhar
I will use this for registration!Thanks for helps!

2008-08-13 



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


Re: portaudio (again)

2008-08-12 Thread David Huggins-Daines
Chris Dobbs wrote:

 I realised early on that PA used /dev/dsp so I did ln -s /dev/dsptask/pcm1 
 /dev/dsp
 I have tried various others but to no avail, can anyone help I know PA 
 supports OSS and ALSA which are both installed on the N800, although I think 
 esd is the default driver.

I have never known OSS to work on the N800, but I could be wrong...

There is an ALSA driver which seems to be somewhat unreliable for
recording - at least, it doesn't work for me, but it could be my code
rather than the driver itself.  I believe (but this may have changed)
that it's a package in extras that needs to be installed.  This may have
improved lately, but I haven't checked.

Your mileage may vary.  I've only really had success with GStreamer for
recording audio on the Maemo platform.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: PIL and camera.py

2008-08-12 Thread Alex T. W. LEUNG
Hi maemo developers,

I notice that there was an email with the captioned subject from D.
Scott Brown last email.

The below code fragment works from me, see if it helps for anyone who
are interested in enhancing the camera.py example.

def buffer_cb(pad, buffer):
# Here you have a chance to do something with the image buffer
w,h=320,240
print buffer.size
im = Image.frombuffer('RGB', (w,h), buffer.data, 'raw', 'RGB',
0, 1)
im.save(foo2.jpeg, JPEG)
return True

Alex Leung.

~
This message (including any attachments) is for the named
addressee(s)'s use only. It may contain sensitive, confidential,
private proprietary or legally privileged information intended for a
specific individual and purpose, and is protected by law. If you are
not the intended recipient, please immediately delete it and all copies
of it from your system, destroy any hard copies of it
and notify the sender. Any use, disclosure, copying, or distribution of
this message and/or any attachments is strictly prohibited.


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