DFU::isUbootDfuRunning(uint32_t msTimeout) - does not work for STM32MP1 devices with closed_device bit set in OTP
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 65/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- cpp
- Lĩnh vực
- embedded-iot
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- C++
- Star
- 13
- Fork
- 3
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
backlog
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
EchoTools/nevr-runtime#2956 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
tools/*_probe.py crash onĐang mởgood first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
vishwagw/Sky-Sim-drone-simulator-3.0#46 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Broadcast FM: RDS controls clipped when windows are stacked in columnsCó thể đã có người làm @dpc00 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
ue58-dev: BoundingBoxCalculator logs Error 'has no SM assigned to the ISM' on every map loadĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
carla-simulator/carla#10411 ·
Maintainer thường phản hồi trong vòng 1 ngày