在ubuntu配置xv6環境

2021-09-05 12:11:27 字數 1549 閱讀 5588

最近實驗要裝xv6執行環境,踩坑無數,千萬要小心配環境真的最好找最近的部落格,千萬別找1年以前的,不然會像我一樣被坑死。

閒話少說。

實驗環境

ubuntu 16.04

vmware workstation

這是我認為靠譜的兩個參考**

首先安裝xv6源**

最後這樣就說明xv6原始碼編譯成功。

接下來,安裝qemu,安裝這個有兩種方式,一種是我下面的這種直接做,簡單明瞭。還有一種是通過原始碼安裝,不建議這種方式,複雜還容易出錯。就在xv6-public這個檔案下

sudo apt-get install qemu

驗證qemu安裝成功在xv6-public資料夾下:qemu-system-i386如果彈出qemu的視窗說明成功。

現在就可以在qemu上執行除錯xv6:

$cd xv6-public

$ make qemu-gdb

...//這時重新在xv6-public再次 開乙個終端

$ gdb

gnu gdb (ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1

license gplv3+: gnu gpl version 3 or later this is free software: you are free to change and redistribute it.

there is no warranty, to the extent permitted by law. type "show copying"

and "show warranty" for details.

this gdb was configured as "x86_64-linux-gnu".

type "show configuration" for configuration details.

for bug reporting instructions, please see:

.find the gdb manual and other documentation resources online at:

.for help, type "help".

type "apropos word" to search for commands related to "word".

+ target remote localhost:26000

the target architecture is assumed to be i8086

[f000:fff0] 0xffff0: ljmp $0xf000,$0xe05b

0x0000fff0 in ?? ()

+ symbol-file kernel

.......

ubuntu18 04環境配置

最近因為實習需要,工作環境遷移到了ubuntu18.04,很多配置需要重新設定,這裡記錄一下。主要參考這位博主的部落格 sudo apt install git ysudo apt install filezilla ysudo apt install deepin screenshot y sud...

EF6 (一)環境配置

entity framework是 ado.net 中的一套支援開發面向資料的軟體應用程式的技術。面向資料的應用程式的架構師和開發人員曾為實現兩個迥然不同的目標費盡心機 他們必須為要解決的業務問題的實體 關係和邏輯構建模型,還必須處理用於儲存和檢索資料的資料引擎。資料可能跨多個各有不同協議的儲存系統...

sonarqube6 環境變數配置

工欲善其事必先利其器,使用sonarqube之前需要花點時間配置好環境,下面直接入題 3.新建環境變數 sonar runner home 值為 d program files sonarqube 6.1 bin sonar scanner 2.8 安裝sonar scanner的路徑 4.修改環境...