yyu / osfs01

Operating System From Scratch : learn OS by practice
51 stars 26 forks source link

keyboard-mapping #3

Open litetoooooom opened 9 years ago

litetoooooom commented 9 years ago

                   Bochs x86 Emulator 2.6.7
          Built from SVN snapshot on November 2, 2014
              Compiled on Jan  5 2015 at 14:46:07

00000000000i[ ] reading configuration from bochsrc

00000000000p[ ] >>PANIC<< bochsrc:25: 'keyboard_mapping' is deprecated - use 'keyboard' option instead.

Bochs is exiting with the following message:

[ ] bochsrc:25: 'keyboard_mapping' is deprecated - use 'keyboard' option instead.

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

一直出现这个错误,我的环境是mac ,安装时设定的是sdl, 在bochsrc中sdl-pc-us.map, sdl2-pc-us.map都没用,求指教

EnixCoda commented 9 years ago

same problem

miaobug commented 8 years ago

In archlinux, I change the following 2 lines and it just works line 10 vgaromimage: file=/usr/share/bochs/VGABIOS-lgpl-latest line 25 keyboard: keymap=/usr/share/bochs/keymaps/x11-pc-us.map

My version is Bochs x86 Emulator 2.6.8 You may need to look at the docs: http://bochs.sourceforge.net/doc/docbook/user/bochsrc.html

EnixCoda commented 8 years ago

@miaobug thanks!