-
Notifications
You must be signed in to change notification settings - Fork 39
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
Krux Apps, small utility programs to enhance Krux #485
Draft
tadeubas
wants to merge
57
commits into
selfcustody:develop
Choose a base branch
from
tadeubas:kapps
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #485 +/- ##
===========================================
- Coverage 94.37% 93.21% -1.16%
===========================================
Files 74 75 +1
Lines 8104 8252 +148
===========================================
+ Hits 7648 7692 +44
- Misses 456 560 +104 ☔ View full report in Codecov by Sentry. |
Use my PUBKEY to test the signed apps (kapp, nostr) more easily, just change your
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is this PR for?
Create a new Tool to enable the execution of developer's signed Krux apps as
.mpy
files in SD card.In the simulator it fakes the execution of the selected
.mpy
file (withinsimulator/sd
) by executing thekapp.py
file in thesimulator
root folder.In order to execute on the device, first enable execution of SPIFFS VFS changing the file
firmware/MaixPy/components/micropython/port/src/maixpy_main.c
line276
tovfs->exec_allowed = true;
In any case you will need to generate a
.mpy
file using the toolfirmware/MaixPy/components/micropython/core/mpy-cross
. Follow itsREADME.md
instructions in order to make and then compile a.py
file into.mpy
. It is defined that all kapps must implement therun()
function that will be executed.You will also need to create a
.sig
file based on the.mpy
. Remember to change the contents of theSIGNER_PUBKEY
insidesrc\krux\metadata.py
following instructions here To generate a keypair and Signing the firmware (firmware will be your .mpy file) in order to sign and verify the signature within Krux code.Use my PUBKEY to test the signed apps (kapp, nostr) more easily, just change your
metadata.py
and flash the device:TODO:
exec_allowed
attr.What is the purpose of this pull request?