Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[TUT] Windows XP for Bochs

OP acocalypso

26th January 2012, 11:12 AM   |  #1  
OP Senior Member
Thanks Meter: 223
 
442 posts
Join Date:Joined: Feb 2011
Donate to Me
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/show....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/show....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/doc...r/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...7566148311.png

http://imageshack.us/photo/my-images...7565583563.png

http://imageshack.us/photo/my-images...7569555412.png

http://imageshack.us/photo/my-images...7569773009.png

http://imageshack.us/photo/my-images...7569992581.png
Last edited by acocalypso; 27th January 2012 at 12:54 AM.
The Following 26 Users Say Thank You to acocalypso For This Useful Post: [ View ]
26th January 2012, 02:20 PM   |  #2  
Senior Member
Thanks Meter: 82
 
520 posts
Join Date:Joined: Jul 2009
Donate to Me
More
More specific options in "Creating the bootable image!"
26th January 2012, 03:21 PM   |  #3  
nguyen_vh's Avatar
Member
Flag Ha Noi
Thanks Meter: 7
 
46 posts
Join Date:Joined: Dec 2011
More
Can you upload the file c.img ... I dont understand these steps ( AND ALSO DONT WANT TO UNDERSTAND > HEHEHE )
Last edited by nguyen_vh; 26th January 2012 at 03:27 PM.
The Following 2 Users Say Thank You to nguyen_vh For This Useful Post: [ View ]
26th January 2012, 03:26 PM   |  #4  
Senior Member
Thanks Meter: 82
 
520 posts
Join Date:Joined: Jul 2009
Donate to Me
More
Quote:
Originally Posted by nguyen_vh

Can you upload the file c.img ... I dont understand these steps

+1+1+1+1+1 !!!!
The Following User Says Thank You to insestito For This Useful Post: [ View ]
26th January 2012, 03:42 PM   |  #5  
Senior Member
Flag Thessaloniki
Thanks Meter: 204
 
999 posts
Join Date:Joined: Dec 2011
More
That CPU count var looks interesting.... maybe we could set it to 2 for dual core phones?

Can u supply .txt for sp3 fundamentals

Sent from my GT-I9100 using XDA App
Last edited by MemoryController; 26th January 2012 at 03:45 PM.
The Following 3 Users Say Thank You to MemoryController For This Useful Post: [ View ]
26th January 2012, 05:31 PM   |  #6  
OP Senior Member
Thanks Meter: 223
 
442 posts
Join Date:Joined: Feb 2011
Donate to Me
Quote:
Originally Posted by nguyen_vh

Can you upload the file c.img ... I dont understand these steps ( 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.

Quote:

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 )
26th January 2012, 06:02 PM   |  #7  
OP Senior Member
Thanks Meter: 223
 
442 posts
Join Date:Joined: Feb 2011
Donate to Me
Updatet Creating the bootable image!

Tonight im trying windows 7 maybe it will boot
Last edited by acocalypso; 26th January 2012 at 06:06 PM.
The Following User Says Thank You to acocalypso For This Useful Post: [ View ]
26th January 2012, 08:59 PM   |  #8  
Junior Member
Thanks Meter: 17
 
27 posts
Join Date:Joined: Dec 2010
Working great on my xperia play after some tweaking around.
I used QEMU Manager 7 to install it as this is one of the more easier options for QEMU.
Last edited by henk717; 26th January 2012 at 09:13 PM.
The Following 2 Users Say Thank You to henk717 For This Useful Post: [ View ]
26th January 2012, 09:28 PM   |  #9  
OP Senior Member
Thanks Meter: 223
 
442 posts
Join Date:Joined: Feb 2011
Donate to Me
what kind of tweaks did you use? because my image boots about 30 mins....
The Following User Says Thank You to acocalypso For This Useful Post: [ View ]
26th January 2012, 09:54 PM   |  #10  
kylon's Avatar
Senior Member
Thanks Meter: 1,752
 
2,530 posts
Join Date:Joined: Dec 2010
Donate to Me
More
umm
interesting...
can be installed apps?
also 1ghz+ phones require 30 min to boot?

so,it is useful or only an hobby

The Following User Says Thank You to kylon For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes