Ready-made kernel, XO-1, Xubuntu, and initrd questions

2011-11-26 Thread Alec Muffett
Hi!

I have a G1G1-era XO-1 and am trying to put Xubuntu onto it, using
Virtualbox to do the setup and build on OSX, and then dd'ing the raw
image to a 4Gb SD-card for booting. I'm using the current
Xubuntu-alternate CD to build the image, and then approximately
following the Wiki at
http://wiki.laptop.org/go/Ubuntu_Lucid_on_OLPC_XO regards getting a
kernel installed.

At first I used the wiki instructions to pick a kernel from
http://dev.laptop.org/~kernels/olpc-2.6.31-xo1/ - from this directory
I chose:

vmlinuz-2.6.35_xo1-20100827.0009.1.olpc.e8a1b0f901cd2b3

...and following the instructions got my XO1 to boot successfully to a
GUI login, but it would be unusable because during boot it would
complain about not finding /lib/modules/VERSION+ - with a trailing
+ character - and thereby could not get at trackpad or usb-mouse
drivers.  I checked this with Chris Ball and he said that the +
represented a dirty kernel tree, which makes sense - but means that
the wiki instructions won't work for initrd building, since the
/lib/modules/VERSION directory won't match the kernels VERSION+
build.

This also made me think I was barking up the wrong tree; so I tried a
different directory:

http://dev.laptop.org/~kernels/public_rpms/f14-xo1/

...and installing the most recent kernel from _that_ actually provides
me with a initrd-image file ... except that the initrd is incomplete
and booting it causes /lib/modules: no such file or directory ...and
my attempts to reconstruct a initrd _for_ that kernel have been klunky
failures.

So at Chris' suggestion, I thought I would ask: Is there a place I can
get a ready-made kernel which contains all the necessary XO1 drivers
and a working initrd, or at lease an initrd which can be poked
trivially to make it work for Xubuntu, please?

Ideally I am looking to use the XO for wireless geomapping research,
so promisc-mode drivers and a loadable bluetooth-dongle stack are
desirable features. :-)

[I promise to document the build once I get it running.]

Many thanks!

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


Re: Ready-made kernel, XO-1, Xubuntu, and initrd questions

2011-11-26 Thread James Cameron
On Sat, Nov 26, 2011 at 11:40:21AM +, Alec Muffett wrote:
 I have a G1G1-era XO-1 and am trying to put Xubuntu onto it, using
 Virtualbox to do the setup and build on OSX, and then dd'ing the raw
 image to a 4Gb SD-card for booting. I'm using the current
 Xubuntu-alternate CD to build the image, and then approximately
 following the Wiki at
 http://wiki.laptop.org/go/Ubuntu_Lucid_on_OLPC_XO regards getting a
 kernel installed.

I never really liked that method, because it was imaging an existing
installation over to an XO from a virtual machine ... seemed difficult
to reproduce in an automated fashion.

So I wrote my own scripts in September last year that built a
filesystem using debootstrap:

git://dev.laptop.org/users/quozl/uxo

This used two kernels, one for XO-1, one for XO-1.5, with an olpc.fth
that decided between them.

The initrd was included and worked fine.

default.conf is where the kernels are specified.

C_KERNEL=2.6.31_xo1-20110320.1409.1.olpc.3d8536c28d6c5a1
C_KERNEL_ORIGIN=http://dev.laptop.org/~kernels/olpc-2.6.31-xo1
D_KERNEL=2.6.31_xo1.5-20110320.1401.1.olpc.3d8536c28d6c5a1
D_KERNEL_ORIGIN=http://dev.laptop.org/~kernels/olpc-2.6.31

However, I only ever booted from USB on XO-1.  The initrd might not have
liked the SD card slot.

-- 
James Cameron
http://quozl.linux.org.au/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Raspberry Pi as development platform for XO-1.75

2011-11-26 Thread Sridhar Dhanapalan
How useful could a Raspberry Pi be as a development platform for the XO-1.75?

It looks like the Pi is ARM11 based (v6 arch) and the XO has a v7 arch.


Sridhar Dhanapalan
Engineering Manager
One Laptop per Child Australia
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Raspberry Pi as development platform for XO-1.75

2011-11-26 Thread Chris Ball
Hi,

On Sat, Nov 26 2011, Sridhar Dhanapalan wrote:
 How useful could a Raspberry Pi be as a development platform for the XO-1.75?

 It looks like the Pi is ARM11 based (v6 arch) and the XO has a v7 arch.

