Re: Does antitheft.py in olpcrd ever do anything?

2009-05-05 Thread Martin Langhoff
On Tue, May 5, 2009 at 6:24 AM, C. Scott Ananian csc...@laptop.org wrote:
 the plan is to implement real EC-based security for
 Gen 1.5; I recommend ditching the init-based plan completely

Any hints or references for that I could read? Or should I talk w
Richard? I'd like to make sure I implement something that works also
on 1.5...



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


ffreep support on Geode LX (XO-1)

2009-05-05 Thread Sascha Silbe

Hi!

While trying to use sugar-jhbuild on DebXO (Debian on XO-1), I encountered several programs that 
crashed with SIGILL, apparently during execution of ffreep. While the AMD Athlon Processor 
x86 Code Optimization Guide [1] claims that although insufficiently documented in the 
past, [ffreep] is supported by all 32-bit x86 processors, the AMD Geode LX datasheet [2] 
doesn't list ffreep.

As ffreep was added to gcc 3.4 [3] and Build 801 seems to use 4.3.0, I'm 
wondering whether it has been patched/configured in some way to avoid this 
issue or whether the processor actually supports it and something else on my 
machine is broken.


[1] 
http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/22007.pdf
[2] 
http://www.amd.com/files/connectivitysolutions/geode/geode_lx/33234d_lx_ds.pdf
[3] http://gcc.gnu.org/ml/gcc-patches/2002-11/msg01386.html

CU Sascha

--
http://sascha.silbe.org/
http://www.infra-silbe.de/


signature.asc
Description: Digital signature
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


OLPC Volunteer Infrastructure Group Meeting: [Now]

2009-05-05 Thread Stefan Unterhauser
The Volunteer Infrastructure Group (/gang) Meeting is today (May
5th) at 4pm (EST)

The Volunteer Infrastructure Group is a team of Volunteer Sysadmins
who help maintain services and systems around OLPC and the
OLPC/SugarLabs community.  The weekly VIG meeting is an excellent
chance to get involved, or to be aware of upcoming projects.

http://wiki.laptop.org/go/OLPC:Volunteer_Infrastructure_Group
http://vig.laptop.org/wiki/index.php/User:Dogi
http://idea.laptop.org/ideatorrent/ideatorrent/vig/
http://embed.mibbit.com/?server=irc.oftc.netchannel=%23olpc-adminsettings=12a698505c860f99a6ad1051c57975f9noServerTab=falsenoServerNotices=truenoServerMotd=truenick=Guest

Meeting Details:
  Date:   May 5th, 2009
  Time:   16:00 EST
  Location: irc.oftc.net  #olpc-admin

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


Re: Ambient light sensing via LED response

2009-05-05 Thread Reinder de Haan
Hallo,

C. Scott Ananian wrote:
snip

 A last resort would be hooking up a MOSFET as a simple amplifier --
 again, you're not worried about linearity or any such niceties, but
 you'd still need a good match for your MOSFET's threshold voltage...
 some real measurements to replace the WAGes would go a long way.
   --scott
 

measured on a B1 XO1 laptop (where the leds and the series resistor are
wired in parallel it seam) :

almost dark: 0mv
~3meter away from a 8w PL; bare led: ~2mv
~50 cm below ~25W halogen desk lamp; bare led: ~40mv
bright white led directly on bare led ~200mv
bright white led directly on light guide of the bat.led (lcd side) ~50mv
~50 cm below ~25w halogen desk lamp (~75* angle to the axis of the light
guide) ~5mv

i measure this between  GND of the laptop the led side of the series
resistor.
all leds seam to be about the same.. i did not compare the different
light guides.
the main battery and DC power where removed, the RTC baterry was still
in place.


the meter i measured this with was fixed in the 2000mv range
and was abou 10Mohm when i connected it to another meter in resistance
mode; the (volt) meter read 250mv at that time.

adding a 10Mohm resistor across the meter halved the
~50 cm below ~25W halogen desk lamp; bare led: ~40mv reading to
~20mv

strangely enough when i add that resistor in series the meter said ~60mv
so voltage on the leds must have been ~120mv? i will have to investigate
this at a later time...

if you want more measurement doen feel free to ask.. i also have a XO1
(production model ?C1?) that i could measure.

