交换wtz 和dt 的chip id ram.bin不校验subid
(cherry picked from commit b6d3ada027e35a86598313ee42b2de3e014e2b29)
This commit is contained in:
@@ -1951,25 +1951,25 @@ static void ramModuleInfoPrint()
|
||||
}
|
||||
}
|
||||
#ifndef RAM_FOR_BOARDBURN
|
||||
{
|
||||
/* chipburn */
|
||||
uint32_t subid;
|
||||
ram_encrypt_t *p_encrypt = &encrypt_array[MANUFACTURER_INDEX];
|
||||
// {
|
||||
// /* chipburn */
|
||||
// uint32_t subid;
|
||||
// ram_encrypt_t *p_encrypt = &encrypt_array[MANUFACTURER_INDEX];
|
||||
|
||||
if (0 == g_chip_subid) {
|
||||
/* chipburn, when no subid */
|
||||
subid = ram_lookup_chip_subid(g_chip_id, p_encrypt->manu);
|
||||
if (0xFFFF == subid) {
|
||||
ram_error_no |= RAM_LOOKUP_CHIP_SUBID_ERR;
|
||||
} else {
|
||||
ram_set_chip_subid(subid);
|
||||
g_chip_subid = ram_get_chip_subid();
|
||||
if (subid != g_chip_subid) {
|
||||
ram_error_no |= RAM_WRITE_CHIP_SUBID_ERR;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// if (0 == g_chip_subid) {
|
||||
// /* chipburn, when no subid */
|
||||
// subid = ram_lookup_chip_subid(g_chip_id, p_encrypt->manu);
|
||||
// if (0xFFFF == subid) {
|
||||
// ram_error_no |= RAM_LOOKUP_CHIP_SUBID_ERR;
|
||||
// } else {
|
||||
// ram_set_chip_subid(subid);
|
||||
// g_chip_subid = ram_get_chip_subid();
|
||||
// if (subid != g_chip_subid) {
|
||||
// ram_error_no |= RAM_WRITE_CHIP_SUBID_ERR;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
#endif
|
||||
|
||||
gPsramSize = ram_get_psram_size();
|
||||
|
Reference in New Issue
Block a user