Re: [maemo-developers] automatic byte order check

2006-08-21 Thread Jean-Baptiste Note

Hello,

The (linux) kernel has endianess-aware integer types (__be_u16 or
something similar) which allow the access to be checked for endianess
problems (basically reading an endianess-annotated type into a
non-endianess-specified (ie native endianess) type must go through a
byte order macro).

You have to annotate by hand all shared structures with these types.
In your case, this would be all network-shared structures.

I'm not sure the compiler does the check though, it may be an external
tool. It could be however very interesting to generalize this outside
of the kernel.

JB

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


Re: [maemo-developers] Maemo alarms

2006-07-28 Thread Jean-Baptiste Note
Hi Nils, Chris,

Chris Lord [EMAIL PROTECTED] wrote:

 On Fri, 2006-07-28 at 11:33 +0200, Nils Faerber wrote:
   Are there any header files/libraries available that provide this
   functionality that I'm missing? The Clock application has the
   ability to set alarms that wake the device, so it must be
   possible.

From the reverse-engineering department, have you straced this Clock
application to have a look at what it does (I don't have a N770, so
this is a very wild guess) ?

Either it's doing the alarm setting directly (possibly through the
kernel), and then you'll precisely see what needs be done, or it does it
via some IPC to another app (which you'll need to identify and strace
accordingly). This may be faster than waiting for a response :)

JB

-- 
Jean-Baptiste Note
+33 (0)6 83 03 42 38
[EMAIL PROTECTED]


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


Re: [maemo-developers] custom gstreamer plugins

2006-07-28 Thread Jean-Baptiste Note
Hello,

To be a bit more precise, a plugin won't load if it has unresolved
symbols/libraries at load time. This is something that bites badly when
developping custom plugins.

You may know which libraries are needed (and the missing ones should be
clearly outlined) by running ldd on the .so file of your plugin.

For instance on an (x86) debian system:

ldd /usr/lib/gstreamer-0.10/libgstmpeg2dec.so
linux-gate.so.1 =  (0xe000)
libgstreamer-0.10.so.0 = /usr/lib/libgstreamer-0.10.so.0
(0xb7e9b000) libgobject-2.0.so.0 = /usr/lib/libgobject-2.0.so.0
(0xb7e6) libgmodule-2.0.so.0 = /usr/lib/libgmodule-2.0.so.0
(0xb7e5c000) libdl.so.2 = /lib/tls/libdl.so.2 (0xb7e3d000)
libgthread-2.0.so.0 = /usr/lib/libgthread-2.0.so.0 (0xb7e39000)
libxml2.so.2 = /usr/lib/libxml2.so.2 (0xb7d2)
libz.so.1 = /usr/lib/libz.so.1 (0xb7d0b000)
libm.so.6 = /lib/tls/libm.so.6 (0xb7ce5000)
libglib-2.0.so.0 = /usr/lib/libglib-2.0.so.0 (0xb7c5d000)
libmpeg2.so.0 = /usr/lib/libmpeg2.so.0 (0xb7c3f000)
libpthread.so.0 = /lib/tls/libpthread.so.0 (0xb7c2d000)
libc.so.6 = /lib/tls/libc.so.6 (0xb7af5000)
/lib/ld-linux.so.2 (0x8000)

Now, ldd must be available on the N770, of course :)

JB


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


Re: [maemo-developers] Nokia 770 CPU clock frequency question

2006-04-09 Thread Jean-Baptiste Note
Hi,

You definitely want to have a look in the maemo kernel sources in:

kernel-source-2.6.12.3-2.6.12.3/arch/arm/mach-omap/clock.h

and more importantly for starters:

kernel-source-2.6.12.3-2.6.12.3/arch/arm/mach-omap/clock.h

I think that a proper reading of the frequency would poke the
appropriate registers.

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


Re: [maemo-developers] WLAN GPL driver announcement

2006-04-04 Thread Jean-Baptiste Note
Hi Greg,

 Now that the softmac layer is in the mainline kernel tree, is there a
 simple patch that provides this driver?  Why is it not also in the
 mainline kernel tree now?

Until now I used the madwifi net80211 stack. This what I offer for
download, and what I get feedback on from people using the driver.

Pete was alone porting the driver to the in-kernel softmac, much to my
shame. The port does not seem complete at the moment - it doesn't seem
to work right with Pete's devices at least, and I have not tested it on
mine. My plan to help Pete for the in-tree softmac port (there are
protocol subtleties which are not documented and cause problems), and
then propose for mainline inclusion under Pete's guidance.

But i'm not fast.

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