DFU::isUbootDfuRunning(uint32_t msTimeout) - does not work for STM32MP1 devices with closed_device bit set in OTP
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 65/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- cpp
- Ambito
- embedded-iot
Direzione di ricerca
Start by locating DFU::isUbootDfuRunning(uint32_t msTimeout) and inspect how it parses the DFU listing with the OTP regex. Reproduce the listing on an STM32MP1 device with the closed_device OTP bit set, then verify detection using the exposed @FlashLayout entry or another reliable DFU indicator. Confirm that detection still works for unlocked devices.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
After a long debugging session I have tracked down the cause for an issue that prevented me from flashing my STM32MP1 devices via fastboot using the STM32PRG-TOOLBOX. My devices have the OTP bit closed_device set to '1'. It seems this causes the device to restrict OTP exposure via DFU.
Routine DFU::isUbootDfuRunning(uint32_t msTimeout) checks for the regex std::regex pattern("name=(\"@OTP([^\\\"]*)\")"); to identify whether U-Boot has enabled the devices DFU after programming TF-A + FIP. However the locked devices do not expose the OTP here. For example my locked devices only expose the following:
Found DFU: [0483:df11] ver=0200, devnum=123, cfg=1, intf=0, path="1-1", alt=2, name="@PMIC/0xf4/1*8Be", serial="002300433231510331333437"
Found DFU: [0483:df11] ver=0200, devnum=123, cfg=1, intf=0, path="1-1", alt=1, name="@virtual/0xf1/1*512Be", serial="002300433231510331333437"
Found DFU: [0483:df11] ver=0200, devnum=123, cfg=1, intf=0, path="1-1", alt=0, name="@FlashLayout/0x00/1*256Ke", serial="002300433231510331333437"
As you can see, there is no OTP entry, that is only available for unlocked devices.
I suggest to change the routine to scan for something else e.g. std::regex pattern("name=(\"@FlashLayout([^\\\"]*)\")"); regex or use some entirely other means to determine whether the DFU is available.
- Lingua principale
- C++
- Stelle
- 13
- Fork
- 3
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
backlog
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
EchoTools/nevr-runtime#2956 ·
I maintainer di solito rispondono entro 1 giorno
-
tools/*_probe.py crash onApertagood first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
vishwagw/Sky-Sim-drone-simulator-3.0#46 ·
I maintainer di solito rispondono entro 1 giorno
-
Broadcast FM: RDS controls clipped when windows are stacked in columnsForse già presa @dpc00 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
carla-simulator/carla#10411 ·
I maintainer di solito rispondono entro 1 giorno