LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   host for develop kernel (https://www.linuxquestions.org/questions/programming-9/host-for-develop-kernel-867355/)

pike87 03-08-2011 11:11 PM

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

tkmsr 03-09-2011 12:29 AM

Quote:

Originally Posted by pike87 (Post 4283598)
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.

pike87 03-11-2011 11:05 PM

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!

tkmsr 03-11-2011 11:35 PM

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.

corp769 03-12-2011 12:21 AM

Deleted.

archtoad6 03-13-2011 07:39 AM

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.

corp769 03-13-2011 07:47 AM

Quote:

Originally Posted by archtoad6 (Post 4288999)
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.

archtoad6 03-13-2011 10:23 AM

Thanks for the prompt fix. -- I should have guessed that it was not deliberate.

corp769 03-13-2011 10:30 AM

Quote:

Originally Posted by archtoad6 (Post 4289125)
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.


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