Re: How to make 2 kernels of same version coexist?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/24/06, bhuvan.kumarmital@xxxxxxxxx <bhuvan.kumarmital@xxxxxxxxx> wrote:
 I have an acer 3003LC laptop with Fedora Core 4 installed on it. My usb
device driver project requires me to
upgrade my kernel to 2.6.15.4. I follow the usual steps of building my
kernel. The problem is that
when i make multiple kernel images of 2.6.15.4 they fail to
co-exist.What this means is that only the last
kernel built works properly ie. i'm able to insert my device driver only
in the newly built kernel. For all others,
the kernel images it says ' invalid module format' upon insmod.

What could be the reason for this? I suspect that every time i build the
kernel /lib/modules/2.6.15.4 gets
overwritten and that is why only the last kernel image works. But what i
yes, its true.

fail to understand is that even if
that is happening why should the kernel say 'invalid module format' coz
the difference between the 2 kernel
images is merely of 1 or 2 CONFIG parameters in .config file (which are
in no way related to my driver).
To name them, the options are CONFIG_PREEMT and CONFIG_SMP.

for ur info, they are very big changes for the kernel.

Is there a way of having different /lib/module/2.6.15.4 directory
structures for 2 kernel images of the same version?


yes, in the kernel configuration - general setup, give your local
version number too. so that two kernels though with the same version
will have different names.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux