
用记事本打开编辑
############IMPORTANT##############
cpu: count=1, ips=10000000, reset_on_triple_fault=1, ignore_bad_msrs=1
################上面这句话非常重要,如果不加上,安装Windows XP的时候会蓝屏###############
# how much memory the emulated machine will have
megs: 256
##############此处改为256(内存大小,你可以根据你自己的需要修改,不过建议最好不要低于256M)
# filename of ROM images
romimage: file=BIOS-bochs-latest
vgaromimage: file=VGABIOS-lgpl-latest
###########我将BIOS-bochs-latest 和VGABIOS-lgpl-latest 复制到了我创建的文件夹中,于是去掉了"../"
# what disk images will be used
##删去此处无用的内容
# hard disk
#此处复制刚才那段要复制下来的参数
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata0-master: type=disk, path="winxp.img
友已经在安卓手机上成功运行win95 win8 xp等系统,亦有朋友安装了其他linux系统。四师兄习惯……
安卓手机是可以运行windows或者其他linux系统的,只要你的手机硬件足够强大,这点似乎已经得到了玩家的普遍认可。有朋友已经在安卓手机上成功运行win95 win8 xp等系统,亦有朋友安装了其他linux系统。
四师兄习惯了ubuntu系统,但是在网上检索不到可用的ubuntu的硬盘镜像,所以,四师兄决定自己配置一个ubuntu的硬盘镜像文件。
需要在自己的电脑安装Bochs和Qemu
Bochs下载地址:http://cdnetworks-kr-1.dl.sourceforge.net/project/bochs/bochs/2.5.1/Bochs-2.5.1.exe
Qemu(绿色版)下载地址:http://www.h6.dion.ne.jp/~kazuw/qemu-win/qemu-0.9.0-windows.zip
首先需要生成bootable镜像文件!
1. 安装 Bochs 然后运行bximage.exe ->bximage文件默认位于 C:/Program Files/bochs/ .
2. 生成镜像文件的命令: 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.
注意: 可能需要你以管理员身份运行bximage.exe.
命令行下运行Qemu,使用先前生成的c.img镜像文件完成ubuntu安装:
>qemu.exe -L . -m 512 -boot d -hda kouge.img -cdrom kouge.iso
相关选项说明:
-L : bios 位置
-m : 内存大小(单位是Mbyte)
-boot : 启动设备(boot device), 包括三种, 分别为 floppy(a), hard disk(c), CD-ROM(d)
-hda : 硬盘镜像(hard disk image
-cdrom : 光盘镜像(CD-ROM image)
待安装完成,ubuntu的镜像文件就可以放在暗转手机上使用了。
参照:
http://bbs.gfan.com/android-3565691-1-1.html
http://bochs.sourceforge.net/
http://www.h7.dion.ne.jp/~qemu-win/
http://forum.xda-developers.com/showthread.php?t=1459153
http://forum.xda-developers.com/showthread.php?t=1465365
http://www.cnblogs.com/WuCountry/archive/2009/02/15/1391053.html
很简单 在Bochs安装目录有个bximage.exe
运行为命令行:
========================================================================
bximage
Disk Image Creation Tool for Bochs
$Id: bximage.c 10933 2012-01-04 19:34:08Z vruppert $
========================================================================
Do you want to create a floppy disk image or a hard disk image? <-这里要你选择软盘镜像fd还是硬盘镜像hd
Please type hd or fd. [hd] hd
What kind of image shoul
d I create? < -输入镜像类型
Please type flat, sparse or growing. [flat]
Enter the hard disk size in megabytes, between 1 and 129023 < -输入大小
[10] 12000
I will create a 'flat' hard disk image with <-告诉你信息
cyl=24380
heads=16
sectors per track=63
total sectors=24575040
total size=11999.53 megabytes
What should I name the image? <-输入镜像名字
[c.img]
Writing: [] Done. <-写好了
I wrote 12582420480 bytes to c.img.
The following line should appear in your bochsrc:
ata0-master: type=disk, path="c.img
