Skip to content

Commit 71388fd

Browse files
fix: typos and clear declearations of changed docs (#56)
1 parent dd08aa5 commit 71388fd

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

document/tutorial/rootfs/02_busybox_compile.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -284,22 +284,23 @@ make -C third_party/busybox \
284284

285285
### 手动验证
286286

287-
你也可以手动验证:
288-
287+
你也可以手动验证, 如果使用release-all.sh编译的朋友,请检查如下路径:
289288
```bash
290289
# 检查文件类型
291-
$ file out/busybox/busybox
292-
out/busybox/busybox: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, no section header info
290+
$ file out/release-latest/busybox/busybox
291+
out/release-latest/busybox/busybox: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, no section header info
293292

294293
# 检查大小
295-
$ ls -lh out/busybox/busybox
296-
-rwxr-xr-x 1 user user 1.0M Mar 15 10:30 out/busybox/busybox
294+
$ ls -lh out/release-latest/busybox/busybox
295+
-rwxr-xr-x 1 user user 1.0M Mar 15 10:30 out/release-latest/busybox/busybox
297296

298297
# 检查架构
299-
$ readelf -h out/busybox/busybox | grep Machine
298+
$ readelf -h out/release-latest/busybox/busybox | grep Machine
300299
Machine: ARM
301300
```
302301

302+
当然,如果是自己独立调用单独组件构建的朋友,可以自行查看打印的日志的输出位置,使用file或者是readelf指令进行查看。
303+
303304
> [!经验] 1MB 算大吗?
304305
> BusyBox 的典型大小在 1-2MB 之间(静态链接)。如果你启用更多功能,可能达到 2-3MB。如果超过 5MB,可能需要检查是否不小心启用了某些大型功能(如 full vi)。
305306

0 commit comments

Comments
 (0)