Hi,
from my experience:
- I don't have /usr/src/linux at all since my last update about
2 weeks ago (for me, /usr/src always was a link to /var/src
anyways and this I removed). It is not needed for ivtv or
lirc (the 2 modules I recompile after a kernel update). I
think this "/usr/src/linux" stuff is deprecated (although some
software indeed may rely on it)
- When the modules are installed, links are put into
/lib/modules/<kernelversion>, pointing to the src and build
directory (which, in my case, are identical)
- If I understand it correctly, ivtv uses this information as well
as information about the currently running kernel (the uname -a)
to "find stuff" needed for compilation. To me it seems that it is
doing everything correctly
So to me it appears that it is a Bad Thing to build different kernels
within the same source tree, because then the links I mentioned above
point to the same directory, but only for one kernel it actually contains
the correct files. It will probably work, if you use different build
directories (I never did that).
Please correct me if I'm wrong, since I'm not exactly a Kernel Hacker.
Martin
Mark Knecht wrote:
> On 10/10/05, Daniel Segel <[EMAIL PROTECTED]> wrote:
>
>>I apologize in advance if this isn't what you were talking about, or if
>>this is too off topic or newbie-ish for this list.
>>
>>Mark Knecht wrote:
>>
>>
>>>What would your suggestion be for pair of rm and ln commands?
>>>
>>>
>>>
>>
>>Under /usr/src/ you should have one directory called something like
>>2.6.13-gentoo-r3 and another called 2.6.13-gentoo-r3-ht. You would then
>>create a symlink to 'linux' from whichever one is currently running. To
>>change it do 'rm linux' and 'ln -s 2.6.13-gentoo-r3 linux' (as appropriate.)
>
>
> This suggestion I understand and is what I would normally do. However,
> in this case I only had
>
> /usr/src/linux-2.6.13-gentoo-r3
>
> and a link that pointed to it.
>
> What I did in this case was build the kernel with no extra post-pend
> to the name. The kernel came out as 2.6.13-gentoo-r3. That installed
> and ran.
>
> I wanted to try SMP/Hyper-threading so I entered the same source code
> tree, enabled SMP, added a post-pend name of -ht in the kernel config.
> The kernel compiled and installed as 2.6.13-gentoo-r3-ht.
>
> I now have both
>
> /lib/modules/2.6.13-gentoo-r3
> /lib/modules/2.6.13-gentoo-r3-ht
>
> with the config file sitting in the -ht state.
>
> For various reasons I'm still mainly running the non-SMP kernel, but
> the kernel config is sitting in the SMP state. I go to build ivtv. It
> builds and tells me it's installing the drivers into 2-6-13-gentoo-r3,
> but it actually installed them in 2.6.13-gentoo-r3-ht.
>
> While I consider this weak, and I don't like that it works that way,
> at least I understand that it's under my control. I now have two
> copies of the same kernel source, the second renamed to -ht. The only
> difference between the two is that the config files have been changed.
> Now everything works.
>
> I have not tried ivtv under the -ht kernel yet. Possibly tomorrow.
>
> Thanks,
> Mark
_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel