Repository navigation
Improvement: Modwerk's own core for the Model:Cycles base - #2394
Conversation
The Model:Cycles core is now Modwerk's own source (GPL-3.0-or-later), at the paths of the core-mc 0.3 files it replaces, written from a behavioural spec: the recipe (core-mc/mod.json), the 25 firmware locations by name (fw.s), ev_boot (boot.s, core_boot_init) and their C and assembly declarations (include/model-cycles/core.h, core.inc). The core's five stock sites moved to base.json's common, named by length and SHA-256, so the recipe holds no stock bytes; the package keeps today's site order. Model:Cycles 1.13: 485c526a -> c8e9966a, recorded with machine:base --write; a second run matches. Sections (.boot 94, .run 38250, .bss 115796) and 8 sites are unchanged; exports, imports, sites, collections, contributions and every fw_* value equal 485c526a's. The old packages stay in the catalogue. test_machine_base.py: the core-mc 0.3 source test pinned files that are no longer imported, so it becomes a test that every file of that import is now Modwerk's own (OWN_CORE beside HOOK_BUS, GPL-3.0 SPDX, hashes differ from the record, which stays as history). The hooks test reads the core sites from base.json common instead of the recipe's stock hex. A new test checks every fw_* value of the bound package against core-mc 0.3, which keeps (names only) does not. Every other file stays pinned. Co-Authored-By: Claude Opus 5.5 <[email protected]>
One dated record names the package of the previous commit (Model:Cycles c8e9966a). Its licence follows the new core's recipe: GPL-3.0-or-later. The older packages and their records stay, so older evidence still relinks. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Its five files now carry GPL-2.0-or-later like the hook bus they sit on, and the base is re-recorded on the relicensed bus: dda53ffd (code as c8e9966a; only licence lines differ). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
6e6af71 to
c7ee00a
Compare
|
One PR per device now. This PR targets |
|
The own-core Model:Cycles base runs on my unit. Release Build and resultsPR head
Test modules are the ones from the 25 November round, unchanged (built against the old core), so they also show the exports still line up.
Observation, not reproduced: after the second RAM boot in a row (OC0D running from RAM → OC0L) the Mac listed no MIDI port at all until the USB cable was replugged; the unit itself ran (TRIG 16 blinking, pattern fine) and answered Software: |
machine.json keeps the own-core summary and main's deviceMaintainer; the base test keeps OWN_CORE and main's RYTM_CORE. The base still rebuilds as dda53ffd. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…model-cycles-next Co-Authored-By: Claude Opus 5.5 <[email protected]>
repeat98#2394) into base/model-cycles-machine-table-core The Model:Cycles sources are unchanged by the merge: the base still builds as 7b0c96d9 (94 bytes .boot, 47,540 .run, 125,060 .bss, 126 sites), matching base-binding.json. Co-Authored-By: Claude Opus 5.5 <[email protected]>
main's Model:Cycles core (#2394) and this branch each defined a module-level OWN_CORE in sdk/tests/test_machine_base.py; the merge kept both, so the second replaced the first. The sets are now DT2_CORE and MC_CORE, each test checks its own, and still_imported checks both. Co-Authored-By: Claude Opus 5.5 <[email protected]>
What this is: the Model:Cycles base's core parts (
core-mc/mod.json,fw.s,boot.s) and its public header (include/model-cycles/core.h,core.inc) are now Modwerk's own source (GPL-2.0-or-later, so it links beside GPL-2.0-only modules), at the same paths. The hook bus it builds on is onmainsince the Rytm PR (#2399);mainis merged in and the base still rebuilds asdda53ffd.dda53ffd(wase7958028on the hook bus draft) and passes itskeepscheck against the release it started from. Its sites, exports, imports, collections and section sizes equal the previous base's. All 25 firmware addresses equal the earlier core's, pinned by a new test.core.hcompiles for the host and the target.test_machine_base.py, the elekloader and elektron tests,modules:checkandelekloader:checkpass.dda53ffdflashed and the development base from the same head RAM-booted, at PR headc7ee00ad0with the stock OS 1.13. Boot,ev_boot, development RAM boot, tick, draw, keys, encoders, key LEDs, the USB link, LOG, audio load, and runtime trials with keep and undo all pass; the stock OS restores the unit. Nothing is broken. One USB re-enumeration hiccup after two RAM boots in a row did not repeat. Not run: Windows, DIN MIDI.base/model-cycles-nextonce this is inmainand merged there.Tested on a unit: base dda53ffd, Model:Cycles (durchgemacht's unit, stock OS 1.13), release flashed and dev base RAM-booted: boot, ev_boot, tick, draw, keys, encoders, key LEDs, USB link, LOG, load, trials with keep and undo.
Edge cases
core_boot_initnpm run machine:base -- model-cycles --stock <OS>(keeps check) and thefw_*value testev_bootand the development RAM bootcore_boot_initis new codefreeze, twoev_drawmodules,grab, anev_key_ledsmodident,log,load, try/keep/undo, 60 s trial, Ctrl-C trialDetails
base.jsoncommon.sites(address, length and SHA-256, in the same order), so the recipe has no stock hex.test_machine_base.py: the "unchanged import" test for this core became a test that it is Modwerk's own source, and the hooks test reads the sites frombase.json. Every other imported file stays pinned.include/mc/core.hheader is still GPL-2.0-or-later and was left as is.mainmerged in (592bb8748):machine.jsonkeeps this summary and main'sdeviceMaintainer;test_machine_base.pykeepsOWN_COREbeside main'sRYTM_CORE.npm run machine:base -- model-cycles --stock <OS 1.13>still givesdda53ffdwith main's builder.Guides: nothing; they were updated with the change.
🤖 Generated with Claude Code