From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199701080404.XAA07022@ tikva> Date: Tue, 7 Jan 1997 23:04:22 -0500 (EST) From: Daniel Gruner Subject: Re: modules on RedHat 4.0 axp (was Re: Serial port trouble...) > > Michal Jaegerman wrote: > > > > > I recall > > > seeing a message saying that modules are not really supported on the > > > alpha versions of linux, and that one must build monolithic kernels. > > > > This is not correct. But doing 'strip --strip-debug' on module > > object files is a good idea. :-) > > > > --mj > > This actually works! The insmod command used to complain that it > could not load the desired modules. Now it works properly. I will > make this command part of the "install_modules" section of the kernel > Makefile from now on. Would the guardians of the code please take > note? > > Daniel > Here is the corrected section of the Makefile: . . . modules_install: @( \ MODLIB=/lib/modules/$(VERSION).$(PATCHLEVEL).$(SUBLEVEL); \ cd modules; \ MODULES=""; \ inst_mod() { These="`cat $$1`"; MODULES="$$MODULES $$These"; \ mkdir -p $$MODLIB/$$2; cp -p $$These $$MODLIB/$$2; \ strip --strip-debug $$MODLIB/$$2/*; \ echo Installing modules under $$MODLIB/$$2; \ }; \ \ if [ -f BLOCK_MODULES ]; then inst_mod BLOCK_MODULES block; fi; \ if [ -f NET_MODULES ]; then inst_mod NET_MODULES net; fi; \ if [ -f IPV4_MODULES ]; then inst_mod IPV4_MODULES ipv4; fi; \ if [ -f SCSI_MODULES ]; then inst_mod SCSI_MODULES scsi; fi; \ if [ -f FS_MODULES ]; then inst_mod FS_MODULES fs; fi; \ if [ -f CDROM_MODULES ]; then inst_mod CDROM_MODULES cdrom; fi; \ \ ls *.o > .allmods; \ echo $$MODULES | tr ' ' '\n' | sort | comm -23 .allmods - > .misc; \ if [ -s .misc ]; then inst_mod .misc misc; fi; \ rm -f .misc .allmods; \ ) . . . Or in diff format: diff Makefile{,.alpha.orig} 285d284 < strip --strip-debug $$MODLIB/$$2/*; \ Daniel -- Dr. Daniel Gruner dgruner@tikva.chem.utoronto.ca Dept. of Chemistry phone: (416)-978-8689 University of Toronto fax: (416)-978-5325 -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com