I have Bochs Working enough to boot floppy!!

Zhang Zhichao-A5057C A5057C at motorola.com
Thu Oct 14 02:50:52 UTC 2004


How about simulating a hard disk?  Anyone done that with RTEMS?

1.firstly, create a hard disk image file or use the default DLX linux hard image file delivered with Bochs
	
  Create image by Linux DD command or use bochs bximage program. then it should be partitioned and formated with DOS's (or other OS's) 
disk utility. 

2.Add some lines into the configuration file for hard disk
for example

# hard disk
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata0-master: type=disk, path="hd10meg.img", cylinders=306, heads=4, spt=17

# choose the boot disk.
boot: c	

3. Then it's ok for hard disk. 

PS, Using the hard disk image is a lillte boring, maybe using CDROM iso image will better.


-----Original Message-----
From: joel.sherrill at OARcorp.com [mailto:joel.sherrill at OARcorp.com] 
Sent: Wednesday, October 13, 2004 11:04 PM
To: Zhang Zhichao-A5057C
Cc: Erwin Rol; rtems-users at rtems.com
Subject: I have Bochs Working enough to boot floppy!!



Hi All,

I have a Bochs configuration file that works enough to run the 4.5.0 grub floppy image.  I just ran it as "bochs -f b -q".

Anyone have an idea what CPU model is being simulated by default and which other variants can be tested using different Bochs options?

How about simulating a hard disk?  Anyone done that with RTEMS?

Erwin.. did you get the TCP/IP stack working?

I would really like to get to the point where this is an easy way to test nearly all of RTEMS.

Erwin.. then maybe someone can do the same for PearPC. :)

Here is the configuration file:

onfig_interface: textconfig
display_library: x
megs: 8
romimage: file=/usr/share/bochs/BIOS-bochs-latest, address=0xf0000
vgaromimage: /usr/share/bochs/VGABIOS-elpin-2.40
boot: floppy
floppya: 1_44=/home/joel/bochs/grub144 , status=inserted
# no floppyb
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata1: enabled=0
ata2: enabled=0
ata3: enabled=0
parport1: enabled=1, file=""
com1: enabled=1, dev=""
usb1: enabled=1, ioaddr=0xff80, irq=10
# no sb16
floppy_bootsig_check: disabled=0
vga_update_interval: 30000
keyboard_serial_delay: 20000
keyboard_paste_delay: 100000
floppy_command_delay: 50000
ips: 500000
text_snapshot_check: 0
mouse: enabled=0
private_colormap: enabled=0
i440fxsupport: enabled=0
clock: sync=none, time0=local
# no ne2k
newharddrivesupport: enabled=1
# no loader
log: -
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
# no cmosimage


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985



More information about the users mailing list