Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,804,884 Members 52,512 Now Online
XDA Developers Android and Mobile Development Forum

[TUT] Windows XP for Bochs

Tip us?
 
acocalypso
Old
(Last edited by acocalypso; 26th January 2012 at 11:54 PM.)
#1  
Senior Member - OP
Thanks Meter 212
Posts: 435
Join Date: Feb 2011

 
DONATE TO ME
Default [TUT] Windows XP for Bochs

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
The Following 25 Users Say Thank You to acocalypso For This Useful Post: [ Click to Expand ]
 
insestito
Old
#2  
Senior Member
Thanks Meter 79
Posts: 489
Join Date: Jul 2009

 
DONATE TO ME
More specific options in "Creating the bootable image!"
 
nguyen_vh
Old
(Last edited by nguyen_vh; 26th January 2012 at 02:27 PM.)
#3  
nguyen_vh's Avatar
Member
Thanks Meter 6
Posts: 46
Join Date: Dec 2011
Location: Ha Noi
Can you upload the file c.img ... I dont understand these steps ( AND ALSO DONT WANT TO UNDERSTAND > HEHEHE )
The Following User Says Thank You to nguyen_vh For This Useful Post: [ Click to Expand ]
 
insestito
Old
#4  
Senior Member
Thanks Meter 79
Posts: 489
Join Date: Jul 2009

 
DONATE TO ME
Quote:
Originally Posted by nguyen_vh View Post
Can you upload the file c.img ... I dont understand these steps
+1+1+1+1+1 !!!!
 
MemoryController
Old
(Last edited by MemoryController; 26th January 2012 at 02:45 PM.)
#5  
Senior Member
Thanks Meter 197
Posts: 997
Join Date: Dec 2011
Location: Thessaloniki
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
The Following 2 Users Say Thank You to MemoryController For This Useful Post: [ Click to Expand ]
 
acocalypso
Old
#6  
Senior Member - OP
Thanks Meter 212
Posts: 435
Join Date: Feb 2011

 
DONATE TO ME
Quote:
Originally Posted by nguyen_vh View Post
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 )
 
acocalypso
Old
(Last edited by acocalypso; 26th January 2012 at 05:06 PM.)
#7  
Senior Member - OP
Thanks Meter 212
Posts: 435
Join Date: Feb 2011

 
DONATE TO ME
Updatet Creating the bootable image!

Tonight im trying windows 7 maybe it will boot
 
henk717
Old
(Last edited by henk717; 26th January 2012 at 08:13 PM.)
#8  
Junior Member
Thanks Meter 16
Posts: 27
Join Date: 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.
The Following User Says Thank You to henk717 For This Useful Post: [ Click to Expand ]
 
acocalypso
Old
#9  
Senior Member - OP
Thanks Meter 212
Posts: 435
Join Date: Feb 2011

 
DONATE TO ME
what kind of tweaks did you use? because my image boots about 30 mins....
 
kylon
Old
#10  
kylon's Avatar
Senior Member
Thanks Meter 1,352
Posts: 2,377
Join Date: Dec 2010

 
DONATE TO ME
umm
interesting...
can be installed apps?
also 1ghz+ phones require 30 min to boot?

so,it is useful or only an hobby
My Gitorious

My works:

HTC WILDFIRE
kylon kernel
RemPuzzleRom
Mini Turbo Boost
CWM 6.x
Wifi tweak

HTC DESIRE S
AndromadusMod kernel
CyanogenMod builds - Antutu @2Ghz xD


My Phone:

Nexus 5 White 16G
Unlocked - CM11.0 Night

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes