MathiasJeschke
Jump to navigation
Jump to search
- Kernel holen und entpacken
- UnionFS holen und entpacken
- ins UnionFS-Verzeichnis wechseln
- Kernel patchen:
$ KERNEL_DIR=/no_backup/bernhard/kernel/linux-2.6.15.1 $ sh patch-kernel.sh $KERNEL_DIR
- Kernel konfigurieren:
$ cd $KERNEL_DIR
$ make menuconfig ARCH=um
- Kernel-Makefile anpassen
--- Makefile.orig +++ Makefile @@ -336,7 +336,7 @@
CHECK = sparse
CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise $(CF)
-MODFLAGS = -DMODULE +MODFLAGS = -DMODULE -DUNIONFS_NDEBUG
CFLAGS_MODULE = $(MODFLAGS) AFLAGS_MODULE = $(MODFLAGS) LDFLAGS_MODULE = -r
- Kernel bauen:
$ make ARCH=um $ make modules ARCH=um
$ make modules_install ARCH=um INSTALL_MOD_PATH=/tmp