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


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