Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 06-05-2008, 02:57 PM   #1
LQ Newbie
Registered: Oct 2006
Posts: 10

Rep: Reputation: 0
Compiling kernel 2.4.25 on ubuntu 8.04

Hi to all, I need to recompile the kernel 2.4.25 for study's reasons. I have to make the image for linux ram fs (file *.img) but if i try to make the command mkinitrd it's not present of my linux distribution. I tried to use the command update-initramfs or mkinitramfs with the syntax
update-initramfs -c -k 2.4.25
and i get this error:

update-initramfs: Generating /boot/initrd.img-2.4.25
W: kernel 2.4.25 too old for initramfs on i386
W: not generating requested initramfs for kernel 2.4.25
How i can create the linux's img file to lunch at boot fase?

Thank you to all.
Old 06-05-2008, 06:38 PM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
I am not extremely familiar with Ubuntu, but I am fairly sure you won't be able to compile a working 2.4.25 system on 8.04. Modern distributions are using various system processes and applications that require 2.6.x kernels (UDEV/HAL comes to mind) which is going to prevent the system from working properly on the older kernels.

Your best bet would be to do this under a distribution that still had native support for 2.4. Slackware 11 should be the most recent, as that supported 2.4 up to ~2007 (when Slackware 12 was released and the system switched to 2.6 only).
Old 06-07-2008, 04:54 AM   #3
LQ Newbie
Registered: Oct 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Thank your answer. I know that is better do this on a distribution that has native support for kernel 2.4.25 but I don't want install another distribution on my pc only for this scope. I need you this type of kernel only for developing 3 kernel modules for my university exam. I prefer use my current distribution to make this. How I can compile the ramfs image for this type of kernel?

Thank you a lot
Old 08-27-2008, 08:26 PM   #4
Registered: Mar 2007
Location: America
Distribution: Linux
Posts: 161

Rep: Reputation: 36
VirtualBox is a virtualization software freely available. Install A,AP,D disksets.

You can pull them from a Slackware 11 mirror site.

Even in the professional world we still use VM's to compile code for legacy systems. (vm == virtual machines)


Last edited by salemboot; 08-27-2008 at 09:07 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
laptop shutdown while compiling kernel in Ubuntu 6.06 eye2eye Ubuntu 8 07-25-2007 11:28 PM
Compiling Kernel For Ubuntu? raid517 Ubuntu 2 12-08-2006 09:26 PM
Error during compiling 2.6.9 kernel on ubuntu 5.10 ozzy_linux Ubuntu 1 02-17-2006 02:11 PM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 06:31 PM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 10:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration