SarynPaint: a Java program packaged for the OLPC

2009-08-28 Thread Ben Wiley Sittler
A friend of mine wrote a hand/eye coordination game called SarynPaint
and recently released the source code. SarynPaint is written in Java,
so you'll need to install OpenJDK to use it. I just checked in minimal
support for launching it from Sugar and rolled a .xo activity bundle
file.

The project: http://sarynpaint.googlecode.com/

The activity bundle file: http://sarynpaint.googlecode.com/files/sarynpaint-1.xo

How to get OpenJDK: http://wiki.laptop.org/go/Java#Installing_OpenJDK_Java

I haven't been able to test that .xo link on an actual OLPC yet, so
feel free to pass along bug reports, experiences, etc.

So, is there some way I could list the OpenJDK dependency in the
activity.info file and have the system offer to download and install
OpenJDK if it has not yet been installed?

-Ben
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


DataManager version 1

2009-08-28 Thread Tony Anderson
Hi,

I posted the DataManager activity to ASLO today. It matches the code 
currently on gitorious.

The intent of the DataManager is to deal with a problem faced in Nepal
which is the small size of the Nand. The current backup/restore feature 
does not provide a way for the user to remove entries from the local store.

The activity works on 0.82 with the Nepal version of the schoolserver, 
although I don't see why it wouldn't work with any version.

It works in three phases. At launch it builds a list from the 
schoolserver (when connected) of all the entries. It provides a color code:

light green - entry not stored locally
green - entry stored locally (as well as on the schoolserver)
cyan - entry on the schoolserver in Commons
blue - entry from Commons stored locally
red - new entry not yet uploaded to the schoolserver
white - entry without an associated document

The status bar reports the number of entries in the datastore and the 
percentage of the Nand in use.

In phase 2 the user can double-click on an entry. If it is on the local 
XO (green or blue), it will be removed (but will still be on the 
schoolserver). If it is not on the XO (light green or cyan), it will be 
downloaded to the XO.

When the user clicks on the Stop button on the activity toolbar, the 
activity performs the file operations: upload, download, and delete 
based on the user's requests. Entries in red are automatically saved to 
the schoolserver. Entries in white are deleted (to the best of may 
understanding, resuming these entries is the same as launching from the 
home view so they essentially only clutter the journal).

This mechanism gives a simple way for the user to control what is 
available when the XO is not connected to the schoolserver (after 
school, for example). It also protects the datastore in case the XO must 
be reflashed.

Implementation requires that the DataManager activity runs as olpc 
(added to the activityfactory list) and that public keys and permissions 
be implemented on the schoolserver (something that a deployment should 
do when the XO registers with the schoolserver)

I hope to see this activity get a live workout when I return to Nepal at 
the end of September. In the meantime, it is available for test and comment.

Yours,

Tony


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Building a kernel module (Re: Problems compiling bluetooth module)

2009-08-28 Thread S Page
I put your wisdom in a new section

, please improve it. Thanks.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Problems compiling bluetooth module

2009-08-28 Thread Emiliano Pastorino
OK, it worked.
This is what I did:

make ARCH=i386 INSTALL_MOD_STRIP=1 olpc_defconfig
make ARCH=i386 INSTALL_MOD_STRIP=1 menuconfig
there, I activated bluetooth
make ARCH=i386 INSTALL_MOD_STRIP=1 modules
make ARCH=i386 INSTALL_MOD_STRIP=1 modules_install

modules compiled and ?worked?

well, it seems I need /usr/sbin/bluetoothd provided by bluez,
but there's no bluez package avaiable, so I'll try to compile
the source code and see what happens...

I'll tell you whether I succeeded or not

thanks!

On Fri, Aug 28, 2009 at 12:25 PM, Paul Fox  wrote:

