]> spindle.queued.net Git - olpc-xo1/commitdiff
force redboot loading before other modules to work around an mtd bug master
authorAndres Salomon <dilinger@debian.org>
Sun, 15 Feb 2009 22:33:16 +0000 (17:33 -0500)
committerAndres Salomon <dilinger@debian.org>
Sun, 15 Feb 2009 22:33:16 +0000 (17:33 -0500)
w/ partitions

Signed-off-by: Andres Salomon <dilinger@debian.org>
debian/olpc-xo1-hw.install
initramfs-scripts/xo1 [new file with mode: 0755]

index 7a49adb6c9e9c60aae252be42b7e244fe4bc8d18..40c1a56c925cf27abcdf6449a96dab7cf4ae2fb6 100644 (file)
@@ -1 +1,2 @@
 initramfs-hooks/xo1                    etc/initramfs-tools/hooks
 initramfs-hooks/xo1                    etc/initramfs-tools/hooks
+initramfs-scripts/xo1                  etc/initramfs-tools/scripts/init-top
diff --git a/initramfs-scripts/xo1 b/initramfs-scripts/xo1
new file mode 100755 (executable)
index 0000000..5c6a12d
--- /dev/null
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+#
+# List the soft prerequisites here.  This is a space separated list of
+# names, of scripts that are in the same directory as this one, that
+# must be run before this one can be.
+#
+PREREQ=""
+
+prereqs()
+{
+        echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+        prereqs
+        exit 0
+        ;;
+esac
+
+. /usr/share/initramfs-tools/hook-functions
+
+# redboot needs to be loaded before cafe_nand in order to ensure that
+# partitions are correctly identified.  This is a kernel bug that's worked
+# around here.
+modprobe redboot
+