MCU-PLUS-SDK-AM243X: Image authentication using TISCI outside of SBL

Part Number: MCU-PLUS-SDK-AM243X


Tool/software:

Greetings,
we are currently implementing software update functionality for our project, and we were hoping to leverage bootloader authentication for verifying the received image outside of SBL.

Brief context: On AM243X-LP with AM243x MCU+ SDK 11.01.00 and SysCfg 1.22 we have an application running on R5F0-0 core that is hosting a REST API server (our own implementation) using lwIP stack on ICSS. We receive the image as TCP segments in one FreeRTOS task and using FreeRTOS queue send it to another task that is writing the image to flash memory. So far so good. We are currently GP but will eventually be targeting HS-SE. Our SBL is largely based on sbl_ospi_multi_partition example.

Once we receive the image but before we "commit" to the update, we were hoping we could use Bootloader_socAuthImage to verify the image x.509 certificate. By "committing" to update I mean somehow telling our custom SBL where the new image is (this mechanism is still in progress) and restarting the device. Our reasoning for this step is two-fold: a) image integrity - ensure the image arrived intact over the wire (some checksum mechanism would suffice here) and more importantly b) validate the certificate to ensure that when the device is restarted, the image won't be rejected by SBL and therefore "brick" the device or at least lead to some back-up boot mechanism immediately.

The code looks like this:

// Once I receive the first update chunk in my FreeRTOS task that stores the image in Flash memory,
// I can find out the x509 certificate length and store it
// Chunk data is: char chunkData[1460]

mFlashOffset = 0x200000u; // Hardcoded destination for now

mX509CertificateLength = Bootloader_getX509CertLen(reinterpret_cast<uint8_t*>(mpChunk->chunkData)); // 1654
if(mX509CertificateLength <= 0x100 || mX509CertificateLength > 0x800)
{
  // Abort update. We use the same magic numbers as TI SDK
}

// ...

// Once we have received the entire image

Flash_enableDacMode(mFlashHandle); // SystemP_SUCCESS

uint32_t certificateLoadAddress = mFlashOffset + SOC_getFlashDataBaseAddr(); // 0x60200000

uint32_t imageLength = Bootloader_getMsgLen(mX509Certificate.data(), mX509CertificateLength); // 439520

uint32_t cacheAlignedLength = (mX509CertificateLength + imageLength + 128) & ~(127); // 441216

CacheP_wbInv(reinterpret_cast<void*>(certificateLoadAddress), cacheAlignedLength, CacheP_TYPE_ALL);

const int32_t cVerifyStatus = Bootloader_socAuthImage(certificateLoadAddress); // SystemP_FAILURE

CacheP_inv((void*)certificateLoadAddress, cacheAlignedLength, CacheP_TYPE_ALL);

Flash_disableDacMode(mFlashHandle); // SystemP_SUCCESS

If I step through Bootloader_socAuthImage up to after Sciclient_procBootAuthAndStart, I get:

retVal	                        int	                0	          0x701A79CC
(respParam).flags	            unsigned int	    0	          0x701A7998
(respParam).respPayloadSize	    unsigned int	    20	          0x701A79A0
(respParam).pRespPayload	    unsigned char *	    (see below)	  0x701A799C

pRespPayload as 8-bit Hex - TI style: 00	00	00	00	00	00	00	00	01	00	00	00	00	00	00	00	02	01	0A	70

This same image sw.release.appimage.hs_fs was successfully signed and is successfully loaded by our SBL with enabled authentication (Disable Auth For Application Image unchecked in SysCfg). I have examined the sysfw log for more information based on the comment here downloads.ti.com/.../PROC_BOOT.html but there wasn't anything related.

My next action would be to go for something like mbedtls and do the verification myself, but I was hoping I could re-use the bootloader logic.

My questions are:
- Is it possible to use Bootloader_socAuthImage outside of SBL for X509 image authentication?
- Any way I can obtain more information why the authentication failed if the above is possible?
- Do you have any recommendations for how to best approach our use-case of authenticating image received over ethernet and saved to flash?

Thanks in advance,
Vaclav
  • Hello,

    - Is it possible to use Bootloader_socAuthImage outside of SBL for X509 image authentication?

    Theoretically, yes. Please note the authentication would be done against the active programmed key on the HSSE device.

    So, there may be one or two problematic cases like this method can not be used in the same cycle as the KEYREV update which switches the active key from SMPK to BMPK. When you update KEYREV, you are supposed to flash the images signed with BMPK. However, the active key on the board in the same power cycle is still SMPK so the authentication would fail.

    - Any way I can obtain more information why the authentication failed if the above is possible?

    Please share the SYSFW logs.

    Do you have any recommendations for how to best approach our use-case of authenticating image received over ethernet and saved to flash?

    Ideally, the image should be validated for booting in the factory itself. Then, it's just a matter of receiving and flashing the image correctly. As long as this is done, the image authentication cannot fail after the flashing and resetting of the device.

    Regards,

    Prashant

  • Hello Prashant,

    thanks for the reply. Here are two SYSFW logs from two separated runs of the same procedure. I have included both parsed (with tools/sysfw/trace_parser/sysfw_trace_parser.py) with original logs for convenience:



     trace-log_sw_update_sysfw-parsed.logtrace-log_sw_update_sysfw.logtrace-log_putty_update-parsed.log

    ▒1500
    0xC20024
    0x4F4E00FF
    0x4F4A001A
    0x4F4B0020
    0x4F4606A0
    0x4F4C000C
    0x4F4D0006
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001A
    0x4F4B0022
    0x4F4606A2
    0x4F4C0006
    0x4F4D0006
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001A
    0x4F4B0021
    0x4F4606A1
    0x4F4C0006
    0x4F4D0006
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001C
    0x4F4B000D
    0x4F46070D
    0x4F4C0210
    0x4F4D0100
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001C
    0x4F4B000A
    0x4F46070A
    0x4F4C002C
    0x4F4D000E
    0x4F4F0000
    0x4F500000
    0xC29002
    0xC20024
    0xC29000
    0xC20024
    0xC29002
    0xC20024
    0xC29000
    0xC20024
    0xC29002
    0xC20024
    0xC29000
    0xC20024
    0xC29002
    0xC20024
    0xC29000
    0xC20024
    0xC29002
    0xC20024
    0xC29000
    0xC20024
    0xC29002
    0xC20024
    0xC29000
    0xC20024
    0xC29002
    0xC20024
    0xC29000
    0xC20024
    0xC29002
    0xC20024
    0xC29000
    0xC20024
    0xC21110
    0xC20024
    0x41070000
    0x410800BF
    0x4F8A0001
    0x4F8B0001
    0x4F80001A
    0x4100001A
    0x4F01000C
    0x4F06068D
    0x4F0A0024
    0x4101000C
    0x410C0001
    0x410D7005
    0x410EDF80
    0x410F0000
    0x41100001
    0x41110000
    0x4F8A0001
    0x4F8B0001
    0x4F80001A
    0x4100001A
    0x4F8A0001
    0x4F8B0001
    0x4F80001A
    0x4100001A
    0x41070000
    0x410800BF
    0x4F8A0001
    0x4F8B0001
    0x4F80001A
    0x4100001A
    0xC21205
    0xC20024
    0x43870001
    0x43887FFF
    0x4F8A0001
    0x4F8B0001
    0x4F80001A
    0x4380001A
    0x4F01000C
    0x4F0606A0
    0x4F0A0024
    0x4381000C
    0x438A0000
    0x43A00000
    0x43A10000
    0x438B0000
    0x438C000C
    0x43A20000
    0x438D0000
    0x43A30000
    0x43A40000
    0x438F0004
    0x43900000
    0x43910000
    0x43920001
    0x439F0001
    0x43A50000
    0x43A60001
    0x4F8A0001
    0x4F8B0001
    0x4F80001A
    0x4380001▒0xC20002
    0xC20024
    0x4003007
    0x4400B07
    0xC2C120
    0xC20024
    0xC2C000
    0xC20024
    0xC2010C
    0xC20024
    0x6180010C
    0x61C00079
    0x612F7C85
    0x612F7C85
    0xC2C400
    0xC20024
    0xC2C100
    0xC20024
    0xC2010E
    0xC20024
    0x6180010E
    0x61C00079
    0xC2C400
    0xC20024
    0xC2C401
    0xC20024
    0x409030
    0x800023
    0xC20202
    0xC20024
    0x61800202
    0x61C0007A
    0x62000001
    0x63432001
    0xC20202
    0xC20024
    0x61800202
    0x61C00079
    0x62000001
    0x63430001
    0xC2C101
    0xC20024
    0xC2C001
    0xC20024
    0xC2C001
    0xC20024
    0xC20202
    0xC20024
    0x61800202
    0x61C00079
    0x62000000
    0x63430000
    0xC20202
    0xC20024
    0x61800202
    0x61C0007A
    0x62000000
    0x63432000
    0xC21110
    0xC20024
    0x41070000
    0x41080009
    0x4F8A0001
    0x4F8B0001
    0x4F80001A
    0x4100001A
    0x4F01000C
    0x4F06068D
    0x4F0A0024
    0x4101000C
    0x410C0001
    0x410D7005
    0x410EDF80
    0x410F0000
    0x41100001
    0x41110000
    0x4F8A0001
    0x4F8B0001
    0x4F80001A
    0x4100001A
    0x4F8A0001
    0x4F8B0001
    0x4F80001A
    0x4100001A
    0x41070000
    0x41080009
    0x4F8A0001
    0x4F8B0001
    0x4F80001A
    0x4100001A
    0xC2010E
    0xC20024
    0x6180010E
    0x61C00079
    0xC20201
    0xC20024
    0x61800201
    0x61C00066
    0xC20201
    0xC20024
    0x61800201
    0x61C00049
    0xC20201
    0xC20024
    0x61800201
    0x61C0004A
    0xC20201
    0xC20024
    0x61800201
    0x61C0004B
    0xC20201
    0xC20024
    0x61800201
    0x61C0008D
    0xC20201
    0xC20024
    0x61800201
    0x61C00052
    0xC20200
    0xC20024
    0x61800200
    0x61C00052
    0x62000002
    0x62C0E000
    0x6403E000
    0x64006003
    0x62C0E001
    0x6080009E
    0x608000A0
    0x60000052
    0x6383E000
    0x63806003
    0xC20202
    0xC20024
    0x61800202
    0x61C00052
    0x62000000
    0xC20201
    0xC20024
    0x61800201
    0x61C00092
    0xC20101
    0xC20024
    0x61800101
    0x61C0184B
    0xC20104
    0xC20024
    0x61800104
    0x61C0184B
    0xC20103
    0xC20024
    0x61800103
    0x61C0184B
    0xC20100
    0xC20024
    0x61800100
    0x61C0184B
    0x62000000
    0xC20102
    0xC20024
    0x61800102
    0x61C0184B
    0x62000007
    0xC2010D
    0xC20024
    0x6180010D
    0x61C0184B
    0x6129FC88
    0xC2010C
    0xC20024
    0x6180010C
    0x61C0184B
    0x6129FC88
    0x6129FC88
    0xC20101
    0xC20024
    0x61800101
    0x61C00052
    0xC20104
    0xC20024
    0x61800104
    0x61C00052
    0xC20103
    0xC20024
    0x61800103
    0x61C00052
    0xC20100
    0xC20024
    0x61800100
    0x61C00052
    0x62000000
    0x60C0009E
    0xC20102
    0xC20024
    0x61800102
    0x61C00052
    0x62000002
    0x6140049E
    0xC2010D
    0xC20024
    0x6180010D
    0x61C00052
    0x612D3C5E
    0xC2010C
    0xC20024
    0x6180010C
    0x61C00052
    0x612D3C5E
    0x612D3C5E
    0xC20101
    0xC20024
    0x61800101
    0x61C04C52
    0xC20104
    0xC20024
    0x61800104
    0x61C04C52
    0xC20100
    0xC20024
    0x61800100
    0x61C04C52
    0x62000000
    0xC2010D
    0xC20024
    0x6180010D
    0x61C04C52
    0x612B6C8C
    0xC2010C
    0xC20024
    0x6180010C
    0x61C04C52
    0x612B6C8C
    0x612B6C8C
    0xC20101
    0xC20024
    0x61800101
    0x61C00C52
    0xC20104
    0xC20024
    0x61800104
    0x61C00C52
    0xC20103
    0xC20024
    0x61800103
    0x61C00C52
    0xC20100
    0xC20024
    0x61800100
    0x61C00C52
    0x62000000
    0x60C000A0
    0xC20102
    0xC20024
    0x61800102
    0x61C00C52
    0x62000005
    0x614004A0
    0xC2010D
    0xC20024
    0x6180010D
    0x61C00C52
    0x612B7C5B
    0xC2010C
    0xC20024
    0x6180010C
    0x61C00C52
    0x612B7C5B
    0x612B7C5B
    0xC20101
    0xC20024
    0x61800101
    0x61C00092
    0xC20104
    0xC20024
    0x61800104
    0x61C00092
    0xC20103
    0xC20024
    0x61800103
    0x61C00092
    0xC20100
    0xC20024
    0x61800100
    0x61C00092
    0x62000000
    0xC20102
    0xC20024
    0x61800102
    0x61C00092
    0x62000001
    0xC2010D
    0xC20024
    0x6180010D
    0x61C00092
    0x61276CB2
    0xC2010C
    0xC20024
    0x6180010C
    0x61C00092
    0x61276CB2
    0x61276CB2
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B0023
    0x4F4607A3
    0x4F4C0004
    0x4F4D0003
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B0029
    0x4F4607A9
    0x4F4C0004
    0x4F4D0003
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001C
    0x4F4B000D
    0x4F46070D
    0x4F4C0210
    0x4F4D0100
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001C
    0x4F4B000A
    0x4F46070A
    0x4F4C002C
    0x4F4D000E
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B0024
    0x4F4607A4
    0x4F4C0010
    0x4F4D0008
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B0025
    0x4F4607A5
    0x4F4C0000
    0x4F4D0000
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E0080
    0x4F4A001E
    0x4F4B0025
    0x4F4607A5
    0x4F4C0000
    0x4F4D0000
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B0026
    0x4F4607A6
    0x4F4C0019
    0x4F4D0001
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B0027
    0x4F4607A7
    0x4F4C001A
    0x4F4D0008
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B0028
    0x4F4607A8
    0x4F4C0022
    0x4F4D0008
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B002B
    0x4F4607AB
    0x4F4C0010
    0x4F4D0001
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B002D
    0x4F4607AD
    0x4F4C0000
    0x4F4D0000
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E0080
    0x4F4A001E
    0x4F4B002D
    0x4F4607AD
    0x4F4C0000
    0x4F4D0000
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B002F
    0x4F4607AF
    0x4F4C0000
    0x4F4D0000
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E0080
    0x4F4A001E
    0x4F4B002F
    0x4F4607AF
    0x4F4C0000
    0x4F4D0000
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B0031
    0x4F4607B1
    0x4F4C0013
    0x4F4D0001
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B0033
    0x4F4607B3
    0x4F4C0014
    0x4F4D0001
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B0035
    0x4F4607B5
    0x4F4C0015
    0x4F4D0004
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B0037
    0x4F4607B7
    0x4F4C0019
    0x4F4D0004
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B0011
    0x4F460791
    0x4F4C0010
    0x4F4D0040
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B0012
    0x4F460792
    0x4F4C0000
    0x4F4D0000
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E0080
    0x4F4A001E
    0x4F4B0012
    0x4F460792
    0x4F4C0000
    0x4F4D0000
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B0013
    0x4F460793
    0x4F4C0058
    0x4F4D0008
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B0014
    0x4F460794
    0x4F4C0060
    0x4F4D0008
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B0015
    0x4F460795
    0x4F4C0068
    0x4F4D0008
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B0017
    0x4F460797
    0x4F4C0080
    0x4F4D0010
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B0018
    0x4F460798
    0x4F4C0000
    0x4F4D0000
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E0080
    0x4F4A001E
    0x4F4B0018
    0x4F460798
    0x4F4C0000
    0x4F4D0000
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B0019
    0x4F460799
    0x4F4C0000
    0x4F4D0000
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E0080
    0x4F4A001E
    0x4F4B0019
    0x4F460799
    0x4F4C0090
    0x4F4D0008
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B001A
    0x4F46079A
    0x4F4C0098
    0x4F4D0008
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B001B
    0x4F46079B
    0x4F4C0098
    0x4F4D0008
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B001C
    0x4F46079C
    0x4F4C00A0
    0x4F4D0040
    0x4F4F0000
    0x4F500000
    0xC21500
    0xC20024
    0x4F4E00FF
    0x4F4A001E
    0x4F4B001D
    0x4F46079D
    0x4F4C00E0
    0x4F4D0040
    0x4F4F0000
    0x4F500000
    0xC20201
    0xC20024
    0x61800201
    0x61C00052
    0xC2C400
    0xC20024
    0xC21280
    0xC20024
    0x4F8A0001
    0x4F8B0001
    0x4F800019
    0x49000019
    0x4A540024
    0x4F8A0001
    0x4F8B0001
    0x4F800019
    0x49000019
    0x4F8A0001
    0x4F8B0001
    0x4F800019
    0x49000019
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4540001E
    0x4A540024
    0x4A530023
    0x4A530024
    0x4F8A0001
    0x4F8B0001
    0x4F800019
    0x49000019
    0x490A4200
    0x490B9019
    0x451E4200
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4500001E
    0x45010019
    0xC21215
    0xC20024
    0x45470000
    0x45485FFF
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4540001E
    0x4F010019
    0x4F0607B7
    0x4F0A0024
    0x45410019
    0x454D0000
    0x454F0004
    0x45500000
    0x45510000
    0x45520001
    0x454A0000
    0x454B0000
    0x454C0002
    0x45620000
    0x45630000
    0x455F0001
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4540001E
    0xC21110
    0xC20024
    0x41070000
    0x410800BF
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4100001E
    0x4F010068
    0x4F060795
    0x4F0A0024
    0x41010068
    0x410C0001
    0x410D700C
    0x410E8080
    0x410F0000
    0x41100010
    0x41110000
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4100001E
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4100001E
    0x41070000
    0x410800BF
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4100001E
    0xC21280
    0xC20024
    0x4F8A0001
    0x4F8B0001
    0x4F800019
    0x49000019
    0x4F8A0001
    0x4F8B0001
    0x4F800019
    0x49000019
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4380001E
    0x4A540024
    0x4A530023
    0x4A530024
    0x4F8A0001
    0x4F8B0001
    0x4F800019
    0x49000019
    0x4A540024
    0x4F8A0001
    0x4F8B0001
    0x4F800019
    0x49000019
    0x490A1022
    0x490BC200
    0x435EC200
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4340001E
    0x43410022
    0xC21205
    0xC20024
    0x43870000
    0x43887FFF
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4380001E
    0x4F010022
    0x4F0607A8
    0x4F0A0024
    0x43810022
    0x438A0000
    0x43A00000
    0x43A10000
    0x438B0000
    0x438C0002
    0x43A20001
    0x438D0000
    0x43A30000
    0x43A400C0
    0x438F0004
    0x43900000
    0x43910000
    0x43920001
    0x439F0001
    0x43A50000
    0x43A60000
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4380001E
    0xC21000
    0xC20024
    0x4B0D0024
    0x4F010290
    0x4F06070D
    0x4F0A0024
    0x4B0B0290
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4F010033
    0x4F06070A
    0x4F0A0024
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4BC0001C
    0x4F011268
    0x4F060711
    0x4F0A0024
    0x4BC41268
    0x4BC3FFFF
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4C40001C
    0x4C4C0000
    0x4C4B0290
    0x4C4A0033
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4C40001C
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4C40001C
    0x4B830290
    0x4F8A0001
    0x4F8B0001
    0x4003007
    0x4400B07
    0x4F80001C
    0x4B80001C
    0x4F011268
    0x4F060711
    0x4F0A0024
    0x4B841268
    0x4B078000
    0x4B08003C
    0x4B0E001C
    0x4B0F1268
    0x4B110033
    0x4B120000
    0xC21110
    0xC20024
    0x41070000
    0x410800BF
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4100001E
    0x4F0100E1
    0x4F06079D
    0x4F0A0024
    0x410100E1
    0x410C0001
    0x410D700C
    0x410E8880
    0x410F0000
    0x41100020
    0x41110000
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4100001E
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4100001E
    0x41070000
    0x410800BF
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4100001E
    0xC21230
    0xC20024
    0x47470007
    0x4748FFFF
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4740001E
    0x4F010071
    0x4F0607B8
    0x4F0A0024
    0x47410071
    0x474A0001
    0x474B0001
    0x474C0000
    0x474E0000
    0xC21231
    0xC20024
    0xC21000
    0xC20024
    0x4B0D0024
    0x4F010291
    0x4F06070D
    0x4F0A0024
    0x4B0B0291
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4F010033
    0x4F06070A
    0x4F0A0024
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4BC0001C
    0x4F011671
    0x4F060713
    0x4F0A0024
    0x4BC41671
    0x4BC3FFFF
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4C40001C
    0x4C4C0001
    0x4C4B0291
    0x4C4A0033
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4C40001C
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4C40001C
    0x4B830291
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4B80001C
    0x4F011671
    0x4F060713
    0x4F0A0024
    0x4B841671
    0x4B078000
    0x4B08003C
    0x4B0E001C
    0x4B0F1671
    0x4B110033
    0x4B120001
    0xC20201
    0xC20024
    0x61800201
    0x61C00052
    0xC21280
    0xC20024
    0x4F8A0001
    0x4F8B0001
    0x4F800019
    0x49000019
    0x4A540024
    0x4F8A0001
    0x4F8B0001
    0x4F800019
    0x49000019
    0x4F8A0001
    0x4F8B0001
    0x4F800019
    0x49000019
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4540001E
    0x4A540024
    0x4A530023
    0x4A530024
    0x4F8A0001
    0x4F8B0001
    0x4F800019
    0x49000019
    0x490A4201
    0x490B901A
    0x451E4201
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4500001E
    0x4501001A
    0xC21215
    0xC20024
    0x45470000
    0x45485FFF
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4540001E
    0x4F01001A
    0x4F0607B7
    0x4F0A0024
    0x4541001A
    0x454D0000
    0x454F0004
    0x45500000
    0x45510000
    0x45520001
    0x454A0000
    0x454B0000
    0x454C0002
    0x45620000
    0x45630000
    0x455F0001
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4540001E
    0xC21110
    0xC20024
    0x41070000
    0x410800BF
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4100001E
    0x4F010069
    0x4F060795
    0x4F0A0024
    0x41010069
    0x410C0001
    0x410D700C
    0x410E9080
    0x410F0000
    0x41100010
    0x41110000
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4100001E
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4100001E
    0x41070000
    0x410800BF
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4100001E
    0xC21280
    0xC20024
    0x4F8A0001
    0x4F8B0001
    0x4F800019
    0x49000019
    0x4F8A0001
    0x4F8B0001
    0x4F800019
    0x49000019
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4380001E
    0x4A540024
    0x4A530023
    0x4A530024
    0x4F8A0001
    0x4F8B0001
    0x4F800019
    0x49000019
    0x4A540024
    0x4F8A0001
    0x4F8B0001
    0x4F800019
    0x49000019
    0x490A1023
    0x490BC204
    0x435EC204
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4340001E
    0x43410023
    0xC21205
    0xC20024
    0x43870000
    0x43887FFF
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4380001E
    0x4F010023
    0x4F0607A8
    0x4F0A0024
    0x43810023
    0x438A0000
    0x43A00000
    0x43A10000
    0x438B0000
    0x438C0002
    0x43A20001
    0x438D0000
    0x43A30000
    0x43A400C0
    0x438F0004
    0x43900000
    0x43910000
    0x43920001
    0x439F0001
    0x43A50000
    0x43A60000
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4380001E
    0xC21000
    0xC20024
    0x4B0D0024
    0x4F010292
    0x4F06070D
    0x4F0A0024
    0x4B0B0292
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4F010033
    0x4F06070A
    0x4F0A0024
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4BC0001C
    0x4F011269
    0x4F060711
    0x4F0A0024
    0x4BC41269
    0x4BC3FFFF
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4C40001C
    0x4C4C0002
    0x4C4B0292
    0x4C4A0033
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4C40001C
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4C40001C
    0x4B830292
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4B80001C
    0x4F011269
    0x4F060711
    0x4F0A0024
    0x4B841269
    0x4B078000
    0x4B08003C
    0x4B0E001C
    0x4B0F1269
    0x4B110033
    0x4B120002
    0xC21110
    0xC20024
    0x41070000
    0x410800BF
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4100001E
    0x4F0100F1
    0x4F06079D
    0x4F0A0024
    0x410100F1
    0x410C0001
    0x410D700C
    0x410E9880
    0x410F0000
    0x41100020
    0x41110000
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4100001E
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4100001E
    0x41070000
    0x410800BF
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4100001E
    0xC21230
    0xC20024
    0x47470007
    0x4748FFFF
    0x4F8A0001
    0x4F8B0001
    0x4F80001E
    0x4740001E
    0x4F010081
    0x4F0607B8
    0x4F0A0024
    0x47410081
    0x474A0001
    0x474B0001
    0x474C0000
    0x474E0000
    0xC21231
    0xC20024
    0xC21000
    0xC20024
    0x4B0D0024
    0x4F010293
    0x4F06070D
    0x4F0A0024
    0x4B0B0293
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4F010033
    0x4F06070A
    0x4F0A0024
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4BC0001C
    0x4F011681
    0x4F060713
    0x4F0A0024
    0x4BC41681
    0x4BC3FFFF
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4C40001C
    0x4C4C0003
    0x4C4B0293
    0x4C4A0033
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4C40001C
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4C40001C
    0x4B830293
    0x4F8A0001
    0x4F8B0001
    0x4F80001C
    0x4B80001C
    0x4F011681
    0x4F060713
    0x4F0A0024
    0x4B841681
    0x4B078000
    0x4B08003C
    0x4B0E001C
    0x4B0F1681
    0x4B110033
    0x4B120003
    0xC2C120
    0xC20024
    


    Our goal is supporting software update even when the device is fielded with the customers, where we don't necessarily have complete control over what is being updated where.

    Cheers,
    Vaclav

  • I have included both parsed (with tools/sysfw/trace_parser/sysfw_trace_parser.py) with original logs for convenience:

    Thanks for the logs. Let me check them and get back to you.

  • Hello,

    There are two instances of the PROC_AUTH_BOOT message in the shared SYSFW logs. For both of them, I don't see any errors in the logs. How did you capture the SYSFW logs (MAIN_UART1 or Memory buffer)?

  • Both of them are MAIN_UART2. I couldn't find instructions for how to extract the logs from the memory buffer.

  • Both of them are MAIN_UART2.

    Do you mean MAIN_UART1 as the SYSFW logs come on this port only?

    Have you checked if the image length (imageLength) and certificate length (mX509CertificateLength) are read correctly in the code before requesting the authentication?

  • Sorry, yes I meant UART1. I will check the values again and get back to you.

  • Update: Sorry for silence, this is not a priority for us anymore. Therefore, I didn't have time to examine this further. We have an in-person TI visit planned next moth so we plan to ask about this during the session, and I will post an update here if we find suitable solution for us.

  • Thanks for the update. Let me know if any help is needed!