Re: making sound module
On Wed, 11 Jun 1997 00:48:11 CDT stephen farrell (sfarrell@healthquiz.
com) wrote:
> >On 10 Jun 1997 21:37:03 CDT stephen farrell (stephen@farrell.org)
> >wrote:
> >
> >> So I've got kernel 2.0.30 running[1]. And I've got the kernel sources
> >> & headers for 2.0.30 installed[2]. Now I cd
> >> /usr/src/linux/drivers/sound. I run make config, and then I run
> >> make. I copy the resulting sound.o /lib/modules/2.0.30/misc/, and run
> >> depmod -a. I get:
> >>
> >> /lib/modules/2.0.30/misc/sound.o: unresolved symbol(s)
> >
> >Beep !
> >You have to also make zImage and run the resulting kernel to get your module w
> >orking (do also a make dep before :-).
>
> I was under the impression that modversion obviated this.
Yes, if you compile kernel version A with the same
*configure*options* as kernel version B, then yes.
Some hooks have to be present in the kernel for some modules to work.
You can't compile a kernel version without some modules and then
decide to add the modules without recompiling a kernel.
BTW, modversion is still broken in 2.0.
> >stephen@farrell.org said:
> >[snip]
> >> I'll just install that whole kernel I just made. Sorry, that ain't
> >> gonna happen b/c I get "System is too big". (Note that, other than
> >> the sound, I've just gone ahead and built everything just like it was
> >> setup in the config files that came with with kernel sources,
> >> presumably those used to build a stock debian kernel ? Am I naive in
> >> thinking that the kernel-sources-2.0.30 are all set up to give me a
> >> stock debian kernel?--but dammit, that's just a huge tangent from
> >> what I want to do anyway!)
> >
> >You have to make zImage and put linux/arch/i386/boot/zImage as vmlinuz.
> >If this is still too big, then use make bzImage and install linux/arch/i386/bo
> >ot/bzImage as LILO's vmlinuz.
> >BTW, you could use kernel-package. It will do the right thing.
> make bzImage might do the trick for me. I'll also check out
> kernel-package (as it mentioned in the FAQ), but from the description
> of kernel-sources, i figured that was outdated or, at least,
> unnecessary.
What's so big in your kernel that you have to use bzImage ?
Are you using modules sparingly ?
Phil.
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: