LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 06-05-2008, 01:57 PM   #1
freddo
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
Code:
update-initramfs -c -k 2.4.25
and i get this error:

Code:
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, 05:38 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
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, 03:54 AM   #3
freddo
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, 07:26 PM   #4
salemboot
Member
 
Registered: Mar 2007
Location: America
Distribution: Linux
Posts: 159

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)


L8R

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


Reply


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 10:28 PM
Compiling Kernel For Ubuntu? raid517 Ubuntu 2 12-08-2006 08:26 PM
Error during compiling 2.6.9 kernel on ubuntu 5.10 ozzy_linux Ubuntu 1 02-17-2006 01:11 PM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM


All times are GMT -5. The time now is 04:17 PM.

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