You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.en.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ This repository does one specific thing: on a modern host, it builds the two run
7
7
The repository no longer stores third-party runtime images. The repository now includes self-built runtime image snapshots under version control:
8
8
9
9
-`images/bootimage-0.12-hd`
10
-
-`images/hdc-0.12.img`
10
+
-`images/hdc-0.12.img.xz`
11
11
12
12
The same source-build workflow also produces local working images:
13
13
@@ -23,7 +23,7 @@ The build and runtime flow is:
23
23
- compile the kernel boot image
24
24
- compile the repo-owned minimal userland programs `/bin/sh` and `/bin/ls`
25
25
- build a Minix v1 root filesystem from repo manifests
26
-
- generate the repo-bundled images `images/bootimage-0.12-hd` and `images/hdc-0.12.img`
26
+
- generate the repo-bundled images `images/bootimage-0.12-hd` and `images/hdc-0.12.img.xz`
27
27
- boot QEMU
28
28
- reach `[/usr/root]#`
29
29
- run `ls`
@@ -113,7 +113,7 @@ Windows CMD:
113
113
scripts\run.cmd
114
114
```
115
115
116
-
This entrypoint uses the committed images in `images/` directly and does not rebuild first. On macOS / Ubuntu it keeps the current terminal-based interactive flow; on Windows it already uses a visible GUI window.
116
+
This entrypoint uses the committed snapshots in `images/` directly and does not rebuild first. The hard disk image is automatically unpacked to `out/repo-images/hdc-0.12.img` before launch. On macOS / Ubuntu it keeps the current terminal-based interactive flow; on Windows it already uses a visible GUI window.
117
117
118
118
### 4. Open A Visible QEMU Window And Interact Manually
119
119
@@ -161,7 +161,7 @@ Windows CMD:
161
161
scripts\build-and-run.cmd
162
162
```
163
163
164
-
This entrypoint forces a rebuild, syncs the new images into `images/`, and then starts QEMU.
164
+
This entrypoint forces a rebuild, syncs the new images into `images/`, stores the hard disk image as the compressed snapshot `images/hdc-0.12.img.xz`, and then starts QEMU.
165
165
166
166
If you want the flow to start from compilation and still end in a visible interactive QEMU window, run:
167
167
@@ -299,7 +299,8 @@ Important generated artifacts:
299
299
-`rebuild/out/images/bootimage-0.12-hd`
300
300
-`rebuild/out/images/hdc-0.12.img`
301
301
-`images/bootimage-0.12-hd`
302
-
-`images/hdc-0.12.img`
302
+
-`images/hdc-0.12.img.xz`
303
+
-`out/repo-images/hdc-0.12.img`
303
304
-`out/verify/screen.txt`
304
305
-`out/verify-userland/screen.txt`
305
306
-`out/run/boot.img`
@@ -316,7 +317,7 @@ The `rebuild/` directory owns the full source-to-image pipeline:
316
317
6. create directories, device nodes, and boot files from `rebuild/rootfs/manifest/`
317
318
7. build a Minix v1 root filesystem that Linux 0.12 can mount
318
319
8. assemble `hdc-0.12.img`
319
-
9. sync new images into the repo-managed `images/` directory when requested
320
+
9. sync the new boot image and compressed hard disk snapshot into the repo-managed `images/` directory when requested
320
321
10. boot QEMU, scrape VGA text, and inject keys to complete verification
321
322
322
323
This pipeline intentionally builds only the smallest system required by the repo. It does not try to recreate a full historical Linux 0.12 distribution.
@@ -340,7 +341,7 @@ The current standalone userland binaries are:
340
341
-`scripts/`
341
342
host-specific entry scripts
342
343
-`images/`
343
-
committed snapshots of the self-built runtime images
344
+
committed snapshots of the self-built runtime images, with the hard disk stored in compressed form
344
345
-`rebuild/driver.py`
345
346
source build, runtime, and verification entrypoint
346
347
-`rebuild/container/build_images.sh`
@@ -363,8 +364,8 @@ The current standalone userland binaries are:
363
364
## Runtime Notes
364
365
365
366
- The boot image is shorter than 1.44MB, so the driver pads it into a full floppy image before launch
366
-
-`scripts/run.*` uses the committed images in `images/` by default
367
-
-`scripts/run-window.*` uses the committed images in `images/` and opens a visible QEMU window
367
+
-`scripts/run.*` uses the committed snapshots in `images/` by default and unpacks the hard disk image into `out/repo-images/`
368
+
-`scripts/run-window.*` uses the committed snapshots in `images/`, unpacks the hard disk image into `out/repo-images/`, and opens a visible QEMU window
368
369
-`scripts/build-and-run.*` rebuilds from source and refreshes `images/`
369
370
-`scripts/build-and-run-window.*` rebuilds from source, refreshes `images/`, and opens a visible QEMU window
370
371
- QEMU always starts with `-snapshot`, so repeated runs do not mutate `rebuild/out/images/hdc-0.12.img`
Copy file name to clipboardExpand all lines: images/README.en.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,17 @@
2
2
3
3
[中文 README](./README.md)
4
4
5
-
This directory stores the repo-managed runtime image snapshots. They are not third-party downloads. They are built by this repository's own `rebuild/` pipeline and then synced here.
5
+
This directory stores the repo-managed runtime image snapshots. They are not third-party downloads. They are built by this repository's own `rebuild/` pipeline and then synced here. To keep the repository smaller, the hard disk image is stored as a compressed snapshot.
6
6
7
7
## Current Files
8
8
9
9
-`bootimage-0.12-hd`
10
10
Linux 0.12 boot image
11
-
-`hdc-0.12.img`
12
-
Linux 0.12 minimal system hard disk image
11
+
-`hdc-0.12.img.xz`
12
+
compressed snapshot of the Linux 0.12 minimal system hard disk image
13
13
14
14
## Usage
15
15
16
-
-`scripts/run.*` boots directly from the images here
17
-
-`scripts/run-window.*` boots directly from the images here and opens a visible window
18
-
-`scripts/build-and-run.*` and `scripts/build-and-run-window.*` rebuild first, then refresh the images here
16
+
-`scripts/run.*` boots from the snapshots here and unpacks the hard disk image into `out/repo-images/`
17
+
-`scripts/run-window.*` boots from the snapshots here, unpacks the hard disk image into `out/repo-images/`, and opens a visible window
18
+
-`scripts/build-and-run.*` and `scripts/build-and-run-window.*` rebuild first, then refresh the snapshots here
0 commit comments