Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问如何在 Mac m 系列芯片的笔记本上配置环境呢? #213

Open
Ucag opened this issue Jun 16, 2024 · 1 comment
Open

请问如何在 Mac m 系列芯片的笔记本上配置环境呢? #213

Ucag opened this issue Jun 16, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Ucag
Copy link

Ucag commented Jun 16, 2024

我想在 macbook pro m2 上部署开发环境, 不过我看了很多环境准备文档都是针对 x86_64 的, 请问有可能在 m 系列上部署一套开发环境吗?

@wyfcyx wyfcyx added the enhancement New feature or request label Aug 19, 2024
@Angus-Liu
Copy link

Mac(m 系列芯片) 教程整体参考:http://rcore-os.cn/rCore-Tutorial-Book-v3/chapter0/5setup-devel-env.html 其中改动地方如下:

  1. 安装 Rust:

    • 访问官网获取最新的安装方式:https://www.rust-lang.org/zh-CN/tools/install

    • 切换到 nightly 版本

      rustup install nightly
      rustup default nightly
    • 安装相关软件包

      rustup target add riscv64gc-unknown-none-elf
      cargo install cargo-binutils --version=0.3.3
      rustup component add llvm-tools-preview
      rustup component add rust-src
  2. 安装 qemu:

    • 安装(不需要教程中的设置):brew install qemu
    • 查看版本:qemu-system-riscv64 —version (没有 qemu-riscv64 不影响,Mac 不支持用户模式模拟)
  3. 安装终端服用工具 Tmux:brew install tmux

  4. 运行项目:

    git clone https://github.com/rcore-os/rCore-Tutorial-v3.git
    cd rCore-Tutorial-v3/os
    make run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants