Skip to content
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

Usb integrate #595

Merged
merged 42 commits into from
Nov 21, 2024
Merged

Usb integrate #595

merged 42 commits into from
Nov 21, 2024

Conversation

bunnie
Copy link
Member

@bunnie bunnie commented Nov 21, 2024

Update via USB in bootloader is now functional.

Can alternatively update the kernel or the application areas depending on the file copied in.

Trivial image validation is done - more work needs to happen on the security side, but this is good enough for development.

Loader updates have to happen once in kernel mode - or some other scheme has to be worked out because the code is XIP in the loader, so writing the code would essentially lead to failure.

in anticipation of starting to emulate the FS
we can now recover from an I2C timeout and get the PMIC data
out, but mysteriously, when we leave the routine, the CPU hangs.

I think fundamentally the I2C instability is due to something
very wonky inside the chip itself, so the recovery only papers
over an issue that is only fixed with a reboot...
also initialize the disk image with some default data
this is a pre-initialized, FAT12 image that is compatible with
Windows (which is the harder of the OSes to please)
the curve 25519 accelerator hw is different on different targets
so it can't be enabled for all of them all at once.

This is going to be come a bigger problem as time goes on...
right now our patch set assumes a single HW configuration for
cryptography accelerators.

This isn't going to be true going forward. A more scalable approach
to patching accelerators is going to be needed.

For now, we're just falling back to software acceleration for
the cramium target.
@bunnie bunnie merged commit c1564d2 into main Nov 21, 2024
2 checks passed
@bunnie bunnie deleted the usb-integrate branch November 21, 2024 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant