[TUT] Windows XP for Bochs

acocalypso

Senior Member
Feb 7, 2011
475
248
63
Hy everyone,

I thought to make a Tutorial about how to install Windows XP and run it on Android.
------------------------------------------------------------------------
Requirment

At first you have to download Bochs for Android and PC

Android version: http://forum.xda-developers.com/showthread.php?t=1389700
Thanks to korvs2003

PC Version: http://bochs.sourceforge.net/getcurrent.html

Then Download Qemu: http://wiki.qemu.org/Download

You need Windows XP

Android: Install Bochs
PC: Install Bochs and Qemu
--------------------------------------------------------
Creating the bootable image!

1. Open up Bochs for PC and run bximage.exe -> you can find bximage here C:/Program Files/bochs/ | depends on where you have installed it.
2. Create a Image with following: hd, flat, 1500, c.img
hd: It is the format of your boot disk. | fd will create a bootable floppy disk image. For some odd reasons you can use with win 3.11 or something like that.
flat: It means that it has a fixed size.
1500: It is the size of your Image. | you need around 1,5 gb disk space, because the installation of winxp, even you edit it with nlite, wont let you use lower disks -.- , i am trying to solve that problem.
c.img: It is the name of your Image. | choose the name like you want to, but dont forget to edit the bochsrc.txt, else it wont start.

notice: Maybe you have to run bximage.exe as Admin.

--------------------------------------------------------
Install Windows XP in the boot image

1. Open up Qemu
2. Set up a new Virtual Machine
3. As disk use the c.img
4. Configure the cdrom
5. Give the machine around 512 MB - 1 GB RAM if possible
6. start the Virtual machine and run the installation of Windows XP

---------------------------------------------------------
Run the Image on Android

1. create a SDL folder on your SDCARD like here http://forum.xda-developers.com/showthread.php?t=1389700

2. copy your c.img to your SDCARD: sdcard/SDL/c.img
3. now replace the bochsrc.txt lines with:

Code:
megs: 256
cpu: count=1, ips=6000000, reset_on_triple_fault=1, ignore_bad_msrs=1
# filename of ROM images
romimage: file=BIOS-bochs-latest
vgaromimage: file=VGABIOS-lgpl-latest
vga: extension=cirrus, update_freq=25
pci: enabled=1, chipset=i440fx, slot1=cirrus
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15
ata0-master: type=disk, path="c.img"
#ata0-slave: type=disk, path="d.img"
#ata1-master: type=disk, mode=vvfat, path=/sdcard/HDD, journal=vvfat.redolog
#type=cdrom, path="CD.ISO", status=inserted
boot: c
config_interface: textconfig
#display_library: x
# other choices: win32 sdl wx carbon amigaos beos macintosh nogui rfb term svga
log: bochsout.txt
sb16: enabled=1
mouse: enabled=1
sb16: wavemode=1, dmatimer=500000
clock: sync=none, time0=1
For more Information about bochsrc configuration visit http://bochs.sourceforge.net/doc/docbook/user/bochsrc.html

megs: ram in MB you will give the machine.
I use 256 (Xperia Play) 300mb will crash your windows after a while.

4. Run bochs on Android.
Boot will take around 30 min, yeah it is really slow
---------------------------------------------------------
Notice
I used Nlite to resize and optimize windows xp before installing it.


here some screenshots:

http://imageshack.us/photo/my-images/254/screenshot1327566148311.png

http://imageshack.us/photo/my-images/819/screenshot1327565583563.png

http://imageshack.us/photo/my-images/263/screenshot1327569555412.png

http://imageshack.us/photo/my-images/692/screenshot1327569773009.png

http://imageshack.us/photo/my-images/715/screenshot1327569992581.png
 
Last edited:

acocalypso

Senior Member
Feb 7, 2011
475
248
63
Can you upload the file c.img :D... I dont understand these steps :D ( AND ALSO DONT WANT TO UNDERSTAND > HEHEHE )
no i cant, because it is not legal to upload windows version =), try it it is very easy to create it.

That CPU count var looks interesting.... maybe we could set it to 2 for dual core phones?

Can u supply .txt for sp3 fundamentals
its useless setting it up to 2, because bochs is a single thread programm.

