去除bootram的安全校验 sbl打开打印

This commit is contained in:
2024-10-14 18:03:57 +08:00
parent c630582df5
commit 3cfec2f3eb
5 changed files with 20 additions and 16 deletions

4
.gitignore vendored
View File

@@ -11,8 +11,7 @@ make_flags.txt
# vscode_cpp_setting.py
python_script_log.log
build_log.log
sec_cpu_cco.addrs.ld
sec_cpu_sta.addrs.ld
*.addrs.ld
sp_applet.txt
# file_exclude.py
KL3_SG_BUILD_RECORE
@@ -40,3 +39,4 @@ tools/ram/
mfgtool/ah/ah
mfgtool/lzma/elzma
mfgtool/oem_tool/oem_tool
mfgtool/*.o

Binary file not shown.

View File

@@ -661,21 +661,25 @@ static void btm_receive_command(char *buf, int len)
return;
}
// int iot_btm_command_secret_grade_match(int secret_flag)
// {
// int flag;
// if (SECRET_PLTF_USER == cline_commands.secret_grade) {
// flag = SECRET_CMD_USER;
// } else if (SECRET_PLTF_ADMIN == cline_commands.secret_grade) {
// flag = SECRET_CMD_USER | SECRET_CMD_ADMIN;
// } else if (SECRET_PLTF_DEBUGER == cline_commands.secret_grade) {
// flag = SECRET_CMD_USER | SECRET_CMD_ADMIN | SECRET_CMD_DEBUGER;
// } else {
// flag = 0;
// }
// return (flag & secret_flag) ? 1 : 0;
// }
int iot_btm_command_secret_grade_match(int secret_flag)
{
int flag;
if (SECRET_PLTF_USER == cline_commands.secret_grade) {
flag = SECRET_CMD_USER;
} else if (SECRET_PLTF_ADMIN == cline_commands.secret_grade) {
flag = SECRET_CMD_USER | SECRET_CMD_ADMIN;
} else if (SECRET_PLTF_DEBUGER == cline_commands.secret_grade) {
flag = SECRET_CMD_USER | SECRET_CMD_ADMIN | SECRET_CMD_DEBUGER;
} else {
flag = 0;
}
return (flag & secret_flag) ? 1 : 0;
return 1;
}
int iot_btm_command_break_detect(void)

Binary file not shown.

View File

@@ -35,7 +35,7 @@ const char patter[] = "entry_sbl_cli";
#define PATTERN_LEN (sizeof(patter) -1)
uint32_t g_is_first_run = 1;
uint32_t g_is_print_enable = 0;
uint32_t g_is_print_enable = 1;
extern uint32_t g_flash_size;
char console_buffer[CMD_CBSIZE];