Page MenuHomePhabricator

TF-A 2.8 on an MT7986 board
Open, Needs TriagePublic

Description

I'm running TF-A 2.8 on an MT7986 board, and I enabled TRUSTED_BOARD_BOOT using mbedtls-3.4.0. When I tried to load BL31, TF-A BL2 hung, and it appears that BL2 failed to obtain the correct oid in the function get_ext (drivers/auth/mbedtls/mbedtls_x509_parser.

Part of the oid is printed using %c in the 3.4.0 version of mbedtls_oid_get_numeric_string (https://github.com/Mbed-TLS/mbedtls/blob/v3.4.0/library/oid.c#L864).

However, it appears that ATF libc's snprintf doesn't support%c format, as mbedtls_oid_get_numeric_string returns an erroneous oid.

in get_ext oid_str dump

(mbedtls_oid_get_numeric_string) oid_str=%c.49.6.1.4.1.4128.2100.1
oid_str=1.3.6.1.4.1.4128.2100.1 (TRUSTED_FW_NVCOUNTER_OID)

I try to change snprintf format %c to %u in mbedtls_oid_get_numeric_string, TF-A boots successfully

elastic man

Thanks.

Event Timeline

stevenpalomi updated the task description. (Show Details)

Good day. For all those who are not yet aware, there is a mobile application available for the Melbet website - here's the link melbetma.app. Here you can find all the interesting information about the mobile app for this site. Learn how to place bets, explore the site, how to download the app, and the advantages of using the program. Also, there is a description of the Melbet bonus program. Read to stay informed.

Great troubleshooting! It’s fascinating how tweaking the snprintf format fixed the OID error and enabled TF-A to boot successfully. Improvements like this can also inspire problem-solving in other systems. Speaking of games, anyone exploring Pokerogue might find debugging strategies handy for crafting better decks in the Pokerogue Dex game. Technical precision there could boost performance, both in coding and gaming!

Play Whopper Clicker Online. No Pre-Roll Ads. Unblocked Whopper Clicker - Safe for School. No Downloads Required. No Pop-Ups. Nothing to Install https://whopperclicker.net

Peter202409 added a comment.EditedThu, Dec 19, 10:28 AM

CapybaraGo is an adventure RPG like no other. Play with cute and furry capybaras in a roguelike adventure, fight against various creatures, and improve their skills after every fight.You can experience it online at https://capybarago.app/