i dont have a lux meter :-(

Greetings,
Reinder








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


Re: Battery recovery issues

2009-05-05 Thread Richard A. Smith
Emiliano Pastorino wrote:

 bat-charge reports this: 320.83 mAh (7d53) 1428.12 mA (2ddc) 6.492 V
 (195c) Chg: 0.41mAh (  29) then every column raises line to line (I
 copied that by hand because

 bat-charge-log always says Can't open file, even when usb stick is 
 plugged in.

Turns out the way I did the disk devices won't work unless you either:

1) boot with a usb drive plugged in
2) run 'p2' before bat-debug-log

'p2' will re-probe usb devices.

 If the first column is battery's charge, then it's almost dry. Should
 I try bat-recover or charge it the usual way?

The first column is the ACR reading and you can't tell anything by just
1 reading.  You have to know what it was when you started discharging or
charging.  I don't report SOC in that listing cause generally I don't 
care.  I want to know what it does after I turn on charge rather than 
what level it was at previously.

bat-charge simply enables charging and then starts reading the battery 
directly.  Thus it does not care about any of the settings in the 
EEPROM.  Its a good diag tool to see if the battery just physically 
won't take charge or if you just can't communicate to it at all.  If 
bat-charge works but normal charging does not then its EC or EEPROM 
badness.  The LFP batteries have an overvoltage cutoff that will protect 
them so its ok to just turn one on and leave it.  For NiMH you would end 
up reducing its life.  But since you don't have any NiMH you don't care.

'bat-recover' works by PWMing the charge pin to keep the charge current 
very low and allow the cells to equalize yet not trip the over voltage 
like they would if you just turned on the charge and left it.  The 
settings I've picked by default seem to work in most cases but I've had 
many batteries where I needed to reduce the current even further from 
the default settings.

To speed up the process you can use normal charging methods to get the 
battery close to full (or wherever it cuts out at)  That way the recover 
process will be much shorter.

 I'll try bat-recover with a bunch of batteries today, so maybe
 tomorrow or on Wednesday I'll be sending you some logs, if it is ok
 to you.

After looking at your bat-debug log I've realize that the extra 
diagnostic info is only present in f-series firmwares with my newer EC code.

I'm forwarding you an e-mail with a copy of q2f02 that I worked on while 
trying to solve some problems with batteries in another deployment.

q2f02 will be behind q2e41 in terms of OFW but has EC code with extra 
battery diag info.  For battery testing there should no difference 
between the 2.

Its also available here: (Just never announced since a new e-series 
release happened right after)

http://dev.laptop.org/pub/firmware/q2f02/

So install f02 on your test laptop and re-run bat-debug-log after you 
have first run 'p2' and the logging to disk should work.  I don't need 
any more see-bstate info.

so the steps:

install f02
remove battery
boot
stop at ok
insert usb drive (or boot with it inserted)
run 'p2'
run 'bat-debug-log'
insert battery
run for a couple of minutes then hit a key
send me the log.

I'll try to get a f03 out soon with the latest of everything but I've 
got gen 1.5 bring up tasks that I need to attend to.

-- 
Richard Smith  rich...@laptop.org
One Laptop Per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Ambient light sensing via LED response

2009-05-05 Thread Rafael Enrique Ortiz Guerrero
These measurements are really cool.

But the question remains in whether the ADC could have a resolution of 1mv?,
i mean in light of these measurements is necessary to have an ADC that can
reliable sense these variations and then with that basis  have a transfer
function and add it to the algorithm.

(haven't checked the specs though..)

My two cents..;).

Rafael Ortiz


On Tue, May 5, 2009 at 3:24 PM, Reinder de Haan r...@mveas.com wrote:

 Hallo,

 C. Scott Ananian wrote:
 snip

  A last resort would be hooking up a MOSFET as a simple amplifier --
  again, you're not worried about linearity or any such niceties, but
  you'd still need a good match for your MOSFET's threshold voltage...
  some real measurements to replace the WAGes would go a long way.
