去掉fw中的sbl_printf调用
This commit is contained in:
@@ -390,7 +390,6 @@ void board_oem_signal_mtx_binding(iot_board_info_v1_t *rc_info)
|
||||
|
||||
|
||||
|
||||
extern int32_t sbl_printf(const char *fmt, ...);
|
||||
|
||||
|
||||
uint32_t board_load_oem_cfg()
|
||||
@@ -419,13 +418,10 @@ uint32_t board_load_oem_cfg()
|
||||
g_board_cpu_idx = cpu_get_mhartid();
|
||||
#endif
|
||||
|
||||
sbl_printf("start load oemcfg\n");
|
||||
sbl_printf("%s:%d\n",__FILE__,__LINE__);
|
||||
ret = iot_oem_get_cfg(&oemcfg);
|
||||
if (ret != ERR_OK) {
|
||||
goto out;
|
||||
}
|
||||
sbl_printf("%s:%d\n",__FILE__,__LINE__);
|
||||
g_board_info.board_id = oemcfg->board_id;
|
||||
IOT_ASSERT(oemcfg->board_cfg_ver == IOT_OEM_VER_V1);
|
||||
|
||||
@@ -441,22 +437,18 @@ uint32_t board_load_oem_cfg()
|
||||
goto out;
|
||||
}
|
||||
// 读取oem的差分部分
|
||||
sbl_printf("%s:%d\n",__FILE__,__LINE__);
|
||||
ret = iot_oem_read_mtd(buf_oem, oem_part_size - oem_diff_offset,
|
||||
oem_diff_offset);
|
||||
if (ret != ERR_OK) {
|
||||
goto out;
|
||||
}
|
||||
sbl_printf("%s:%d\n",__FILE__,__LINE__);
|
||||
|
||||
ret = ERR_FAIL;
|
||||
hw_ver_cal = iot_board_hw_version_hex();
|
||||
/* if hw_version is not written during production test, it defaults to f */
|
||||
if (hw_ver_cal == 0xffffffff) {
|
||||
sbl_printf("%s:%d\n",__FILE__,__LINE__);
|
||||
hw_ver_cal = 0;
|
||||
}
|
||||
sbl_printf("board_hw_ver=%08x\n",hw_ver_cal);
|
||||
// ptr_rc 是 iot_board_info_v1_t 类型的指针
|
||||
ptr_hdr = &ptr_rc->hdr;
|
||||
hw_ver_rc = ptr_hdr->hw_version;
|
||||
@@ -467,7 +459,6 @@ hdr_check:
|
||||
if (ptr_hdr->have_next == 0) {
|
||||
if(read_oem_ext_flag ||
|
||||
iot_oem_read_mtd_ext(&buf_oem[offset],BOARD_OEM_INFO_SIZE_MAX-offset)){
|
||||
sbl_printf("%s:%d\n",__FILE__,__LINE__);
|
||||
goto out;
|
||||
} else {
|
||||
ptr_hdr->have_next = 1;
|
||||
@@ -483,7 +474,6 @@ hdr_check:
|
||||
hw_ver_rc = ptr_hdr->hw_version;
|
||||
goto hdr_check;
|
||||
}
|
||||
sbl_printf("count_rc=%d\n",cnt_rc);
|
||||
|
||||
/* prevent array out of bounds */
|
||||
// 最多只支持63个硬件识别码
|
||||
|
Reference in New Issue
Block a user