新bochs吧 关注:550贴子:1,200
  • 9回复贴,共1

关于sdl文件夹

只看楼主收藏回复

1L 送人


IP属地:安徽来自手机贴吧1楼2015-02-22 10:24回复
    sdl文件夹可以说是bochs的核心文件。关于它我知道的也不是太多我把我知道的告诉你们


    IP属地:安徽来自手机贴吧2楼2015-02-22 10:29
    回复
      bochsrc.txt文档是bochs配置表复制如下


      IP属地:安徽来自手机贴吧3楼2015-02-22 10:33
      回复
        ###############################################################
        # bochsrc.txt file for DLX Linux disk image.
        ###############################################################
        # how much memory the emulated machine will have
        megs: 128
        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
        # what disk images will be used
        #floppya: 1_44=W98RUS.img, status=inserted
        #floppyb: 1_44=floppyb.img, status=inserted
        # hard disk
        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="RUSW95B_USB.ISO", status=inserted
        # choose the boot disk.
        boot: c
        # default config interface is textconfig.
        config_interface: textconfig
        #config_interface: wx
        #display_library: x
        # other choices: win32 sdl wx carbon amigaos beos macintosh nogui rfb term svga
        # where do we send log messages?
        log: bochsout.txt
        sb16: enabled=1
        # disable the mouse, since DLX is text only
        mouse: enabled=1
        # enable key mapping, using US layout as default.
        #
        # NOTE: In Bochs 1.4, keyboard mapping is only 100% 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 win32 and X windows only.
        #keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-us.map
        #keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-fr.map
        #keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-de.map
        #keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-es.map


        IP属地:安徽来自手机贴吧4楼2015-02-22 10:36
        回复
          第一行megs=128,意思为RAM,也就是运存,1G RAM的手机建议调至256,512MB RAM的手机建议调至 128,2GB RAM的手机建议调至 512或更高。
          第二行:cpu: count=1, ips=6000000, reset_on_triple_fault=1, ignore_bad_msrs=1
          这行是调节CPU参数的,count=1表示启用1个cpu核心.这个好像没有什么用。
          然后下面都不知道略。。
          看这一行ata0-master: type=disk, path="c.img"这行代表的是*.img镜像的名称及分类。ata0-master,master代表的是主磁盘, path="c.img",c.img代表的是*.img镜像的名称。
          下一行#ata0-slave: type=disk, path="d.img"这行是另一个磁盘,也就是d.img,如果启用,要去掉#号,在SDL文件夹放入d.img文件。关于d.img和前面系统c.img一样,只不过d.img里什么都没有c.img里是系统


          IP属地:安徽5楼2015-02-22 10:46
          回复
            这一行另开#ata1-master: type=disk, mode=vvfat, path=/sdcard/HDD, journal=vvfat.redolog
            这是bochs的好处之一:就是可以直接打开手机里你想看的。据我所知limbo模拟器apq。。好像都不可以,都要用d.img
            这个也是D盘(这个和上面d.img可以双开。至少我试验过)这个开启方法和上面一样把#去掉
            这个虽然可以用手机直接打开,但有内存限制,限制多少我不知道。上面d.img没有限制d.img有多大内存就有多大
            看 path=/sdcard/HDD意思是D盘的位置可以改成 path=/sdcard/sdl/HDD, path=/sdcard/happy等
            确定位置后在新建同名文件夹(因为bochs不会自己建)
            把软件放进去(建议放免安装的)
            这里放改好的sdl文件夹d盘位置在sdl里hdd


            IP属地:安徽6楼2015-02-22 11:09
            收起回复
              最后#type=cdrom, path="cd1.iso", status=inserted,这行代表的是是否启用光驱,如果启用,请删除#号,并把*.ios放入SDL文件夹,如果没有iso文件又启用这行,那么bochs会闪退。 path="cd1.iso"代表的是ios文件的名称。(装系统用的,手机一般不用,都用电脑装)


              IP属地:安徽7楼2015-02-22 11:16
              回复
                这里还有d.img空白镜像解压后就可以用了,放到sdl下哦


                IP属地:安徽8楼2015-02-22 11:21
                收起回复