-
Notifications
You must be signed in to change notification settings - Fork 518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Protected feature #2734
Protected feature #2734
Conversation
@@ -24,19 +24,23 @@ | |||
|
|||
#define INTERNAL_FLASH_START_ADD 0x00000000 | |||
#define INTERNAL_FLASH_END_ADDR 0x00100000 | |||
#define INTERNAL_FLASH_IF_STRING "@Internal Flash /0x00000000/1*004Ka,47*004Kg,192*004Kg,4*004Kg,4*004Kg,8*004Ka"; | |||
#define INTERNAL_FLASH_IF_STRING "@Internal Flash /0x00000000/1*004Ka,47*004Kg,192*004Kg,4*004Kg,4*004Kg,8*004Ka" | |||
#define INTERNAL_FLASH_IF_STRING_PROT "@Internal Flash /0x00000000/1*004Kb,47*004Kb,192*004Kb,4*004Kb,4*004Kb,8*004Kb" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A comment explaining the reason for the different letters would be helpful so that someone looking at this in the future doesn't need to reverse engineer what the letters mean and why it's important to change them. This comment can wait for the next PR.
services/inc/services_dynalib.h
Outdated
@@ -96,6 +97,8 @@ DYNALIB_FN(48, services, devicetree_tree_lock, int(void*)) | |||
DYNALIB_FN(49, services, devicetree_tree_get, int(void*, uint32_t, void*)) | |||
DYNALIB_FN(50, services, devicetree_string_dictionary_lookup, const char*(uint32_t, void*)) | |||
DYNALIB_FN(51, services, devicetree_hash_string, uint32_t(const char*, size_t)) | |||
DYNALIB_FN(52, services, security_mode_set, int(module_info_security_mode, void*)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need security_mode_set in dynalib? Shouldn't the bootloader be the only caller of this method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed for testing, it also doesn't allow protected->non-protected, so should be fine, but I'll remove this.
07abe9e
to
fed0eb0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See testing discussion here
TODO