Skip to content

Catalogue: MSC313E, MSC316DC and MSC316DM install on OpenIPC/u-boot's bootloaders - #629

Merged
openipc-ai merged 1 commit into
masterfrom
catalogue-msc313e
Nov 27, 2026
Merged

openipc-ai merged 1 commit into
masterfrom
catalogue-msc313e

Conversation

@openipc-ai

Copy link
Copy Markdown
Collaborator

OpenIPC/u-boot's build-sigmastar.yml publishes u-boot-msc313e-nor.bin,
u-boot-msc316dc-nor.bin and u-boot-msc316dm-nor.bin to firmware's
latest (OpenIPC/u-boot#210), and firmware builds msc313e_lite,
msc316dc_lite and msc316dm_lite since OpenIPC/firmware#2969; the
2026-11-27 nightly published openipc.-nor-lite.tgz for each. The
three pages pointed at a -universal bootloader that was never published.

Their 3.18 kernel cannot split firmware.bin, so they install the plain
lite package on fixed slots (no nor_split): uImage at 0x50000, rootfs at
0x250000, on 8 MB only, as the builds' size reports say.

  • Fixtures: the six assets with their published sizes and digests, and
    the three size reports; availability is wizard.
  • The msc313e NAND reference image goes: the builder refuses NAND on a
    NOR-only bootloader, and firmware publishes no infinity3 NAND package.
  • The -universal macro test uses T40A, which still has one.
  • Golden regenerated: exactly the three documents changed.

… bootloaders

OpenIPC/u-boot's build-sigmastar.yml publishes u-boot-msc313e-nor.bin,
u-boot-msc316dc-nor.bin and u-boot-msc316dm-nor.bin to firmware's
`latest` (OpenIPC/u-boot#210), and firmware builds msc313e_lite,
msc316dc_lite and msc316dm_lite since OpenIPC/firmware#2969; the
2026-11-27 nightly published openipc.<soc>-nor-lite.tgz for each. The
three pages pointed at a -universal bootloader that was never published.

Their 3.18 kernel cannot split firmware.bin, so they install the plain
lite package on fixed slots (no nor_split): uImage at 0x50000, rootfs at
0x250000, on 8 MB only, as the builds' size reports say.

- Fixtures: the six assets with their published sizes and digests, and
  the three size reports; availability is `wizard`.
- The msc313e NAND reference image goes: the builder refuses NAND on a
  NOR-only bootloader, and firmware publishes no infinity3 NAND package.
- The -universal macro test uses T40A, which still has one.
- Golden regenerated: exactly the three documents changed.
@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Enable NOR installation for MSC313E, MSC316DC, and MSC316DM

🐞 Bug fix ✨ Enhancement 🧪 Tests 🕐 20-40 Minutes

Grey Divider

AI Description

• Replace missing bootloader references with published NOR builds for three MStar SoCs.
• Enable wizard installation using published Lite firmware and fixed NOR slots.
• Refresh fixtures and golden tests; remove an unsupported MSC313E NAND reference image.
Merge Risk 🟢 Low

Blast radius 🟢 Low 💥 1 capability

  • 1 affected end-to-end capability after fault-specific containment; implementation boundaries do not widen its functional scope.
  • The catalogue bootloader names, runtime availability classification, hardware availability display, wizard document, and image generation all serve one bounded outcome: installing firmware on the three MStar SoCs.
Sources

data/catalogue/mstar.yml[19-20]

  uboot_filename: u-boot-msc313e-nor.bin
  linux_filename: openipc.msc313e-nor-lite.tgz

frontend/apps/site/src/data/availability.json[80-82]

    "msc313e": "wizard",
    "msc316dc": "wizard",
    "msc316dm": "wizard",
Behavioral complexity 🟢 Low 🧩 Straightforward

  • Before, three catalogue entries named no usable NOR bootloader and the baked availability was none.
  • After, each names a NOR asset and is marked wizard.
  • The changed correctness condition is that each name must match a published release asset; existing availability and image-resolution logic enforces that condition.
  • This is a direct data/configuration mapping using established infrastructure, not a new algorithm, state machine, or concurrency protocol.
Sources

data/catalogue/mstar.yml[19-20]

  uboot_filename: u-boot-msc313e-nor.bin
  linux_filename: openipc.msc313e-nor-lite.tgz

frontend/apps/site/src/data/availability.json[80-82]

    "msc313e": "wizard",
    "msc316dc": "wizard",
    "msc316dm": "wizard",
Potential damage 🟡 Medium 🩹 Temporary loss

  • If this capability regresses, affected users may lose the installation guide or generated image for these three SoCs.
  • The source shows no persistent application state or external transaction created by this change.
  • A mismatched bootloader asset could also cause service refusal, but a device-level failure is not established by the changed source.
  • Reverting the catalogue and baked availability change stops the new behavior and restores the previous unavailable presentation.
  • No data repair or external compensation is indicated, provided no invalid image was already flashed.
Sources

data/catalogue/mstar.yml[19-20]

  uboot_filename: u-boot-msc313e-nor.bin
  linux_filename: openipc.msc313e-nor-lite.tgz

frontend/apps/site/src/data/availability.json[80-82]

    "msc313e": "wizard",
    "msc316dc": "wizard",
    "msc316dm": "wizard",
Assessed commit 98b7d33
Diagram

graph TD
  CAT["MStar catalogue"] --> DOC(["Wizard exporter"]) --> UI["Install form"] --> BUILDER(["Image builder"]) --> IMAGE["NOR image"]
  INDEX["Release index"] --> DOC
  CAT --> AV(["Availability"]) --> UI
  INDEX --> AV
  CAT --> BUILDER
  INDEX --> BUILDER
Loading
High-Level Assessment

Using the existing catalogue, release index, and fixed-slot image path is the appropriate approach for the published assets. A split-firmware path is unsuitable for these 3.18 kernels, and retaining NAND image coverage would imply support the NOR-only bootloaders cannot provide.

Files changed (9) +68 / -33

Enhancement (1) +3 / -3
availability.jsonExpose the three SoCs in the wizard availability snapshot +3/-3

Expose the three SoCs in the wizard availability snapshot

• Changes MSC313E, MSC316DC, and MSC316DM from 'none' to 'wizard' in the site's availability data.

frontend/apps/site/src/data/availability.json

Bug fix (1) +3 / -3
mstar.ymlName the three published MStar NOR bootloaders +3/-3

Name the three published MStar NOR bootloaders

• Replaces MSC313E's unpublished universal bootloader and fills the empty MSC316DC and MSC316DM bootloader fields with their published NOR filenames. This gives the catalogue valid assets for wizard and image generation.

data/catalogue/mstar.yml

Tests (7) +62 / -27
wizard-open.test.tsKeep the no-firmware test comment accurate +1/-1

Keep the no-firmware test comment accurate

• Changes the example of a SoC without a usable wizard from newly supported MSC313E to SSC323. Test behavior is unchanged.

frontend/apps/site/src/lib/wizard-open.test.ts

availability.jsonRefresh expected firmware availability +1/-1

Refresh expected firmware availability

• Records 'wizard' availability for all three MStar SoCs in the firmware test fixture.

service/internal/firmware/testdata/availability.json

boards.jsonAlign board fixtures with published NOR bootloaders +3/-3

Align board fixtures with published NOR bootloaders

• Updates the three board records to expect their corresponding '-nor.bin' bootloaders.

service/internal/firmware/testdata/boards.json

manifests.jsonRemove the unsupported MSC313E NAND image reference +0/-16

Remove the unsupported MSC313E NAND image reference

• Drops the MSC313E NAND Lite manifest because its NOR-only bootloader cannot be used to build that NAND image.

service/internal/firmware/testdata/manifests.json

release-index.jsonFixture published MStar assets and build sizes +51/-0

Fixture published MStar assets and build sizes

• Adds the three NOR bootloaders and three Lite firmware packages with sizes, digests, timestamps, and release identifiers. Adds their 8 MB build-size reports for fit checks.

service/internal/firmware/testdata/release-index.json

documents.jsonRegenerate affected wizard document goldens +4/-4

Regenerate affected wizard document goldens

• Updates only the three MStar document hashes and the aggregate combination count to reflect their new install options and removal of unsupported NAND combinations.

service/internal/wizard/testdata/documents.json

wizard_test.goPreserve universal-bootloader macro coverage with T40A +2/-2

Preserve universal-bootloader macro coverage with T40A

• Moves the legacy universal-bootloader assertion from MSC313E to T40A and checks T40A's NOR macro names. This keeps the behavior covered after MSC313E switches to a NOR-specific bootloader.

service/internal/wizard/wizard_test.go

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can commit Qodo's fix in one click with committable suggestions (GitHub & GitLab)

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@openipc-ai
openipc-ai merged commit 33dea4f into master Nov 27, 2026
4 checks passed
@openipc-ai
openipc-ai deleted the catalogue-msc313e branch November 27, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant