Skip to content

feat(api): attach companion files from file_companion - #65

Merged
SuperKali merged 1 commit into
armbian:mainfrom
SuperKali:feat/generic-companion-files
Nov 2, 2026
Merged

SuperKali merged 1 commit into
armbian:mainfrom
SuperKali:feat/generic-companion-files

Conversation

@SuperKali

Copy link
Copy Markdown
Member

Description

The API recognised companion files by filename and only knew fip.img, lk.bin and boot_recovery. Everything else became its own download row: the BPI-R3 Mini BL2 as an SD image and its FIP as a "Rootfs tarball", both downloading the full image.

The companion type now comes from the new file_companion field in armbian-images.json, and the API only keeps the labels. Unknown types still show, labelled with their raw name. Burn images join the formats so JetHub keeps its burn row.

Merge after armbian/armbian.github.io#530 is live. Without file_companion the Nio 12L FIP and LK and the dg-svr-865-tiny recovery files drop off the page or show up as separate rows.

@igorpecovnik for the sync, the merge order is armbian/armbian-router#44, then armbian/armbian.github.io#530, then #65.

How Has This Been Tested?

Ran the normalizer on the current index with the old code and on one built with the new generator with the new code:

before  Bananapir3mini ..._minimal.img.xz      [sd]
        Bananapir3mini ..._minimal.bl2.img.xz  [sd]
        Bananapir3mini ..._minimal.fip.bin.xz  [rootfs]
after   Bananapir3mini ..._minimal.img.xz      [sd]  BL2 preloader, ARM Trusted Firmware (FIP)

BPI-R4, GL-MT2500, Anbernic RG Rotate and MaaXBoard 8ULP change the same way. Every other board, Nio 12L included, gives the same output as before.

  • Normalizer output compared on the current and the new index
  • tsc --noEmit and prettier on the API
  • Checked on a running site

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • My changes generate no new warnings

Read the companion type the index now publishes instead of matching
fip.img, lk.bin and boot_recovery filenames, so BL2, FIP, SPL and
flash.bin files show under their image. Burn images stay primaries.
@coderabbitai

coderabbitai Bot commented Nov 2, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f2154829-4d94-4fa2-a48d-fc95713295e9
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@SuperKali
SuperKali merged commit df17b7a into armbian:main Nov 2, 2026
2 checks passed
@SuperKali
SuperKali deleted the feat/generic-companion-files branch November 2, 2026 14:44
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.

2 participants