LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 04-11-2007, 08:35 AM   #1
firebirdc5
LQ Newbie
 
Registered: Apr 2007
Location: Northern VA
Posts: 3

Rep: Reputation: 0
Question Redhat FC1 with 2.6 kernel


Hey all, I know this is a really odd request but it has to be done because of the requirements for a project at my job. Basically I have an FC1 installation that I need to retrofit a 2.6 kernel onto. The actual compile/installation of the kernel to a running system was easy. Now attempting to get that kernel onto a bootable cd using ISOLINUX not so much. Here is my story:

First I attempted to move my kernel and the initrd from the system where I compiled it into the ISO that I created for the boot cd. Since it was a 2.6 kernel I had to modify the images/stage2.img and initrd.img file to have their .buildstamp files modified (so they would know what installation they were looking for). However on boot, after going through the isolinux menu that kernel simply crashes after "uncompressing linux. Ok booting the Kernel" I thought it might have been the initrd but I removed that from the equation by not pointing to it in the isolinux.cfg file. I used an initrd from both the 2.4 box and the 2.6 box (both using mkinitrd to create it).

Next I took the kernel from the first FC6 cd and attempted to boot. I was able to boot past the "uncompressing linux" point but then it crashed attempting to load /sbin/loader.

Third I modified the initrd to include the loader file from the 2.6 initrd. That got me past the last point but now it stating that I do not have enough memory to install the OS.

All of the above I have done before as well as using the 2.6 kernel/initrd and modifying the stage2.img to use some of the 2.4 and 2.6 files but it ended up turning into a maze of dependencies. I guess my first question is why can I not boot my compiled kernel off of the CD and secondly anyone have an idea as to why I get those out of memory errors? Any help would be GREATLY appreciated and I swear to offer help/sacrifices to the linux gods when needed
 
Old 04-11-2007, 10:40 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
You seem to going about this the hard way. You seem to forgotten some important information like the system specs on this new system your attempting to install FC1 with a 2.6 kernel.

Backup a bit and think of why you cannot simply use mkbootdisk to create the bootable CD image;

mkbootdisk --iso --device boot.iso `uname -r`

You can use this ISO image via loopback for what you are attempting to do or simply boot with this image burned to a CD, for example;

$ uname -r
2.6.21-rc6

# mount -t iso9660 boot.iso /mnt -o loop

# ls -al /mnt/isolinux
total 3034
drwxr-xr-x 2 root root 2048 Apr 11 11:14 .
drwxr-xr-x 3 root root 2048 Apr 11 11:14 ..
-r--r--r-- 1 root root 2048 Apr 11 11:14 boot.cat
-rw-r--r-- 1 root root 221 Apr 11 11:14 boot.msg
-rw------- 1 root root 1491935 Apr 7 13:14 initrd.img
-rw-r--r-- 1 root root 10648 Apr 11 11:14 isolinux.bin
-rw-r--r-- 1 root root 130 Apr 11 11:14 isolinux.cfg
-r--r--r-- 1 root root 1329 Apr 11 11:14 TRANS.TBL
-rw-r--r-- 1 root root 1595184 Apr 7 13:14 vmlinuz


It also seems that you may have not created (and may need) this new kernel as an rpm file for installation, go back to where you build the kernel and as do; make rpm

The memory requirements issue is something else, since you have not stated the amount memory is on the system your attempting to install on a safe 'rule of thumb' would be 128MB of RAM for a text installation and 256MB of RAM for a GUI installation at least.
 
Old 04-11-2007, 04:38 PM   #3
firebirdc5
LQ Newbie
 
Registered: Apr 2007
Location: Northern VA
Posts: 3

Original Poster
Rep: Reputation: 0
I did leave out some details, I should have mentioned that this is a 1u server box with 1GB of RAM, P4 2.something, bunch of HD space and a CDROM.
I have attempted to use mkbootdisk with the same issue, starts and crashes. It's odd that if I use an kernel that came from an RPM it works fine though. Oh and speaking of RPMs ya I will need to compile this as an RPM but I figured that would come later as I created an RPM of this a while back but since I can't seem to even get the CD to boot and I have to keep compiling I figured why bother keep making RPMs.
There seems to be something that I either forgot to compile into the kernel or that I'm just missing. The kernel that comes with the 2.6.19 RPM that I have for FC6 works fine, if I use that config file to try to compile the kernel and add SATA support it still craps out. Any details I forgot to mention? I'm a bit brain fried at this point
 
Old 04-11-2007, 08:37 PM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Go back to where you got the 2.6.19 kernel from and get the kernel source rpm file and itstall it. Prep the kernel source and when ready build the kernel after making sure that sata support for the server hardware is built into the kernel and not as modules. It might be a good idea to build a monolithic kernel instead of a modular kernel for booting in this case.

The standard default kernel rpm file should be OK for installation, the kernel modules are present in this case. Where they are not available on the CD you been attempting to make.

Have you considered making a live and installable CD image instead, for example;

http://linux.web.psi.ch/livecd/

P.S. take a break and get some sleep.
 
  


Reply



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
Upgrading FC1 kernel Linux31 Fedora - Installation 0 07-06-2005 04:49 AM
Kernel 2.6.3 boot error in FC1 hemanthjjp Fedora 0 07-15-2004 02:45 PM
FC1 Kernel belkins Linux - Newbie 4 05-25-2004 02:08 PM
Kernel update on FC1 craigl Fedora 6 04-28-2004 02:09 PM
New kernel for FC1 cannot be installed arthur1968 Fedora 7 12-05-2003 04:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:53 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration