LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-08-2011, 11:11 PM   #1
pike87
LQ Newbie
 
Registered: Mar 2011
Posts: 7

Rep: Reputation: 0
host for develop kernel


I want to learning and developing the kernel on the practice(not kernel module). What are some ways to boot the test kernel on the same system(with stable kernel) where I`m building a test kernel for debugging purposes.
How to configure and use the host to boot a test kernel then I can boot the system(with stable kernel) and fix the test kernel.
I would like to hear helpful tips.

Thanks
 
Old 03-09-2011, 12:29 AM   #2
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Rep: Reputation: 39
Quote:
Originally Posted by pike87 View Post
I want to learning and developing the kernel on the practice(not kernel module). What are some ways to boot the test kernel on the same system(with stable kernel) where I`m building a test kernel for debugging purposes.
I would suggest read some basics first than developing kernel.
When you boot a kernel it is in /boot/vmlinuz or some thing similar.
At a time only one kernel is active.So you can not activate two kernels at the same time.
Instead of all this if you are fearing to crash your system then there is an alternative which developers do they install a guest OS in virtualization setup.Xen,Qemu,KVM,Virtualbox,Vmware are some of your options but that will run the kernel inside a Virtual Machine.You can also try a debootstrap in Debian/Ubuntu environment
in a chrooted shell and you can practise it.http://linux.koolsolutions.com/2009/...g-debootstrap/
In any case you will be able to boot only one kernel at a time at one hardware.But if you install a Guest Operating System within a Host OS then you can experiment without fear of crashing of host.

Last edited by tkmsr; 03-09-2011 at 12:40 AM.
 
Old 03-11-2011, 11:05 PM   #3
pike87
LQ Newbie
 
Registered: Mar 2011
Posts: 7

Original Poster
Rep: Reputation: 0
I am interested in the User-Mode Linux.

I build it so:

1. mkdir ~/uml
2. downloaded the kernel source to ~/uml
3. tar -xjvf linux-2.6.37.3.tar.bz2
4. cd ./linux-2.6.37.3
5. make defconfig ARCH=um
6. make ARCH=um
7. ./linux

and linux starting, but it fails. I use wmWare with fedora 14 where I try to running the um-kernel.

Help me please correct to run the um kernel. And how do it?

Thanks!
 
Old 03-11-2011, 11:35 PM   #4
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Rep: Reputation: 39
See technically the kernel is same for all Linux.The vendors modify it some times for example Ubuntu or Debian guys mighty modify it and same is true for Red Hat /Fedora.I would say Kernel Specific questions you ask here
http://kernelnewbies.org/ML
it is a very active list and even Greg Kroah Hartman replies here.You will get more response for kernel type things than me giving here.
 
Old 03-12-2011, 12:21 AM   #5
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Deleted.

Last edited by corp769; 03-13-2011 at 07:46 AM.
 
Old 03-13-2011, 07:39 AM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
corp769,

Did you accidentally click "Quote" instead of "Report" (funny it's usually the other way 'round)? -- There's no report from you & you have quoted the offending post, which perpetuates the spam.

Please edit your post to remove the spam. Thanks.
 
Old 03-13-2011, 07:47 AM   #7
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Quote:
Originally Posted by archtoad6 View Post
corp769,

Did you accidentally click "Quote" instead of "Report" (funny it's usually the other way 'round)? -- There's no report from you & you have quoted the offending post, which perpetuates the spam.

Please edit your post to remove the spam. Thanks.
Wow, I must have. Sorry about that man!

Edit - If I remember correctly, LQ was acting up at one point in time yesterday. Either that, or I really did click the wrong one.

Last edited by corp769; 03-13-2011 at 07:48 AM.
 
Old 03-13-2011, 10:23 AM   #8
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Thanks for the prompt fix. -- I should have guessed that it was not deliberate.
 
Old 03-13-2011, 10:30 AM   #9
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Quote:
Originally Posted by archtoad6 View Post
Thanks for the prompt fix. -- I should have guessed that it was not deliberate.
No problem.

As far as the OP's original post, I personally recommend Virtual Box. I use it for everything that I need to emulate, test, etc.
 
  


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
How to develop a Kernel chymeira Programming 2 10-24-2010 12:16 AM
LXer: Kernel hackers offer to develop free Linux drivers LXer Syndicated Linux News 3 02-02-2007 08:05 AM
Develop Kernel + System using Windows (Open to Public) from Linux KDee Linux - General 7 12-11-2006 08:56 AM
How to develop kernel module for framebuffer? shamju Linux - Kernel 2 10-08-2006 10:50 AM
What is the best language to learn for someone who wants to help develop the kernel? Fabyfakid Programming 3 10-07-2004 10:12 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:39 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
Open Source Consulting | Domain Registration