Andres Salomon [Thu, 23 Oct 2008 21:08:45 +0000 (17:08 -0400)]
mkjffs2: add lzo support
This adds support for building lzo images for root (and updates the
kernel accordingly, as LZO support wasn't compiled into the jffs2
driver). However, I'm not sold on LZO, so I haven't enabled it by
default. According to my tests, zlib left 540MB free, and bootup took
97s, while lzo left 505MB free, and bootup took 91s. Program startup
time appeared to be about the same. I'm not convinced that the 6s
bootup time improvement is worth it.
Signed-off-by: Andres Salomon <dilinger@debian.org>
Andres Salomon [Fri, 17 Oct 2008 22:12:09 +0000 (18:12 -0400)]
mkjffs2: add (redboot) partition support
We now create a 50MB boot partition, and the rest goes to a root
partition. This shaves 7s off of bootup, as OFW only has to mount
/boot. It also provides us the opportunity to use other filesystems
in /, as long as we keep /boot using jffs2.
Signed-off-by: Andres Salomon <dilinger@debian.org>
Andres Salomon [Thu, 16 Oct 2008 21:32:19 +0000 (17:32 -0400)]
olpc.fth: auto-detect boot device during boot
Rather than hardcoding nand:\ or disk:\ (which is incorrect in the case
of sd:\), read the /chosen/bootpath device tree property to determine
which device is being booting from, and use that variable. This fixes
SD booting (which works now; tested!)
Signed-off-by: Andres Salomon <dilinger@debian.org>
Andres Salomon [Tue, 14 Oct 2008 22:27:21 +0000 (18:27 -0400)]
initchroot: update kernel and custom initramfs-tools
This kernel has the majority of things built as a module, and uses an
initrd. Some initramfs customizations are necessary, so provide
a custom initramfs-tools for now.
Signed-off-by: Andres Salomon <dilinger@debian.org>
Andres Salomon [Tue, 14 Oct 2008 22:17:33 +0000 (18:17 -0400)]
olpc.fth: add video=lxfb as a kernel argument
This is only necessary if lxfb is compiled as a module, but it doesn't
hurt. It tells the debian initramfs to load lxfb (so it gets loaded
as quickly as possible).
Signed-off-by: Andres Salomon <dilinger@debian.org>
James Cameron [Thu, 28 Aug 2008 05:59:26 +0000 (15:59 +1000)]
Add --distribution option to choose which distribution of Debian to use.
Add --user option to specify username to create, default olpc.
Add --mirror option to allow a local package mirror to be used, tested
to work with the approx package.
Add --othermirror optioin to allow an addition sources.list line.
Add --package-list option.
Move chroot mount and umount to functions for shell use.
Add package lists for lxde and kde.
Cache the kernel package.
Only configure xorg.conf, Gnome, or KDE files if they are present.
Add user to the floppy group for thumb drive use.
Andres Salomon [Wed, 20 Aug 2008 18:34:44 +0000 (14:34 -0400)]
initchroot: add a workaround for #314334
jffs2 doesn't support shared mmap, so apt explodes (#314334). This
was the reason why we were mounting /var/cache/apt/cache over tmpfs;
readd the mount, and update apt.conf accordingly.
Signed-off-by: Andres Salomon <dilinger@debian.org>