Skip to content

Commit

Permalink
Add bootloader v0.9 note to Chinese translation
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-opp committed Apr 10, 2024
1 parent 54010c3 commit 9b0a0a3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,8 @@ pub extern "C" fn _start() -> ! {
bootloader = "0.9"
```

** 注意:** 当前环境仅兼容 `bootloader v0.9` 版本。较新的版本需考虑使用其他的构建工具,否则会导致构建出现未知错误。

只添加引导程序为依赖项,并不足以创建一个可引导的磁盘映像;我们还需要内核编译完成之后,将内核和引导程序组合在一起。然而,截至目前,原生的 cargo 并不支持在编译完成后添加其它步骤(详见[这个 issue](https://github.com/rust-lang/cargo/issues/545))。

为了解决这个问题,我们建议使用 `bootimage` 工具——它将会在内核编译完毕后,将它和引导程序组合在一起,最终创建一个能够引导的磁盘映像。我们可以使用下面的命令来安装这款工具:
Expand Down

0 comments on commit 9b0a0a3

Please sign in to comment.