1
+ <!--
1
2
# Install Fuchsia on a Chromebook
3
+ -->
4
+ # 在 Chromebook 上安装 Fuchsia
2
5
6
+
7
+ <!--
3
8
## Supported Chromebooks
9
+ -->
10
+ ## 支持的 Chromebook
4
11
12
+ <!--
5
13
These Chromebooks are used regularly by developers and should be stable.
14
+ -->
15
+ 这些 Chromebook 开发者经常使用,应当是稳定支持的。
6
16
17
+ <!--
7
18
* Google Pixelbook Go (_atlas_)
19
+ -->
20
+ * Google Pixelbook Go(_ atlas_ )
8
21
22
+ <!--
9
23
### Formerly supported Chromebooks
24
+ -->
25
+ ### 以前支持的 Chromebook
10
26
27
+ <!--
11
28
These Chromebooks are supported on a best-effort basis, and are not regularly tested.
29
+ -->
30
+ 这些 Chromebook 受到“尽力而为”的支持,并且不会受到定期测试。
12
31
32
+ <!--
13
33
* Google Pixelbook (_eve_)
34
+ -->
35
+ * Google Pixelbook(_ eve_ )
14
36
37
+ <!--
15
38
### Other ChromeOS devices
39
+ -->
40
+ ### 其他 ChromeOS 设备
16
41
42
+ <!--
17
43
Other x86-based ChromeOS devices may or may not work. ARM-based ChromeOS devices will not work out of the box.
44
+ -->
45
+ 其他基于 x86 的 ChromeOS 设备可能工作,也可能不会工作。基于 ARM 的 ChromeOS 设备无法开箱即用。
18
46
47
+ <!--
19
48
## Prerequisites
49
+ -->
50
+ ## 前提条件
51
+
52
+ <!--
20
53
Ensure that you have a `chromebook-x64` build for Fuchsia.
54
+ -->
55
+ 请确保您为 Fuchsia 进行了 ` chromebook-x64 ` 构建。
21
56
57
+ <!--
22
58
1. Complete the [Download the Fuchsia source code][get-fuchsia-source]
23
59
guide.
24
60
2. As part of [Configure and Build Fuchsia][build-fuchsia], set your build
25
61
configuration to use the following Chromebook product:
62
+ -->
63
+ 1 . 完成[ 下载 Fuchsia 源代码] [ get-fuchsia-source ] 指南。
64
+ 2 . 请在[ 配置和构建 Fuchsia] [ build-fuchsia ] 中设置您的构建配置,以使用如下的 Chromebook 产品:
26
65
27
66
``` posix-terminal
28
67
fx set workstation_eng.chromebook-x64 --release
29
68
```
30
69
31
-
70
+ <!--
32
71
## Update ChromeOS
72
+ -->
73
+ ## 更新 ChromeOS
33
74
75
+ <!--
34
76
If your Chromebook has never been booted, it is best to boot it normally to check
35
77
for any critical updates, as follows:
78
+ -->
79
+ 如果您的 Chromebook 从未启动过,请您最好将其启动,以检查重要的更新,步骤如下:
36
80
81
+ <!--
37
82
1. Boot the Chromebook normally. Opening the lid usually powers on the device.
38
83
If this doesn't work, the power button is on the left side of the device, near
39
84
the front of the wrist rest.
85
+ -->
86
+ 1. 正常启动 Chromebook。通常,打开盖子会启动设备。如果没有启动,请使用位于设备左侧、靠近腕托位置的电源按钮。
87
+ <!--
40
88
2. Tap the "Let's go" button.
89
+ -->
90
+ 2. 点按“开始使用”(Let's go)按钮。
91
+ <!--
41
92
3. Connect to a wired or wireless network.
93
+ -->
94
+ 3. 连接到有线或无线网络。
95
+ <!--
42
96
4. Accept the terms to proceed to the update check step.
97
+ -->
98
+ 4. 接受条款,以进入更新检查步骤。
99
+ <!--
43
100
5. The device should check for updates, install any found.
101
+ -->
102
+ 5. 设备应当检查并安装找到的更新。
103
+
104
+ <!--
44
105
6. After rebooting from any updates, tap 'Browse as Guest' in the lower left
45
106
corner.
107
+ -->
108
+ 6. 更新重启之后,点按左下角的“以访客身份浏览”(Browse as Guest)。
109
+
110
+ <!--
46
111
7. From the browser UI, go into "Settings->About Chrome OS" or "Help->About Chrome
47
112
OS" and confirm the newly installed version.
113
+ -->
114
+ 7. 通过浏览器用户界面,前往“设置->关于 Chrome OS”(Settings->About Chrome OS)或“帮助->关于 Chrome OS”(Help->About Chrome
115
+ OS),确认新安装的版本。
48
116
117
+ <!--
49
118
## Put your device into developer mode
119
+ -->
120
+ ## 为您的设备开启开发者模式
50
121
122
+ <!--
51
123
Caution: This will erase any state stored locally on your Chromebook.
124
+ -->
125
+ 注意:这将会擦除保存在您 Chromebook 本地的任何状态。
52
126
127
+ <!--
53
128
1. Power off the Chromebook.
129
+ -->
130
+ 1. 关闭 Chromebook 电源。
131
+ <!--
54
132
2. Go into Recovery Mode.
55
133
Hold down Esc+Refresh (first and third buttons on the top row of the keyboard).
56
134
Then press the Power button (bottom left side of the device).
135
+ -->
136
+ 2. 进入恢复模式。同时按住 Esc+Refresh(键盘顶行的第一和第三个按钮)。接着按下电源按钮(设备的左下方)。
137
+ <!--
57
138
3. Start by disabling OS verification by pressing Ctrl+D. You should see "To turn OS verification OFF, press ENTER". Press Enter to confirm.
139
+ -->
140
+ 3. 按下 Ctrl+D,以在禁用 OS 验证的情况下启动。您应当看到“要关闭 OS 验证,请按下 ENTER。”(To turn OS verification OFF, press ENTER)
141
+ <!--
58
142
4. When your device reboots, you'll get confirmation that OS verification is OFF. Press Ctrl+D again to enter Developer Mode.
143
+ -->
144
+ 4. 当您的设备重启时,您将收到 OS 验证已经关闭的确认信息。再次按下 Ctrl+D 进入开发者模式(Developer Mode)。
145
+ <!--
59
146
5. Wait for the device to re-configure itself, which will take several minutes.
60
147
Initially it may not appear to be doing anything. Let the device sit for a
61
148
minute or two. You will hear two loud <BEEP>s early in the process. The
62
149
process is complete when you hear two more loud <BEEP>s.
150
+ -->
151
+ 5. 等待设备自行完成重新配置,可能需要几分钟时间。设备最初可能看起来没有任何反应。请允许设备静置一到两分钟。在此过程的前期,您可能听到两次响亮的“哔”声。该过程在您再次听到两次响亮的“哔”声时完成。
152
+ <!--
63
153
6. The device should reboot itself when the Developer Mode transition is
64
154
complete. You can now jump to Step #2 in the "Boot from USB" section.
155
+ -->
156
+ 6. 当开发者模式转换完成时,设备应当自行重启。现在您可以跳至“从 USB 启动”一节的步骤 #2 了。
65
157
158
+ <!--
66
159
## Boot from USB
160
+ -->
161
+ ## 从 USB 启动
67
162
163
+ <!--
68
164
1. Boot into ChromeOS.
165
+ -->
166
+ 1. 启动至 ChromeOS。
167
+ <!--
69
168
2. You should see a screen that says "OS verification is OFF" and approximately
70
169
30 seconds later the boot will continue. Wait for the Welcome or Login screen
71
170
to load. **Ignore** any link for "Enable debugging features".
171
+ -->
172
+ 2. 您应当看到显示“OS 验证已关闭”(OS verification is OFF)的画面,在大约 30 秒后,启动会继续。请等待欢迎或登录界面加载。请**忽略**任何用于“启用调试功能”(Enable debugging features)的链接。
173
+ <!--
72
174
3. Press Ctrl+Alt+Refresh/F3 to enter a command shell. If pressing this key
73
175
combination has no effect, try rebooting the Chromebook once more.
176
+ -->
177
+ 3. 按下 Ctrl+Alt+Refresh/F3 进入命令行界面。如果该组合键无效,请尝试再次重启 Chromebook。
178
+ <!--
74
179
4. Enter 'chronos' as the user with a blank password
180
+ -->
181
+ 4. 进入“chronos”用户,密码留空。
182
+ <!--
75
183
5. Enable USB booting by running `sudo crossystem dev_boot_usb=1`
184
+ -->
185
+ 5. 运行 `sudo crossystem dev_boot_usb=1`,启用 USB 启动。
186
+ <!--
76
187
6. _(optional)_ Default to USB booting by running `sudo crossystem dev_default_boot=usb`.
188
+ -->
189
+ 6. (**可选**)运行 `sudo crossystem dev_default_boot=usb`,将 USB 启动设为默认。
190
+ <!--
77
191
7. Plug the USB drive into the Chromebook.
192
+ -->
193
+ 7. 将 USB 驱动器插入 Chromebook。
194
+ <!--
78
195
8. Reboot by typing `sudo reboot`
196
+ -->
197
+ 8. 键入 `sudo reboot` 进行重启。
198
+ <!--
79
199
9. On the "OS verification is OFF" screen press Ctrl+U to bypass the timeout and
80
200
boot from USB immediately. (See [Tips and Tricks](#tips-and-tricks) for other
81
201
short circuit options)
202
+ -->
203
+ 9. 在“OS 验证已关闭”画面,按下 Ctrl+U 跳过超时等待并立即从 USB 启动。(要获取其他短路选项,请参阅[提示和技巧](#tips-and-tricks))
82
204
205
+ <!--
83
206
The USB drive is only needed for booting when you want to re-pave or otherwise
84
207
netboot the device.
208
+ -->
209
+ 仅当您想要重新铺设(re-pave)或另行从网络启动设备时,才需要 USB 驱动器进行引导。
85
210
211
+ <!--
86
212
If you didn't make USB booting the default (Step #6), you will need to press Ctrl+U
87
213
at the grey 'warning OS-not verified' screen to boot from USB when you power on your device.
214
+ -->
215
+ 如果您未将 USB 启动设为默认(步骤 #6),那么在开机时,您将需要在灰色的“警告 OS 未验证”(warning OS-not verified)画面按下 Ctrl+U,以从 USB 启动。
88
216
217
+ <!--
89
218
If the device tries to boot from USB, either because that is the default or you
90
219
pressed Ctrl+U, and the device fails to boot from USB you'll hear a fairly loud <BEEP>.
220
+ -->
221
+ 如果设备试图从 USB 启动(可能是因为您将其设为了默认,或按下了 Ctrl+U)失败,那么您将听到一次相当响亮的“哔”声。
91
222
223
+ <!--
92
224
Note that ChromeOS bootloader USB enumeration during boot has been observed to be slow. If you're
93
225
having trouble booting from USB, it may be helpful to remove other USB devices
94
226
until the device is through the bootloader and also avoid using a USB hub.
227
+ -->
228
+ 注意,已经观察到启动过程中 ChromeOS 引导加载程序 USB 枚举速度很慢。如果您在从 USB 启动时遇到问题,那么在设备通过引导加载程序前,移除其他 USB 设备可能会有所帮助;另外,也请避免使用 USB 集线器。
95
229
230
+ <!--
96
231
## Tips and Tricks {#tips-and-tricks}
232
+ -->
233
+ ## 提示和技巧 {#tips-and-tricks}
97
234
235
+ <!--
98
236
By default the ChromeOS bootloader has a long timeout to allow you to press
99
237
buttons. To shortcut this you can press Ctrl+D or Ctrl+U when on the grey screen
100
238
that warns that the OS will not be verified. Ctrl+D will cause the device to
101
239
skip the timeout and boot from its default source. Ctrl+U will skip the timeout
102
240
and boot the device from USB.
241
+ -->
242
+ 默认情况下,ChromeOS 引导加载程序的超时等待时间很长,以便您能够按下按键。要跳过此过程,您可以在警告 OS 无法验证的灰色画面中按下 Ctrl+D 或 Ctrl+U。Ctrl+D 将使设备跳过超时等待,并从其默认源启动。Ctrl+U将跳过超时等待,并从 USB 启动设备。
103
243
244
+ <!--
104
245
### Configuring boot source from Fuchsia
246
+ -->
247
+ ### 配置 Fuchsia 引导源
105
248
249
+ <!--
106
250
Fuchsia has an equivalent to `crossystem` called `cros_nvtool`.
107
251
You can run `cros_nvtool set dev_boot_default <usb|disk>` to modify the default boot source of
108
252
the system to USB or disk, respectively.
253
+ -->
254
+ Fuchsia 具有称为 `cros_nvtool` 的 `crossystem` 等价物。您可以运行 `cros_nvtool set dev_boot_default <usb|disk>` 将系统的默认引导源分别修改为 USB 或硬盘。
109
255
256
+ <!--
110
257
### Going back to ChromeOS
258
+ -->
259
+ ### 返回 ChromeOS
111
260
261
+ <!--
112
262
To go back to ChromeOS you must modify the priority of the Fuchsia kernel
113
263
partition to be lower than that of at least one of the two ChromeOS kernel
114
264
partitions.
265
+ -->
266
+ 要返回 ChromeOS,您必须修改 Fuchsia 内核分区的优先级低于两个 ChromeOS 内核分区中的至少一个。
115
267
268
+ <!--
116
269
1. Press Alt+Esc to get to a virtual console if not already on one
117
270
2. Press Alt+Fullscreen to get to a terminal emulator on Fuchsia
118
271
3. Find the disk that contains the KERN-A, KERN-B, and KERN-C partitions with
119
272
the `lsblk` command. Below this is device 000, note how the device path of the
120
273
kernel partitions is an extension of that device.
274
+ -->
275
+ 1. 如果您未处于虚拟控制台中,请按下 Alt+Esc 进入其中
276
+ 1. 按下 Alt+Fullscreen 进入 Fuchsia 中的终端模拟器
277
+ 1. 使用 `lsblk` 命令查找含有 KERN-A、KERN-B 和 KERN-C 分区的硬盘。下例中为设备 000,请注意,内核分区的设备路径是其设备本身路径的扩展。
121
278
122
279
$ lsblk
123
280
ID SIZE TYPE LABEL FLAGS DEVICE
@@ -129,7 +286,10 @@ kernel partitions is an extension of that device.
129
286
005 4G cros rootfs ROOT-B /dev/sys/platform/pci/00:1e.4/pci-sdhci/sdhci/sdmmc/block/part-004/block
130
287
006 64M cros kernel KERN-C /dev/sys/platform/pci/00:1e.4/pci-sdhci/sdhci/sdmmc/block/part-005/block
131
288
007 4G cros rootfs ROOT-C /dev/sys/platform/pci/00:1e.4/pci-sdhci/sdhci/sdmmc/block/part-006/block
289
+ <!--
132
290
4. Use the `gpt` command to look at the device's (eg. 000) partition map.
291
+ -->
292
+ 4. 使用 `gpt` 命令查看设备(例,000)的分区表。
133
293
134
294
$ gpt dump /dev/class/block/000
135
295
blocksize=0x200 blocks=488554496
@@ -170,25 +330,40 @@ kernel partitions is an extension of that device.
170
330
id: 769444A7-6E13-D74D-B583-C3A9CF0DE307
171
331
type: 3CB8E202-3B7E-47DD-8A3C-7FF2A13CFCEC
172
332
flags: 0x0000000000000000
333
+ <!--
173
334
5. Note that KERN-A and KERN-B typically have ChromeOS kernels. The
174
335
Zircon kernel appears as KERN-C as in the example above, or as
175
336
ZIRCON-A instead in certain setups.
337
+ -->
338
+ 5. 注意,KERN-A 和 KERN-B 通常具有 ChromeOS 内核。Zircon 内核在上例中显示为 KERN-C,或者在某些设置中为 ZIRCON-A。
176
339
340
+ <!--
177
341
To go to ChromeOS, lower the priority of KERN-C (or ZIRCON-A)
178
342
by referencing the **partition** index on the **disk** that has
179
343
that partition. E.g.:
344
+ -->
345
+ 要进入 ChromeOS,请通过引用**硬盘**上**分区**的索引,来降低 KERN-C(或 ZIRCON-A)的优先级。例如:
180
346
181
347
$ gpt edit_cros 5 -P 0 /dev/class/block/000
182
348
349
+ <!--
183
350
6. Reboot.
351
+ -->
352
+ 6. 重启。
184
353
354
+ <!--
185
355
7. When the ChromeOS bootloader appears, press Space to re-enable
186
356
OS Verification. Your device will reboot. This time, it will display
187
357
a message with "Your system is repairing itself. Please wait". This operation
188
358
will take around 5 minutes, after which the Chromebook will reboot one final
189
359
time. The device will reboot to the initial setup screen.
360
+ -->
361
+ 7. 当 ChromeOS 引导加载程序出现时,请按下空格键重新启用 OS 验证。您的设备将会重启。这一次,消息会显示“您的系统正在进行自我修复。请稍候。”(Your system is repairing itself. Please wait.)该操作将大约需要 5 分钟,之后 Chromebook 将最后重启一次。设备将重启至初始设置界面。
190
362
363
+ <!--
191
364
To go back to the Fuchsia kernel, just re-pave the device.
365
+ -->
366
+ 要返回 Fuchsia 内核,请重新铺设设备。
192
367
193
368
[get-fuchsia-source]: /get-started/get_fuchsia_source.md
194
369
[build-fuchsia]: /get-started/build_fuchsia.md
0 commit comments