去除bootram的安全校验 sbl打开打印
This commit is contained in:
		
							
								
								
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -11,8 +11,7 @@ make_flags.txt | |||||||
| # vscode_cpp_setting.py | # vscode_cpp_setting.py | ||||||
| python_script_log.log | python_script_log.log | ||||||
| build_log.log | build_log.log | ||||||
| sec_cpu_cco.addrs.ld | *.addrs.ld | ||||||
| sec_cpu_sta.addrs.ld |  | ||||||
| sp_applet.txt | sp_applet.txt | ||||||
| # file_exclude.py | # file_exclude.py | ||||||
| KL3_SG_BUILD_RECORE | KL3_SG_BUILD_RECORE | ||||||
| @@ -40,3 +39,4 @@ tools/ram/ | |||||||
| mfgtool/ah/ah | mfgtool/ah/ah | ||||||
| mfgtool/lzma/elzma | mfgtool/lzma/elzma | ||||||
| mfgtool/oem_tool/oem_tool | mfgtool/oem_tool/oem_tool | ||||||
|  | mfgtool/*.o | ||||||
|   | |||||||
										
											Binary file not shown.
										
									
								
							| @@ -661,21 +661,25 @@ static void btm_receive_command(char *buf, int len) | |||||||
|     return; |     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 iot_btm_command_secret_grade_match(int secret_flag) | ||||||
| { | { | ||||||
|     int flag; |     return 1; | ||||||
|  |  | ||||||
|     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_break_detect(void) | int iot_btm_command_break_detect(void) | ||||||
|   | |||||||
										
											Binary file not shown.
										
									
								
							| @@ -35,7 +35,7 @@ const char patter[] = "entry_sbl_cli"; | |||||||
| #define PATTERN_LEN (sizeof(patter) -1) | #define PATTERN_LEN (sizeof(patter) -1) | ||||||
|  |  | ||||||
| uint32_t g_is_first_run = 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; | extern uint32_t g_flash_size; | ||||||
|  |  | ||||||
| char console_buffer[CMD_CBSIZE]; | char console_buffer[CMD_CBSIZE]; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user