mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-06 12:54:29 +01:00
The encrypted app region (app_area_head block + cfg_tool.bin + the cfg directory) now ends 2 B short of 0x93000, inside flash.bin [0, 0x93000) that every Felucca/JIANT loader already writes whole (it was 0xFF padding). The loader binary is byte-identical to 0.9.12's; the package is the same size. fm1pkg_make asserts the region stays inside flash.bin and that no 4K-256 slot of the image reads as an update record; build.py checks app.ld's XIP LENGTH against APP_SLOT. ldr_test decrypts the installed app area (app.bin slot, CRCs, region end, 0xFF after it) and checks [0x93000, 1 MiB) byte-identical but the two record sectors; run_tests installs an app that fills the whole slot with today's loader, and checks the packager refuses one byte more. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh