os: Support ss partition powercut function of bk7239n#7281
os: Support ss partition powercut function of bk7239n#7281Poly-J wants to merge 3 commits intoSamsung:masterfrom
Conversation
ewoodev
left a comment
There was a problem hiding this comment.
please remove ss.bin in this repo
hi @ewoodev , |
| @@ -2851,7 +2851,7 @@ int armino_hal_write_storage(uint32_t ss_idx, hal_data *data) | |||
| TFM_NSC_UNLOCK(); | |||
| if (ret != 0) { | |||
| dbg("Failed to write storage: %d\n", ret); | |||
There was a problem hiding this comment.
@jylee9613 Regardless of this PR, could you check se specific dbg? The dbg is only way for here?
There was a problem hiding this comment.
@Poly-J , There are sedbg and selldbg. so please use them.
There was a problem hiding this comment.
@pcs1265 Thank you for your feedback. I have replaced all the 'dbg' in the file with 'sedbg'.
|
|
||
| #define HWRAP_TAG "[ARMINO_HAL_WRAPPER]" | ||
| #define HWRAP_ENTER do { dbg(HWRAP_TAG"%s:%d\n", __FILE__, __LINE__); } while (0) | ||
| #define HWRAP_ENTER do { sedbg(HWRAP_TAG"%s:%d\n", __FILE__, __LINE__); } while (0) |
There was a problem hiding this comment.
- Let's split the commit to replace dbg to sedbg. It's different topic.
xxvdbgfor information,xxdbgfor error. You changed all to sedbg. But many things are information. Could you use them differently?
There was a problem hiding this comment.
@sunghan-chang Thank you for the reminder, I have added another commit.
|
|
||
| if (key_idx < FACTORY_KEY_INDEX_MAX) { | ||
| dbg("Key index %d (0-31) for factory key\n", key_idx); | ||
| sedbg("Key index %d (0-31) for factory key\n", key_idx); |
There was a problem hiding this comment.
We should not print this information. Let's use read only instead of factory
There was a problem hiding this comment.
There are another locations for that. Need to modify as well.
There was a problem hiding this comment.
Thank you, I have already made the changes
yes, The generated scripte is in closed source, so we don't need to open ss.bin here also. Please remove this file. |
hi @ewoodev , |
ewoodev
left a comment
There was a problem hiding this comment.
build/tools/armino: Support ss partition powercut function of bk7239n
please remove this commit in this PR. and let's remove ss.bin next PR.
Change the return value of the interface so that when an error occurs, the internal error code is directly displayed, making it easier to locate the problem.
Use sedbg and sevdbg to distinguish different log information.
Since implementing the powercut function for the ss partition changed the logic in tfm, it is necessary to synchronously update the closed-source tfm library.
jylee9613
left a comment
There was a problem hiding this comment.
Checked it works properly with new ss.bin
Based on the new partitioning, the layout of the SS partition has been readapted and the powercut function is supported.