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

Forgot Password?
 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
RSS Feeds


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

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 10:04 AM.






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

Content Relevant URLs by vBSEO 3.3.0 RC2