From: Gregor M. <mi...@ra...> - 2004-03-02 16:59:27
|
Hi, this is probably a silly question: How can make the kernel modules of coLinux to be available? I'd like to modprobe 'smbfs' Thank's for any answers. --Gregor |
From: Sean B. <sea...@so...> - 2004-03-02 19:50:59
|
----- Original Message ----- From: "Gregor Mitsch" <mi...@ra...> To: <col...@li...> Sent: Tuesday, March 02, 2004 4:46 PM Subject: [coLinux-devel] how to obtain kernel modules? | Hi, | | this is probably a silly question: How can make the kernel modules of | coLinux to be available? I'd like to modprobe 'smbfs' You need to compile your own kernel. To get started look at doc/building in the coLinux tarball. Alternatively someone may compile it for you but there are lots of variables here. One module does not fit all. | | Thank's for any answers. | | --Gregor | | | ------------------------------------------------------- | SF.Net is sponsored by: Speed Start Your Linux Apps Now. | Build and deploy apps & Web services for Linux with | a free DVD software kit from IBM. Click Now! | http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click | _______________________________________________ | coLinux-devel mailing list | coL...@li... | https://lists.sourceforge.net/lists/listinfo/colinux-devel |
From: Gregor M. <mi...@ra...> - 2004-03-03 18:14:10
|
Hi, > You need to compile your own kernel. To get started look at > doc/building in the coLinux tarball. I followed the instructions from doc/building. Applying the patch succeeded. But $ make vmlinux fails with the following error message from cooperative.c: [...] cooperative.c:16: parse error before `*' cooperative.c:16: warning: type defaults to `int' in declaration of `co_passage_page' cooperative.c:16: warning: data definition has no type or storage class cooperative.c:27: `CO_BOOTPARAM_STRING_LENGTH' undeclared here (not in a function) cooperative.c:29: parse error before `*' cooperative.c:30: warning: function declaration isn't a prototype [...] You can see the whole output below. I downloaded the kernel-source of 2.4.24 via apt-get and used gcc version 2.95.4 to compile it. Any hints? --Gregor ---------------- (Z)root@colinux:/usr/src/kernel-source-2.4.24> make vmlinux . scripts/mkversion > .tmpversion gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.24/include -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -pipe -mpreferred-stack-boundary=2 -march=i386 -DUTS_MACHINE='"i386"' -DKBUILD_BASENAME=version -c -o init/version.o init/version.c make CFLAGS="-D__KERNEL__ -I/usr/src/kernel-source-2.4.24/include -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -pipe -mpreferred-stack-boundary=2 -march=i386 " -C kernel make[1]: Entering directory `/usr/src/kernel-source-2.4.24/kernel' make all_targets make[2]: Entering directory `/usr/src/kernel-source-2.4.24/kernel' gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.24/include -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -pipe -mpreferred-stack-boundary=2 -march=i386 -nostdinc -iwithprefix include -DKBUILD_BASENAME=cooperative -c -o cooperative.o cooperative.c cooperative.c:16: parse error before `*' cooperative.c:16: warning: type defaults to `int' in declaration of `co_passage_page' cooperative.c:16: warning: data definition has no type or storage class cooperative.c:27: `CO_BOOTPARAM_STRING_LENGTH' undeclared here (not in a function) cooperative.c:29: parse error before `*' cooperative.c:30: warning: function declaration isn't a prototype cooperative.c: In function `colinux_start_c': cooperative.c:32: `passage_page' undeclared (first use in this function) cooperative.c:32: (Each undeclared identifier is reported only once cooperative.c:32: for each function it appears in.) cooperative.c:34: request for member `params' in something not a structure or union cooperative.c:35: request for member `params' in something not a structure or union cooperative.c:36: request for member `params' in something not a structure or union cooperative.c:37: request for member `params' in something not a structure or union cooperative.c:39: request for member `params' in something not a structure or union cooperative.c:39: request for member `params' in something not a structure or union cooperative.c: At top level: cooperative.c:50: parse error before `*' cooperative.c:51: warning: return-type defaults to `int' cooperative.c: In function `co_send_message_save': cooperative.c:53: request for member `operation' in something not a structure or union cooperative.c:53: `CO_OPERATION_MESSAGE_TO_MONITOR' undeclared (first use in this function) cooperative.c:54: request for member `params' in something not a structure or union cooperative.c:55: `co_message_t' undeclared (first use in this function) cooperative.c:55: parse error before `)' cooperative.c:55: request for member `params' in something not a structure or union cooperative.c:56: warning: control reaches end of non-void function cooperative.c: In function `co_send_message_restore': cooperative.c:60: warning: implicit declaration of function `co_switch_wrapper' cooperative.c: At top level: cooperative.c:64: parse error before `*' cooperative.c:65: warning: function declaration isn't a prototype cooperative.c: In function `co_send_message_s': cooperative.c:66: `co_message_t' undeclared (first use in this function) cooperative.c:66: `message' undeclared (first use in this function) cooperative.c:67: `params' undeclared (first use in this function) cooperative.c:67: warning: statement with no effect cooperative.c:68: parse error before `unsigned' cooperative.c:70: `flags' undeclared (first use in this function) cooperative.c:71: request for member `operation' in something not a structure or union cooperative.c:71: `CO_OPERATION_MESSAGE_TO_MONITOR' undeclared (first use in this function) cooperative.c:72: request for member `params' in something not a structure or union cooperative.c:73: parse error before `)' cooperative.c:73: request for member `params' in something not a structure or union cooperative.c:75: `data' undeclared (first use in this function) cooperative.c: At top level: cooperative.c:82: parse error before `from' cooperative.c:88: warning: function declaration isn't a prototype cooperative.c: In function `co_send_message': cooperative.c:89: `co_message_t' undeclared (first use in this function) cooperative.c:89: parse error before `params' cooperative.c:91: `params' undeclared (first use in this function) cooperative.c:91: `from' undeclared (first use in this function) cooperative.c:92: `to' undeclared (first use in this function) cooperative.c:93: `priority' undeclared (first use in this function) cooperative.c:94: `type' undeclared (first use in this function) cooperative.c:95: `size' undeclared (first use in this function) cooperative.c:97: `data' undeclared (first use in this function) cooperative.c: At top level: cooperative.c:100: parse error before `*' cooperative.c:101: warning: function declaration isn't a prototype cooperative.c: In function `co_receive_message': cooperative.c:103: parse error before `co_message_t' cooperative.c:103: warning: no semicolon at end of struct or union cooperative.c:104: `co_linux_message_t' undeclared (first use in this function) cooperative.c: At top level: cooperative.c:105: warning: type defaults to `int' in declaration of `linux_message' cooperative.c:105: warning: data definition has no type or storage class cooperative.c:107: warning: type defaults to `int' in declaration of `linux_message' cooperative.c:107: conflicting types for `linux_message' cooperative.c:105: previous declaration of `linux_message' cooperative.c:107: `message' undeclared here (not in a function) cooperative.c:107: warning: data definition has no type or storage class cooperative.c:109: parse error before `&' cooperative.c:109: warning: type defaults to `int' in declaration of `co_handle_device_interrupt' cooperative.c:109: warning: function declaration isn't a prototype cooperative.c:109: warning: data definition has no type or storage class cooperative.c: In function `co_callback': cooperative.c:114: request for member `operation' in something not a structure or union cooperative.c:114: `CO_OPERATION_MESSAGE_FROM_MONITOR' undeclared (first use in this function) cooperative.c:115: `co_message_t' undeclared (first use in this function) cooperative.c:115: parse error before `)' cooperative.c:115: request for member `params' in something not a structure or union cooperative.c:116: request for member `params' in something not a structure or union cooperative.c:120: request for member `operation' in something not a structure or union cooperative.c: In function `co_idle_processor': cooperative.c:130: request for member `operation' in something not a structure or union cooperative.c:130: `CO_OPERATION_IDLE' undeclared (first use in this function) cooperative.c: In function `co_printk': cooperative.c:138: `CO_MODULE_LINUX' undeclared (first use in this function) cooperative.c:139: `CO_MODULE_PRINTK' undeclared (first use in this function) cooperative.c:140: `CO_PRIORITY_DISCARDABLE' undeclared (first use in this function) cooperative.c:141: `CO_MESSAGE_TYPE_STRING' undeclared (first use in this function) cooperative.c: In function `co_debug_line': cooperative.c:157: request for member `operation' in something not a structure or union cooperative.c:157: `CO_OPERATION_DEBUG_LINE' undeclared (first use in this function) cooperative.c:158: request for member `params' in something not a structure or union cooperative.c: In function `co_trace_ent_name': cooperative.c:179: warning: unsigned int format, pointer arg (arg 6) cooperative.c: In function `co_trace_ent': cooperative.c:202: warning: unsigned int format, pointer arg (arg 5) cooperative.c: At top level: cooperative.c:209: parse error before `do' cooperative.c:212: `flags' used prior to declaration cooperative.c:215: parse error before `do' cooperative.c:216: parse error before `=' cooperative.c:217: parse error before `sizeof' cooperative.c:217: warning: type defaults to `int' in declaration of `vsnprintf' cooperative.c:217: warning: function declaration isn't a prototype cooperative.c:217: warning: type defaults to `int' in declaration of `fmt' cooperative.c:217: warning: type defaults to `int' in declaration of `args' cooperative.c:217: conflicting types for `args' cooperative.c:213: previous declaration of `args' cooperative.c:217: parse error before `)' cooperative.c:218: parse error before `void' cooperative.c:219: warning: type defaults to `int' in declaration of `co_debug_line' cooperative.c:219: warning: parameter names (without types) in function declaration cooperative.c:219: conflicting types for `co_debug_line' cooperative.c:147: previous declaration of `co_debug_line' cooperative.c:219: warning: data definition has no type or storage class cooperative.c:220: parse error before `__volatile__' cooperative.c:228: parse error before `->' cooperative.c:230: warning: type defaults to `int' in declaration of `co_switch_wrapper' cooperative.c:230: warning: function declaration isn't a prototype cooperative.c:230: warning: data definition has no type or storage class cooperative.c:231: parse error before `__volatile__' cooperative.c: In function `co_get_host_time': cooperative.c:240: request for member `operation' in something not a structure or union cooperative.c:240: `CO_OPERATION_GET_TIME' undeclared (first use in this function) cooperative.c:242: request for member `params' in something not a structure or union cooperative.c:237: warning: `time' might be used uninitialized in this function make[2]: *** [cooperative.o] Error 1 make[2]: Leaving directory `/usr/src/kernel-source-2.4.24/kernel' make[1]: *** [first_rule] Error 2 make[1]: Leaving directory `/usr/src/kernel-source-2.4.24/kernel' make: *** [_dir_kernel] Error 2 (Z)root@colinux:/usr/src/kernel-source-2.4.24> |
From: Daniel R. S. <dan...@ya...> - 2004-03-03 19:29:09
|
Did you remember to copy the linux-config file to your .config file and run make oldconfig? I downloaded the kernel-source of 2.4.24 directly from www.kernel.org , applied the patch, copied linux-config to .config, executed make oldconfig. Then ran make xconfig to add some other filesystem drivers as modules. Then ran make dep && make vmlinux && make modules && make modules_install All seemed to work fine for me. Dan -----Original Message----- From: col...@li... [mailto:col...@li...] On Behalf Of Gregor Mitsch Sent: Wednesday, March 03, 2004 1:00 PM To: col...@li... Subject: Re: [coLinux-devel] how to compile the kernel? Hi, > You need to compile your own kernel. To get started look at > doc/building in the coLinux tarball. I followed the instructions from doc/building. Applying the patch succeeded. But $ make vmlinux fails with the following error message from cooperative.c: [...] cooperative.c:16: parse error before `*' cooperative.c:16: warning: type defaults to `int' in declaration of `co_passage_page' cooperative.c:16: warning: data definition has no type or storage class cooperative.c:27: `CO_BOOTPARAM_STRING_LENGTH' undeclared here (not in a function) cooperative.c:29: parse error before `*' cooperative.c:30: warning: function declaration isn't a prototype [...] You can see the whole output below. I downloaded the kernel-source of 2.4.24 via apt-get and used gcc version 2.95.4 to compile it. Any hints? --Gregor ---------------- (Z)root@colinux:/usr/src/kernel-source-2.4.24> make vmlinux . scripts/mkversion > .tmpversion gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.24/include -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -pipe -mpreferred-stack-boundary=2 -march=i386 -DUTS_MACHINE='"i386"' -DKBUILD_BASENAME=version -c -o init/version.o init/version.c make CFLAGS="-D__KERNEL__ -I/usr/src/kernel-source-2.4.24/include -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -pipe -mpreferred-stack-boundary=2 -march=i386 " -C kernel make[1]: Entering directory `/usr/src/kernel-source-2.4.24/kernel' make all_targets make[2]: Entering directory `/usr/src/kernel-source-2.4.24/kernel' gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.24/include -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -pipe -mpreferred-stack-boundary=2 -march=i386 -nostdinc -iwithprefix include -DKBUILD_BASENAME=cooperative -c -o cooperative.o cooperative.c cooperative.c:16: parse error before `*' cooperative.c:16: warning: type defaults to `int' in declaration of `co_passage_page' cooperative.c:16: warning: data definition has no type or storage class cooperative.c:27: `CO_BOOTPARAM_STRING_LENGTH' undeclared here (not in a function) cooperative.c:29: parse error before `*' cooperative.c:30: warning: function declaration isn't a prototype cooperative.c: In function `colinux_start_c': cooperative.c:32: `passage_page' undeclared (first use in this function) cooperative.c:32: (Each undeclared identifier is reported only once cooperative.c:32: for each function it appears in.) cooperative.c:34: request for member `params' in something not a structure or union cooperative.c:35: request for member `params' in something not a structure or union cooperative.c:36: request for member `params' in something not a structure or union cooperative.c:37: request for member `params' in something not a structure or union cooperative.c:39: request for member `params' in something not a structure or union cooperative.c:39: request for member `params' in something not a structure or union cooperative.c: At top level: cooperative.c:50: parse error before `*' cooperative.c:51: warning: return-type defaults to `int' cooperative.c: In function `co_send_message_save': cooperative.c:53: request for member `operation' in something not a structure or union cooperative.c:53: `CO_OPERATION_MESSAGE_TO_MONITOR' undeclared (first use in this function) cooperative.c:54: request for member `params' in something not a structure or union cooperative.c:55: `co_message_t' undeclared (first use in this function) cooperative.c:55: parse error before `)' cooperative.c:55: request for member `params' in something not a structure or union cooperative.c:56: warning: control reaches end of non-void function cooperative.c: In function `co_send_message_restore': cooperative.c:60: warning: implicit declaration of function `co_switch_wrapper' cooperative.c: At top level: cooperative.c:64: parse error before `*' cooperative.c:65: warning: function declaration isn't a prototype cooperative.c: In function `co_send_message_s': cooperative.c:66: `co_message_t' undeclared (first use in this function) cooperative.c:66: `message' undeclared (first use in this function) cooperative.c:67: `params' undeclared (first use in this function) cooperative.c:67: warning: statement with no effect cooperative.c:68: parse error before `unsigned' cooperative.c:70: `flags' undeclared (first use in this function) cooperative.c:71: request for member `operation' in something not a structure or union cooperative.c:71: `CO_OPERATION_MESSAGE_TO_MONITOR' undeclared (first use in this function) cooperative.c:72: request for member `params' in something not a structure or union cooperative.c:73: parse error before `)' cooperative.c:73: request for member `params' in something not a structure or union cooperative.c:75: `data' undeclared (first use in this function) cooperative.c: At top level: cooperative.c:82: parse error before `from' cooperative.c:88: warning: function declaration isn't a prototype cooperative.c: In function `co_send_message': cooperative.c:89: `co_message_t' undeclared (first use in this function) cooperative.c:89: parse error before `params' cooperative.c:91: `params' undeclared (first use in this function) cooperative.c:91: `from' undeclared (first use in this function) cooperative.c:92: `to' undeclared (first use in this function) cooperative.c:93: `priority' undeclared (first use in this function) cooperative.c:94: `type' undeclared (first use in this function) cooperative.c:95: `size' undeclared (first use in this function) cooperative.c:97: `data' undeclared (first use in this function) cooperative.c: At top level: cooperative.c:100: parse error before `*' cooperative.c:101: warning: function declaration isn't a prototype cooperative.c: In function `co_receive_message': cooperative.c:103: parse error before `co_message_t' cooperative.c:103: warning: no semicolon at end of struct or union cooperative.c:104: `co_linux_message_t' undeclared (first use in this function) cooperative.c: At top level: cooperative.c:105: warning: type defaults to `int' in declaration of `linux_message' cooperative.c:105: warning: data definition has no type or storage class cooperative.c:107: warning: type defaults to `int' in declaration of `linux_message' cooperative.c:107: conflicting types for `linux_message' cooperative.c:105: previous declaration of `linux_message' cooperative.c:107: `message' undeclared here (not in a function) cooperative.c:107: warning: data definition has no type or storage class cooperative.c:109: parse error before `&' cooperative.c:109: warning: type defaults to `int' in declaration of `co_handle_device_interrupt' cooperative.c:109: warning: function declaration isn't a prototype cooperative.c:109: warning: data definition has no type or storage class cooperative.c: In function `co_callback': cooperative.c:114: request for member `operation' in something not a structure or union cooperative.c:114: `CO_OPERATION_MESSAGE_FROM_MONITOR' undeclared (first use in this function) cooperative.c:115: `co_message_t' undeclared (first use in this function) cooperative.c:115: parse error before `)' cooperative.c:115: request for member `params' in something not a structure or union cooperative.c:116: request for member `params' in something not a structure or union cooperative.c:120: request for member `operation' in something not a structure or union cooperative.c: In function `co_idle_processor': cooperative.c:130: request for member `operation' in something not a structure or union cooperative.c:130: `CO_OPERATION_IDLE' undeclared (first use in this function) cooperative.c: In function `co_printk': cooperative.c:138: `CO_MODULE_LINUX' undeclared (first use in this function) cooperative.c:139: `CO_MODULE_PRINTK' undeclared (first use in this function) cooperative.c:140: `CO_PRIORITY_DISCARDABLE' undeclared (first use in this function) cooperative.c:141: `CO_MESSAGE_TYPE_STRING' undeclared (first use in this function) cooperative.c: In function `co_debug_line': cooperative.c:157: request for member `operation' in something not a structure or union cooperative.c:157: `CO_OPERATION_DEBUG_LINE' undeclared (first use in this function) cooperative.c:158: request for member `params' in something not a structure or union cooperative.c: In function `co_trace_ent_name': cooperative.c:179: warning: unsigned int format, pointer arg (arg 6) cooperative.c: In function `co_trace_ent': cooperative.c:202: warning: unsigned int format, pointer arg (arg 5) cooperative.c: At top level: cooperative.c:209: parse error before `do' cooperative.c:212: `flags' used prior to declaration cooperative.c:215: parse error before `do' cooperative.c:216: parse error before `=' cooperative.c:217: parse error before `sizeof' cooperative.c:217: warning: type defaults to `int' in declaration of `vsnprintf' cooperative.c:217: warning: function declaration isn't a prototype cooperative.c:217: warning: type defaults to `int' in declaration of `fmt' cooperative.c:217: warning: type defaults to `int' in declaration of `args' cooperative.c:217: conflicting types for `args' cooperative.c:213: previous declaration of `args' cooperative.c:217: parse error before `)' cooperative.c:218: parse error before `void' cooperative.c:219: warning: type defaults to `int' in declaration of `co_debug_line' cooperative.c:219: warning: parameter names (without types) in function declaration cooperative.c:219: conflicting types for `co_debug_line' cooperative.c:147: previous declaration of `co_debug_line' cooperative.c:219: warning: data definition has no type or storage class cooperative.c:220: parse error before `__volatile__' cooperative.c:228: parse error before `->' cooperative.c:230: warning: type defaults to `int' in declaration of `co_switch_wrapper' cooperative.c:230: warning: function declaration isn't a prototype cooperative.c:230: warning: data definition has no type or storage class cooperative.c:231: parse error before `__volatile__' cooperative.c: In function `co_get_host_time': cooperative.c:240: request for member `operation' in something not a structure or union cooperative.c:240: `CO_OPERATION_GET_TIME' undeclared (first use in this function) cooperative.c:242: request for member `params' in something not a structure or union cooperative.c:237: warning: `time' might be used uninitialized in this function make[2]: *** [cooperative.o] Error 1 make[2]: Leaving directory `/usr/src/kernel-source-2.4.24/kernel' make[1]: *** [first_rule] Error 2 make[1]: Leaving directory `/usr/src/kernel-source-2.4.24/kernel' make: *** [_dir_kernel] Error 2 (Z)root@colinux:/usr/src/kernel-source-2.4.24> ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ coLinux-devel mailing list coL...@li... https://lists.sourceforge.net/lists/listinfo/colinux-devel |
From: Gregor M. <mi...@ra...> - 2004-03-03 21:52:25
|
Hi, > All seemed to work fine for me. Thank's. Now it works fine for me, too. smbfs running! That's fun. :-) This is what I've actually done: 1) $ cd /usr/src 2) unpack the source tarball of coLinux 3) unpack the Linux kernel tarball (version 2.4.24, can be obtained from www.kernel.org) 4) Make sure that the directory of the Linux kernel is named 'linux'. $ mv kernel-source-2.4.24 linux 5) $ cd linux 6) ~/colinux-0.5.3/linux# patch -p1 < ../colinux-xxx/patch/linux 7) The coLinux package is supplied with a premaid Linux kernel configuration file. Copy it to your Linux tree: ~/colinux-0.5.3/linux# cp ../colinux-xxx/conf/linux-config .config 8) And then, to build vmlinux: ~/colinux-0.5.3/linux# make oldconfig 9) Make your changes to the config $ make xconfig ~/colinux-0.5.3/linux# make dep ~/colinux-0.5.3/linux# make vmlinux 10) $ make modules 11) $ make modules_install 12) Copy the new vmlinux to C:/coLinux/vmlinux 13) Reboot --Gregor |