Re: Multi kernel tree support on the same distro?

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

 



Steve Brueggeman wrote:
There are some difficulties with gcc versions between linux-2.4 and linux-2.6,
but I do not recall all of the details off of the top of my head.  If I recall
correctly, one of the issues is, linux-2.4 ?prefers? gcc-2.96, while newer
linux-2.6 support/prefer gcc-3.? or greater.

gcc 3.4.x works great on both 2.6 and 2.4, no issues whatsoever.

At any rate, what I've done is create a chroot environment.  I created this
chroot directory by installing an older distribution that was created with
linux-2.4 in mind (example, RedHat v8.2) into that at chroot directory.  The
easiest way to do this that I'm aware of is to install the older distribution
(minimal development, no server junk, no X junk) on another computer, then copy
from that computer to a directory on your development computer.

it's even easier to not do that and install and compile everything in one rootfs, which is perfectly possible and I have done so many times. You can leave away the chroot and any possible security issues that you fear, allthough those are pretty much nonexistant.

The only real bottom line issue is that module-init-tools cannot load modules on a 2.4 kernel, and modutils doesn't do that on 2.6, so you will have to switch or wrap them to detect the running kernel. The same goes for udev vs. devfs.

of course, setting up a qemu image or separate partition is easier, but that was not the question I think.

Most binary distro's won't support this, but I think all of the source distro's and more specific ones support it and a few handle it out of the box.


Cheers,

Auke
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux