[{"data":1,"prerenderedAt":115},["ShallowReactive",2],{"content:\u002F2023\u002Fxv6-lab-setup":3,"surround:\u002F2023\u002Fxv6-lab-setup":104},{"id":4,"title":5,"body":6,"categories":79,"date":81,"description":82,"draft":83,"extension":84,"image":85,"meta":86,"navigation":88,"path":89,"permalink":85,"published":85,"readingTime":90,"recommend":85,"references":85,"seo":95,"sitemap":96,"stem":97,"tags":98,"type":102,"updated":81,"__hash__":103},"content\u002Fposts\u002F2023\u002Fxv6-lab-setup.md","xv6 lab环境配置",{"type":7,"value":8,"toc":73},"minimark",[9,16,20,29,32,43,46,58],[10,11,12],"alert",{},[13,14,15],"p",{},"此文章尚未完成。",[17,18,19],"h2",{"id":19},"课程介绍",[13,21,22],{},[23,24,28],"a",{"href":25,"rel":26},"https:\u002F\u002Fcsdiy.wiki\u002F%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F\u002FMIT6.S081\u002F",[27],"nofollow","MIT 6.S081: Operating System Engineering - CS自学指南",[17,30,31],{"id":31},"环境配置",[33,34,35],"ul",{},[36,37,38,39],"li",{},"安装依赖：\n",[40,41],"copy",{"code":42},"sudo pacman -S risc-v qemu-system-riscv",[13,44,45],{},"如果克隆的是2021版的仓库，需要修改Makefile：",[47,48,55],"pre",{"className":49,"code":51,"filename":52,"language":53,"meta":54},[50],"language-makefile","# CFLAGS = -Wall -Werror -O -fno-omit-frame-pointer -ggdb\nCFLAGS = -Wall -O -fno-omit-frame-pointer -ggdb\n","Makefile","makefile","",[56,57,51],"code",{"__ignoreMap":54},[13,59,60,61,67,68,72],{},"如果使用clangd作为VSCode的语法前端，需要在设置中向",[56,62,65],{"className":63,"code":65,"language":66},[64],"language-js","clangd.fallbackFlags","js","添加一项：",[56,69,71],{"className":70,"code":71,"language":66},[64],"-I${workspaceFolder}","。",{"title":54,"searchDepth":74,"depth":74,"links":75},4,[76,78],{"id":19,"depth":77,"text":19},2,{"id":31,"depth":77,"text":31},[80],"开发","2023-11-20 17:09:28","配置 MIT 6.S081 操作系统课程中的 xv6 实验环境，包括 RISC-V 和 QEMU 安装，调整 Makefile 编译选项，以及 VSCode 和 clangd 相关设置。",false,"md",null,{"slots":87},{},true,"\u002F2023\u002Fxv6-lab-setup",{"text":91,"minutes":92,"time":93,"words":94},"1 min read",0.415,24900,83,{"title":5,"description":82},{"loc":89},"posts\u002F2023\u002Fxv6-lab-setup",[99,100,101],"xv6","实验环境","操作系统","tech","ge2fgnG-nVnHXAKXoXxKRp9EEzkKRsLtePEJozUcdQc",[105,110],{"title":106,"path":107,"stem":108,"date":109,"type":102,"children":-1},"Termux 简单指南","\u002F2023\u002Ftermux-guide","posts\u002F2023\u002Ftermux-guide","2023-11-13 21:50:08",{"title":111,"path":112,"stem":113,"date":114,"type":102,"children":-1},"SSH 免密登录","\u002F2023\u002Fssh-key-login","posts\u002F2023\u002Fssh-key-login","2023-12-25 16:15:00",1782091376595]