Andres Salomon [Wed, 25 Jan 2012 07:55:21 +0000 (23:55 -0800)]
debxo: update UBIFS-related stuff for generic kernels
Stock Debian 3.2 kernels now run on XO-1 without modification (finally!).
However, they require some mount and boot option changes for our custom
hardware.
Since OFW does not support JFFS2 with LZO compression, we need to be
sure to mount /boot with compr=zlib so that any blocks written out to
the partition use zlib instead of lzo.
The Debian kernels also compile the redboot directory number to -1, so
we have to override that through a boot argument.
Note that a newer version of olpc-xo1-hw (0.3) is necessary to ensure
that all needed kernel modules are included in the initramfs images.
Signed-off-by: Andres Salomon <dilinger@queued.net>
Andres Salomon [Sun, 19 Jun 2011 02:30:10 +0000 (19:30 -0700)]
debxo: drop gnome ubifs images
Gnome barely fits in the 1GB XO-1 nand; when running dist-upgrade
inside of gnome, gconftool-2 easily eats up all 256MB of ram and
causes an OOM crash. The gnome utilities quickly exhaust the XO-1s
ram, as well. As such, gnome will no longer be supported for the
XO-1 nand. Drop the ubifs config files accordingly.
It will remain supported for the XO-1.5, as well as larger SD/USB
devices on XO-1. Don't expect me to care about memory usage,
though! :)
Signed-off-by: Andres Salomon <dilinger@lunge.queued.net>
Andres Salomon [Sat, 20 Nov 2010 01:39:47 +0000 (17:39 -0800)]
debxo-xfce: use xfce4-goodies
This pulls in xfce-specific stuff; use xfce packages instead of gnome ones
(like parole instead of totem), and drop some packages which aren't really
necessary any more (links2 is nice, but epiphany's webkit backend is
much better w/ memory than the gecko backend was).
Andres Salomon [Fri, 19 Nov 2010 20:36:27 +0000 (12:36 -0800)]
debxo: drop hal keymapping stuff
Keymappings for OLPC are now handled by udev (and included upstream). In order
for this to work, OFW must have DMI support. Newer versions of OFW all have it,
so upon detection of an OLPC machine, udev should automatically load the correct
keymap (and it should work properly for both X and console).
If using an older OFW that lacks DMI support, upgrading is recommended. If
that's not an option, just add something like the following to your
/etc/rc.local (this will force manual loading of the keymaps):
/lib/udev/keymap /dev/input/event0 olpc-xo
Signed-off-by: Andres Salomon <dilinger@queued.net>
Andres Salomon [Fri, 5 Nov 2010 18:49:54 +0000 (11:49 -0700)]
mkext3: add --skip-grub option
For buildling debxo images (or other non-x86 images), we don't care about
installing grub. Furthermore, on some platforms, we don't have the grub
command.. so requiring grub to generate images is a non-starter.
The long-term solution to this is to have something like:
--use-bootloader=grub
...where one can use that to select between grub, ofw, uboot, etc.
Signed-off-by: Andres Salomon <dilinger@queued.net>
Andres Salomon [Sun, 21 Feb 2010 23:25:06 +0000 (18:25 -0500)]
debxo: add initial ubifs support
New script 'mkubifs.sh' for creating an image w/ a jffs2 /boot and an ubifs /.
It requires a new(er) kernel, possibly a newer initramfs-tools.. so for now,
it's not enabled. Hopefully soon..
Signed-off-by: Andres Salomon <dilinger@collabora.co.uk>
Andres Salomon [Fri, 11 Sep 2009 03:51:40 +0000 (23:51 -0400)]
debxo-*: replace autox with nodm
Someone beat me to writing what would've been called autox. It's called Nodm,
and it works pretty well. I've uploaded nodm to backports.org, and this
replaces use of my custom autox stuff with nodm/lenny-backports packages.
Signed-off-by: Andres Salomon <dilinger@collabora.co.uk>
James Cameron [Tue, 4 Aug 2009 09:48:59 +0000 (19:48 +1000)]
rework boot script for usb key to nand installer
- mkbootable.sh: refer to xodist rather than debxo (the image names may
contain debxo), prompt for a more complex confirmation keyboard
sequence, allow for abort.
- note that the xodist as at this version does not currently generate a
working XO NAND, tested on OLPC XO-1 C2 with OFW Q2E41B.
Andres Salomon [Sun, 12 Jul 2009 03:10:08 +0000 (23:10 -0400)]
debxo: use initramfs-tools and xserver-xorg-video-geode from backports
This switches over to using backports.org for initramfs-tools and
xserver-xorg-video-geode. Slowly, the other packages will make
their way to backports.org as well (until we no longer need
that annoying archive hack).
Signed-off-by: Andres Salomon <dilinger@collabora.co.uk>
Andres Salomon [Fri, 19 Jun 2009 15:44:04 +0000 (11:44 -0400)]
mkchroot: drop the logging function
It makes more sense to log the entire thing (mkchroot + mkext3, for example);
plus, for some reason the trap function is causing the script to die. I'm not
sure why that is, but the effort to debug it isn't worth it for me.
Signed-off-by: Andres Salomon <dilinger@collabora.co.uk>
Andres Salomon [Tue, 2 Jun 2009 23:52:15 +0000 (19:52 -0400)]
installer: add actual guts..
This just does a simple dd to copy the entire drive, partition tables and all.
Obviously, this means if you're installing from a 1GB image onto a 60GB drive,
the drive will appear as only a 1GB drive until the tables/filesystem have
been resized. This is something we can tweak later..
Signed-off-by: Andres Salomon <dilinger@collabora.co.uk>
Andres Salomon [Thu, 28 May 2009 23:22:04 +0000 (19:22 -0400)]
mkchroot.sh: break out non-olpc stuff
This changes the way image flavors are done; it adds a configs/ directory
that allows overriding of misc hooks. This allows a lot more flexibility.
The package lists are now in configs/ as well (ie, gnome.packages ->
configs/debxo-gnome/packages).
Signed-off-by: Andres Salomon <dilinger@collabora.co.uk>
Erik Garrison [Thu, 12 Feb 2009 18:55:51 +0000 (13:55 -0500)]
whitespace in OFW updater script
While producing
http://wiki.laptop.org/go/User:Erik_Garrison/Image_Digestor I discovered
that the OFW updater script produced by the xodist tools had trailing
whitespace after the lines.
I rectified this by applying the attached patch to the line in question.
After application I verified that the output of the bios-crypto 'hashfs'
C script is byte-for-byte identical when run over the same input (in
this case the os767.img).
Signed-off-by: Andres Salomon <dilinger@debian.org>
Erik Garrison [Tue, 18 Nov 2008 05:59:18 +0000 (00:59 -0500)]
initchroot: use tee to log to $ROOTDIR.log
Make a named pipe (which we clean up on exit or script death), set our
stdout/stderr to it, and pipe it tee so we can see what's happening and
log at the same time.
Signed-off-by: Andres Salomon <dilinger@debian.org>