-
-
[求助]Bochs不能正常启动,显示出错代码是Cannot connect to X display,怎么办求帮助
-
发表于: 2017-7-26 11:06 3136
-
虚拟机用的是VMWare,装好后在上面装了CentOS。在接着安装Bochs-2.6.2,中间诸多周折,得到了高手指点,终于装好Bochs但是装好Bochs后不能正常启动,调用bochs输入bin/bochs, 系统先是出[2]让我加载我的配置文件,我的配置文件bochsrc.disk是这样的:
Megs:32
Romimage: file=/opt/soft/bochs/share/bochs/BIOS-bochs-latest
Vgaromimage: file=/opt/soft/bochs/share/bochs/VGABIOS-lgpl-latest
Boot:disk
Log:bochs.out
Mouse:enabled=0
Keyboard_mapping: enabled=1,map=/opt/soft/bochs/share/bochs/keymaps/x11-pc-us.map
Ata0: enabled=1,ioaddr1=0x1f0,ioaddr2=0x3f0,irq=14
#gdbstub: enabled=1,port=1234,text_base=0,data_base=0.bss_base=0
最后一排被我注释掉了,不注释掉会在下面一步的选[6]之前就出错,提示我“bochs is not compiled with gdbstub support."
我加载bochsrc.disk后Bochs就开始[6]begin simulation。但是开始模拟以后就给我不走了,显示的就是:
Please choose one:[6]
00000000000i[ ] installing x module as the Bochs GUI
00000000000i[ ] using log file bochs.out
=================================================================
Event type:PANIC
Device:[GUI ]
Message:Cannnot connect to X display
A PANIC has occurred. Do you want to :
cont -continue execution
alwayscont -continue executing,and don't ask again.
This affects only PANIC events from device[GUI ]
die -stop execution now
abort -dump core
debug -continue and return to bochs debugger
Choose one of the actions above:[die]
==============================================================
Bochs is exiting with the following message:
[GUI ] Cannot connect to X display
==============================================================
(0).[0][0x000000000000] 0000:0000(unk.ctxt):add byte ptr ds:[bx+si],al;0000
然后机子就停在那儿不往下走了。我手工init 5是可以启动Linux的X桌面的。那这种样子是不是就只是Bochs不能加载它自己的x module?下面该怎么办?
本人自学中,没有导师和指引,请求论里高手的帮助。谢谢!
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课
赞赏
看原图
赞赏
雪币:
留言: