help-how can I entrance debug mode in linux
房龄江 <[email protected]> Thu, 10 Jul 2014 07:57:07 +0000
| Newsgroups | gmane.comp.emulators.bochs.devel |
|---|---|
| Message-ID | <[email protected]> |
I am learning the linux-0.12 kernel now and I want to simulate it in my centos. I have installed the rpm-package of bochs-2.3.6 in my linux. Although I can run the linux-0.12 kernel in bochs, I didn't find a way to debug it. I have read the total help file but didn't find a solution. Can anybody help me solve this problem? My bochsrc file is showed below:# The configuration file for Linux kernel 0.12. # For detailed information about each parameters see the file# bochsrc-sample.txt included in bochs. display_library: termconfig_interface: textconfig#=======================================================================# MEGS# Set the number of Megabytes of physical memory you want to emulate. #=======================================================================megs: 32 #=======================================================================# ROMIMAGE:# The ROM BIOS controls what the PC does when it first powers on.#=======================================================================romimage: file=$BXSHARE/BIOS-bochs-latest #=======================================================================# VGAROMIMAGE# You now need to load a VGA ROM BIOS into C0000.#=======================================================================vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest #=======================================================================# CPU:# This defines cpu-related parameters inside Bochs: Examples:## Bochs Machine/Compiler Mips# ____________________________________________________________________# 2.2.6 2.6Ghz Intel Core 2 Duo with WinXP/g++ 3.4 21 to 25 Mips# 2.2.6 2.1Ghz Athlon XP with Linux 2.6/g++ 3.4 12 to 15 Mips# 2.0.1 1.6Ghz Intel P4 with Win2000/g++ 3.3 5 to 7 Mips#=======================================================================#cpu: count=1, ips=10000000, reset_on_triple_fault=1 #=======================================================================# FLOPPYA,FLOPPYB:# Point this to pathname of floppy image file or device#=======================================================================floppya: 1_44="bootimage-0.12-hd", status=insertedfloppyb: 1_44="diskb.img", status=inserted #=======================================================================# ATA[0-3]-MASTER, ATA[0-3]-SLAVE## This defines the type and characteristics of all attached ata devices:# type= type of attached device [disk|cdrom] # mode= only valid for disks [flat|concat|external|dll|sparse|vmware3]# mode= only valid for disks [undoable|growing|volatile]# path= path of the image# cylinders= only valid for disks# heads= only valid for disks# spt= only valid for disks# status= only valid for cdroms [inserted|ejected]# biosdetect= type of biosdetection [none|auto], only for disks on ata0 [cmos]# translation=type of translation of the bios, only for disks [none|lba|large|rechs|auto]# model= string returned by identify device command# journal= optional filename of the redolog for undoable and volatile disks# # Point this at a hard disk image file, cdrom iso file, or physical cdrom# device. To create a hard disk image, try running bximage. It will help you# choose the size and then suggest a line that works with it.## In UNIX it may be possible to use a raw device as a Bochs hard disk, # but WE DON'T RECOMMEND IT. In Windows there is no easy way.## In windows, the drive letter + colon notation should be used for cdroms.# Depending on versions of windows and drivers, you may only be able to # access the "first" cdrom in the system. On MacOSX, use path="drive"# to access the physical drive.## The path is always mandatory. Disk geometry autodetection works with images# created by bximage if CHS is set to 0/0/0 (cylinders are calculated using# heads=16 and spt=63). For other hard disk images and modes the cylinders,# heads, and spt are mandatory.## Default values are:# mode=flat, biosdetect=auto, translation=auto, model="Generic 1234"## The biosdetect option has currently no effect on the bios## Examples:# ata0-master: type=disk, mode=flat, path=10M.sample, cylinders=306, heads=4, spt=17# ata0-slave: type=disk, mode=flat, path=20M.sample, cylinders=615, heads=4, spt=17# ata1-master: type=disk, mode=flat, path=30M.sample, cylinders=615, heads=6, spt=17# ata1-slave: type=disk, mode=flat, path=46M.sample, cylinders=940, heads=6, spt=17# ata2-master: type=disk, mode=flat, path=62M.sample, cylinders=940, heads=8, spt=17# ata2-slave: type=disk, mode=flat, path=112M.sample, cylinders=900, heads=15, spt=17# ata3-master: type=disk, mode=flat, path=483M.sample, cylinders=1024, heads=15, spt=63# ata3-slave: type=cdrom, path=iso.sample, status=inserted#=======================================================================ata0-master: type=disk, path="rootimage-0.12-hd", mode=flat, cylinders=487, heads=16, spt=63#ata0-slave: type=disk, path="rootimage-0.12-hd1", mode=flat, cylinders=487, heads=16, spt=63 #=======================================================================# BOOT:#=======================================================================boot: floppy#boot: disk#boot: a#boot: c #=======================================================================# disable the mouse, since DLX is text only#=======================================================================mouse: enabled=1 #=======================================================================# LOG:#=======================================================================#log: /dev/nulllog: bochsout.txt #=======================================================================# LOG CONTROLS#=======================================================================panic: action=askerror: action=reportinfo: action=reportdebug: action=ignore#debug: action=ignore #=======================================================================# VGA_UPDATE_INTERVAL:#=======================================================================vga_update_interval: 300000 ------------------------------------------------------------------------------ Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft _______________________________________________ bochs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bochs-developers