(my english is not the best so plz forgive me :D)
 

nguyen_vh

Senior Member
Dec 31, 2011
61
9
0
27
Ha Noi
no i cant, because it is not legal to upload windows version =), try it it is very easy to create it.



its useless setting it up to 2, because bochs is a single thread programm.

(my english is not the best so plz forgive me :D)


ITs not EZ at alll =.=.... please... please :D

---------- Post added at 11:13 AM ---------- Previous post was at 11:05 AM ----------

Hy everyone,

I thought to make a Tutorial about how to install Windows XP and run it on Android.
------------------------------------------------------------------------
Requirment

At first you have to download Bochs for Android and PC

Android version: http://forum.xda-developers.com/showthread.php?t=1389700
Thanks to korvs2003

PC Version: http://bochs.sourceforge.net/getcurrent.html

Then Download Qemu: http://wiki.qemu.org/Download

You need Windows XP

Android: Install Bochs
PC: Install Bochs and Qemu
--------------------------------------------------------
Creating the bootable image!

1. Open up Bochs for PC and run bximage.exe -> you can find bximage here C:/Program Files/bochs/ | depends on where you have installed it.
2. Create a Image with following: hd, flat, 1500, c.img
hd: It is the format of your boot disk. | fd will create a bootable floppy disk image. For some odd reasons you can use with win 3.11 or something like that.
flat: It means that it has a fixed size.
1500: It is the size of your Image. | you need around 1,5 gb disk space, because the installation of winxp, even you edit it with nlite, wont let you use lower disks -.- , i am trying to solve that problem.
c.img: It is the name of your Image. | choose the name like you want to, but dont forget to edit the bochsrc.txt, else it wont start.

notice: Maybe you have to run bximage.exe as Admin.

--------------------------------------------------------
Install Windows XP in the boot image

1. Open up Qemu
2. Set up a new Virtual Machine
3. As disk use the c.img
4. Configure the cdrom
5. Give the machine around 512 MB - 1 GB RAM if possible
6. start the Virtual machine and run the installation of Windows XP

---------------------------------------------------------
Run the Image on Android

1. create a SDL folder on your SDCARD like here http://forum.xda-developers.com/showthread.php?t=1389700

2. copy your c.img to your SDCARD: sdcard/SDL/c.img
3. now replace the bochsrc.txt lines with:

Code:
megs: 256
cpu: count=1, ips=6000000, reset_on_triple_fault=1, ignore_bad_msrs=1
# filename of ROM images
romimage: file=BIOS-bochs-latest
vgaromimage: file=VGABIOS-lgpl-latest
vga: extension=cirrus, update_freq=25
pci: enabled=1, chipset=i440fx, slot1=cirrus
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15
ata0-master: type=disk, path="c.img"
#ata0-slave: type=disk, path="d.img"
#ata1-master: type=disk, mode=vvfat, path=/sdcard/HDD, journal=vvfat.redolog
#type=cdrom, path="CD.ISO", status=inserted
boot: c
config_interface: textconfig
#display_library: x
# other choices: win32 sdl wx carbon amigaos beos macintosh nogui rfb term svga
log: bochsout.txt
sb16: enabled=1
mouse: enabled=1
sb16: wavemode=1, dmatimer=500000
clock: sync=none, time0=1
For more Information about bochsrc configuration visit http://bochs.sourceforge.net/doc/docbook/user/bochsrc.html

megs: ram in MB you will give the machine.
I use 256 (Xperia Play) 300mb will crash your windows after a while.

4. Run bochs on Android.
Boot will take around 30 min, yeah it is really slow
---------------------------------------------------------
Notice
I used Nlite to resize and optimize windows xp before installing it.


here some screenshots:

http://imageshack.us/photo/my-images/254/screenshot1327566148311.png

http://imageshack.us/photo/my-images/819/screenshot1327565583563.png

http://imageshack.us/photo/my-images/263/screenshot1327569555412.png

http://imageshack.us/photo/my-images/692/screenshot1327569773009.png

http://imageshack.us/photo/my-images/715/screenshot1327569992581.png

How to OPEN UP QeMu... where is it ?