1.bochs����Դ��
2.å¦ä½å¨Linuxä¸ä½¿ç¨Bochs
3.bochs安卓模拟器怎么使用
4.windowsä¸bochs å®è£
5.Bochs 手机版开机时为什么最下面那一行一直显示Booting from hard drive?
bochs����Դ��
bochs是键键盘一种虚拟机软件,它可以让您在arm架构上模拟x系统。盘源配置
如何使用:
1.安装bochs.apk(可能包含在您下载的键键盘附件当中),安装完毕后不要启动,盘源配置table切换源码点完成。键键盘
2.将您下载的盘源配置附件中的SDL目录解压到SD卡根目录。
3.把您下载的键键盘WinXP镜像附件解压,将解压出来的盘源配置“andows.img”移动到刚才解压出来的SDL文件夹。
解压推荐在电脑上操作,键键盘因为XP镜像即使经过精简体积也会非常大,盘源配置使用电脑可以省时。键键盘2乘源码
之后启动bochs,盘源配置bochs会自动启动WinXP。键键盘点击左下角可调出键盘,盘源配置音量加为鼠标左键,键键盘音量减为鼠标右键,录播平台源码移动鼠标可以通过滑动屏幕实现。
å¦ä½å¨Linuxä¸ä½¿ç¨Bochs
å®è£
å°Bochsçä¸»é¡µï¼ ä¸ä¸è½½ææ°çBochs RPMå®è£ å ã 以rootç身份å®è£ ï¼
#rpm -ivh bochs-2.2.1-1.i.rpm
å ¶å®RPMå®è£ å ç»ä½ è£ ä¸äºå个æ°ç¨åºï¼bochsï¼bochs-dlxï¼bximageï¼bxcommitï¼ ä»¥åç¸å ³ææ¡£ãå®è£ å®æ¯åï¼ä½ å¯ä»¥å è¯è¯bochs-dlxï¼å®æ¯DLX Linuxçä¸ä¸ªdemoã
$ bochs-dlx
---------------------------------------------------------------
DLX Linux Demo, for Bochs x Emulator
---------------------------------------------------------------
Checking for bochs binary...ok
Checking for DLX linux directory...ok
Checking for /usr/bin/gzip...ok
Checking for /home/wangcong/.bochsdlx directory...ok
Entering /home/wangcong/.bochsdlx
Running bochs
i[APIC?] local apic in initializing
========================================================================
Bochs x Emulator 2.2.1
Build from CVS snapshot on July 8,
========================================================================
i[ ] LTDL_LIBRARY_PATH not set. using compile time default '/usr/lib/bochs/plugins'
i[ ] BXSHARE not set. using compile time default '/usr/share/bochs'
i[ ] reading configuration from bochsrc.txt
i[ ] lt_dlhandle is 0x8bac
i[PLGIN] loaded plugin libbx_x.la
i[ ] installing x module as the Bochs GUI
i[ ] using log file bochsout.txt
马ä¸ï¼ä½ å°±ä¼çå°ä¸ä¸ªXçªå£ã
æ¾ç¤ºçæ¯VGA BIOSä¿¡æ¯ï¼ç¶åæ¯å è½½Linuxçä¿¡æ¯ã以root身份ç»å½ï¼è¯è¯DLX Linuxãå®è£ æåã
使ç¨
ä¸é¢æ¯ä¸äºéè¦çæ件ï¼
/usr/bin/bochs
Bochså¯å¨ç¨åº
/usr/bin/bximage
Bochs带çå¶ä½ç£çéåæ件çå·¥å ·
/usr/bin/bxcommit
æredologæ¾è¿flatç£çéåæ件ä¸å»ç交äºå·¥å ·
/usr/share/doc/bochs/bochsrc-sample.txt
Bochsé ç½®æ件çä¾å
/usr/share/bochs/BIOS-bochs-*
ROM BIOSéåæ件
/usr/share/bochs/VGABIOS-*
ä¸VGA BIOSéåæ件ç¸å ³çæ件
/usr/bin/bochs-dlx
å¯å¨Bochsä¸DLX linuxçç¨åº
/usr/share/bochs/dlxlinux/
DLX Linuxçç®å½ï¼å å«å®çç£çéåæ件åé ç½®æ件
/usr/share/bochs/keymaps/*.map
XåSDLçkeymapå表
å½ä»¤bohcså¯ä»¥æ¥å4个åæ°ï¼-q å è½½é ç½®æ件åè·³è¿å¼å§èåï¼-f configfile è¯å«æå®çé å¶æ件ï¼-n ä¸å è½½é ç½®æ件ï¼-h æå°å¸®å©ä¿¡æ¯ï¼-qf configfile ç¸å½äºåæ¶ä½¿ç¨-qå-f两个é项ã使ç¨Bochsï¼ä½ å¿ é¡»æä¸ä¸ªé ç½®æ件ï¼æè ä½ é è¿-fåæ°æå®ï¼æè 让Bochsèªå·±æç´¢ãé ç½®æ件çä½ç¨æ¯åè¯Bochså°åªé寻æ¾éå æ件ï¼æ¨¡æå±å¦ä½å·¥ä½çãBochsæç´¢é ç½®æ件ç顺åºæ¯ï¼
.bochsrc å¨å½åç®å½ä¸</TT CLASS="FILENAME">
bochsrc å¨å½åç®å½ä¸
bochsrc.txt å¨å½åç®å½ä¸</TT CLASS="FILENAME">
.bochsrc å¨ç¨æ·ç主ç®å½ä¸
bochsrc å¨ /etc ç®å½ä¸
以dlx-linuxçé ç½®æ件为ä¾ï¼è®²ä¸ä¸å¦ä½å®å¶ä½ éè¦çé ç½®æ件ãdlx-linuxç é ç½®æ件æ¯/usr/share/doc/bochsç®å½ä¸çbochsrc-sample.txtãå®çå 容 å¦ä¸ï¼
###############################################################
# bochsrc.txt file for DLX Linux disk image.
###############################################################
# how much memory the emulated machine will have
megs:
# filename of ROM images
romimage: file=$BXSHARE/BIOS-bochs-latest, address=0xf
vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest
# what disk images will be used
floppya: 1_=floppya.img, status=inserted
floppyb: 1_=floppyb.img, status=inserted
# hard disk
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=
ata0-master: type=disk, path="hdmeg.img", cylinders=, heads=4, spt=
# choose the boot disk.
boot: c
# default config interface is textconfig.
#config_interface: textconfig
#config_interface: wx
#display_library: x
# other choices: win sdl wx carbon amigaos beos macintosh nogui rfb term svga
# where do we send log messages?
log: bochsout.txt
# disable the mouse, since DLX is text only
mouse: enabled=0
# enable key mapping, using US layout as default.
#
# NOTE: In Bochs 1.4, keyboard mapping is only % implemented on X windows.
# However, the key mapping tables are used in the paste function, so
# in the DLX Linux example I'm enabling keyboard_mapping so that paste
# will work. Cut&Paste is currently implemented on win and X windows only.
keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x-pc-us.map
#keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x-pc-fr.map
#keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x-pc-de.map
#keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x-pc-es.map
以#å¼å¤´çæ¯ä¸è¡é½æ¯æ³¨éã注éåå¾å¾æç½ã
megs:
æææ³è¦æ¨¡æMçå åã注æï¼åé¢çæ°åæ大为ï¼ä½æ¯å 为主æºç³»ç»çéå¶ï¼å¨ 大å¤æ°ç³»ç»ä¸ï¼Bochsçè³ä¸è½æ¯æMã
romimage: file=$BXSHARE/BIOS-bochs-latest, address=0xf
ææROMçéåæ件å¨åªï¼å¼æºæ¶ROM BIOS被å è½½å°åªéã$BXSHAREæ¯ç¯å¢åéï¼ææ Bochsçshareç®å½ï¼å¨Linuxä¸ä¸º/usr/share/bochsãè¿ä¸è¬ä¸ç¨æ¹å¨ãä¸é¢çvgaromimage ææVGA ROMçéåæ件ä½ç½®ã
floppya: 1_=floppya.img, status=inserted
floppyb: 1_=floppyb.img, status=inserted
floppyaæ¯ç¬¬ä¸è½¯é©±ï¼floppybæ¯ç¬¬äºè½¯é©±ãåé¢æ æçæ¯è½¯é©±éåæ件çä½ç½®ï¼è½¯ç æ¯å¦æå ¥ãå¯ä»¥æ ¹æ®ä½ çéè¦åéå½çä¿®æ¹ã
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=
ata0-master: type=disk, path="hdmeg.img", cylinders=, heads=4, spt=
æå¼ata0ééï¼å¦å¤è¿æata1ï¼ata2ï¼ata3ã对äºæ¯ä¸ä¸ªééï¼é½å¿ é¡»ææ两个IOå°ååIRQã ata0æ¯é»è®¤è¢«æå¼çï¼å®çioaddr1=0x1f0, ioaddr2=0x3f0, irq=ãata0-master æ¯ä¸»ata0ééï¼åé¢ææå®é带ç设å¤æ¯ç¡¬çï¼ç¡¬çéåæ件路å¾ï¼ç¡¬çæ±é¢æ°ï¼ç£å¤´æ°çåæ°ã
boot: c
ææå¯å¨æ¬¡åºï¼å¯ä»¥æ¯cdromï¼floppyï¼diskãä¸è¿ç±äºåå²çåå aåcä¹è½è¢«æ¥åã ä¹å¯ä»¥è¿æ ·æ¥åï¼
boot: cdrom, floppy, disk
mouse: enabled=0
ææé¼ æ æ¯å¦å¯è§ã
keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x-pc-us.map
æå¼å¯¹èæUSé®ççéæ å°ï¼keymapå¿ é¡»è¢«ææã
æ´å¤çé ç½®æ件é项说æè§/usr/share/doc/bochs/user/bochsrc.htmlã å¦ä½ç¼åé®ççkeymapå表è§/usr/share/doc/bochs/user/keymap.htmlã
å¶ä½ç£çéå
bximageæ¯Bochsèªå¸¦çå¶ä½ç£çéåçå·¥å ·ï¼å ·æ è¯å¥½ç交äºæ§ï¼ä½¿ç¨å¾æ¹ä¾¿ãè¿è¡bximageï¼ä½ ä¼çå°ï¼
========================================================================
bximage
Disk Image Creation Tool for Bochs
$Id: bximage.c,v 1..2.1 // :: vruppert Exp $
========================================================================
Do you want to create a floppy disk image or a hard disk image?
Please type hd or fd. [hd]
询é®æ们æ¯å»ºç«ä¸ä¸ªè½¯çéåè¿æ¯ç¡¬çéåï¼é»è®¤çæ¯ç¡¬çãæ们ç´æ¥æå车ï¼éæ©ç¡¬ç éåã
What kind of image should I create?
Please type flat, sparse or growing. [flat]
æ们æ³å»ºç«ä¸ä¸ªç®åçéåï¼éæ©é»è®¤çflatãå车ã
Enter the hard disk size in megabytes, between 1 and
[]
æ³è¦å¤å°Mbyteç大å°ï¼é®å ¥ä½ æ³è¦ç大å°ã
I will create a 'flat' hard disk image with
cyl=2
heads=
sectors per track=
total sectors=
total size=0. megabytes
What should I name the image?
[c.img]
å¨ä¸ä¸æ¥ä¸è¾å ¥â1âåï¼æ¾ç¤ºç¸å ³ç硬çä¿¡æ¯ã询é®æ³è¦ä»ä¹éåæ件ååï¼é»è®¤çæ¯ c.imgãè¾å ¥hd.imgå车ã
Writing: [] Done.
I wrote bytes to hd.img.
The following line should appear in your bochsrc:
ata0-master: type=disk, path="hd.img", mode=flat, cylinders=2, heads=, spt=
建ç«å®æ¯ãç¶åä½ å°±å¯ä»¥ä½¿ç¨è¿ä¸ªéåï¼ç¨Bochsåå®éªäºã
bochs安卓模拟器怎么使用
1.下载镜像文件(*.img)及bochs。2.如果下的是旧版,则要创建SDL文件夹。
3.文件夹SDL要创建成根文件夹。炎兔源码
4.文件夹里的文件如下图。
(示例)具体的镜像名看bochsrc.txt里的ata0-master: type=disk, path="*.img"星号代表前缀名。当需要e盘时,添加HDD文件夹,在文件夹里放入需要在虚拟机里的泡泡屏源码文件
5.安装bochs主程序,打开虚拟机。
6.操作:(以旧版为准)音量+鼠标左键,音量-鼠标右键,点屏幕边缘为打开键盘。
windowsä¸bochs å®è£
转èªæèªå·±çQQ空é´ä¸çæç« ï¼å¦æè¿æ¯ä¸è¡ï¼å æQQå§ã详ç»èµææ空é´ä¸æï¼å°±ä¸å¤å¶è¿æ¥äºã
Bochsæ¯ç±Kevin Lawton äºå¹´å¼å§å¼åçä¸ä¸ªç¨äºå®å ¨æ¨¡æIntelçx模æå¨ãå¼å§å®ä» ä» æ¯ä¸ä¸ªåä¸äº§åï¼ä¸è¿æ¨å¯ä»¥è´ä¹°å°å®çæºç¨åºãå¨å¹´3æè¿ä¸ªæ¶å»ï¼Mandrakesoftä¹°ä¸äºBochsï¼å¹¶æå®ç½®äºGNU LGPLä¸ä½¿ä¹æ为ä¸ä¸ªå¼æºç¨åºãå¨å¹´3æï¼KevinæBochsç家ä»bochs.com移å°äºbochs.sourceforge.netï¼å°ç°å¨ä¸ºæ¢ï¼Bochså·²ç»ä¹ æ¯äºå®çæ°å®¶ã
Bochsæ¯ç¨C++å¼åçï¼å®è¢«è®¾è®¡æå¯ä»¥è¿è¡äºå¤ç§ä¸»æµå¹³å°ä¸ï¼å æ¬x, PPC, Alpha, SunåMIPSãå®å®å ¨æ¯é 软件模ææ¥å®ç°çãä»å¯å¨å°éå¯ï¼å æ¬PCçå¤è®¾é®çï¼é¼ æ ï¼VGAå¡ï¼ç£çï¼ç½å¡çï¼å ¨é¨é½æ¯æ软件æ¥æ¨¡æçãè¿åå ¶å®ç模æå¨å¦VMwareï¼plexçæå¾å¤§çåºå«ãä¹æ£æ¯ç±äºBochså®å ¨æ¯é 软件æ¥æ¨¡ææ´ä¸ªPCç¯å¢ï¼å æ¤å®é常çéåå¼åæä½ç³»ç»ï¼è¿å¯¹å¹¿å¤§æä½ç³»ç»ç±å¥½è æ¥è¯´æ¯ä¸ä¸ªç¦é³ãå 为æå®ï¼ä½¿å¾è°è¯æä½ç³»ç»é常é常ç容æï¼å®èªå¸¦ä¸ä¸ªè°è¯å¨bochsdbgï¼å®å¯ä»¥ä»PCæºåå¯å¨çé£ä¸å¹é£èµ·å°±å¼å§æ¨¡æï¼æ³¨æï¼è¿ä¸æ¯ä»è¯»åç£çä¸çå¼å¯¼æåºé£å¼å§æ¨¡æã
ä¸è½½å°åï¼bochs.sourceforge.net
ä¸é¢ä»¥é ç½®MyOS为ä¾ï¼è¯´ææ´ä¸ªé ç½®è¿ç¨ã
å设æ们ç°å¨å·²ç»æèªå·±çæä½ç³»ç»ç¼è¯å®æ¯ï¼å¾å°ä¸ä¸ªBoot.binçäºè¿å¶æ件ï¼æ¥ä¸æ¥ï¼å°±è®©æ们å¼å§é ç½®èªå·±çBoot,æ件ï¼è®©å ¶ä»¥MyOS为åï¼å¼å§è¿è¡å§ã
å¨é ç½®MyOS,ä¹åï¼ä½ æ»éè¦ä¸ä¸ªMyOSå¯å¨çå§ï¼å©ç¨bochsä¸Disk Image Creation Toolå·¥å ·å建ä¸ä¸ªç©ºç½1.MBç空ç½è½¯ä»¶éåï¼æ们å设她åå为Boot.img .åæå©ç¨ç¸å ³è½¯ä»¶(ä¾å¦dosä¸çhd-copy)æèªå·±çæä½ç³»ç» myOS.bin æ件ç§å½å°Boot.imgä¸ï¼äºæ¯ä½ å°±æäºä¸å¼ æä½ç³»ç»å¯å¨çäºï¼è¥ä½ å¼å§åªæ¯æ³ä½éªbochsçé åï¼å¤§å¯ä¸å¿ 麻ç¦ï¼ç´æ¥å»ç½ä¸ä¸è½½ä¸ä¸ªfreeDOS.imgç³»ç»ã
æ个æä½ç³»ç»çä¹åï¼MyOSå¿ é¡»çè¿è¡å¨ä¸å°è®¡ç®æºä¸ï¼(^_^èææº),æ¢ç¶æ¯è®¡ç®æºï¼é£å®å¿ é¡»çæèªå·±çå åï¼ç¡¬çï¼ä¸»æ¿ï¼ä¸æ¾ç¤ºç³»ç»å§ãæ¥ä¸æ¥å°±æ¯æBochsèææºçèæ硬çï¼ä¸»æ¿ï¼æ¾ç¤ºç³»ç»ï¼è®¾ç½®å¥½ï¼å¨è®¾ç½®å¥½è¿å°èææºçå¯å¨ç³»ç»ï¼My OS)ï¼å¥½äºï¼å¤§ååæã
åç¬å»ºç«ä¸ªç®å½ï¼éæå°æ¹ï¼ï¼æBoot.imgå¤å¶è¿å»ï¼ç¶åæbochså®è£ ç®å½éé¢çbochsrc-sample.txtè¿ä¸ªæ件å¤å¶å°è¿ä¸ªç®å½éé¢ï¼å¹¶æ¹åï¼æ³¨æï¼åç¼æ¹æbxrcï¼è¿ä¸ªåç¼æ¯bochså¯ä»¥è¯å«çãbochsrc-sample.txtè¿ä¸ªæ件æ¯é ç½®æ件模æ¿ï¼æ们就æ¯å¨è¿ä¸ªæ¨¡æ¿çåºç¡ä¸ä¿®æ¹åæ°æ为æ们çæä½ç³»ç»æ使ç¨çé ç½®æ件ã
主æ¿é ç½®ï¼ç±äºæ¯èææºï¼æ们åªè¦ä¸ä¸ªé ç½®ä¸ä¸ªBISOæ件就å¯ä»¥è§£å³,å¨bochsrc-sample.bxrc(åæå¤å¶è¿å»å¹¶æ¹äºåç¼åçé£ä¸ªæ件)é ç½®æ件ä¸æ¾å° romimage: file=$BXSHARE/BIOS-bochs-latest ï¼æâ$BXSHAREâæ¹ä¸ºbochså®è£ ç®å½å³å¯ï¼è¬å¦ç¬è çé 置为romimage:file=D:\Bochs-2.4.5\BIOS-bochs-latest
æ¾ç¤ºç³»ç»é ç½®ï¼åçæ vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest ä¸ç$BXSHAREæ¹ä¸ºbochså®è£ ç®å½å³å¯ã
èæ硬çé ç½®ï¼é¦å æ们çæä¸ä¸ªèæ硬çå§ï¼åæ ·å©ç¨BochsçDisk Image Creation Toolå建ä¸ä¸ªç©ºç½çèæ硬çï¼è¯¥èæ硬çé»è®¤è¢«çæå¨Bochså®è£ ç®å½ä¸ã大å°ä¹ï¼èªå·±å®å§ ï¼ä¼°è®¡Mç»å¯¹å¤äºï¼è³å°å¯¹äºå ¥é¨çæ们说ï¼å¥½äºï¼å设è¿ä¸ªèæ硬ççåå为virtual.img,åæ¾å¨Dçéï¼åé ç½®æ件éæ¾å° ata0-master: type=disk, mode=flat, path="M.sample" ï¼æpath éé¢çæ¹ä¸ºèæ硬ççç»å¯¹è·¯å¾å³å¯ï¼è¬å¦ï¼ata0-master: type=disk, mode=flat, path="D:\virtual.img" .
好äºï¼é©¬ä¸å°±å¥½ï¼æ¥ä¸æ¥æ¯é ç½®æä½ç³»ç»äºï¼ç±äºæ们æ¯çæä½ç³»ç»åå¨è½¯çBoot.img ä¸ï¼å¨é ç½®æ件ä¸æ¾å°
floppya: 1_=/dev/fd0, status=insertedï¼æ/dev/fd0æ¹æBoot.imgçç»å¯¹è·¯å¾ï¼æ们çä¾åBoot.imgä¸bochsrc-sample.bxrcé ç½®æ件æ¯æ¾å¨åä¸ä¸ªç®å½ä¸ï¼æ们åªè¦/dev/fd0æ¹æå¯å¨çåå³å¯æ¢ï¼
floppya: 1_=Boot.img, status=inserted.
æåä¸æ¥äºï¼è®¾ç½®èææºä»è½¯çå¯å¨ãå¨é ç½®æ件ä¸æ¾å°boot: disk,ç³»ç»é»è®¤æ¯ä»ç¡¬çå¯å¨ï¼æ们æå®æ¹æboot: floppy.å°±å¯ä»¥äºã
ä¿åå ³éï¼åå»bochsrc-sample.bxrc èææºå°±å¯ä»¥è¿è¡äº
Bochs 手机版开机时为什么最下面那一行一直显示Booting from hard drive?
这是正从从硬盘启dao动的意思,不是du错误。就是zhi卡,可dao能是手机硬件偏低。你专这样试一属下 你先下载这个:这是一个官方的命令行dos的磁盘镜像img的压缩包。(刚才那个连接没有了)其实就是fdos-meg.tar.gz,如果这个连接也没了你可以百度自己下。 他很小所以一般手机都能启动。你解压后改为c.img放到SDL中如果能启动,则说明bochs软件在你的手机上是支持的。(这是一个命令行操作系统所以没有图形界面的,启动界面是大概c:>这样的命令行,你点击屏幕左下角会弹出软键盘) 如果这样就是卡,你多等一会就行了,如果不行说明手机硬件偏低,或者bochs兼容不好。