手写操作系统篇:环境配置

编程入门 行业动态 更新时间:2024-10-21 03:42:21

手写<a href=https://www.elefans.com/category/jswz/34/1769955.html style=操作系统篇:环境配置"/>

手写操作系统篇:环境配置

文章目录

  • 前言
  • C环境配置
  • Rust环境配置
  • Qemu安装

前言

这篇博客先配置好我们之后的开发环境,下载一些依赖的软件包
建议大家使用ubuntu操作系统

C环境配置

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install git wget build-essential gdb-multiarch qemu-system-misc gcc-riscv64-linux-gnu binutils-riscv64-linux-gnu

Rust环境配置

首先是Rust基本环境配置

这里就不再赘述

设置Rust为缺省版本,并安装一些软件包

rustup install nightly
rustup default nightly
rustup target add riscv64gc-unknown-none-elf
cargo install cargo-binutils
rustup component add llvm-tools-preview
rustup component add rust-src

Qemu安装

sudo apt install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev \gawk build-essential bison flex texinfo gperf libtool patchutils bc \zlib1g-dev libexpat-dev pkg-config  libglib2.0-dev libpixman-1-dev libsdl2-dev \git tmux python3 python3-pip ninja-build
wget .0.0.tar.xz
tar xvJf qemu-7.0.0.tar.xz
cd qemu-7.0.0
./configure --target-list=riscv64-softmmu,riscv64-linux-user
make -j$(nproc)

更多推荐

手写操作系统篇:环境配置

本文发布于:2023-11-16 21:10:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1633093.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:操作系统   环境

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!