From: Daniel Gruner <dgruner@tikva.chem.utoronto.ca>
Subject: Re: modules on RedHat 4.0 axp (was Re: Serial port trouble...)
Date: Tue, 7 Jan 1997 23:04:22 -0500 (EST) [thread overview]
Message-ID: <199701080404.XAA07022@ tikva> (raw)
>
> 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
next reply other threads:[~1997-01-08 4:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-01-08 4:04 Daniel Gruner [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-01-09 7:05 modules on RedHat 4.0 axp (was Re: Serial port trouble...) Richard Henderson
1997-01-06 16:55 Serial port trouble (was Re: Problems installing 4.0 on Alpha) Michal Jaegermann
1997-01-08 3:55 ` modules on RedHat 4.0 axp (was Re: Serial port trouble...) Daniel Gruner
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox