bochs not running properly
Posted: Sat Feb 09, 2008 4:24 pm
hello friends,
i am trying to deploy my OS kernel in bochs on windows vista platform. I have a virtual floppy drive (VFD), and have an image file for the OS. The image file runs fine on VMWare, but as i want to get debugging info for the kernel, i am switching to bochs.
my bochsrc.txt file is :
[code]# configuration file generated by Bochs
floppya: 1_44="1.44", status=inserted
# no floppyb
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata1: enabled=0
ata2: enabled=0
ata3: enabled=0
romimage: file=../BIOS-bochs-latest, address=0xf0000
vgaromimage: ../VGABIOS-lgpl-latest
megs: 32
parport1: enabled=1, file=""
com1: enabled=1, dev=""
# no sb16
boot: floppy
floppy_bootsig_check: disabled=0
vga_update_interval: 30000
keyboard_serial_delay: 20000
keyboard_paste_delay: 100000
floppy_command_delay: 50000
ips: 500000
pit: realtime=0
text_snapshot_check: 0
mouse: enabled=0
private_colormap: enabled=0
i440fxsupport: enabled=0
time0: 0
# no ne2k
newharddrivesupport: enabled=1
# no loader
log: bochsout.txt
logprefix: %t%e%d
debugger_log: -
panic: action=fatal
error: action=report
info: action=report
debug: action=ignore
pass: action=fatal
keyboard_mapping: enabled=0, map=
keyboard_type: mf
user_shortcut: keys=none
config_interface: textconfig
display_library: win32[/code]
I get the following log file when i try to simulate the os:
[code]00000000000i[MEM0 ] allocated memory at 01480020. after alignment, vector=01481000
00000000000i[MEM0 ] 32.00MB
00000000000i[MEM0 ] rom at 0xf0000/65536 ('../BIOS-bochs-latest')
00000000000i[MEM0 ] rom at 0xc0000/27392 ('../VGABIOS-lgpl-latest')
00000000000i[CMOS ] Setting initial clock to: Sun Feb 10 03:45:45 2008 (time0=1202595345)
00000000000i[DMA ] channel 4 used by cascade
00000000000i[DMA ] channel 2 used by Floppy Drive
00000000000i[FDD ] tried to open 1.44 read/write: No such file or directory
00000000000i[FDD ] tried to open 1.44 read only: No such file or directory
00000000000i[FDD ] fd0: '1.44' ro=1, h=0,t=0,spt=0
00000000000i[VGA ] interval=30000
00000000000i[VGA ] VBE Bochs Display Extension Enabled
00000000000i[ ] init_mem of 'harddrv' plugin device by virtual method
00000000000i[ ] init_mem of 'keyboard' plugin device by virtual method
00000000000i[ ] init_mem of 'serial' plugin device by virtual method
00000000000i[ ] init_mem of 'parallel' plugin device by virtual method
00000000000i[ ] init_dev of 'harddrv' plugin device by virtual method
00000000000i[HD ] Boot device will be 'a'
00000000000i[HD ] Floppy boot signature check is enabled
00000000000i[ ] init_dev of 'keyboard' plugin device by virtual method
00000000000i[KBD ] will paste characters every 1000 keyboard ticks
00000000000i[ ] init_dev of 'serial' plugin device by virtual method
00000000000i[SER ] com1 at 0x3f8/8 irq 4
00000000000i[ ] init_dev of 'parallel' plugin device by virtual method
00000000000i[PAR ] parallel port 1 at 0x378
00000000000i[ ] reset of 'harddrv' plugin device by virtual method
00000000000i[ ] reset of 'keyboard' plugin device by virtual method
00000000000i[ ] reset of 'serial' plugin device by virtual method
00000000000i[ ] reset of 'parallel' plugin device by virtual method
00000004256i[BIOS ] rombios.c,v 1.85.2.1 2003/01/16 21:58:42 cbothamy Exp $
00000330043i[KBD ] reset-disable command received
00000353372i[VBIOS] VGABios $Id: vgabios.c,v 1.20 2002/10/20 15:12:33 vruppert Exp $
00000353603i[VGA ] VBE known Display Interface b0c1
00000353688i[VGA ] VBE known Display Interface b0c0
00000356633i[VBIOS] VBE Bios $Id: vbe.c,v 1.22 2002/09/19 17:03:21 cbothamy Exp $
00000356748i[VGA ] VBE known Display Interface b0c1
00000356832i[VGA ] VBE disabling
00000693509i[VGA ] VBE known Display Interface b0c1
00000784311e[HD ] device set to 0 which does not exist
00000784604e[HD ] device set to 1 which does not exist
00000814274i[FDD ] attempt to read/write sector 1, sectors/track=0 with media not present
00000835300i[BIOS ] Boot from Floppy 0 failed
00000865115i[BIOS ] FATAL: Could not read the boot disk
00000866518p[BIOS ] >>PANIC<< BIOS panic at rombios.c, line 1563
00000866518i[SYS ] Last time is 1202595346
00000866518i[CPU ] real mode
00000866518i[CPU ] CS.d_b = 16 bit
00000866518i[CPU ] SS.d_b = 16 bit
00000866518i[CPU ] | EAX=0003061b EBX=0000db2b ECX=00030001 EDX=00000401
00000866518i[CPU ] | ESP=0000ffc2 EBP=0000ffd4 ESI=00006322 EDI=00006348
00000866518i[CPU ] | IOPL=0 NV UP DI PL NZ NA PO NC
00000866518i[CPU ] | SEG selector base limit G D
00000866518i[CPU ] | SEG sltr(index|ti|rpl) base limit G D
00000866518i[CPU ] | DS:0000( 0000| 0| 0) 00000000 0000ffff 0 0
00000866518i[CPU ] | ES:07c0( 0000| 0| 0) 00007c00 0000ffff 0 0
00000866518i[CPU ] | FS:0000( 0000| 0| 0) 00000000 0000ffff 0 0
00000866518i[CPU ] | GS:0000( 0000| 0| 0) 00000000 0000ffff 0 0
00000866518i[CPU ] | SS:0000( 0000| 0| 0) 00000000 0000ffff 0 0
00000866518i[CPU ] | CS:f000( 0000| 0| 0) 000f0000 0000ffff 0 0
00000866518i[CPU ] | EIP=0000089a (00000899)
00000866518i[CPU ] | CR0=0x60000010 CR1=0x00000000 CR2=0x00000000
00000866518i[CPU ] | CR3=0x00000000 CR4=0x00000000
00000866518i[ ] restoring default signal behavior
00000866518i[CTRL ] quit_sim called with exit code 1
[/code]
could you please tell me whats going wrong ... thanks ...
i am trying to deploy my OS kernel in bochs on windows vista platform. I have a virtual floppy drive (VFD), and have an image file for the OS. The image file runs fine on VMWare, but as i want to get debugging info for the kernel, i am switching to bochs.
my bochsrc.txt file is :
[code]# configuration file generated by Bochs
floppya: 1_44="1.44", status=inserted
# no floppyb
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata1: enabled=0
ata2: enabled=0
ata3: enabled=0
romimage: file=../BIOS-bochs-latest, address=0xf0000
vgaromimage: ../VGABIOS-lgpl-latest
megs: 32
parport1: enabled=1, file=""
com1: enabled=1, dev=""
# no sb16
boot: floppy
floppy_bootsig_check: disabled=0
vga_update_interval: 30000
keyboard_serial_delay: 20000
keyboard_paste_delay: 100000
floppy_command_delay: 50000
ips: 500000
pit: realtime=0
text_snapshot_check: 0
mouse: enabled=0
private_colormap: enabled=0
i440fxsupport: enabled=0
time0: 0
# no ne2k
newharddrivesupport: enabled=1
# no loader
log: bochsout.txt
logprefix: %t%e%d
debugger_log: -
panic: action=fatal
error: action=report
info: action=report
debug: action=ignore
pass: action=fatal
keyboard_mapping: enabled=0, map=
keyboard_type: mf
user_shortcut: keys=none
config_interface: textconfig
display_library: win32[/code]
I get the following log file when i try to simulate the os:
[code]00000000000i[MEM0 ] allocated memory at 01480020. after alignment, vector=01481000
00000000000i[MEM0 ] 32.00MB
00000000000i[MEM0 ] rom at 0xf0000/65536 ('../BIOS-bochs-latest')
00000000000i[MEM0 ] rom at 0xc0000/27392 ('../VGABIOS-lgpl-latest')
00000000000i[CMOS ] Setting initial clock to: Sun Feb 10 03:45:45 2008 (time0=1202595345)
00000000000i[DMA ] channel 4 used by cascade
00000000000i[DMA ] channel 2 used by Floppy Drive
00000000000i[FDD ] tried to open 1.44 read/write: No such file or directory
00000000000i[FDD ] tried to open 1.44 read only: No such file or directory
00000000000i[FDD ] fd0: '1.44' ro=1, h=0,t=0,spt=0
00000000000i[VGA ] interval=30000
00000000000i[VGA ] VBE Bochs Display Extension Enabled
00000000000i[ ] init_mem of 'harddrv' plugin device by virtual method
00000000000i[ ] init_mem of 'keyboard' plugin device by virtual method
00000000000i[ ] init_mem of 'serial' plugin device by virtual method
00000000000i[ ] init_mem of 'parallel' plugin device by virtual method
00000000000i[ ] init_dev of 'harddrv' plugin device by virtual method
00000000000i[HD ] Boot device will be 'a'
00000000000i[HD ] Floppy boot signature check is enabled
00000000000i[ ] init_dev of 'keyboard' plugin device by virtual method
00000000000i[KBD ] will paste characters every 1000 keyboard ticks
00000000000i[ ] init_dev of 'serial' plugin device by virtual method
00000000000i[SER ] com1 at 0x3f8/8 irq 4
00000000000i[ ] init_dev of 'parallel' plugin device by virtual method
00000000000i[PAR ] parallel port 1 at 0x378
00000000000i[ ] reset of 'harddrv' plugin device by virtual method
00000000000i[ ] reset of 'keyboard' plugin device by virtual method
00000000000i[ ] reset of 'serial' plugin device by virtual method
00000000000i[ ] reset of 'parallel' plugin device by virtual method
00000004256i[BIOS ] rombios.c,v 1.85.2.1 2003/01/16 21:58:42 cbothamy Exp $
00000330043i[KBD ] reset-disable command received
00000353372i[VBIOS] VGABios $Id: vgabios.c,v 1.20 2002/10/20 15:12:33 vruppert Exp $
00000353603i[VGA ] VBE known Display Interface b0c1
00000353688i[VGA ] VBE known Display Interface b0c0
00000356633i[VBIOS] VBE Bios $Id: vbe.c,v 1.22 2002/09/19 17:03:21 cbothamy Exp $
00000356748i[VGA ] VBE known Display Interface b0c1
00000356832i[VGA ] VBE disabling
00000693509i[VGA ] VBE known Display Interface b0c1
00000784311e[HD ] device set to 0 which does not exist
00000784604e[HD ] device set to 1 which does not exist
00000814274i[FDD ] attempt to read/write sector 1, sectors/track=0 with media not present
00000835300i[BIOS ] Boot from Floppy 0 failed
00000865115i[BIOS ] FATAL: Could not read the boot disk
00000866518p[BIOS ] >>PANIC<< BIOS panic at rombios.c, line 1563
00000866518i[SYS ] Last time is 1202595346
00000866518i[CPU ] real mode
00000866518i[CPU ] CS.d_b = 16 bit
00000866518i[CPU ] SS.d_b = 16 bit
00000866518i[CPU ] | EAX=0003061b EBX=0000db2b ECX=00030001 EDX=00000401
00000866518i[CPU ] | ESP=0000ffc2 EBP=0000ffd4 ESI=00006322 EDI=00006348
00000866518i[CPU ] | IOPL=0 NV UP DI PL NZ NA PO NC
00000866518i[CPU ] | SEG selector base limit G D
00000866518i[CPU ] | SEG sltr(index|ti|rpl) base limit G D
00000866518i[CPU ] | DS:0000( 0000| 0| 0) 00000000 0000ffff 0 0
00000866518i[CPU ] | ES:07c0( 0000| 0| 0) 00007c00 0000ffff 0 0
00000866518i[CPU ] | FS:0000( 0000| 0| 0) 00000000 0000ffff 0 0
00000866518i[CPU ] | GS:0000( 0000| 0| 0) 00000000 0000ffff 0 0
00000866518i[CPU ] | SS:0000( 0000| 0| 0) 00000000 0000ffff 0 0
00000866518i[CPU ] | CS:f000( 0000| 0| 0) 000f0000 0000ffff 0 0
00000866518i[CPU ] | EIP=0000089a (00000899)
00000866518i[CPU ] | CR0=0x60000010 CR1=0x00000000 CR2=0x00000000
00000866518i[CPU ] | CR3=0x00000000 CR4=0x00000000
00000866518i[ ] restoring default signal behavior
00000866518i[CTRL ] quit_sim called with exit code 1
[/code]
could you please tell me whats going wrong ... thanks ...