-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1bb3b5f
commit 1136b4b
Showing
13 changed files
with
137 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ arceos-fada.itb | |
.tmp_its | ||
!tools/rk3588/ramdisk.img | ||
linker_* | ||
crates/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# `macOS` 开发 `StarryOS` 环境部署说明 | ||
|
||
这是一个介绍如何在`macOS`系统下部署 `StarryOS` 开发环境的说明文档。此文档默认构建`x86_64`架构的`fat`磁盘镜像 | ||
|
||
## 提交人员 | ||
|
||
[李扬(技安)](https://github.com/LyonRust/Starry) | ||
|
||
## 操作步骤 | ||
|
||
以下所有的操作步骤都是在当前项目根目录中操作. | ||
|
||
1. 安装 `rust` | ||
|
||
```shell | ||
$ xcode-select --install | ||
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | ||
``` | ||
|
||
2. 安装 `qemu` | ||
|
||
```shell | ||
$ brew install qemu | ||
``` | ||
|
||
3. 安装 `cargo-binutils` | ||
|
||
```shell | ||
$ cargo install cargo-binutils | ||
$ rustup component add llvm-tools | ||
``` | ||
|
||
4. 创建磁盘文件 | ||
|
||
```shell | ||
$ dd if=/dev/zero of=disk.img bs=4M count=30 | ||
``` | ||
|
||
5. 给磁盘文件添加文件系统 | ||
|
||
```shell | ||
$ open disk.img | ||
``` | ||
|
||
这个时候会弹出一个是否初始化的弹窗, 点击初始化,会打开磁盘管理器 | ||
|
||
![初始化](./doc/macOS/001.jpg) | ||
|
||
6. 格式化磁盘 | ||
|
||
![002](./doc/macOS/002.png) | ||
6-1 选中磁盘, 点击格式化 | ||
|
||
![003](./doc/macOS/003.png) | ||
6-2 格式化选项选择 `MS-DOS [FAT]`格式 | ||
|
||
![004](./doc/macOS/004.png) | ||
6-3 点击格式化按钮 | ||
|
||
![005](./doc/macOS/005.png) | ||
6-4 格式化完成 | ||
|
||
![006](./doc/macOS/006.png) | ||
6-5 弹出磁盘 | ||
|
||
7. 后续的磁盘操作 | ||
|
||
```shell | ||
# 创建文件夹 | ||
$ mkdir -p mnt | ||
|
||
# 挂载磁盘 | ||
$ hdiutil attach disk.img -mountpoint mnt | ||
|
||
# 拷贝文件 | ||
$ cp -r ./testcases/$FILE/* ./mnt/ | ||
|
||
# 卸载磁盘 | ||
$ hdiutil detach mnt | ||
|
||
# 改变文件权限 | ||
$ chmod 777 disk.img | ||
``` | ||
|
||
8. 运行`StarryOS` | ||
|
||
```shell | ||
# 运行宏内核 | ||
$ make run | ||
|
||
# 运行 shell | ||
$ make A=apps/fs/shell AARCH=x86_64 FEATURES=fp_simd run | ||
``` | ||
|
||
## 运行效果 | ||
|
||
`macOS`系统下运行`StarryOS`效果 | ||
|
||
![007](./doc/macOS/007.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
APP= | ||
ROOT=$(realpath $(dirname $0))/../../ | ||
TIMEOUT=60s | ||
TIMEOUT=120s | ||
EXIT_STATUS=0 | ||
|
||
S_PASS=0 | ||
|