LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-20-2007, 04:22 AM   #1
oliviapesayco
LQ Newbie
 
Registered: Jun 2007
Posts: 10

Rep: Reputation: 0
Need help in building a Linux Kernel


Hi there. I am really new in Kernel... I am currently builning it from a virtual machine... however, I am getting error message when I run the make command

When I run "make oldconfig",

I was prompted to some questions, I entered "y" in some. And "N" in some prompts. Now, when I executed command, I am getting this error :

/root/linux-2.6.17.13-pudding/scripts/gen_initramfs_list.sh: Cannot open 'y'
make[1]: *** [usr/initramsfs_data.cpio.gz} Error 1
make: *** [usr] Error 2

Please help me....
 
Old 06-20-2007, 04:41 AM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello,

it looks like you answered y when you have been asked for a path.

Markus
 
Old 06-20-2007, 07:32 AM   #3
oliviapesayco
LQ Newbie
 
Registered: Jun 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Hi Markus.

thanks for your response. I there a way that I can undo what I did? Can I go back and untar the source again? Will it undo everything that I did?

Thanks again.


Quote:
Originally Posted by markush
Hello,

it looks like you answered y when you have been asked for a path.

Markus
 
Old 06-20-2007, 09:17 AM   #4
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
If you overwrite it by extracting new files over the old it will undo everything. Alternatively you could change into that directory and edit the config file by hand with your favorite text editor and remove your mistakes.
Example.
#cd /usr/src/linux
#vi .config

Last edited by lord-fu; 06-20-2007 at 09:19 AM.
 
Old 06-20-2007, 10:00 AM   #5
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello,

I think that make oldconfig creates a file .config.old. Use
Quote:
ls -al
on youre console and look at which time both files (.config and .config.old) were created. If there is an update do a
Quote:
cp .config.old .config
and run make oldconfig again. Normally you find one version of your .config in the /boot directry.
 
Old 06-25-2007, 07:14 PM   #6
oliviapesayco
LQ Newbie
 
Registered: Jun 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks.

Thanks Markush. I copied the old config file to ".config", compiled it and everything started working....
 
  


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
Regarding building Kernel object in Linux 2.6 Jayaraghavendran Linux - Software 2 04-27-2006 02:22 AM
building a profiler for linux kernel scheduler svi_ya Programming 0 09-28-2004 04:23 PM
Building Linux kernel with 2.6 ( kernel ) raees Linux - General 1 03-16-2004 04:44 PM
Building new kernel in /usr/src/linux is WRONG? jisse Linux - Software 3 09-14-2003 04:57 AM
Building the linux kernel on redhat. liguorir Linux - Software 8 06-21-2003 04:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:31 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