Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-12-20 | Merge branch 'master' into ksng | Rob Austein | |
Bootloader DFU fixes. | |||
2016-12-20 | Make stm_flash_sector_num a little more efficient. | Paul Selkirk | |
2016-12-20 | The bootloader upgrade reboots now, so we don't need to log out of the CLI. | Paul Selkirk | |
2016-12-20 | Fix bootloader upload callback routine to write the correct number of bytes ↵ | Paul Selkirk | |
to flash. While we're at it, propagate error returns. | |||
2016-12-20 | cli_receive_data: re-enable UART DMA before returning. Based on Fredrik's ↵ | Paul Selkirk | |
fix to cli-test, commit ae8ebce. | |||
2016-12-19 | Merge branch 'master' into ksng. | Rob Austein | |
Drag in UART-related changes from master. | |||
2016-11-25 | Add debugging code to cryptech_upload. | Rob Austein | |
2016-11-15 | Reinitialize keystore data structures after wiping keystore flash. | Rob Austein | |
2016-11-14 | Track removal of hal_rpc_pkey_list(). | Rob Austein | |
2016-11-14 | hal_rpc_pkey_find() -> hal_rpc_pkey_open(). | Rob Austein | |
2016-11-02 | Wait for WIP to clear before returning from erase operations too. | Rob Austein | |
Wrong-block-type race condition errors went away after adding the WIP check after flash write operations, then came back once (isolated incident) while running a series of tests which had written enough flash blocks that ks_flash may have finally had to erase something rather than just zeroing. Code inspection confirmed that the erase code was not waiting for WIP to clear before exiting. Difficult to prove that this was the cause of an unreproducible failure, but seems like a likely candidate given previous behavior and change should be harmless, so adding it. Timeout for this flag check is 2000 ms, which is what other erase-related WIP flag checks were already using. | |||
2016-11-01 | Tweak CLI keystore commands for latest libhal RPC keystore API. | Rob Austein | |
Using {-1} as a client handle in the CLI is a kludge, but the new stricter libhal keystore code really wants us to be consistent about this, so as long as any part of the CLI is using client {-1}, it all needs to do so. This still isn't really right, the CLI probably needs a different set of access rules than those which apply to the RPC calls, but I'm deferring that until we know what the "final" (for this branch) version of the RPC API looks like, and have done whatever refactoring might be required in the libhal keystore drivers. | |||
2016-11-01 | Don't return from flash write calls until WIP flag clears. | Rob Austein | |
Absence of this check created a nasty race condition in sw/libhal/ks_flash.c, which didn't show up until we had test code which attempted to delete a long series of keys in quick succession. I'm not aware of any sane reason why we would ever want to skip this check, so it's unconditional and applies to all of the SPI flash code, not just the keystore flash code. | |||
2016-10-09 | Track changes to libhal pkey API. | Rob Austein | |
2016-10-07 | Track changes to libhal RPC pkey API. | Rob Austein | |
2016-10-07 | strcasecmp() is not a standard function. | Rob Austein | |
2016-09-27 | "keystore erase" now clears entire keystore flash. | Rob Austein | |
Now that we're using more than just the first few sectors of the keystore flash, we need a command to clear the whole thing. This is not quite right yet, because it doesn't yet notify libhal's ks_flash driver that the entire content of the flash has been yanked out from under it. In theory, we should be able to erase the entire flash in a single operation using the bulk erase command command (0xC7), but I couldn't get that to do anything (no error reported, no visible effect), so, for now, we erase by sectors. | |||
2016-09-26 | Fix function pointer type, typo in variable name. | Rob Austein | |
2016-09-23 | Use subsectors instead of sectors in keystore. | Rob Austein | |
2016-09-20 | Still some problem with uart receive under heavy load, so change to a 2-byte ↵ | Paul Selkirk | |
receive buffer with half-complete callbacks, and raise the dma priority. | |||
2016-09-16 | Change default gcc optimization level to -Og. | Rob Austein | |
2016-09-16 | Revised ks_flash. Compiles, not yet tested. | Rob Austein | |
2016-09-13 | Track libhal cleanup (function names, const-ification). | Rob Austein | |
2016-09-09 | Fix frelling sw/stm32/Makefile to rebuild libraries properly. | Rob Austein | |
2016-09-09 | Track removal of `type` argument from hal_rpc_pkey_find(). | Rob Austein | |
2016-09-05 | add bit-for-bit testing of FMC address and data bus | Fredrik Thulin | |
2016-09-02 | Whack with club until working with new keystore API. | Rob Austein | |
Basic stuff like "keystore show keys", "keystore delete key", and the PIN commands all work with the new keystore code. Some of the management commands are still broken. Some of the old management commands were using libhal-internal APIs for which no real equivalent exists anymore. Some of the old management commands were doing things that, um, never could have worked as written. | |||
2016-09-01 | "make clean" needs to use "rm -f" to avoid gratuitous failures. | Rob Austein | |
2016-08-23 | Merge branch 'master' of git.cryptech.is:sw/stm32 | Paul Selkirk | |
2016-08-23 | Show running threads. | Paul Selkirk | |
2016-08-23 | Reset table of cores after resetting FPGA from CLI. | Paul Selkirk | |
2016-08-23 | Multi-client testing revealed race conditions in uart receive code | Paul Selkirk | |
(dropped characters, improper handoff of message buffers). Fixed by a) changing the uart receiver from interrupt to DMA mode, and b) replacing the dispatch mutex and rpc semaphore with a mail queue (memory pool + message queue). | |||
2016-08-15 | Incorporate FPGA comms test from projects/board-test/fmc-test.c | Fredrik Thulin | |
2016-08-15 | cli_receive_data: re-enable UART DMA before returning | Fredrik Thulin | |
Bugfix after new port of libcli where this enabling doesn't happen after every command anymore. | |||
2016-08-11 | Multiple threads and multiple cores, to deal with multiple clients. | Paul Selkirk | |
2016-08-11 | re-implement 'show fpga cores' | Fredrik Thulin | |
2016-07-21 | Use a fresh port of libcli, which retains more of the original API. | Paul Selkirk | |
2016-07-16 | Don't run empty "export" command. | Rob Austein | |
2016-07-13 | 'masterkey set' without args sets master key to a random value | Paul Selkirk | |
2016-07-13 | probe_cores() finally does the right thing, so we don't have to call it early. | Paul Selkirk | |
2016-07-12 | Make username a command-line option, default "so" as it used to be. | Rob Austein | |
2016-07-12 | Allow wheel to upload firmware/bitstreams | Paul Selkirk | |
2016-07-12 | Re-disable 'keystore set key'; hexdump binary key names; remove unused ↵ | Paul Selkirk | |
'show' commands. | |||
2016-07-12 | merge from projects/hsm | Fredrik Thulin | |
2016-07-12 | Merge branch 'master' of git.cryptech.is.:sw/stm32 | Fredrik Thulin | |
2016-07-12 | restore original SCLK_DIV | Fredrik Thulin | |
2016-07-12 | re-enable masterkey | Fredrik Thulin | |
2016-07-12 | Restore 'keystore set|rename|delete' commands; access key by index as well ↵ | Paul Selkirk | |
as name. | |||
2016-07-09 | Clean up the CLI. | Fredrik Thulin | |
A lot of the commands were just useful when testing/implementing features for the Alpha. Remove them now that they have been merged to projects/cli-test. | |||
2016-07-09 | Integrate test code for MKMIF. | Fredrik Thulin | |
There seems to be a timing issue (?) with the MKMIF. If SCLK_DIV is set to a higher value (was: 0x20) then the CLI command "test mkmif" will fail with only occasional success runs. With divisor 0x01, it works most of the time but not allways. |