Clean-room RAUC A/B is defined but slot switching + rollback are not wired into the U-Boot env

Aperta
#46 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start with os/board/eightsleep/imx8mm-varsom/uboot-env.txt, especially the current mmcpart and bootcmd settings, and compare it with rauc-system.conf and the RAUC U-Boot backend variables named in the issue. Trace how BOOT_ORDER, BOOT_A_LEFT, BOOT_B_LEFT, bootcount, and altbootcmd should select the slot and handle failed boots. Done when an installed inactive slot is selected after OTA and a failed update rolls back automatically.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

os/board/eightsleep/imx8mm-varsom/uboot-env.txt hardcodes mmcpart=1 and its bootcmd (lines 43-47) always boots /dev/mmcblk1p1 (slot A); there is no BOOT_ORDER / BOOT_A_LEFT / BOOT_B_LEFT / bootcount / altbootcmd logic at all, and the header comment (lines 18-20) admits 'RAUC slot selection is NOT wired here yet'. Meanwhile rauc-system.conf declares two bootname=A/B slots and BR2_PACKAGE_RAUC=y is set. Consequence: rauc install writes the inactive slot and calls the u-boot backend (fw_setenv BOOT_ORDER/BOOT_x_LEFT), but U-Boot never reads those vars, so after a 'successful' OTA the device still boots the old slot, and a bad update has no auto-rollback. OS-level OTA via RAUC is non-functional until the env implements the boot-count state machine and selects mmcpart from it. (See also #47, the companion issue about RAUC slot device paths.)


Filed from a repo-wide code audit (working tree at bcad746).

Lingua principale
Rust
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GoogleBot42/podd

Tutte le issue di GoogleBot42/podd

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.