XO-4 not resuming after suspend
I have an XO-4 B1, OFW Q7B14, EC Firmware 0.3.10, os28. It won't resume after suspend, but sometimes it does. I couldn't reproduce the bug, but it happens most of the time. Here's the last lines of serial output before suspending: [ 1893.876075] pxa168fb_release GFX layer, fbi 0 opened 4 times [ 1911.036158] PM: Syncing filesystems ... done. [ 1911.043380] Freezing user space processes ... (elapsed 0.02 seconds) done. [ 1911.068796] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done. [ 1911.091375] Suspending console(s) (use no_console_suspend to debug) No more messages after this, I've pressed every button, but nothing happens. I only see some output from EC serial port when power button is pressed. Anyone else seeing this? Thanks, Emiliano ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: XO-4 not resuming after suspend
It does have an 8686. I've rmmod'ed libertas_sdio and libertas. It seems to be doing fine now. I've already resumed several times after suspend, no more hangs. On Fri, Feb 1, 2013 at 1:59 PM, Martin Langhoff martin.langh...@gmail.comwrote: Does it have an 8686 (loads libertas driver) or an 8787 (loads mwifiex* drivers). Does it get better if you blacklist the wlan drivers, ensuring they don't get loaded? You won't have wlan, of course... At this point, XO-4 with 8787 is very stable for us, so if it has 8787, your report is a surprise, and we should diagnose further. If you have an 8686, we are hunting down some regressions which may explain what you see -- Paul Fox is working on it right now. cheers, m On Fri, Feb 1, 2013 at 8:03 AM, Emiliano Pastorino epastor...@plan.ceibal.edu.uy wrote: I have an XO-4 B1, OFW Q7B14, EC Firmware 0.3.10, os28. It won't resume after suspend, but sometimes it does. I couldn't reproduce the bug, but it happens most of the time. Here's the last lines of serial output before suspending: [ 1893.876075] pxa168fb_release GFX layer, fbi 0 opened 4 times [ 1911.036158] PM: Syncing filesystems ... done. [ 1911.043380] Freezing user space processes ... (elapsed 0.02 seconds) done. [ 1911.068796] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done. [ 1911.091375] Suspending console(s) (use no_console_suspend to debug) No more messages after this, I've pressed every button, but nothing happens. I only see some output from EC serial port when power button is pressed. Anyone else seeing this? Thanks, Emiliano ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff -- Ing. Emiliano Pastorino Centro Ceibal Av. Italia 6201 Ed. Los Ceibos Montevideo, Uruguay Tel: (598) 2601 5773 int.: 2232 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: XO-4 lack of keyboard/mouse input - still happening?
Hit this issue today. Both keyboard and touchpad missing. XO-4 B1, OFW Q7B14, EC 0.3.10, os28. Same kernel messages: psmouse serio1: Failed to deactivate mouse on olpc_touchpad/serio0 psmouse serio1: Failed to enable mouse on olpc_touchpad/serio0 atkbd serio0: keyboard reset failed on olpc_keyboard/serio0 Didn't need to remove power, I just rebooted the XO. On Tue, Jan 29, 2013 at 2:48 PM, John Watlington w...@laptop.org wrote: On Jan 29, 2013, at 11:45 AM, Jon Nettleton wrote: On Tue, Jan 29, 2013 at 5:40 PM, Daniel Drake d...@laptop.org wrote: On Tue, Jan 29, 2013 at 10:34 AM, Jon Nettleton jon.nettle...@gmail.com wrote: I have seen this problem on both my machines today while testing. Sometimes just keyboard, sometimes touchpad, sometimes both. I found that if my machine was in this state and I suspend it, resume would hang at ec_irq on the console. The only fix was powering off and removing plug and battery. Which OS build (any custom kernel?), OFW and EC firmware versions? Touchpad type? Any kernel logs saved? OS build is os26, OFW is Q7B12mb EC is 0.3.10 Touchpad is Sentelic, no kernel logs. Somewhere in the tickets I noted that I saw this problem with both touchpad types. wad ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel -- Ing. Emiliano Pastorino Centro Ceibal Av. Italia 6201 Ed. Los Ceibos Montevideo, Uruguay Tel: (598) 2601 5773 int.: 2232 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: XO-4 not resuming after suspend
We don't have any C1 units to spare, but Ceibal should have a few of them already. You might have to hunt one down... Really? No one told me so... I'll try to track them... On Fri, Feb 1, 2013 at 2:44 PM, Martin Langhoff martin.langh...@gmail.comwrote: Great. Also the hw team is telling me that C1 units are more stable in s/r than B1 units. A few problems only show up on B1s -- I had not realized. We don't have any C1 units to spare, but Ceibal should have a few of them already. You might have to hunt one down... m On Fri, Feb 1, 2013 at 11:33 AM, Emiliano Pastorino epastor...@plan.ceibal.edu.uy wrote: It does have an 8686. I've rmmod'ed libertas_sdio and libertas. It seems to be doing fine now. I've already resumed several times after suspend, no more hangs. On Fri, Feb 1, 2013 at 1:59 PM, Martin Langhoff martin.langh...@gmail.com wrote: Does it have an 8686 (loads libertas driver) or an 8787 (loads mwifiex* drivers). Does it get better if you blacklist the wlan drivers, ensuring they don't get loaded? You won't have wlan, of course... At this point, XO-4 with 8787 is very stable for us, so if it has 8787, your report is a surprise, and we should diagnose further. If you have an 8686, we are hunting down some regressions which may explain what you see -- Paul Fox is working on it right now. cheers, m On Fri, Feb 1, 2013 at 8:03 AM, Emiliano Pastorino epastor...@plan.ceibal.edu.uy wrote: I have an XO-4 B1, OFW Q7B14, EC Firmware 0.3.10, os28. It won't resume after suspend, but sometimes it does. I couldn't reproduce the bug, but it happens most of the time. Here's the last lines of serial output before suspending: [ 1893.876075] pxa168fb_release GFX layer, fbi 0 opened 4 times [ 1911.036158] PM: Syncing filesystems ... done. [ 1911.043380] Freezing user space processes ... (elapsed 0.02 seconds) done. [ 1911.068796] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done. [ 1911.091375] Suspending console(s) (use no_console_suspend to debug) No more messages after this, I've pressed every button, but nothing happens. I only see some output from EC serial port when power button is pressed. Anyone else seeing this? Thanks, Emiliano ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff -- Ing. Emiliano Pastorino Centro Ceibal Av. Italia 6201 Ed. Los Ceibos Montevideo, Uruguay Tel: (598) 2601 5773 int.: 2232 -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff -- Ing. Emiliano Pastorino Centro Ceibal Av. Italia 6201 Ed. Los Ceibos Montevideo, Uruguay Tel: (598) 2601 5773 int.: 2232 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: XO-4 lack of keyboard/mouse input - still happening?
Ok, I'll do it if I hit it again, but only happened once... couldn't reproduce On Fri, Feb 1, 2013 at 3:00 PM, Jon Nettleton jon.nettle...@gmail.comwrote: If you see this again can you please attach the output of /proc/interrrupts. Thanks On Fri, Feb 1, 2013 at 5:58 PM, Emiliano Pastorino epastor...@plan.ceibal.edu.uy wrote: Hit this issue today. Both keyboard and touchpad missing. XO-4 B1, OFW Q7B14, EC 0.3.10, os28. Same kernel messages: psmouse serio1: Failed to deactivate mouse on olpc_touchpad/serio0 psmouse serio1: Failed to enable mouse on olpc_touchpad/serio0 atkbd serio0: keyboard reset failed on olpc_keyboard/serio0 Didn't need to remove power, I just rebooted the XO. On Tue, Jan 29, 2013 at 2:48 PM, John Watlington w...@laptop.org wrote: On Jan 29, 2013, at 11:45 AM, Jon Nettleton wrote: On Tue, Jan 29, 2013 at 5:40 PM, Daniel Drake d...@laptop.org wrote: On Tue, Jan 29, 2013 at 10:34 AM, Jon Nettleton jon.nettle...@gmail.com wrote: I have seen this problem on both my machines today while testing. Sometimes just keyboard, sometimes touchpad, sometimes both. I found that if my machine was in this state and I suspend it, resume would hang at ec_irq on the console. The only fix was powering off and removing plug and battery. Which OS build (any custom kernel?), OFW and EC firmware versions? Touchpad type? Any kernel logs saved? OS build is os26, OFW is Q7B12mb EC is 0.3.10 Touchpad is Sentelic, no kernel logs. Somewhere in the tickets I noted that I saw this problem with both touchpad types. wad ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel -- Ing. Emiliano Pastorino Centro Ceibal Av. Italia 6201 Ed. Los Ceibos Montevideo, Uruguay Tel: (598) 2601 5773 int.: 2232 -- Ing. Emiliano Pastorino Centro Ceibal Av. Italia 6201 Ed. Los Ceibos Montevideo, Uruguay Tel: (598) 2601 5773 int.: 2232 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Firmware upgrade not working on XO-4 B1
Hi, everyone I have an XO-4 B1 with os27, QB711 and ec 0.3.04. It won't upgrade the OFW, EC firmware or touchscreen firmware. I've connected a serial adapter and this is the output I get every time: CForth built 2013-01-08 03:12 from commit 7b9cfcf1... Matrix mode on releasing *EC command result timeout Skipping EC reflash, not enough power* USB devices: /usb@d4208000/hub@0,0 OLPC 4B1, 1063 MHz, 1 GiB memory, 4 GB internal storage, S/N SHC238000B5 OpenFirmware Q7B11 EC Firmware 0.3.04 2013-01-31 12:22:22 UTC Type the Esc key to interrupt automatic startup Boot device: /sd/sdhci@d4281000/disk:\boot\olpc.fth Arguments: Trying last:\boot\ecfw4.zip Trying last:\boot\ecfw.zip Trying last:\boot\bootfw4.zip FW found - new - Got firmware version: CL4 Q7B14 Q7B Checking integrity ... Unsafe to update firmware now - EC command result timeout Continuing with old firmware Trying last:\boot\runos4.zip OS found - Trying last:\boot\runrd4.zip RD found - Uncompressing Linux... done, booting the kernel. [0.00] Booting Linux on physical CPU 0 [0.00] Initializing cgroup subsys cpu ... The battery is OK and fully charged, I've even used other full-charged batteries and the result is the same. I also tried to do manual upgrade from OFW prompt, but for flash, flash-ec and flash-nn commands, I always get a EC command result timeout. I suspect OFW is reporting not enough power because the command it uses to check battery level is also failing. Then I connected the serial adapter to the ec serial port. The output until a complete OS boot is: 2071534:Dbounce 2071686:PwrButPress assert 2071688:PwrUP 2071690:MinOff 2071792:EN_KBD_PWR 2071794:EN_Main, EN_1.8V PMIC, VCORE, SD 2071804:SOC_SLEEP -- 1 2071807:SOC_SLEEP -- 0 2071811:EN_1.2V DDR3 2071825:1.8V GPIO 2071833:3.3V SOC NAND DCON USB 2071835:Got ALL_PWRGOOD 2071837:EN_SD2_PWR 2071844:2072377:Got SYS_RESET 2072379:PwrUp Done 2072381:SDI: Start 2074095:SDI: Host ready unknown cmd 0x70, arg_size 0 unknown cmd 0x70, arg_size 0 2089073:SDI: Host not ready 2090565:SDI: Host ready event mask was 0x, is now 0x unknown cmd 0x70, arg_size 0 event mask was 0x, is now 0x 2148155:suspend_hint -- 1 suspend sync: 0001 2148182:SOC_SLEEP -- 1 2153339:SOC_SLEEP -- 0 I suspect ec firmware corruption... any clues anyone? Thanks, Emiliano ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Firmware upgrade not working on XO-4 B1
Thanks, Daniel, that did the trick! On Thu, Jan 31, 2013 at 12:47 PM, Daniel Drake d...@laptop.org wrote: Hi Emiliano, On Thu, Jan 31, 2013 at 8:06 AM, Emiliano Pastorino epastor...@plan.ceibal.edu.uy wrote: I have an XO-4 B1 with os27, QB711 and ec 0.3.04. It won't upgrade the OFW, EC firmware or touchscreen firmware. I've connected a serial adapter and this is the output I get every time: CForth built 2013-01-08 03:12 from commit 7b9cfcf1... Matrix mode on releasing EC command result timeout Skipping EC reflash, not enough power This is a one-off thing requiring manual intervention. Please see http://wiki.laptop.org/go/XO-4#Software_upgrade_considerations Thanks Daniel -- Ing. Emiliano Pastorino Centro Ceibal Av. Italia 6201 Ed. Los Ceibos Montevideo, Uruguay Tel: (598) 2601 5773 int.: 2232 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Problem running signed actos/actrd from USB stick on secured XO-1
Hi everyone, I'm trying to use signed actos/actrd from a USB stick for testing purposes, but I'm getting a modprobe: module scsi_wait_scan not found in modules.dep message and then lots of: mount: mounting /dev/sda2 on /sysroot failed: Device or resource busy ending with: No root device found Boot has failed, sleeping forever. This initramfs works fine when security is disabled. I wrote a custom olpc.fth with this changes: ro root=mtd0 rootfstype=jffs2 console=ttyS0,115200 console=tty0 fbcon=font:SUN12x22 expand$ to boot-file disk:\boot\vmlinuzexpand$ to boot-device disk:\boot\actrd.img expand$ to ramdisk so initramfs and kernel are loaded from the USB stick and the modules can be found in the NAND flash. It also works when I copy the actos.zip and actrd.zip files to /boot in internal storage. The USB stick has 2 partitions: the first one is a FAT16 partition with a boot directory containing the signed files. The other one is an ext4 partition labeled OLPCRoot, and it only contains a /lib/modules* tree, since my customized initramfs will only fix the hwclock and then power off the XO. Any clues? Emiliano ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Problem running signed actos/actrd from USB stick on secured XO-1
I've only created a dracut module, leaving everything else intact. Maybe I should trim some stuff, uninstall some other modules? I've used the default dracut-olpc-config and added mine. Error messages are shown right after the Hello, children of the world message. I'll try to cut some stuff and let you know how it went. On Fri, Jul 13, 2012 at 12:22 PM, Daniel Drake d...@laptop.org wrote: On Fri, Jul 13, 2012 at 9:06 AM, Emiliano Pastorino epastor...@plan.ceibal.edu.uy wrote: The USB stick has 2 partitions: the first one is a FAT16 partition with a boot directory containing the signed files. The other one is an ext4 partition labeled OLPCRoot, and it only contains a /lib/modules* tree, since my customized initramfs will only fix the hwclock and then power off the XO. It sounds like something isn't quite as you expect in your initramfs, because if it will *only* fix the hwclock and power off, its not clear why it is trying to mount the root partition. Daniel -- Ing. Emiliano Pastorino Centro Ceibal Av. Italia 6201 Ed. Los Ceibos Montevideo, Uruguay Tel: (598) 2601 5773 int.: 2232 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [PATCH] olpc.fth - grow the root filesystem partition on boot
Hi everyone! I wrote a dracut module a couple of weeks ago which runs during pre-mount and basically performs this steps: - If 99% of disk capacity is partitioned, exit. - else, expand the partition to full disk without losing data. I'm attaching a tar.gz file, without the extension becasue gmail doesn't like it. I've tested it only with XOs 1.5 and haven't measured time cost. If someone else is going to test it, please send comments, bugs or suggestions. Emiliano On Thu, Mar 15, 2012 at 11:35 AM, Daniel Drake d...@laptop.org wrote: On Thu, Mar 15, 2012 at 1:58 AM, Peter Robinson pbrobin...@gmail.com wrote: Well it works fine for 100s of devices in our datacenter at work, maybe there's some mechanism not implemented in mmc or the linux code. cjb might be able to fill in some of the gaps.. It only works if the device is unused (not mounted). James is trying with partitions already mounted. It will work if we do everything carefully from the initramfs. Daniel ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel -- Ing. Emiliano Pastorino Centro Ceibal Av. Italia 6201 Ed. Los Ceibos Montevideo, Uruguay Tel: (598) 2601 5773 int.: 2232 ceibal-expand-disk-1.0 Description: Binary data ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] Interesting USB-pluggable robots, controller boards, and sensors
Emiliano has Arduino + TA working, I think. Needs to be reworked as a plugin in the new TA plugins model (which seems excellent). Yes, it's working. We don't know if we're going to use them, but I plan to create a plugin anyway. On the Uy/Ceibal side, I really want to know which Arduino they are using, and the exact sensors too. So we document that in wiki.l.o, buy the exact same kit here, and fold it into our test plans. We bought a kit from sparkfun.com last year which I think is no longer available (dev-09284) Anyway, these are the items icluded: Arduino Duemilanove (ATmega328) Light sensor SEN-09088 http://www.sparkfun.com/products/9088 Buzzer COM-07950 http://www.sparkfun.com/products/7950 Trim pot COM-9288 http://www.sparkfun.com/products/9288 Temperature sensor SEN-00250 http://www.sparkfun.com/products/250 Tricolor LED COM-09264 http://www.sparkfun.com/products/9264 Button COM-09190 http://www.sparkfun.com/products/9190 Jumper wires PRT-08431 http://www.sparkfun.com/products/8431 We also bought a motor shield for driving more motors: http://www.ladyada.net/make/mshield/ Turtle Art Arduino, at least when I last ran it, requires Firmata software in the Arduino Yes, we're using Firmata in the Arduino. Correct. The current TA+NXT is based on the nxt_python library, which works tethered, so the NXT controller acts as a dumb slave of the XO. I think there's a function in nxt-python that lets you upload a program to the nxt brick. I'll check it out later. Right now I'm working on a plugin for the new plugins model for TA. On Fri, Mar 4, 2011 at 9:56 PM, Gonzalo Odiard gonz...@laptop.org wrote: Thanks Tony. Added to the wiki page Gonzalo On Fri, Mar 4, 2011 at 6:09 PM, fors...@ozonline.com.au wrote: Turtle Art Arduino, at least when I last ran it, requires Firmata software in the Arduino. So the Arduino is acting as a dumb I/O expansion board and is not being programmed as an autonomous robot. The user is programming in TurtleArt. I used the Arduino Duemilanove but I don't think the version matters much. http://tonyforster.blogspot.com/search/label/Arduino Emiliano has Arduino + TA working, I think. Needs to be reworked as a plugin in the new TA plugins model (which seems excellent). On the Uy/Ceibal side, I really want to know which Arduino they are using, and the exact sensors too. So we document that in wiki.l.o, buy the exact same kit here, and fold it into our test plans. ___ Sugar-devel mailing list sugar-de...@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list sugar-de...@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Ing. Emiliano Pastorino Centro Ceibal Av. Italia 6201 Ed. Los Ceibos Montevideo, Uruguay Tel: (598) 2601 5773 int.: 2232 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] Interesting USB-pluggable robots, controller boards, and sensors
Actually, I've realized that we have the new kit: http://www.sparkfun.com/products/10174 The difference is that it includes a flex sensor. On Wed, Mar 9, 2011 at 10:25 AM, Emiliano Pastorino epastor...@plan.ceibal.edu.uy wrote: Emiliano has Arduino + TA working, I think. Needs to be reworked as a plugin in the new TA plugins model (which seems excellent). Yes, it's working. We don't know if we're going to use them, but I plan to create a plugin anyway. On the Uy/Ceibal side, I really want to know which Arduino they are using, and the exact sensors too. So we document that in wiki.l.o, buy the exact same kit here, and fold it into our test plans. We bought a kit from sparkfun.com last year which I think is no longer available (dev-09284) Anyway, these are the items icluded: Arduino Duemilanove (ATmega328) Light sensor SEN-09088 http://www.sparkfun.com/products/9088 Buzzer COM-07950 http://www.sparkfun.com/products/7950 Trim pot COM-9288 http://www.sparkfun.com/products/9288 Temperature sensor SEN-00250 http://www.sparkfun.com/products/250 Tricolor LED COM-09264 http://www.sparkfun.com/products/9264 Button COM-09190 http://www.sparkfun.com/products/9190 Jumper wires PRT-08431 http://www.sparkfun.com/products/8431 We also bought a motor shield for driving more motors: http://www.ladyada.net/make/mshield/ Turtle Art Arduino, at least when I last ran it, requires Firmata software in the Arduino Yes, we're using Firmata in the Arduino. Correct. The current TA+NXT is based on the nxt_python library, which works tethered, so the NXT controller acts as a dumb slave of the XO. I think there's a function in nxt-python that lets you upload a program to the nxt brick. I'll check it out later. Right now I'm working on a plugin for the new plugins model for TA. On Fri, Mar 4, 2011 at 9:56 PM, Gonzalo Odiard gonz...@laptop.org wrote: Thanks Tony. Added to the wiki page Gonzalo On Fri, Mar 4, 2011 at 6:09 PM, fors...@ozonline.com.au wrote: Turtle Art Arduino, at least when I last ran it, requires Firmata software in the Arduino. So the Arduino is acting as a dumb I/O expansion board and is not being programmed as an autonomous robot. The user is programming in TurtleArt. I used the Arduino Duemilanove but I don't think the version matters much. http://tonyforster.blogspot.com/search/label/Arduino Emiliano has Arduino + TA working, I think. Needs to be reworked as a plugin in the new TA plugins model (which seems excellent). On the Uy/Ceibal side, I really want to know which Arduino they are using, and the exact sensors too. So we document that in wiki.l.o, buy the exact same kit here, and fold it into our test plans. ___ Sugar-devel mailing list sugar-de...@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list sugar-de...@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Ing. Emiliano Pastorino Centro Ceibal Av. Italia 6201 Ed. Los Ceibos Montevideo, Uruguay Tel: (598) 2601 5773 int.: 2232 -- Ing. Emiliano Pastorino Centro Ceibal Av. Italia 6201 Ed. Los Ceibos Montevideo, Uruguay Tel: (598) 2601 5773 int.: 2232 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] Interesting USB-pluggable robots, controller boards, and sensors
Gerald, I haven't worked with WeDo, but it seems to be supported in Scracht: http://info.scratch.mit.edu/WeDo On Wed, Mar 9, 2011 at 11:20 AM, Dr. Gerald Ardito gerald.ard...@gmail.comwrote: Martin, Thanks. This is all really exciting. I am really looking forward to connecting the XOs to probes, robots, etc. so that the students can experience manipulating physical and digital objects. Gerald On Wed, Mar 9, 2011 at 8:17 AM, Martin Langhoff martin.langh...@gmail.com wrote: On Wed, Mar 9, 2011 at 8:02 AM, Dr. Gerald Ardito gerald.ard...@gmail.com wrote: I am very interested in this functionality and that of using WeDo Robots. Would this be available for the XOs? Both versions or only the XO 1.5? How would that work? It's a headline feature for 11.2.0 which is planned to be XO-1 and XO-1.5 . Unless we hit unexpected problems, XO-1 is supported. If you look under the hood, it will be a bunch of rpms that get integrated into 11.2.0, plus activity updates that make good use of them. In some cases, actiivites already support boards / robots so what happens is that it is now covered by our QA work, so bugs will be discovered and fixed. Crafty adventurous people can probably get them installed on 10.1.x :-) but that'll be unsupported. cheers, m -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff -- Ing. Emiliano Pastorino Centro Ceibal Av. Italia 6201 Ed. Los Ceibos Montevideo, Uruguay Tel: (598) 2601 5773 int.: 2232 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Dextrose] Problems compiling bluetooth module
Hmm... can you verify that the stuff in .config of the kernel sources actually matches the stuff in /boot/config-2.6.31* of your XO? They only differ where I set the Bluetooth stuff. What does uname -a print? Linux xo-35-12-ce.localdomain 2.6.31_xo1-20100701.1605.1.olpc.a8f1b26 #1 PREEMPT Thu Jul 1 16:08:10 EDT 2010 i586 i586 i386 GNU/Linux On Wed, Jan 5, 2011 at 9:11 PM, Chris Ball c...@laptop.org wrote: Hi, The version of gcc might take part in computing the magic number. The idea is to prevent users from causing hard to diagnose bugs by inadvertently loading modules that aren't 100% ABI compatible with the running kernel. It might, but it doesn't -- see include/linux/vermagic.h's VERMAGIC_STRING. - Chris. -- Chris Ball c...@laptop.org One Laptop Per Child ___ Dextrose mailing list dextr...@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/dextrose -- Ing. Emiliano Pastorino Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598) 2 601 5773 int.: 2232 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Dextrose] Problems compiling bluetooth module
Maybe I should try to compile the whole kernel and see if it works? On Fri, Jan 7, 2011 at 9:41 AM, Emiliano Pastorino epastor...@plan.ceibal.edu.uy wrote: Hmm... can you verify that the stuff in .config of the kernel sources actually matches the stuff in /boot/config-2.6.31* of your XO? They only differ where I set the Bluetooth stuff. What does uname -a print? Linux xo-35-12-ce.localdomain 2.6.31_xo1-20100701.1605.1.olpc.a8f1b26 #1 PREEMPT Thu Jul 1 16:08:10 EDT 2010 i586 i586 i386 GNU/Linux On Wed, Jan 5, 2011 at 9:11 PM, Chris Ball c...@laptop.org wrote: Hi, The version of gcc might take part in computing the magic number. The idea is to prevent users from causing hard to diagnose bugs by inadvertently loading modules that aren't 100% ABI compatible with the running kernel. It might, but it doesn't -- see include/linux/vermagic.h's VERMAGIC_STRING. - Chris. -- Chris Ball c...@laptop.org One Laptop Per Child ___ Dextrose mailing list dextr...@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/dextrose -- Ing. Emiliano Pastorino Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598) 2 601 5773 int.: 2232 -- Ing. Emiliano Pastorino Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598) 2 601 5773 int.: 2232 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Dextrose] Problems compiling bluetooth module
It worked. I had to compile the whole thing and used the resulting bluetooth.ko Maybe it's related to that warning about a missing file Module.symvers? On Fri, Jan 7, 2011 at 9:44 AM, Emiliano Pastorino epastor...@plan.ceibal.edu.uy wrote: Maybe I should try to compile the whole kernel and see if it works? On Fri, Jan 7, 2011 at 9:41 AM, Emiliano Pastorino epastor...@plan.ceibal.edu.uy wrote: Hmm... can you verify that the stuff in .config of the kernel sources actually matches the stuff in /boot/config-2.6.31* of your XO? They only differ where I set the Bluetooth stuff. What does uname -a print? Linux xo-35-12-ce.localdomain 2.6.31_xo1-20100701.1605.1.olpc.a8f1b26 #1 PREEMPT Thu Jul 1 16:08:10 EDT 2010 i586 i586 i386 GNU/Linux On Wed, Jan 5, 2011 at 9:11 PM, Chris Ball c...@laptop.org wrote: Hi, The version of gcc might take part in computing the magic number. The idea is to prevent users from causing hard to diagnose bugs by inadvertently loading modules that aren't 100% ABI compatible with the running kernel. It might, but it doesn't -- see include/linux/vermagic.h's VERMAGIC_STRING. - Chris. -- Chris Ball c...@laptop.org One Laptop Per Child ___ Dextrose mailing list dextr...@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/dextrose -- Ing. Emiliano Pastorino Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598) 2 601 5773 int.: 2232 -- Ing. Emiliano Pastorino Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598) 2 601 5773 int.: 2232 -- Ing. Emiliano Pastorino Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598) 2 601 5773 int.: 2232 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Dextrose] Problems compiling bluetooth module
I was doing make M=drivers/bluetooth Anyways, after compiling the kernel, olpc-configure doesn't recognize some hardware and now I have no sound or touchpad. I'll keep my bluetooth modules and flash my XO. On Fri, Jan 7, 2011 at 2:46 PM, Bernie Innocenti ber...@codewiz.org wrote: On Fri, 2011-01-07 at 12:28 -0200, Emiliano Pastorino wrote: It worked. I had to compile the whole thing and used the resulting bluetooth.ko I'm glad it worked! How were you compiling before? Just make modules SUBDIR=drivers/blah/blah ? -- // Bernie Innocenti - http://codewiz.org/ \X/ Sugar Labs - http://sugarlabs.org/ -- Ing. Emiliano Pastorino Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598) 2 601 5773 int.: 2232 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Problems compiling bluetooth module
Hi, it's me again with new problems. I'm trying to compile the bluetooth modules again, but now I've new issues. When I try to insmod any module, I get the same error: insmod: error inserting 'net/bluetooth/bluetooth.ko': -1 Invalid module format I'm working on an XO-1 with a Dextrose based build, using kernel 2.6.31. uname -r shows this: 2.6.31_xo1-20100701.1605.1.olpc.a8f1b26 and rpm -qa | grep kernel this: kernel-firmware-2.6.31_xo1-20100701.1605.1.olpc.a8f1b26.i586 kernel-devel-2.6.31_xo1-20100701.1605.1.olpc.a8f1b26.i586 kernel-2.6.31_xo1-20100701.1605.1.olpc.a8f1b26.i586 kernel-headers-2.6.31_xo1-20100701.1605.1.olpc.a8f1b26.i586 I've downloaded kernel-2.6.31_xo1-20100701.1605.1.olpc.a8f1b26.src.rpm from http://dev.laptop.org/~kernels/olpc-2.6.31-xo1/ and installed it. The steps I followed were the same as with the 2.6.25 kernel, with little modifications since now there's a configuration for XO-1.5 also: make ARCH=i386 INSTALL_MOD_STRIP=1* xo_1_defconfig* make ARCH=i386 INSTALL_MOD_STRIP=1 menuconfig there, I activated bluetooth make ARCH=i386 INSTALL_MOD_STRIP=1 M=net/bluetooth Then, when i execute insmod net/bluetooth/bluetooth.ko, I get: insmod: error inserting 'net/bluetooth/bluetooth.ko': -1 Invalid module format modinfo net/bluetooth/bluetooth.ko shows: filename: net/bluetooth/bluetooth.ko alias: net-pf-31 license:GPL version:2.15 description:Bluetooth Core ver 2.15 author: Marcel Holtmann mar...@holtmann.org srcversion: 934DDFF641FDE73DF4A50F3 depends: vermagic: 2.6.31.6 preempt mod_unload modversions GEODE 4KSTACKS so bluetooth.ko can't be just garbage. I'm getting the same behaviour with all the other modules from net/bluetooth and drivers/bluetooth. Any clues? Thanks On Fri, Aug 28, 2009 at 5:01 PM, Emiliano Pastorino epastor...@plan.ceibal.edu.uy wrote: 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 p...@laptop.org 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/http://dev.laptop.org/%7Edilinger/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 -- Ing. Emiliano Pastorino Plan Ceibal Av. Italia 6201 CP
Re: Problems compiling bluetooth module
I've forgot to mention that I get this warning when compiling the modules: WARNING: Symbol version dump /home/root/rpmbuild/SOURCES/linux-2.6.31/Module.symvers is missing; modules will have no dependencies and modversions. On Wed, Jan 5, 2011 at 4:12 PM, Emiliano Pastorino epastor...@plan.ceibal.edu.uy wrote: Hi, it's me again with new problems. I'm trying to compile the bluetooth modules again, but now I've new issues. When I try to insmod any module, I get the same error: insmod: error inserting 'net/bluetooth/bluetooth.ko': -1 Invalid module format I'm working on an XO-1 with a Dextrose based build, using kernel 2.6.31. uname -r shows this: 2.6.31_xo1-20100701.1605.1.olpc.a8f1b26 and rpm -qa | grep kernel this: kernel-firmware-2.6.31_xo1-20100701.1605.1.olpc.a8f1b26.i586 kernel-devel-2.6.31_xo1-20100701.1605.1.olpc.a8f1b26.i586 kernel-2.6.31_xo1-20100701.1605.1.olpc.a8f1b26.i586 kernel-headers-2.6.31_xo1-20100701.1605.1.olpc.a8f1b26.i586 I've downloaded kernel-2.6.31_xo1-20100701.1605.1.olpc.a8f1b26.src.rpm from http://dev.laptop.org/~kernels/olpc-2.6.31-xo1/ and installed it. The steps I followed were the same as with the 2.6.25 kernel, with little modifications since now there's a configuration for XO-1.5 also: make ARCH=i386 INSTALL_MOD_STRIP=1* xo_1_defconfig* make ARCH=i386 INSTALL_MOD_STRIP=1 menuconfig there, I activated bluetooth make ARCH=i386 INSTALL_MOD_STRIP=1 M=net/bluetooth Then, when i execute insmod net/bluetooth/bluetooth.ko, I get: insmod: error inserting 'net/bluetooth/bluetooth.ko': -1 Invalid module format modinfo net/bluetooth/bluetooth.ko shows: filename: net/bluetooth/bluetooth.ko alias: net-pf-31 license:GPL version:2.15 description:Bluetooth Core ver 2.15 author: Marcel Holtmann mar...@holtmann.org srcversion: 934DDFF641FDE73DF4A50F3 depends: vermagic: 2.6.31.6 preempt mod_unload modversions GEODE 4KSTACKS so bluetooth.ko can't be just garbage. I'm getting the same behaviour with all the other modules from net/bluetooth and drivers/bluetooth. Any clues? Thanks On Fri, Aug 28, 2009 at 5:01 PM, Emiliano Pastorino epastor...@plan.ceibal.edu.uy wrote: 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 p...@laptop.org 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/http://dev.laptop.org/%7Edilinger/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
Re: [Dextrose] Problems compiling bluetooth module
Anything suspicious in the output of dmesg/ kernel: [ 4892.710548] bluetooth: no symbol version for module_layout vermagic: 2.6.31.6 preempt mod_unload modversions GEODE 4KSTACKS Do these things match your running kernel? I'm running 2.6.31_xo1-20100701.1605.1.olpc.a8f1b26, that's all I know -- // Bernie Innocenti - http://codewiz.org/ \X/ Sugar Labs - http://sugarlabs.org/ -- Ing. Emiliano Pastorino Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598) 2 601 5773 int.: 2232 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Can't find shared library libusb
What about find_library('usb-1.0')? Yes! That did the job. Thanks everyone. Now my Lego Mindstorms NXT2.0 works connected to the XO :) On Mon, Oct 18, 2010 at 5:55 AM, Tomeu Vizoso to...@sugarlabs.org wrote: On Fri, Oct 15, 2010 at 21:24, Emiliano Pastorino epastor...@plan.ceibal.edu.uy wrote: Hi everyone, I'm trying to use libusb, but I'm getting this behaviour in python: from ctypes.util import find_library find_library('usb') (returned None) What about find_library('usb-1.0')? It's probably good that you need to specify the version in this case because the API between 0.1 and 1.0 is likely to have changed. This is because there's no libusb.so symlink. Regards, Tomeu The strange thing is that in another XO, same build (802), it does find the library: from ctypes.util import find_library find_library('usb') 'libusb-0.1-so.4' Both XO have this file in /usr/lib, but the first one won't find it. Nevertheless, it finds other libraries under /usr/lib. I've checked /etc/ld.so.conf and it's the same for both XO. I'm using the same version of libusb and libusb-devel, and they were installed with yum. Any tips? ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel -- Ing. Emiliano Pastorino Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598) 2 601 5773 int.: 2232 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Can't find shared library libusb
Hi everyone, I'm trying to use libusb, but I'm getting this behaviour in python: from ctypes.util import find_library find_library('usb') (returned None) The strange thing is that in another XO, same build (802), it does find the library: from ctypes.util import find_library find_library('usb') 'libusb-0.1-so.4' Both XO have this file in /usr/lib, but the first one won't find it. Nevertheless, it finds other libraries under /usr/lib. I've checked /etc/ld.so.conf and it's the same for both XO. I'm using the same version of libusb and libusb-devel, and they were installed with yum. Any tips? ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: help to disable the touchpad
Try xsetspointer -l, it lists the devices connected. On Thu, Sep 9, 2010 at 12:40 PM, Esteban Arias ear...@plan.ceibal.edu.uywrote: Hi, I cant disable the touchpad. *Version 802 with fedora 9*: *xsetpointer -c OLPC ALPS HGPK* *Version dextrose - fedora 11*: If I do:* * *xsetpointer -c OLPC ALPS HGPK*, then shows: Extended device OLPC ALPS HGPK not found If I do: *xsetpointer -c OLPC HGPK ALPS HGPK* and shows error: X Error of failed request: BadMatch (invalid parameter attributes) ... any idea? thanks, -- Esteban Arias Investigación y Desarrollo - Plan Ceibal Avda. Italia 6201 Montevideo - Uruguay. Tel.: 2601.57.73 Interno 2228 E-mail : ear...@plan.ceibal.edu.uy ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel -- Ing. Emiliano Pastorino Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598) 2 601 5773 int.: 2232 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Skybluetero: GUI for Airtime.py
Hi everyone, I wanted to share with you this piece of software I wrote last year and have been using here at Ceibal. It's a GUI for Ricardo Carrano's airtime.pyhttp://wiki.laptop.org/go/Wireless_Airtime_Analysis . Extracted from the project's google code sitehttp://code.google.com/p/skybluetero/ : skybluetero analyzes tcpdump or wireshark captures and plots the airtime consumption of the filtered packets (using wireshark expressions). Some of its features: - Plotting results using matplotlib, allows to save the plot as an image. - Multiple plot styles - Save/Load filter expressions - Export results to CSV - *Many, many others to come...* I'm barely maintaining it since it is only used at Ceibal by a couple of colleagues. They've reported a couple of bugs and I fixed them. That's it. Maybe if someone else uses it, I may be able to upgrade it, maybe not. Just wanted to let everyone know that you have this tool if you're analyzing wireless traffic. You can download it herehttp://code.google.com/p/skybluetero/downloads/list . Send me comments, suggestions or bugs if you want. -- Ing. Emiliano Pastorino Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 5773 int.: 2213 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Swap to SD cards: performance and burnout test
Haven't heard of it I'm going to check it out for sure! Thanks for the tip, Tomeu! On Fri, Dec 11, 2009 at 11:15 AM, Tomeu Vizoso to...@sugarlabs.org wrote: On Tue, Dec 8, 2009 at 15:05, Emiliano Pastorino epastor...@plan.ceibal.edu.uy wrote: Thanks for all your replies. I'll show you the results when we're done. What's most important to the user is probably going to be the latency (pointer sluggishness, UI reaction time), though, and I don't have an idea how to test that (still keeping in mind that it needs to be comparable and repeatable). Agree. So long, we've seen that you can be running 15 activities (and more, but that won't make much sense) simultaneously and UI reaction time seems to be the same, while an XO with no swapping always crashes with 4 or 5 activities running at the same time. Btw, have you considered using compcache? It may have tradeoffs interesting to you. Martin Dengler (added to CC) has run it quite intensively on the XO. Regards, Tomeu I'll speak to my boss and see if these subjective results are acceptable... btw, right now I'm using a Verbatim SDHC 4GB C6 card, but I'll be trying more flavours On Tue, Dec 8, 2009 at 9:10 AM, Neil Graham l...@screamingduck.com wrote: On Tue, 2009-12-08 at 10:18 +0100, Sascha Silbe wrote: I don't think it's terribly useful to test memory consuming non-interactive tasks. The problem is that the only way to get _comparable_, _repeatable_ numbers is to make the test non-interactive. Yup, but that's looking where you didn't drop your contact lens because the light is better over here. What's most important to the user is probably going to be the latency (pointer sluggishness, UI reaction time), though, and I don't have an idea how to test that (still keeping in mind that it needs to be comparable and repeatable). Simply cannot be done, User interfaces are inherently based around, well, interfacing with the user. The user is a component of the system. You could have a bot that does some automated clicking but you run the risk of ignoring exactly the data that would be relevant. The behaviour of the user will change with he speed of the system, sometimes that change will significantly change the speed of the system. An example is the user triggering an operation twice because the system took too long to demonstrate it was responding to the first one. Even if the double action is handled gracefully, it makes extra work to figure out what to do. When my daughter was younger she would just keep on clicking on supertux until it appeared, bringing the system to a standstill while it launched 20 copies. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel -- 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 -- «Sugar Labs is anyone who participates in improving and using Sugar. What Sugar Labs does is determined by the participants.» - David Farning -- 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
Re: Swap to SD cards: performance and burnout test
Thanks for all your replies. I'll show you the results when we're done. What's most important to the user is probably going to be the latency (pointer sluggishness, UI reaction time), though, and I don't have an idea how to test that (still keeping in mind that it needs to be comparable and repeatable). Agree. So long, we've seen that you can be running 15 activities (and more, but that won't make much sense) simultaneously and UI reaction time seems to be the same, while an XO with no swapping always crashes with 4 or 5 activities running at the same time. I'll speak to my boss and see if these subjective results are acceptable... btw, right now I'm using a Verbatim SDHC 4GB C6 card, but I'll be trying more flavours On Tue, Dec 8, 2009 at 9:10 AM, Neil Graham l...@screamingduck.com wrote: On Tue, 2009-12-08 at 10:18 +0100, Sascha Silbe wrote: I don't think it's terribly useful to test memory consuming non-interactive tasks. The problem is that the only way to get _comparable_, _repeatable_ numbers is to make the test non-interactive. Yup, but that's looking where you didn't drop your contact lens because the light is better over here. What's most important to the user is probably going to be the latency (pointer sluggishness, UI reaction time), though, and I don't have an idea how to test that (still keeping in mind that it needs to be comparable and repeatable). Simply cannot be done, User interfaces are inherently based around, well, interfacing with the user. The user is a component of the system. You could have a bot that does some automated clicking but you run the risk of ignoring exactly the data that would be relevant. The behaviour of the user will change with he speed of the system, sometimes that change will significantly change the speed of the system. An example is the user triggering an operation twice because the system took too long to demonstrate it was responding to the first one. Even if the double action is handled gracefully, it makes extra work to figure out what to do. When my daughter was younger she would just keep on clicking on supertux until it appeared, bringing the system to a standstill while it launched 20 copies. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel -- 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
Swap to SD cards: performance and burnout test
Hi everyone, We're testing how much performance you gain by swapping to an sd card. The first thing we need to do is to compare the performance between a regular XO 1.0 (no swapping) and one which swaps to an SD card. The other thing is to measure how long an SD lasts if used that way. So long, we've only compared two XO by running some activities, but we need some numeric results, or something measurable. Does anyone come out with a possible test? Also, we need to write and erase data as fast as possible to measure the lifetime of the SD card. Is there any tool or a way to write random data to the swap space? We're using a 4GB C6 SD card, assigning 512 Mb for swap. -- 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
Re: OFW Q3A15
Mitch, Does q3a15 automatically throttle the processor in case of overheating? If so, is there a way to check if it is working? cat /proc/cpuinfo maybe? Thanks! On Fri, Oct 30, 2009 at 6:52 AM, Mitch Bradley w...@laptop.org wrote: http://wiki.laptop.org/go/OLPC_Firmware_q3a15 Lots of good stuff. Please help me test it! My trac tickets are at http://dev.laptop.org/report/41 . If you click on the Action Needed column, the test in release tickets will collate together. Those tickets are ostensibly fixed in q3a15. It would be good to verify those, especially if you have already participated in the ticket. Don't limit yourself to testing just those fixes, though. I need to know about any regressions or anything else that doesn't work right. We are getting close to the end game for XO-1.5 shipment, so now is the time to find problems. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel -- 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
Re: OFW Q3A15
There is a way to check the temperature under Linux. It involves the lmsensors package, but I don't know the exact details. Yes, that's what I've been using. The package is lm_sensors, if installed, you just have to type sensors and you get the temperature in ºC. I've already checked that temperature never goes beyond 100ºC, so it is working. But how does it work? Is it just underclocking? I've checked /proc/cpuinfo, but clock is always at ~1GHz -- 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
Mouse wrap-around in X?
Hi everyone! Does anybody know if there's any configuration in X or package which let you make the mouse pointer jump from one edge of the screen to the opposite one? This is a very useful feature for accessibility. Thanks! Emiliano ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Software-disabling touchpad
Hi, everyone I'm working on accessibility and disabling the touchpad is necessary for kids who can't control their movements and need other input devices. I played a little bit around /sys/class/... and /sys/devices/... and found that with this command: echo 0 /sys/devices/platform/i8042/serio1/pwred you get echo: write error: Operation not permitted, but still the touchpad is disabled. Keyboard still works and I can plug a regular usb mouse. The thing is I can't reactivate it until I reboot the XO. I just wanted to know if this behaviour is normal or it's a bug and I'm not supposed to be able to disable the touchpad. If that's the case, is there a neater way to do that? Thanks, Emiliano ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Software-disabling touchpad
Found this: xsetpointer -c OLPC ALPS HGPK xsetpointer +c OLPC ALPS HGPK First one disables the touchpad, second one enables. And you don't need to be root. On Wed, Sep 23, 2009 at 12:45 PM, Richard A. Smith rich...@laptop.orgwrote: supposed to be able to disable the touchpad. If that's the case, is there a neater way to do that? It obeys standard ps2 mouse commands. Send the controller a 0xA7 and it will disable the output stream. http://www.computer-engineering.org/ps2keyboard The mouse is the Auxillary PS/2 device interface Offhand I don't know the linux way of sending a command to the keyboard controller from userspace but Xwindows does it so its possible. -- Richard A. Smith rich...@laptop.org One Laptop per Child ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel -- 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
Problems compiling bluetooth module
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: Battery recovery issues
Here's the logfile. Just one observation: it tooked me 3:30 h to discharge the battery (I did a bat-recover for 16 hours previously), so the battery seems to be in good shape, and also the XO, since with other batteries the led and output from all these commands behave as expected. Also, I want you to know that the first 20 batteries I tested weren't faulty, they just needed to be charged (trickle charged at the begining, then normal charged). I think that kids and our technicians don't know what does the 4-times-blinking-orange-led mean, so I'm giving them immediate instructions on how to proceed. On Tue, May 5, 2009 at 6:44 PM, Richard A. Smith rich...@laptop.org wrote: 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 -- Ing. Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 5773 int.: 213 2:29 0 0x0 0x0 0x1 0x1 0x0 0x0 0x0 0x0 0x0 0.00 0.000 0.00 0.00 0 0x0 0x0 2:29 0 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0.00 0.000 0.00 0.00 0 0x0 0x0 2:30 0 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0.00 0.000 0.00 0.00 0 0x0 0x0 2:30 0 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0.00 0.000 0.00 0.00 0 0x0 0x0 2:31 0 0x0 0x0 0x1 0x1 0x0 0x0 0x0 0x0 0x0 0.00 0.000 0.00 0.00 0 0x0 0x0 2:31 0 0x0 0x0 0x1 0x1 0x0 0x0 0x0 0x0 0x0 0.00 0.000 0.00 0.00 0 0x0 0x0 2:32 0 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0.00 0.000 0.00 0.00 0 0x0 0x0 2:33 0 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0.00 0.000 0.00 0.00 0 0x0 0x0 2:33 0 0x0 0x0 0x1 0x1 0x0 0x0 0x0 0x0 0x0 0.00 0.000 0.00 0.00 0 0x0 0x0 2:34 0 0x0 0x0 0x1 0x1 0x0 0x0 0x0 0x0 0x0 0.00 0.000 0.00 0.00 0 0x0 0x0 2:34 0 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0.00 0.000 0.00 0.00 0 0x0 0x0 2:35 0 0x0
Re: Battery recovery issues
Richard, I've attached batdbug.log and seebstate.log. watch-battery says No battery. Battery led is always off. Sn is: 0060208060811873 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) If the first column is battery's charge, then it's almost dry. Should I try bat-recover or charge it the usual way? After all these tests, I'll have to write a step-by-step guide for the people at our technical center so they can tell when a battery can be recovered and when not, so I must try to cover as many situations as possible. 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. On Fri, May 1, 2009 at 3:29 AM, Richard A. Smith rich...@laptop.org wrote: Emiliano Pastorino wrote: Richard, I've just received a box with 60 faulty batteries inside, so I'll be playing with them for the next few years... :) I did a bat-recover on one of them for about 18 hours and I noticed this: When I run watch-battery, it still says No battery. I did a full-reset of the XO but nothing happened, it still says No battery. Then I loaded batman.fth and ran bat-charge and I got a nice output. All the values seemed to be OK when charging or discharging the battery. I tried batman-start; 6a bat-set-status; batman-stop and I could see tha 6a in the first block, but watch-battery still says No battery. Hmm.. and see-bstate shows 0 1 2 over and over? There is one more battery debugging tool available. Its called bat-debug and bat-debug-log.with the power for the cpu and for the The both read the same thing but bat-debug-log will write the contents to 'disk:\batdbug.log'. 'disk' is USB or SD depending on what you have inserted. bat-debug just does the screen and serial port. If the 1-wire state machine is just looping over and over bat-debug won't provide much more info. It might however point out what part of the state machine is failing. That part of the code has a pretty large number of if() clauses all lumped into the same state. Procedure: 1) Remove the problem battery. 2) Boot machine and stop boot at OFW prompt. 3) run bat-debug (or bat-debug-log) 4) insert the battery 5) let it run for one or 2 screenfuls of info 6) hit a key to stop bat-debug send me the info. Note, that you don't run batman-start before you run bat-debug since you want the EC state machine to run and you don't need to 'fload batman.fth'. bat-debug should be in your firmware already. What is the difference between batman's bat-charge and watch-battery? Tell me if I'm wrong, but I think that bat-charge reads battery info directly from it, and watch-battery takes that info from the EC. So, the problem could be that the EC isn't synced with the battery. Am I right? Correct. Batman code takes over the 1-wire communication bus from the EC and talks directly to the battery. 'watch-battery' uses EC commands to read what the EC thinks. So if the EC state machine is bailing out for some reason then you will get odd things from watch-battery where batman only needs the 1-wire to work. So long I could recover 2 batteries out of 4. I'll try more batteries, the batteries that seem to be ok now are the same model (GP NTA2490), and the other two (the ones I couldn't recover even with bat-recover) are BYD LP183662AR-2S. I have no idea what this number is. The serial number I would need is the long string of digits under the barcode in the center of the battery. If you want me to do a particular test with any of these batteries, just ask and I'll share my results with you. Well. I'd like to make sure the firmware has the diagnostics that will allow you to figure out whats up with the battery. So depending on what see-bstate and bat-debug info is I'll perhaps need to make new firmware or new diags in batman.fth to try and figure out whats up. -- Richard Smith rich...@laptop.org One Laptop Per Child -- Ing. Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 5773 int.: 210 23:25 0 0x0 0x0 0x1 0x1 0x0 0x0 0x0 0x0 0x0 0.00 0.000 0.00 0.00 0 0x0 0x0 23:26 0 0x0 0x0 0x1 0x1 0x0 0x0 0x0 0x0 0x0 0.00 0.000 0.00 0.00 0 0x0 0x0 23:26 0 0x0 0x0 0x1 0x1 0x0 0x0 0x0 0x0 0x0 0.00 0.000 0.00 0.00 0 0x0 0x0 23:27 0 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0.00 0.000 0.00 0.00 0 0x0 0x0 23:27 0 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0.00 0.000 0.00 0.00 0 0x0 0x0 23:28 0 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0.00 0.000 0.00 0.00 0 0x0 0x0 23:28 0 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x0 0x0 0.00 0.000 0.00 0.00 0 0x0 0x0 23:29 0 0x0 0x0 0x1 0x1 0x0 0x0 0x0 0x0 0x0 0.00 0.000 0.00 0.00 0 0x0 0x0 23:30 0 0x0 0x0 0x1 0x1 0x0 0x0 0x0 0x0 0x0 0.00 0.000 0.00 0.00 0 0x0 0x0
Re: Battery recovery issues
Richard, I've just received a box with 60 faulty batteries inside, so I'll be playing with them for the next few years... I did a bat-recover on one of them for about 18 hours and I noticed this: When I run watch-battery, it still says No battery. I did a full-reset of the XO but nothing happened, it still says No battery. Then I loaded batman.fth and ran bat-charge and I got a nice output. All the values seemed to be OK when charging or discharging the battery. I tried batman-start; 6a bat-set-status; batman-stop and I could see tha 6a in the first block, but watch-battery still says No battery. What is the difference between batman's bat-charge and watch-battery? Tell me if I'm wrong, but I think that bat-charge reads battery info directly from it, and watch-battery takes that info from the EC. So, the problem could be that the EC isn't synced with the battery. Am I right? So long I could recover 2 batteries out of 4. I'll try more batteries, the batteries that seem to be ok now are the same model (GP NTA2490), and the other two (the ones I couldn't recover even with bat-recover) are BYD LP183662AR-2S. If you want me to do a particular test with any of these batteries, just ask and I'll share my results with you. On Wed, Apr 29, 2009 at 2:25 PM, Richard A. Smith rich...@laptop.orgwrote: Emiliano Pastorino wrote: Are you using the latest batman.fth? I pulled a lot of batman functionality into the firmware and had to modify batman.fth to avoid the errors above. I'm using 0.3.6. Sorry. I didn't have the latest up on the site. Grab a fresh copy. Is there any up-to-date document on how to proceed when recovering a faulty battery using recent firmware? No. But the difference is just running batman-start prior to bat-recover. If you want to stop bat-recover then remove the battery. It will error and drop to an ok prompt. Should I expect any output when running batman-start? I noticed that battery interface is suspended, but I don't see anything else going on. Nope. And while batman is enabled don't expect the charge LED to do anything normal. It will flash in odd patterns. Now I'm trying to recover a red led flashing battery. Suddenly, it went from flashing red to nothing and I'm also getting No battery from watch-battery and 0 1 2 0 1 2. from see-bstat. When the led was flashing red, I could get an error code of 2 from ec-abnormal@ .. Now I'm getting 0. I'd like to know what that 2 meant. Where can I get the explanation of those error codes? The error list on the wiki is a bit out of date. I'll work on updating a list on the battery diagnostics page. A 2 mean that the status register setting in the battery gas gauge was not what the EC expected it to be. This happens every so often and is usually transient. If it was actually written into the EEPROM and you get that every time then please do a bat-dump-banks and look at the value in the 2nd line of bank0, Col 1. It should be 0x6a if is not then you can use bat-set-status to fix it. ok batman-start ok 6a bat-set-status ok batman-stop I'll be testing more faulty batteries, so I'll be bothering here periodically :) No problem. Please help me keep the battery diagnostic page up to date with things that you find. On that note. I need to get with you sometime and get some charge logs. I'm want to know how the capacity of the batteries you have had out in the field are holding up. -- Richard Smith rich...@laptop.org One Laptop Per Child -- Ing. Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 5773 int.: 210 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Battery recovery issues
Are you using the latest batman.fth? I pulled a lot of batman functionality into the firmware and had to modify batman.fth to avoid the errors above. I'm using 0.3.6. Originally, I only pulled in some key diagnostics but then in later firmwares I needed the formatting functions too so its a bit of a mismash. Is there any up-to-date document on how to proceed when recovering a faulty battery using recent firmware? New firmware suspends only the battery interface and leaves the keyboard active. 'batman-stop' will resume normal operation. Should I expect any output when running batman-start? I noticed that battery interface is suspended, but I don't see anything else going on. Now I'm trying to recover a red led flashing battery. Suddenly, it went from flashing red to nothing and I'm also getting No battery from watch-battery and 0 1 2 0 1 2. from see-bstat. When the led was flashing red, I could get an error code of 2 from ec-abnormal@ .. Now I'm getting 0. I'd like to know what that 2 meant. Where can I get the explanation of those error codes? I'll be testing more faulty batteries, so I'll be bothering here periodically :) ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Battery recovery issues
Hello everyone, I'm trying to recover a battery than seems to be broken. This is what I've done so far: - I've plugged the battery on an unsecured XO. - When I run watch-battery from the ok prompt, I get a No battery message. - I tried see-bstate and I get an infinite output of 0 1 2 0 1 2 0 1 2 0 1 2 - Battery led never flashes. - If I use a known good battery, I get all the expected results (led turns on, nice output from the commands above). Besides, I tried to use batman.fth, but when I run fload nand:\batman.fth I get The file 'nand:\olpc.fth' cannot be opened. I've downloaded batman.fth from http://dev.laptop.org/pub/firmware/scripts/batman.fth and placed it in / . I'm using firmware Q2E35. Is that battery unrecoverable? How can I tell the difference between a completely broken battery and a broken-but-recoverable one? Any tips? Emiliano ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Why olpc user is locked?
Hi everyone, I was wondering, why olpc user account is locked when creating it? The thing is I would like to give access to a console in Uruguay's customized build, as root is password protected. We need that so the kids/teachers could do some basic maintenance if anything fails when booting sugar. What would happen if I delete the line in olpc-development.stream: chroot $INSTALL_ROOT /usr/bin/passwd -l olpc and add this one: chroot $INSTALL_ROOT /usr/bin/passwd -d olpc ? -- Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 3724 int.: 469 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: New Browse ready for Emilianio?
Hi, everyone We've tested it on 767 and it works great. We've followed the test case and I think the problem is solved. It doesn't work on 656, but that's not important since we're planning to upgrade to 767 (or later) in the next months. Thanks, Sayamindu! On Tue, Dec 23, 2008 at 2:06 PM, Sayamindu Dasgupta sayami...@gmail.comwrote: Hi Greg, It has not passed through formal QA (yet), but there is a test case on http://dev.laptop.org/ticket/9112 I tried it out on 767, and it seems to work fine. I did not test on 656. The bundle can be downloaded from http://dev.laptop.org/raw-attachment/ticket/9112/Browse-101.xo Thanks, Sayamindu On Tue, Dec 23, 2008 at 8:54 PM, Greg Smith gregsmitho...@gmail.com wrote: Hi Sayamindu, Do you think the new browse version (101?) has been shown to solve the problem Emliano raised here? http://www.mail-archive.com/devel@lists.laptop.org/msg14839.html Has it been tested with build 656 or only 767 (8.2)? If we have verified that it solves the issue raised, let's ask him to try it out. Thanks, Greg S -- Sayamindu Dasgupta [http://sayamindu.randomink.org/ramblings] ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel -- Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 3724 int.: 469 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
nandblaster: can't open fs.plc for reading
Hi everyone! We're doing some tests with firmware q2e24 but we're having trouble when trying to serve an unsigned build. As it says at http://wiki.laptop.org/go/Multicast_NAND_FLASH_Update , we need an fs.plc file, but we don't know how to generate it. Any tips? -- Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 3724 int.: 469 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: nandblaster: can't open fs.plc for reading
Thanks, Erik! I'll try it right now On Wed, Dec 17, 2008 at 2:46 PM, Erik Garrison e...@laptop.org wrote: Hi Emiliano! On Wed, Dec 17, 2008 at 02:22:37PM -0200, Emiliano Pastorino wrote: Hi everyone! We're doing some tests with firmware q2e24 but we're having trouble when trying to serve an unsigned build. As it says at http://wiki.laptop.org/go/Multicast_NAND_FLASH_Update , we need an fs.plc file, but we don't know how to generate it. Judging by the description on the afformentioned page, the fs.plc file has the format described at http://wiki.laptop.org/go/OFW_NAND_FLASH_Updater It is basically a script used by OFW during the update process to build any partitions on the NAND and to validate the eblocks. The bulk of the script is a bunch of sha256 digests for each 128KiB piece (erase-block, or eblock) of the image you're flashing. You can see such scripts by unzipping an fs.zip from one of our signed builds and examining the file data.img. Any tips? Ironically I just built a simple script to generate such files because it will help us in getting your custom images ready for secure reflash. Instructions regarding that process will be forthcoming this afternoon. In the meantime I suspect you can resolve the NANDBlaster issue by using the script. You can obtain the script from: git-clone git://dev.laptop.org/users/erik/image-digestor Run it as follows against the image file you are trying to NANDBlast: image-digestor.sh image_file_name After a minute or so it will produce a file called image_file_name.ofw_update_script. Rename this file fs.plc, put it on the USB alongside fs.img, and start the NANDBlaster again by following the instructions on the Multicast NAND Updater page. Hopefully that resolves the issue. Please indicate if you encounter more problems. Best, Erik -- Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 3724 int.: 469 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: nandblaster: can't open fs.plc for reading
It worked. I'll continue with my tests. Thanks again, Erik! On Wed, Dec 17, 2008 at 2:50 PM, Emiliano Pastorino epastor...@plan.ceibal.edu.uy wrote: Thanks, Erik! I'll try it right now On Wed, Dec 17, 2008 at 2:46 PM, Erik Garrison e...@laptop.org wrote: Hi Emiliano! On Wed, Dec 17, 2008 at 02:22:37PM -0200, Emiliano Pastorino wrote: Hi everyone! We're doing some tests with firmware q2e24 but we're having trouble when trying to serve an unsigned build. As it says at http://wiki.laptop.org/go/Multicast_NAND_FLASH_Update , we need an fs.plc file, but we don't know how to generate it. Judging by the description on the afformentioned page, the fs.plc file has the format described at http://wiki.laptop.org/go/OFW_NAND_FLASH_Updater It is basically a script used by OFW during the update process to build any partitions on the NAND and to validate the eblocks. The bulk of the script is a bunch of sha256 digests for each 128KiB piece (erase-block, or eblock) of the image you're flashing. You can see such scripts by unzipping an fs.zip from one of our signed builds and examining the file data.img. Any tips? Ironically I just built a simple script to generate such files because it will help us in getting your custom images ready for secure reflash. Instructions regarding that process will be forthcoming this afternoon. In the meantime I suspect you can resolve the NANDBlaster issue by using the script. You can obtain the script from: git-clone git://dev.laptop.org/users/erik/image-digestor Run it as follows against the image file you are trying to NANDBlast: image-digestor.sh image_file_name After a minute or so it will produce a file called image_file_name.ofw_update_script. Rename this file fs.plc, put it on the USB alongside fs.img, and start the NANDBlaster again by following the instructions on the Multicast NAND Updater page. Hopefully that resolves the issue. Please indicate if you encounter more problems. Best, Erik -- Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 3724 int.: 469 -- Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 3724 int.: 469 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Workaround for #8155? (hard links in datastore for storing duplicate files)
Hi, everyone. We would like to create a collection of books in pdf format (collection as in http://wiki.laptop.org/go/Collections) for kids in Uruguay, but we've seen that each time you open a book, a duplicate is created in datastore, despite the file being stored locally. That happens in build 656, but I've tried the same in 767, and duplicates are still being created. I've found that ticket #8155 describes this defect, but it seems that there hasn't been any advance since it was created 7 weeks ago. We need to solve this asap, so any workaround is good for us (it doesn't need to be pretty at all). Cheers -- Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 3724 int.: 469 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [sugar] Display warnings in sugar
Thanks for all your answers. The thing is we're having some trouble here in Uruguay with xos that run out of disk space. Kids download lots of activities, take lots of pictures and videos and they manage to use all free space they have. When that happens, it seems that sugar won't load in some cases or takes too long to do it. That's why we want to give some kind of warning when they have used, I don't know, 95% of disk space or so, so they can delete some stuff before everything crashes. We'll try to figure out something, but help will be appreciated! On Thu, Jul 17, 2008 at 6:21 AM, Tomeu Vizoso [EMAIL PROTECTED] wrote: On Thu, Jul 17, 2008 at 2:27 AM, C. Scott Ananian [EMAIL PROTECTED] wrote: 2008/7/16 Eben Eliason [EMAIL PROTECTED]: Two answers: similar issues. This is going to be handled by the notification system, which is in its infancy in the upcoming 8.2 release, but should mature and I hope our alert system will use the freedesktop.org standard: http://www.galago-project.org/specs/notification/index.php It is widely used in Gnome, and when I last reviewed it seems to be a solid and capable spec. I believe that was the plan of record in previous conversations; I hope I'm not mistaken. What we have implemented now is some basic notifications generated and consumed in the shell, so we haven't added any public API for now. The interfaces in that spec look quite good, although perhaps would benefit from a simpler, alternative API that also abstracts the D-Bus stuff. Perhaps rainbow should do some rate limiting or permissions checking, not sure. Thanks for the comment, Tomeu ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel -- Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 3724 int.: 469 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [sugar] Display warnings in sugar
Thanks, Michael! I was just trying that, but I was missing the XAUTHORITY variable. I think that's going to do the job by now. On Thu, Jul 17, 2008 at 4:39 PM, Michael Stone [EMAIL PROTECTED] wrote: On Thu, Jul 17, 2008 at 10:27:21AM -0300, Emiliano Pastorino wrote: Emiliano, I'm not sure of the right way to help you in the long term, but if you want a quick hack, you might try something like: 1. Install a cronjob that runs every few minutes. 2. When it runs, it should check the available space. 3. If it concludes that space is low, pop up a warning. Warnings can be simple X or pygtk programs (see the 'dialog' Linux scripts for ideas). To get this hooked up to the running X display, you'll need to set some environment variables: DISPLAY=:0 XAUTHORITY=/home/olpc/.Xauthority Ask if you need more help. Michael -- Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 3724 int.: 469 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Display warnings in sugar
Hi, everyone! I was wondering if is there a way to open a popup or something like that in sugar, we want to use that or something similar to give warnings to the user, like 95% of disk space used. Thanks! -- Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 3724 int.: 469 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Activation problems
Are you using a pendrive with the leases to activate the laptops? Or are you trying wireless? Which build are you using? You can try to search the SN of the laptops you're trying to activate in the lease.sig file to see if they're there... Emiliano On Mon, Apr 28, 2008 at 3:04 PM, John Watlington [EMAIL PROTECTED] wrote: I have two laptops here in Peru that refuse to activate. I have generated leases for (increasingly) 7 days, 3000 days, and 7999 days, and none work. I activated three other laptops using the same key/activation request and they work fine. They boot up and don't give any error messages. They just start flashing the SD, USB, and finally WiFi icons. When activating, they don't give any error message, they just say Powering off in 10 seconds. Any suggestions ? wad ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel -- Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 3724 int.: 469 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Javascript not working right on Web activity
Hi everyone! We're having problems here in Uruguay with Web activity. Kids can't upload images to their blogs at www.blogger.com or send mails using their accounts at www.adinet.com.uy. Both sites (and plenty more) use javascript for its user interface, but last versions of Web activity won't show some buttons on those sites. We know that previous versions don't have such issues, so we need to fix that ASAP. Who shall I contact to help us with this problem? Or if anyone knows how to solve it quicly, please let us know! Thanks! Emiliano Pastorino Plan Ceibal ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: font size in console
15x30pc rocks! 2008/1/18, Bernardo Innocenti [EMAIL PROTECTED]: Albert Cahalan wrote: Yes. It got buried in my inbox while I had to make up some hours for work. Also, you asked for a copy of the full thing, but I need to regenerate that and I might as well throw in the new characters while I'm at it. BTW, I was mistaken. It's about 1000 characters. As long as it's not too big (remember that the font lives in precious non-swappable kernel memory), the more glyphs we have, the better. I'm fine with the wording that Wikipedia uses for public domain. (disclaiming the weird nonsense which hopefully wouldn't apply to me anyway) Oh, I didn't get you were the original author of this font. I thought you had converted it or something. Since you're in contact with him, feel free to let him know that he is welcome to have it. Good. -- \___/ |___| Bernardo Innocenti - http://www.codewiz.org/ \___\ One Laptop Per Child - http://www.laptop.org/ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel -- Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 3724 int.: 467 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
font size in console
How can i change the font size of the console? My eyes hurt... Thanks! -- Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 3724 int.: 467 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
upgrading firmware on activated laptops
Is there any procedure to upgrade JUST the firmware on activated laptops? Thanks! -- Emiliano Pastorino LATU - Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598 2) 601 3724 int.: 467 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel