PDA

View Full Version : recompile cloop.o for modified kernel?



mcreel
09-09-2005, 02:59 PM
I'm trying to do a remaster with a patched kernel. As I understand it, I need to replace cloop.o in the /modules directory of minirt.gz. The new cloop.o should be compiled using the patched kernel sources. But I'm having trouble compiling. From my ordinary linux distro, I chroot to my knoppix remaster sources. Then I go to the /usr/src/cloop-2.01 directory where I have uncompressed the cloop source, and try to compile following the instructions in the README. But I get

root@not a tty[cloop-2.01]# make KERNEL_DIR=/usr/src/linux
Makefile:9: /usr/src/linux/conf.vars: No such file or directory
make: *** No rule to make target `/usr/src/linux/conf.vars'. Stop.
root@not a tty[cloop-2.01]#


If I delete the line that refers to "conf.vars" from the Makefile, things go further, but eventually I get the following:

cc -I/usr/src/linux/include -I/usr/src/linux/include/asm/mach-default -D__KERNEL__ -DMODULE -fno-builtin -nostdlib -DKBUILD_MODNAME="cloop" -DKBUILD_BASENAME="cloop" compressed_loop.c -c -o compressed_loop.o
compressed_loop.c: In function `clo_read_actor':
compressed_loop.c:205: error: structure has no member named `buf'
compressed_loop.c: In function `clo_read_from_file':
compressed_loop.c:231: error: structure has no member named `buf'
make: *** [compressed_loop.o] Error 1
root@not a tty[cloop-2.01]#

I still don't have cloop.o

Any help appreciated, Michael