bouffalolab / bl_docs

Datasheets and Reference Manual for BL602/BL808
140 stars 24 forks source link

Table not describing bits #1

Open gamelaster opened 3 years ago

gamelaster commented 3 years ago

image Which 2 bits are sign_type and encrypted ? It's first bits in OTP?

Thanks

gamelaster commented 3 years ago

OK, I find out, but I'm not sure if it's correct. First byte of OTP info is sign_type and second byte is encrypted. Is this correct? Also, is ChipID area from OTP info, byte 12 to byte 18 ?

gamelaster commented 3 years ago

I thought I found the OTP info structure. It basically fits, only pkHashCpu's doesn't

typedef struct {
    uint8_t encrypted[BFLB_BOOT2_CPU_MAX];
    uint8_t sign[BFLB_BOOT2_CPU_MAX];
    uint8_t hbnCheckSign;
    uint8_t rsvd[3];
    uint8_t chipID[8];
    uint8_t pkHashCpu0[BFLB_BOOT2_PK_HASH_SIZE];
    uint8_t pkHashCpu1[BFLB_BOOT2_PK_HASH_SIZE];
}Boot_Efuse_HW_Config;