> emiliano wrote:
>  > Hi everyone!
>
> hi emiliano --
>
>  >
>  > I have a USB Bluetooth adapter and I need to make it work on an XO.
>  > Don't want to recompile the whole kernel but to compile only the kernel
>  > module.
>
> it's probably easier to compile the whole thing, and then just use
> the resulting module.
>
>  >
>  > I've never done this, so maybe I'm missing something...
>  > The module I'm trying to compile is "btusb" (I hope this is the one I
> need).
>  > I'm using kernel 2.6.25-20090223.1.olpc.69098d87d56945c, so I got
>  > the corresponding src.rpm from 
> http://dev.laptop.org/~dilinger/testing/.
>  > I've also installed kernel-devel, kernel-headers, gcc, glibc,
> glibc-devel,
>  > glibc-headers and make in my XO (maybe I forgot others).
>  >
>  > I moved to /usr/src/redhat/SOURCES/linux-2.6.25/drivers/bluetooth
>  > and edited Makefile so it looks like this:
>
> don't do that.  at the top level directory, run "make menuconfig".
> navigate to Network->Bluetooth and Network->Bluetooth->Bluetooth Drivers.
> enable what you need.  when in doubt, turn it on -- you don't
> have to put the module on your XO, but if you need it, you'd
> rather not build again.
>
> after saving your new config, type "make".
>
> paul
>
>  >
>  > obj-m := btusb.o
>  >
>  > KDIR := /lib/modules/$(shell uname -r)/build
>  > PWD := $(shell pwd)
>  >
>  > default:
>  > $(MAKE) -C $(KDIR) M=$(PWD) modules
>  >
>  > Then I ran make but I get 5 warnings about functions which aren't
>  > defined: hci_recv_fragment, hci_register_dev, hci_alloc_dev,
>  > hci_free_dev and hci_unregister_dev. Those functions are defined
>  > in /usr/src/kernels/2.6.25/include/net/bluetooth/hci_core.h
>  >
>  > I've successfully compiled the module in my desktop PC, but it
>  > won't compile in my XO. Actually, it does compile, but when I
>
> it's likely that module relationships between the kernel versions
> you're building for your desktop, and for your XO.
>
> paul
>
>  > run "insmod btusb.ko" it gives an error about the above symbols
>  > being undefined.
>  >
>  > Any tips? Am I missing something like defining a path?
>  >
>  > Thanks!
>  > Emiliano
>  > part 2 text/plain 129
>  > ___
>  > Devel mailing list
>  > Devel@lists.laptop.org
>  > http://lists.laptop.org/listinfo/devel
>
> =-
>  paul fox, p...@laptop.org
>



-- 
Ing. Emiliano Pastorino
LATU - Plan Ceibal
Av. Italia 6201 CP: 11500, Montevideo, Uruguay
Tel: (598 2) 601 5773 int.: 213
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


NOW: Contributors Program Mtg! (Fri 2PM Boston time, #olpc-meeting)

2009-08-28 Thread Holt
Please join us Right Now reviewing the latest OLPC/Sugar community 
projects over IRC Live Chat:  (2PM EDT Boston Time Friday)

http://forum.laptop.org/chat

Then type at bottom:
/join #olpc-meeting


AGENDA:

* New projects & libraries -- teaching them Community Outreach:
 http://wiki.laptop.org/go/Projects#XO_Laptop_Lending_Libraries

* Which projects might you enjoy Mentoring?!
 http://wiki.laptop.org/go/Projects
 http://rt.laptop.org/Search/Results.html?Query=Queue=%27contributors%27

* Fast Review of the 3 latest (greatest!) HW/Project Proposals -- please
 join us advocating for and/or reviewing shortcomings of these proposals:



1. XO-Contest - Switzerland
  http://rt.laptop.org/Ticket/Display.html?id=44785
  http://www.xo-contest.ch
  http://olpc.ch

  Requests 30 XO's over 30 months

  Project Objectives:
  All classes, pupils students, scientists, hackers and geeks in
  Switzerland are cordially invited to join the XO-competition. The
  competition consists in the creation of a free choice of written
  work, which has to stand in connection with the project "One
  Laptop per Child". By keeping a diary blog and a final
  publication, this competition should make a substantial
  contribution of Switzerland to the global development project.
  Although the written work is accepted from a variety of fields,
  contributions in the domains of computer science and pedagogy are
  favored. If a submitted project is accepted by the jury, then the
  XOs needed will be borrowed for the duration of the work.
  In spring 2011, all accepted works will be judged by a jury,
  consisting of experts from academia and practice, all standing
  close to the OLPC project. The best works will be awarded, at
  least an extract of the work will be published and the winners
  will receive an XO.  [XO-1.5's are currently being considered
  as "Grand Prize"]


2. Laptop Lending Library Springfield, MA - Massachusetts, USA
  http://rt.laptop.org/Ticket/Display.html?id=46284
  http://doberolpc.webs.com

  Requests 10 XO's over 12 months

  Project Objectives:
  The objectives of our project, Laptop Lending Library of Springfield, MA,
  are either to provide people in this location with XO Laptops to help
  with their projects, or to introduce these laptops to people in our
  neighborhood and let them evaluate them for a week or so, and tell us
  what they want to see improved, added, or removed. We will then try
  to develop these programs that they want to see added, and try to
  make the programs better that they want to see improved.


3. Children With Special Needs “The Deaf At The Age of 6-12 Years” - 
Kenya [REVISED SUBMISSION]

  http://rt.laptop.org/Ticket/Display.html?id=43624

  Requests 10 XO's over 4+ months

  Project Objectives:

  1. To create a curriculum based on the Kenyan standards of special
  education for children/pupils with ear impediment so that the curriculum
  will help them use XO tools like memorize to help them remember and
  retain what they learned in class but could not be retain because of
  hearing problems

  2. The create a curriculum that will enforce and teach math skills by
  use of mathematics symbols like + - x through the aid of Gcomprise.

  3. To use the write activity to help the children improve their
  writing speed skills and spelling as they continuously do practice
  without necessary being with the teacher.

  4. To use the paint activity to make different drawings that enable
  the deaf children to express themselves well and also draw pictures and
  allow the child to paint them. This enables a connection between the
  teacher and the child since the child is able to express him/herself 
well.


  5. Use turtle art to help the child in making some drawings and as well
  as writing names. This allows the children to be more creative. It also
  helps the pupil increase confidence and hence reduces frustration.

  6. To enable these students to learn pronunciation and vocabulary from
  recorded speech created by the instructors.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Problems compiling bluetooth module

2009-08-28 Thread Paul Fox
emiliano wrote:
 > Hi everyone!

hi emiliano --

 > 
 > I have a USB Bluetooth adapter and I need to make it work on an XO.
 > Don't want to recompile the whole kernel but to compile only the kernel
 > module.

it's probably easier to compile the whole thing, and then just use
the resulting module.

 > 
 > I've never done this, so maybe I'm missing something...
 > The module I'm trying to compile is "btusb" (I hope this is the one I need).
 > I'm using kernel 2.6.25-20090223.1.olpc.69098d87d56945c, so I got
 > the corresponding src.rpm from http://dev.laptop.org/~dilinger/testing/ .
 > I've also installed kernel-devel, kernel-headers, gcc, glibc, glibc-devel,
 > glibc-headers and make in my XO (maybe I forgot others).
 > 
 > I moved to /usr/src/redhat/SOURCES/linux-2.6.25/drivers/bluetooth
 > and edited Makefile so it looks like this:

don't do that.  at the top level directory, run "make menuconfig".
navigate to Network->Bluetooth and Network->Bluetooth->Bluetooth Drivers.
enable what you need.  when in doubt, turn it on -- you don't
have to put the module on your XO, but if you need it, you'd
rather not build again.

after saving your new config, type "make".

paul

 > 
 > obj-m := btusb.o
 > 
 > KDIR := /lib/modules/$(shell uname -r)/build
 > PWD := $(shell pwd)
 > 
 > default:
 > $(MAKE) -C $(KDIR) M=$(PWD) modules
 > 
 > Then I ran make but I get 5 warnings about functions which aren't
 > defined: hci_recv_fragment, hci_register_dev, hci_alloc_dev,
 > hci_free_dev and hci_unregister_dev. Those functions are defined
 > in /usr/src/kernels/2.6.25/include/net/bluetooth/hci_core.h
 > 
 > I've successfully compiled the module in my desktop PC, but it
 > won't compile in my XO. Actually, it does compile, but when I

it's likely that module relationships between the kernel versions
you're building for your desktop, and for your XO.

paul

 > run "insmod btusb.ko" it gives an error about the above symbols
 > being undefined.
 > 
 > Any tips? Am I missing something like defining a path?
 > 
 > Thanks!
 > Emiliano
 > part 2 text/plain 129
 > ___
 > Devel mailing list
 > Devel@lists.laptop.org
 > http://lists.laptop.org/listinfo/devel

=-
 paul fox, p...@laptop.org
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Pilgrim workflow: Getting signatures into images?

2009-08-28 Thread Michael Stone
Hi Martin,

When I left, you could read about the gory details on a page named something
like "Signature procedure" on the internalwiki. I'm confident that cjb can find
it for you. (Unfortunately, I really thought that Erik had rewritten a public
copy of this as part of his http://wiki.laptop.org/go/OS_Image_Digestor writeup
but I can't find it on that page or in the linked-to source code.)

Anyhow, the brief summary of that page is that the signatures are produced over
the kernel, initramfs, and firmware by unpacking the build tarball, extracting
the appropriate files from the build, copying the kernel, firmware and
initramfs to local media, verifying that you have the files you want, manually
signing the files on a protected machine, and then pushing the results back
into the build.

This is all handled by carefully following the written instructions mentioned
above which, in turn, direct you on how to use the scripts and code in the
'bios-crypto' and 'users/cscott/upgrade-server' git modules.

These integration scripts were typically run on updates.laptop.org and on the
(protected) signing machine.

As I recall, pilgrim itself only knows about signing keys as an artifact of the
initial creation and testing of the signing infrastructure or perhaps in order
to make it easier to test builds on test machines that have been "secured" with
keys whose private halves have been published.

Regards,

Michael

P.S. - Mitch -- are there public instructions for how to do the signing needed
to make the multi-key support work that I can't find?
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Problems compiling bluetooth module

2009-08-28 Thread Emiliano Pastorino
Hi everyone!

I have a USB Bluetooth adapter and I need to make it work on an XO.
Don't want to recompile the whole kernel but to compile only the kernel
module.

I've never done this, so maybe I'm missing something...
The module I'm trying to compile is "btusb" (I hope this is the one I need).
I'm using kernel 2.6.25-20090223.1.olpc.69098d87d56945c, so I got
the corresponding src.rpm from http://dev.laptop.org/~dilinger/testing/ .
I've also installed kernel-devel, kernel-headers, gcc, glibc, glibc-devel,
glibc-headers and make in my XO (maybe I forgot others).

I moved to /usr/src/redhat/SOURCES/linux-2.6.25/drivers/bluetooth
and edited Makefile so it looks like this:

obj-m := btusb.o

KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

default:
$(MAKE) -C $(KDIR) M=$(PWD) modules

Then I ran make but I get 5 warnings about functions which aren't
defined: hci_recv_fragment, hci_register_dev, hci_alloc_dev,
hci_free_dev and hci_unregister_dev. Those functions are defined
in /usr/src/kernels/2.6.25/include/net/bluetooth/hci_core.h

I've successfully compiled the module in my desktop PC, but it
won't compile in my XO. Actually, it does compile, but when I
run "insmod btusb.ko" it gives an error about the above symbols
being undefined.

Any tips? Am I missing something like defining a path?

Thanks!
Emiliano
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] The ARM is near

2009-08-28 Thread Martin Langhoff
On Fri, Aug 28, 2009 at 1:09 PM, Gonzalo Odiard wrote:
> We can't  use PackageKit for this?

Sure! But you want to have the process of calling PK controlled by
Sugar Shell to provide a consisten UI experience.

(re-added lists to CC)



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] The ARM is near

