LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 01-23-2006, 06: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 ftp://ftp.cs.helsinki.fi/ 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

/usr/src/linux/scripts/gen_initramfs_list.sh:
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, 07:08 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: 56
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; http://thomer.com/linux/migrate-to-2.6.html 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;

http://fedora.redhat.com/
http://www.centos.org/

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;
http://www.digitalhermit.com/linux/K...ild-HOWTO.html
 
Old 01-23-2006, 08:25 AM   #3
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 30
Quote:
Originally Posted by ramakrishna sura
Code:
/usr/src/linux/scripts/gen_initramfs_list.sh:
                             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...
 
  


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


All times are GMT -5. The time now is 05:21 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration