Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-23-2006, 05:40 AM   #1
ramakrishna sura
LQ Newbie
Registered: Dec 2005
Posts: 2

Rep: Reputation: 0
compiling and installing a new kernel

Hi everybody,

Iam new to linux.Iam using redhat linux9.I have downloaded linux 2.6.15 version from and tried to compile it on my system.I dont have source code on my system originally.I copied the source code into /usr/src/linux dir.
Then linux as the top level directory i tried to compile the source code.I have generated .config file using the command
$make config

I said y(yes) to almost all it asked.
After that i tried to compile it using the command
$make -j2 bzImage
The output was like this
CHK include/linux/version.h
SPILT include/linux/autoconf.n->include/config/*

HOSTCC scripts/genksyms/genksyms.o

HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
CHK usr/initramfs_list

cannot open 'y'

make[1]: ***[usr/initramfs_list] error 1
make: ***[usr]*** error 2
make: *** waiting for unfinished jobs

CC init/main.o
CHK include/linux/compile.h
cc init/do_mounts.0
ld init/mounts.o
ld built_in.o


I cannot understand why the error is coming.In my /usr directory only one directory i.e linux is there which i have copied there.Earlier it was empty.Somebody helpme....

with regards
Ramakrishna sura
Old 01-23-2006, 06:08 AM   #2
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: 57
Well to start with installing a 2.6 kernel on RHL9 is not easy. You need to do some additional prep work before hand. Here's an old guide on how to do this; Good Luck!!

FYI: RHL9 is old and is not supported by Red Hat any longer, support ended the end of April 2004. Consider updating to something that is supported, staying in the Red Hat family may I suggest Fedora Core 4 or CentOS;

Building 2.6 kernels is a bit different also, with Red Hat based systems the process is;

make mrproper
make oldconfig (since your going from 2.4 to 2.6)
make xconfig (or menuconfig or gconfig here)
make (get used to doing this)
make modules_install
make install

And please review;
Old 01-23-2006, 07:25 AM   #3
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 31
Originally Posted by ramakrishna sura
                             cannot open 'y'
There you go - it seems you were being overzealous with your 'y' pressing (did you lean on the key by any chance? ). My guess is that you accidentally answered 'y' to an option that asked you a "what kind of.../where is..." question. In any event, it's trying to open something called 'y', so you've definitely misconfigured the kernel.

If the standard 'make config' takes too long for your liking, you can try 'make menuconfig' (requires the ncurses library) or 'make xconfig' (requires x to be running) which both give you a tree structure that you can traverse at will and select options from sensible groups. It's worth taking the time to install ncurses just so you can use menuconfig - having used that, I could never go back to using the standard 'make config' again except for emergencies...


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
compiling installing kernel modules Wordan Linux - Software 3 11-02-2005 07:22 AM
Installing (Compiling?) the new 2.6.1 kernel LilGryphMaster Linux - Newbie 9 01-31-2004 09:45 PM
Compiling and Installing Kernel under SuSE 9 bschneider Linux - Newbie 6 12-19-2003 09:46 AM
Compiling and Installing Linux Kernel 2.4.18 kramk2 Linux - Software 4 09-04-2003 07:01 PM
Compiling and installing a new kernel in RedHat7.2 RCarter Linux - Software 10 07-13-2002 09:39 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:32 PM.

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