2009-08-28 Thread s . boutayeb
Selon Tomeu Vizoso :


> Also, Sugar has been reported to run on the Gdium which uses a MIPS
> Loongson CPU. If someone on this list has access to one of those, we
> could check that activities with binaries are made to run there as
> well.

Sugar does run on the Yeeloong netbook, which uses the same CPU as the gdium and
runs Debian, Gentoo, and pdaxrom (http://www.pdaxrom.org/).

As for the porting to the gdium, this is a work in progress.

Kind regards

Samy

>
> Regards,
>
> Tomeu
>
> >  - Fedora has a 'secondary arch' ARM port for F11 -- probably
> > interesting to SoaS people.
> >
> > hth,
> >
> >
> > m
> > --
> >  martin.langh...@gmail.com
> >  mar...@laptop.org -- School Server Architect
> >  - ask interesting questions
> >  - don't get distracted with shiny stuff  - working code first
> >  - http://wiki.laptop.org/go/User:Martinlanghoff
> > ___
> > Sugar-devel mailing list
> > sugar-de...@lists.sugarlabs.org
> > http://lists.sugarlabs.org/listinfo/sugar-devel
> >
>
>
>
> --
> «Sugar Labs is anyone who participates in improving and using Sugar.
> What Sugar Labs does is determined by the participants.» - David
> Farning
> ___
> Sugar-devel mailing list
> sugar-de...@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] The ARM is near

2009-08-28 Thread Tomeu Vizoso
On Fri, Aug 28, 2009 at 10:56, Martin Langhoff wrote:
> On Thu, Aug 27, 2009 at 9:48 PM, Benjamin M.
> Schwartz wrote:
>> If you have the hardware to test these features, and the interest to make
>
> (cc'ing de...@l.l.o -- snipped Ben's outline of why it's important to
> get Sugar distros running on ARM devices)
>
> Some notes that might be of use
>
>  - Marvell has some engineering samples of their ARM based boards.
> Distro porters can probably get hold of them -- I landed one for XS
> porting :-) and I am hoping to work on it with Bert Desmet here in
> Brussels.
>
>  - The 'Sheeva plug' can be used as a porting platform -- same chipset
> as larger devices.

Also, Sugar has been reported to run on the Gdium which uses a MIPS
Loongson CPU. If someone on this list has access to one of those, we
could check that activities with binaries are made to run there as
well.

Regards,

Tomeu

>  - Fedora has a 'secondary arch' ARM port for F11 -- probably
> interesting to SoaS people.
>
> hth,
>
>
> m
> --
>  martin.langh...@gmail.com
>  mar...@laptop.org -- School Server Architect
>  - ask interesting questions
>  - don't get distracted with shiny stuff  - working code first
>  - http://wiki.laptop.org/go/User:Martinlanghoff
> ___
> Sugar-devel mailing list
> sugar-de...@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>



-- 
«Sugar Labs is anyone who participates in improving and using Sugar.
What Sugar Labs does is determined by the participants.» - David
Farning
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Pilgrim workflow: Getting signatures into images?

2009-08-28 Thread Martin Langhoff
Hi Michael, Scott, list,

Reviewing Pilgrim code, it seems that:

 - olpcrd rpm never gets sigs or kernel mods embedded, both are
injected post-facto by pilgrim

 - pilgrim has to have access to the signing key

Does that mean that for the "gold" release you run Pilgrim on a
different box (disconnected & with a copy of the keys) or otherwise
install the key temporarily on the Pilgrim server?

Any hints welcome...

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] The ARM is near

2009-08-28 Thread Martin Langhoff
On Thu, Aug 27, 2009 at 9:48 PM, Benjamin M.
Schwartz wrote:
> If you have the hardware to test these features, and the interest to make

(cc'ing de...@l.l.o -- snipped Ben's outline of why it's important to
get Sugar distros running on ARM devices)

Some notes that might be of use

 - Marvell has some engineering samples of their ARM based boards.
Distro porters can probably get hold of them -- I landed one for XS
porting :-) and I am hoping to work on it with Bert Desmet here in
Brussels.

 - The 'Sheeva plug' can be used as a porting platform -- same chipset
as larger devices.

 - Fedora has a 'secondary arch' ARM port for F11 -- probably
interesting to SoaS people.

hth,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel