Commit 158709d
committed
trim-distro-card.sh builds the staged SD card from the official distro at full capacity, restoring big self-streaming games to the staged-primary browser: the interim 512 MB card was too small for the Atic Atac Next remake (111 MB zip) and TX-1696, so the staged tbblue.mmc is now built FROM the official 24.11 card image — its full 1 GB capacity and its prepped system tree (TestPrepDistroCard_OfficialImage bakes in the welcome-pager delete + config.ini seed, since staged images mount untouched) with every per-title-licensed item removed (apps/demos/docs/extras/games/src; dot/machines/nextzxos/sys/home/tmp/TBBLUE.FW/TBBLUE.TBU/LICENSE.md/README.md stay). Two constraints shaped the build and are documented where they bit: (1) deleting the payload in place leaves freed clusters holding the deleted bytes (a ~50 MB zip instead of 2.6 MB) AND leaves free space fragmented — self-streaming games raw-stream their own .nex and die with the game's own "FILE FRAGMENTATION ERROR" screen (reproduced with Atic Atac) — so the script REBUILDS the filesystem fresh (mformat + mcopy) leaving one contiguous ~1 GB free run (verified at the FAT level: 386 allocated clusters in a single prefix run); (2) cloning the official geometry (32 KB clusters, partition at LBA 63) reproduces the known-gaps.md faithful-firmware-boot gap ("Error opening 'menu.ini/.def'") and failed all 8 firmware-path suite rows, so the rebuild uses the proven staged geometry (LBA 2048, type 0x0C, 4 KB clusters, 32 reserved) at distro capacity — cluster size or a dependent FAT parameter is now the gap's isolated suspect (offset was already excluded). Verified with the built card staged in apps/*/public/next/: headless faithful AND direct boots reach the NextZXOS menu; go test -count=1 ./cmd/zx_go/ fully green (the earlier "green" against the geometry-clone card was a stale test cache — forced reruns exposed the 8 failures); in the play app, plain boot to menu, Atic Atac to character select with its story scroller live, TX-1696 to its animated title via the Browser-launch route; distro ROMs byte-identical to the staged ones. The card itself stays gitignored as always (2.6 MB zip, ~8 MB resident in the sparse card; the old 512 MB card kept locally as tbblue-512mb-backup.mmc). Docs: emulator-core README (build + rationale), known-gaps (staged-card consequence on the firmware-geometry row), frontends.md resident-size, LICENSES.md route 2 names the builder script.
1 parent 309dd11 commit 158709d
5 files changed
Lines changed: 118 additions & 5 deletions
File tree
- packages/emulator-core
- scripts
- zx_go/docs/architecture
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
64 | 79 | | |
65 | 80 | | |
66 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
0 commit comments