--scott
 

 measured on a B1 XO1 laptop (where the leds and the series resistor are
 wired in parallel it seam) :

 almost dark: 0mv
 ~3meter away from a 8w PL; bare led: ~2mv
 ~50 cm below ~25W halogen desk lamp; bare led: ~40mv
 bright white led directly on bare led ~200mv
 bright white led directly on light guide of the bat.led (lcd side) ~50mv
 ~50 cm below ~25w halogen desk lamp (~75* angle to the axis of the light
 guide) ~5mv

 i measure this between  GND of the laptop the led side of the series
 resistor.
 all leds seam to be about the same.. i did not compare the different
 light guides.
 the main battery and DC power where removed, the RTC baterry was still
 in place.


 the meter i measured this with was fixed in the 2000mv range
 and was abou 10Mohm when i connected it to another meter in resistance
 mode; the (volt) meter read 250mv at that time.

 adding a 10Mohm resistor across the meter halved the
 ~50 cm below ~25W halogen desk lamp; bare led: ~40mv reading to
 ~20mv

 strangely enough when i add that resistor in series the meter said ~60mv
 so voltage on the leds must have been ~120mv? i will have to investigate
 this at a later time...

 if you want more measurement doen feel free to ask.. i also have a XO1
 (production model ?C1?) that i could measure.

 i dont have a lux meter :-(

 Greetings,
 Reinder








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

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


Re: from Peru, sugar in DEBIAN

2009-05-05 Thread Andres Cabrera
You can also try to download activities from activities.sugarlabs.org.
Many will work without recomipiling, just by installing the packages
within sugar. Since the debian package for Browse is broken you need
to download the file with wget or from GNOME, etc. and then install it
within sugar using the terminal activity using sugar-install-bundle.

Cheers,
Andrés

On Sun, Apr 26, 2009 at 7:17 PM, OLPC Puno olpcp...@gmail.com wrote:
 My name is Sdenka from Puno Peru, since one month we are using Debian at
 Glorioso San Carlos High School in PERU. We installed the sugar and 10
 activities including in Debian packages, then added ETOYS, SCRATCH AND
 LOGOTURTLE.

 I need the other activities' source code to compilate in Debian to use and
 test them with teenagers students this year. Our goal is testing and
 then use Debian in elementary school which didn't receive LAPTOP XO, but
 like to use the wonderful activities FOR EDUCATION.

 Thanks in advance for your reply,


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





-- 


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


Re: Ambient light sensing via LED response

2009-05-05 Thread John Watlington

On May 5, 2009, at 6:44 PM, Rafael Enrique Ortiz Guerrero wrote:

 These measurements are really cool.

 But the question remains in whether the ADC could have a resolution  
 of 1mv?, i mean in light of these measurements is necessary to have  
 an ADC that can reliable sense these variations and then with that  
 basis  have a transfer function and add it to the algorithm.

Absolutely not.  The A/D is eight bits, with an input range spanning  
0 - 3.3V, so the best you
can hope for is about 13 mV per LSB.  I would guess actual accuracy  
to be closer to 26 mV.

But why do you say you would need 1 mV accuracy ?   Bright sunlight  
is far stronger than
the light sources he used.

 (haven't checked the specs though..)

Having the data sheet for the EC controller doesn't help --- 8 bits  
and recommended operating
voltage for the analog reference voltage is about all it provides.
I had to ask a chinese speaker
to call the app. engineer to find out the input impedance...

 My two cents..;).

 Rafael Ortiz


 On Tue, May 5, 2009 at 3:24 PM, Reinder de Haan r...@mveas.com wrote:
 Hallo,

 C. Scott Ananian wrote:
 snip

  A last resort would be hooking up a MOSFET as a simple amplifier --
  again, you're not worried about linearity or any such niceties, but
  you'd still need a good match for your MOSFET's threshold voltage...
  some real measurements to replace the WAGes would go a long way.
--scott
 

 measured on a B1 XO1 laptop (where the leds and the series resistor  
 are
 wired in parallel it seam) :

 almost dark: 0mv
 ~3meter away from a 8w PL; bare led: ~2mv
 ~50 cm below ~25W halogen desk lamp; bare led: ~40mv
 bright white led directly on bare led ~200mv
 bright white led directly on light guide of the bat.led (lcd side)  
 ~50mv
 ~50 cm below ~25w halogen desk lamp (~75* angle to the axis of the  
 light
 guide) ~5mv

 i measure this between  GND of the laptop the led side of the series
 resistor.
 all leds seam to be about the same.. i did not compare the different
 light guides.
 the main battery and DC power where removed, the RTC baterry was still
 in place.


 the meter i measured this with was fixed in the 2000mv range
 and was abou 10Mohm when i connected it to another meter in resistance
 mode; the (volt) meter read 250mv at that time.

 adding a 10Mohm resistor across the meter halved the
 ~50 cm below ~25W halogen desk lamp; bare led: ~40mv reading to
 ~20mv

 strangely enough when i add that resistor in series the meter said  
 ~60mv
 so voltage on the leds must have been ~120mv? i will have to  
 investigate
 this at a later time...

 if you want more measurement doen feel free to ask.. i also have a XO1
 (production model ?C1?) that i could measure.

 i dont have a lux meter :-(

 Greetings,
 Reinder








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

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

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


Re: Ambient light sensing via LED response

2009-05-05 Thread Rafael Enrique Ortiz Guerrero
On Tue, May 5, 2009 at 8:34 PM, John Watlington w...@laptop.org wrote:


 On May 5, 2009, at 6:44 PM, Rafael Enrique Ortiz Guerrero wrote:

  These measurements are really cool.

 But the question remains in whether the ADC could have a resolution of
 1mv?, i mean in light of these measurements is necessary to have an ADC that
 can reliable sense these variations and then with that basis  have a
 transfer function and add it to the algorithm.


 Absolutely not.  The A/D is eight bits, with an input range spanning 0 -
 3.3V, so the best you
 can hope for is about 13 mV per LSB.  I would guess actual accuracy to be
 closer to 26 mV.


 But why do you say you would need 1 mV accuracy ?   Bright sunlight is far
 stronger than
 the light sources he used.


i don't know if the measurements at sunlight would show the same
variations.. we would have to make new measurements, but for experience, the
variations of voltage regarding light sensing are not of considerable
amounts, so if the accuracy is 26mv, we would have to see if a perceptible
change in ambient light could be of a higher magnitude than 26mv, if not the
accuracy could be lost..







  (haven't checked the specs though..)


 Having the data sheet for the EC controller doesn't help --- 8 bits and
 recommended operating
 voltage for the analog reference voltage is about all it provides.   I had
 to ask a chinese speaker
 to call the app. engineer to find out the input impedance...

 Ok, thanks :).





 On Tue, May 5, 2009 at 3:24 PM, Reinder de Haan r...@mveas.com wrote:
 Hallo,

 C. Scott Ananian wrote:
 snip

  A last resort would be hooking up a MOSFET as a simple amplifier --
  again, you're not worried about linearity or any such niceties, but
  you'd still need a good match for your MOSFET's threshold voltage...
  some real measurements to replace the WAGes would go a long way.
--scott
 

 measured on a B1 XO1 laptop (where the leds and the series resistor are
 wired in parallel it seam) :

 almost dark: 0mv
 ~3meter away from a 8w PL; bare led: ~2mv
 ~50 cm below ~25W halogen desk lamp; bare led: ~40mv
 bright white led directly on bare led ~200mv
 bright white led directly on light guide of the bat.led (lcd side) ~50mv
 ~50 cm below ~25w halogen desk lamp (~75* angle to the axis of the light
 guide) ~5mv

 i measure this between  GND of the laptop the led side of the series
 resistor.
 all leds seam to be about the same.. i did not compare the different
 light guides.
 the main battery and DC power where removed, the RTC baterry was still
 in place.


 the meter i measured this with was fixed in the 2000mv range
 and was abou 10Mohm when i connected it to another meter in resistance
 mode; the (volt) meter read 250mv at that time.

 adding a 10Mohm resistor across the meter halved the
 ~50 cm below ~25W halogen desk lamp; bare led: ~40mv reading to
 ~20mv

 strangely enough when i add that resistor in series the meter said ~60mv
 so voltage on the leds must have been ~120mv? i will have to investigate
 this at a later time...

 if you want more measurement doen feel free to ask.. i also have a XO1
 (production model ?C1?) that i could measure.

 i dont have a lux meter :-(

 Greetings,
 Reinder








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

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



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


Re: [Server-devel] backup : problem opening /library/users/XXXX/datastore-xxxxx/store

2009-05-05 Thread Hamilton Chua
Sure thing. It's on its way to your inbox. Thanks !!!
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel