LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-08-2012, 08:55 AM   #1
abhishekgit
Member
 
Registered: Jan 2012
Location: India
Distribution: Ubuntu, Gentoo, Fedora, Rhel5,openSUSE
Posts: 165

Rep: Reputation: 12
Configuring and building linux kernel


Hello everybody,
I downloaded linux kernel tarball, uncompressed it, configured it too. After running the command "make" finally, I got the message "Kernel image is ready". I rebooted and found the image. After i select it, all i am getting is
Code:
BusyBox v1.18.4 (ubuntu 1:1.18.4-2ubuntu2) built-in shell (ash)
Enter 'help' for a list of built-in commands.
I am not getting any interface. It stops rite der. Kindly help. Thanks

regards...
 
Old 03-08-2012, 12:30 PM   #2
mulyadi.santosa
Member
 
Registered: Sep 2011
Posts: 96

Rep: Reputation: 15
Hi...

Have you run "make modules_install" and "make install"?
 
Old 03-10-2012, 08:32 AM   #3
abhishekgit
Member
 
Registered: Jan 2012
Location: India
Distribution: Ubuntu, Gentoo, Fedora, Rhel5,openSUSE
Posts: 165

Original Poster
Rep: Reputation: 12
@mulyadi.santosa
Yes. Both of them.
 
Old 03-10-2012, 11:57 AM   #4
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,674
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Which kernel version? Also present the output of uname -a, and the linux distribution version, then perhaps someone might be able to help you.
 
Old 03-10-2012, 05:37 PM   #5
TKH
Member
 
Registered: Jul 2011
Location: Milky Way
Distribution: Ubuntu, LFS, Slackware, Fedora
Posts: 218

Rep: Reputation: 20
List of posibility:
  • You added build-in command line to the kernel
  • You compiled the drivers necessary to connect to the root partition (i.e. SATA, RAID, IDE, ext2, ext4, etc) as modules and did not use proper initrd for it
  • You did not mount the proper root file system

To narrow down the possibility of troubleshooting, more information is needed.
Do you usually use bash for the shell?

Quote:
Originally Posted by abhishekgit View Post
Code:
BusyBox v1.18.4 (ubuntu 1:1.18.4-2ubuntu2) built-in shell (ash)
Enter 'help' for a list of built-in commands.
This output is the reason I think of the first possibility.
 
Old 03-11-2012, 09:18 AM   #6
abhishekgit
Member
 
Registered: Jan 2012
Location: India
Distribution: Ubuntu, Gentoo, Fedora, Rhel5,openSUSE
Posts: 165

Original Poster
Rep: Reputation: 12
output of uname -a
Code:
Linux abhishek-virtual-machine 3.0.0-15-generic #26-Ubuntu SMP Fri Jan 20 15:59:53 UTC 2012 i686 i686 i386 GNU/Linux
Linux kernel version 2.6 downladed and uncompressed using the following command
Code:
$git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Configured using
Code:
$ make config
I selected default values(Y or N)
And i run the following
$ make
$ make modules_install
$ make install
I reboot and then i got the appropriate choice in the dropdown list after selecting it i get
Code:
BusyBox v1.18.4 (ubuntu 1:1.18.4-2ubuntu2) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(inferno)
This is it. Thanks.

Regards...
 
Old 03-11-2012, 10:33 AM   #7
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,674
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Can you try it again by downloading the latest kernel from here: http://www.kernel.org/ ?
 
Old 03-11-2012, 11:44 PM   #8
TKH
Member
 
Registered: Jul 2011
Location: Milky Way
Distribution: Ubuntu, LFS, Slackware, Fedora
Posts: 218

Rep: Reputation: 20
And try running make menuconfig instead of make oldconfig or make config, this graphical approach helps you a lot!
 
1 members found this post helpful.
Old 03-12-2012, 02:40 PM   #9
abhishekgit
Member
 
Registered: Jan 2012
Location: India
Distribution: Ubuntu, Gentoo, Fedora, Rhel5,openSUSE
Posts: 165

Original Poster
Rep: Reputation: 12
ncurses not found

I have downloaded lnux-3.2.9.tar.bz2 and uncompressed it. I am now trying to configure using
Code:
$ make menuconfig
I am getting this
Code:
 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 *** 
 *** Install ncurses (ncurses-devel) and try again.
 *** 
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2
I tried installing using
Code:
$ su -c 'yum install ncurses-devel'
And i get
Code:
Setting up Install Process
No package ncurses-devel available.
Nothing to do
Please help. Thanks...
 
Old 03-12-2012, 11:47 PM   #10
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,674
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
What does this say?
Code:
yum install ncurses-devel.i686
 
Old 03-13-2012, 01:32 AM   #11
abhishekgit
Member
 
Registered: Jan 2012
Location: India
Distribution: Ubuntu, Gentoo, Fedora, Rhel5,openSUSE
Posts: 165

Original Poster
Rep: Reputation: 12
@Anisha Kaul. That says to me
Code:
Setting up Install Process
No package ncurses-devel.i386 available.
Nothing to do
 
Old 03-13-2012, 08:14 AM   #12
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,674
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Offtopic:

Output of uname says that you are using Ubuntu? So, shouldn't you be using apt-get?
Am I missing a point?
 
Old 03-13-2012, 08:39 AM   #13
abhishekgit
Member
 
Registered: Jan 2012
Location: India
Distribution: Ubuntu, Gentoo, Fedora, Rhel5,openSUSE
Posts: 165

Original Poster
Rep: Reputation: 12
@Anisha Kaul. I have installed yum package through apt-get though. Through apt get also i get the same message. Of course there is a difference but without distinction. I am not able to find ncurses nor make config using menuconfig. Thanks...
 
Old 03-13-2012, 09:28 AM   #14
abhishekgit
Member
 
Registered: Jan 2012
Location: India
Distribution: Ubuntu, Gentoo, Fedora, Rhel5,openSUSE
Posts: 165

Original Poster
Rep: Reputation: 12
@Anisha Kaul. I tried installing ncurses in fedora 16 distro. Perfectly installed. What might be the problem. The earlier one was linux mint 12.
 
Old 03-13-2012, 09:46 AM   #15
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,674
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
This thread says that running make menuconfig from the root doesn't show this error. Have you tried it through root?

Well I do think too that make menuconfig should be run through root because it generates the makefile and places it in the /usr/src/linux-3.2.1, but I don't know why it should be related to that error! Anyway, give it a shot.

BTW, what sense does it make to install yum in Ubuntu? Any special reasons for that?

You are doing all this on Ubuntu, right?
 
  


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
Trouble configuring and building kernel..... GlennsPref Mandriva 2 05-04-2010 05:34 AM
LXer: Building Your Own Linux Kernel: Tricky kernel options (part 3) LXer Syndicated Linux News 0 10-23-2009 03:50 AM
Need Help in configuring and building kernel 2.6.16.18 xirtna Linux - Kernel 4 10-13-2006 10:51 AM
Configuring and building an i686/K7 kernel on an x86_64 system. Thetargos Linux - Kernel 2 07-21-2006 10:02 PM


All times are GMT -5. The time now is 10:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration