Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > The Linux Kernel > kernel debug under bochs
 The Linux Kernel   Compiling, theory, programming or other discussion about the linux kernel

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 08-20-2007   #1 (permalink)
Just Joined!
 
Join Date: Aug 2007
Posts: 10
kernel debug under bochs

Hi Friends,

I successfully build the 2.6.21 under fedora 7. I like to debug the kernel under Bochs. I build the Bochs under fedora 7 with gdbstub enabled. With bochs tools, I can create "img" file and partition it as Linux/minix . But how to transfer the built kernel into this "img" file? I means how to let the kernel start it?

Thanks
xuedan is offline  

Reply With Quote
Old 08-21-2007   #2 (permalink)
Just Joined!
 
Join Date: Aug 2007
Posts: 3
Try LILO or GRUB

Quote:
Originally Posted by xuedan View Post
Hi Friends,

I successfully build the 2.6.21 under fedora 7. I like to debug the kernel under Bochs. I build the Bochs under fedora 7 with gdbstub enabled. With bochs tools, I can create "img" file and partition it as Linux/minix . But how to transfer the built kernel into this "img" file? I means how to let the kernel start it?

Thanks

You must have a loader first .

Place the image into a disk where the loader can find it .

eg: place the image in the rootfs and edit the menu.lst if
grub.

(wish you can understand my poor english)
aaaaaabbs is offline   Reply With Quote
Old 08-21-2007   #3 (permalink)
Just Joined!
 
Join Date: Aug 2007
Posts: 10
How to create root system?

I happen to realize I must create the root system so that kernel can find the residence. But how to create the root system?

Thanks
xuedan is offline   Reply With Quote
Old 08-22-2007   #4 (permalink)
Just Joined!
 
Join Date: Aug 2007
Posts: 3
Quote:
Originally Posted by xuedan View Post
I happen to realize I must create the root system so that kernel can find the residence. But how to create the root system?

Thanks
1: use bximage command to make a hard disk image
2: use mke2fs command to make ext2/ext3 filesystem on
the image
3: creat some directorys and files like "/bin" "/etc/rc" ,etc.

Then you can use the loader to load the kenel on the disk image.
hope it can work.

Good luck!

Tell me when you get it.

(forgive my poor english )
aaaaaabbs is offline   Reply With Quote
Old 08-27-2007   #5 (permalink)
Just Joined!
 
Join Date: Aug 2007
Posts: 10
Fail to install grub on image created by bximage

I still have trouble of installing grub on the image HD created by bximage.

I install it but no response when booting it.

Is there any advice?

Thanks
xuedan is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse 10.2 Hogging Memory amyno SuSE Linux Help 13 06-28-2007 12:35 AM
Where to find the errors when machine hangs up? walking The Linux Kernel 12 07-16-2005 08:07 PM
Painkiller crashes while trying to launh it with cedega Scourge Gaming / Games / Multimedia / Entertainment 1 02-21-2005 12:17 PM
About the 2.6 Kernel jasonlambert Linux Tutorials, HOWTO's & Reference Material 0 08-10-2003 05:54 PM
Kazaa Lite / Wine / Mandrake 9.1 Cyberfed Linux Applications 22 06-13-2003 02:13 AM

Free Magazines
Free Network Mapping Tool for Microsoft® Office Visio® Professional 2007 Users
Don't map your network by hand – let LANsurveyor Express for Microsoft Visio Professional 2007 automatically create network diagrams for you.
subscribe
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say.
subscribe

Safe, Secure Backup


All times are GMT. The time now is 03:17 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2