zoukankan      html  css  js  c++  java
  • 使用Bochs运行程序:display library 'sdl' not available

    bochs运行程序报错:
    display library 'sdl' not available
    bx_dbg_read_linear: physical memory read error
    代码如下:

    kun@ubuntu:~/OSdesign$ bochs
    ========================================================================
                           Bochs x86 Emulator 2.6.9
                   Built from SVN snapshot on April 9, 2017
                      Compiled on Feb 28 2021 at 05:57:54
    ========================================================================
    00000000000i[      ] BXSHARE not set. using compile time default '/usr/local/share/bochs'
    00000000000i[      ] reading configuration from bochsrc
    00000000000p[      ] >>PANIC<< bochsrc:33: display library 'sdl' not available
    00000000000e[SIM   ] notify called, but no bxevent_callback function is registered
    00000000000e[SIM   ] notify called, but no bxevent_callback function is registered
    ========================================================================
    Bochs is exiting with the following message:
    [      ] bochsrc:33: display library 'sdl' not available
    ========================================================================
    00000000000i[CPU0  ] CPU is in real mode (active)
    00000000000i[CPU0  ] CS.mode = 16 bit
    00000000000i[CPU0  ] SS.mode = 16 bit
    00000000000i[CPU0  ] EFER   = 0x00000000
    00000000000i[CPU0  ] | EAX=00000000  EBX=00000000  ECX=00000000  EDX=00000000
    00000000000i[CPU0  ] | ESP=00000000  EBP=00000000  ESI=00000000  EDI=00000000
    00000000000i[CPU0  ] | IOPL=0 id vip vif ac vm rf nt of df if tf sf ZF af PF cf
    00000000000i[CPU0  ] | SEG sltr(index|ti|rpl)     base    limit G D
    00000000000i[CPU0  ] |  CS:0000( 0000| 0|  0) 00000000 00000000 0 0
    00000000000i[CPU0  ] |  DS:0000( 0000| 0|  0) 00000000 00000000 0 0
    00000000000i[CPU0  ] |  SS:0000( 0000| 0|  0) 00000000 00000000 0 0
    00000000000i[CPU0  ] |  ES:0000( 0000| 0|  0) 00000000 00000000 0 0
    00000000000i[CPU0  ] |  FS:0000( 0000| 0|  0) 00000000 00000000 0 0
    00000000000i[CPU0  ] |  GS:0000( 0000| 0|  0) 00000000 00000000 0 0
    00000000000i[CPU0  ] | EIP=00000000 (00000000)
    00000000000i[CPU0  ] | CR0=0x00000000 CR2=0x00000000
    00000000000i[CPU0  ] | CR3=0x00000000 CR4=0x00000000
    bx_dbg_read_linear: physical memory read error (phy=0x000000000000, lin=0x00000000)
    00000000000i[SIM   ] quit_sim called with exit code 1
    
    
    

    解决方法:
    注释掉配置文件中的代码:
    display_library: sdl

  • 相关阅读:
    【老三层总结】老三层 页面 传值
    【总结-前台发送后台接收表单】MVC提交表单的四种方式
    Django使用Channels实现WebSocket数据推送功能
    关于子网、子网划分的一些内容
    关于摄像头推流拉流的一些内容
    群晖 docker frp公网访问
    Gitea搭建(搭建私有github仓库)
    frp内网穿透搭建流程,UDP通讯测试
    Centos7基础内容-命令
    Django 使用forms进行POST字段校验(文件上传校验)
  • 原文地址:https://www.cnblogs.com/CSE-kun/p/14465903.html
Copyright © 2011-2022 走看看