This is extremely similar to building a regular kernel, but there are a couple "gotchas". Mostly, cooperative_fs.h must be modified, as explained in http://sourceforge.net/mailarchive/forum.php?thread_id=6615898&forum_id=37489 , and make sure to always use gcc-3.3 (which is the cross-compiler used for the coLinux daemon 2.6.3 (as of 2006-07-8)).
Configure Apt, and prep system Edit
- Once you've applied the patches, you have to edit /usr/src/linux/include/linux/cooperative_fs.h and enclose the whole file between #ifndef FUSE_KERNEL_VERSION / #endif.
Build the kernel Edit
- when making vmlinux, make sure to specify the right gcc. For example, on debian unstable: make CC=gcc-3.3 vmlinux (use CC=gcc-3.4 if you're using coLinux 0.6.4)
- same for the modules
Follow the rest of the instructions without any change.
Building fuse Edit
- VERY IMPORTANT: /usr/src/linux must not have changed since you built the kernel.
- ALSO IMPORTANT: Use CC=gcc-3.4 for all steps below if you're using coLinux 0.6.4
2. extract it in ~/fuse
./configure CC=gcc-3.3 --with-kernel=/usr/src/linux
You might want to use --with-auto-modprobe to load the module automatically
make CC=gcc-3.3 install
That's it! The module is installed. You can try it out by following the instruction at http://fuse.sourceforge.net/, section Trying it out
MassTranslated on Sun Apr 23 17:35:45 UTC 2006