You've correctly described why it probably won't be useful -- almost
every distribution compiles for ARMv7, including Fedora and Ubuntu,
so our builds won't boot on it at all.

Since you can create ARM binaries on an x86 machine with a cross
compiler, or on the 1.75 itself, the only use case I can think of for
it relating to 1.75 development would have been running our builds.

- Chris.
-- 
Chris Ball   c...@laptop.org   http://printf.net/
One Laptop Per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Battery - small irritation

2011-11-26 Thread Kevin Gordon
Hi:

I have received a new XO 1.5, shipped with a battery S/N starting with 008.

Over the past few days, I've noticed something a tad strange.  No matter
how long it's plugged in, the little charging  LED stays yellow.  However,
the frame battery indicator says 100%

Moved this battery to another XO 1.5 machine and plugged in, same symptoms,
stays yellow forever.

Moved this  battery to an XO 1.0 - same, LED stays yellow forever.

Moved this battery  to an XO 1.75 - same, LED stays yellow forever.

All my other batteries charge to green just fine in the original XO 1.5,
and in all the other machines listed above.

The battery seems to be performing normally, but as I said in the subject,
it's a small irritation, that it never seems to 'go green'.

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


Re: Ready-made kernel, XO-1, Xubuntu, and initrd questions [Devel Digest, Vol 69, Issue 60]

2011-11-26 Thread Yioryos Asprobounitis

 --
 
 Message: 2
 Date: Sat, 26 Nov 2011 11:40:21 +
 From: Alec Muffett alec.muff...@gmail.com
 To: devel@lists.laptop.org
 Subject: Ready-made kernel, XO-1, Xubuntu, and initrd
 questions
 Message-ID:
     CAFWeb9+LRRDXy=jtfvybnhsp19c_mre5ognj3r0sdvdfued...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1
 
 Hi!
 
 I have a G1G1-era XO-1 and am trying to put Xubuntu onto
 it, using
 Virtualbox to do the setup and build on OSX, and then
 dd'ing the raw
 image to a 4Gb SD-card for booting. I'm using the current
 Xubuntu-alternate CD to build the image, and then
 approximately
 following the Wiki at
 http://wiki.laptop.org/go/Ubuntu_Lucid_on_OLPC_XO
 regards getting a
 kernel installed.
 
 At first I used the wiki instructions to pick a kernel
 from
 http://dev.laptop.org/~kernels/olpc-2.6.31-xo1/ - from
 this directory
 I chose:
 
    
 vmlinuz-2.6.35_xo1-20100827.0009.1.olpc.e8a1b0f901cd2b3

Did you get _only_ the vmlinuz from the kernel rpm :-?

 
 ...and following the instructions got my XO1 to boot
 successfully to a
 GUI login, but it would be unusable because during boot it
 would
 complain about not finding /lib/modules/VERSION+
 - with a trailing
 + character - and thereby could not get at trackpad or
 usb-mouse
 drivers.  

You only get VERSION+ if you _build_ the kernel from a dirty tree source, 
not when you rpm2cpio an official kernel rpm (as the wiki instructions suggest).
If you are building the kernel and you use the vmlinuz from the official kernel 
rpm, you can remove the + by typing, while in the kernel source dir and 
before you build the kernel:
sed -rie 's/echo \+/#echo \+/' scripts/setlocalversion  



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


Re: Battery - small irritation

2011-11-26 Thread Richard Smith
On Sat, Nov 26, 2011 at 11:24 AM, Kevin Gordon kgordon...@gmail.com wrote:
 Hi:

 I have received a new XO 1.5, shipped with a battery S/N starting with 008.

 Over the past few days, I've noticed something a tad strange.  No matter how
 long it's plugged in, the little charging  LED stays yellow.  However, the
 frame battery indicator says 100%

The full stop condition for battery charged is when the constant
voltage taper current drops below .12.  I suspect you have some sort
of cell defect that keeping the taper current above that.

Next time you are using the machine stop powerd and run olpc-pwr-log
in a terminal (you can use it normally) and let it run down until it
powers off.  Then remove the battery, power back up, run olpc-pwr-log
again and then re-insert the battery.  Let it charge until you see the
got to 100 and the 3rd and 4th column of numbers reach some sort of
steady state where they don't change much.  Ctrl-C and then send me
the file.

FYI. Col 3 is voltage in uV and col 4 is amperage in uA.

Also send me all the files you have in ~olpc/power-logs

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