Commit Graph

  • 35d22a0fef
    Merge 9dce62597d0daf9992cb5f9d7a1e2141b361f36b into d0c049cdba4d3ba4c9f277f25182cec53c25eaf3 Michael Cardell Widerkrantz 2025-04-11 14:34:50 +00:00
  • 9dce62597d
    docs: Update release notes with filesystem things filesystem Michael Cardell Widerkrantz 2025-04-11 16:34:38 +02:00
  • 546ceeba45
    docs/fw: Update firmware README Michael Cardell Widerkrantz 2025-04-11 16:22:00 +02:00
  • 06ac2604e7
    Merge 95579b5f8c78215a04a0da793aae8a895c597ce1 into d0c049cdba4d3ba4c9f277f25182cec53c25eaf3 Jonas Thörnblad 2025-04-11 15:12:44 +02:00
  • 95579b5f8c
    ch552: Clean up debugging of USB stack ccid Jonas Thörnblad 2025-04-11 14:54:46 +02:00
  • 0601bac21c
    ch552: Fix various USB stack things, add check for IO_CH552 command range. Jonas Thörnblad 2025-04-11 13:45:17 +02:00
  • 59af5d2e27
    ch552: Add CCID (Smart Card) support Jonas Thörnblad 2025-04-11 13:37:47 +02:00
  • 7755716b1e
    Format c code Mikael Ågren 2025-04-11 11:55:04 +02:00
  • fbd8d9e866
    fw: Only allow management app to read app digest and signature from flash Mikael Ågren 2025-04-10 18:06:40 +02:00
  • a4ae484a92
    testloadapp: Describe commands Mikael Ågren 2025-04-10 18:43:42 +02:00
  • 801fee2ef0
    testloadapp: Print syscall return codes on error Mikael Ågren 2025-04-10 18:04:24 +02:00
  • 636fdcb42e
    fw: Remove unnecessary include from syscall_handler.c Mikael Ågren 2025-04-10 17:21:08 +02:00
  • 15c80f65ed
    fw: Remove SET_LED syscall Mikael Ågren 2025-04-10 17:20:45 +02:00
  • a3bdc73efa
    fw: Simplify starting management app Michael Cardell Widerkrantz 2025-04-10 17:05:14 +02:00
  • 767be4fd43
    fw: Change flash 1 and flash 2 to flash 0 and 1 Michael Cardell Widerkrantz 2025-04-10 16:32:51 +02:00
  • 3edc0001e6
    fw: Fix splint complaints Michael Cardell Widerkrantz 2025-04-10 16:20:44 +02:00
  • 8562f08e2c
    fw: Check for NULL pointer in copy_name Mikael Ågren 2025-04-10 17:33:12 +02:00
  • 65e67b604d
    fw: Check NULL pointer in main.c Mikael Ågren 2025-04-10 12:48:46 +02:00
  • bc8efe03e7
    fw: Initialize arrays in partition_table.c Mikael Ågren 2025-04-10 12:50:01 +02:00
  • 648b0e91c8
    fw: Initialize arrays in auth_app.c Mikael Ågren 2025-04-10 12:25:51 +02:00
  • 76ba5e8ede
    fw: Check blake2s_init return value Mikael Ågren 2025-04-10 12:24:00 +02:00
  • 92a6b70118
    reset_test: Use digest of tkey-libs example app when starting from second flash slot Mikael Ågren 2025-04-10 10:38:54 +02:00
  • f1b8d2365d
    reset_test: Use IO_CDC instead of IO_TKEYCTRL Mikael Ågren 2025-04-10 10:41:26 +02:00
  • abc1fc8280
    fw: Remove leftover debug usage of puts/readselect/read Mikael Ågren 2025-04-09 15:45:58 +02:00
  • 3e34b32096
    fw: preload_app.c: Return same value for all failing slot num checks Mikael Ågren 2025-04-09 15:23:43 +02:00
  • b865111c0f
    fw: Add pointer argument NULL checks Mikael Ågren 2025-04-09 15:22:33 +02:00
  • e52b68650f
    check fix: Prevent SPI write if tx_buf is or tx_size is 0 Mikael Ågren 2025-04-09 12:38:04 +02:00
  • c14f8d634a
    check fix: Mark argument to debug function as unused Mikael Ågren 2025-04-09 12:34:46 +02:00
  • fba3b45380
    check fix: Remove _ prefix from function names Mikael Ågren 2025-04-09 11:20:11 +02:00
  • 2281a9f82f
    gitignore: Ignore tools binaries Mikael Ågren 2025-04-09 10:03:53 +02:00
  • ab64043318
    fw: Rename FIRMWARE_SOURCES, use globbing Michael Cardell Widerkrantz 2025-04-08 16:52:55 +02:00
  • 12764168e6
    Remove unused state CDI Michael Cardell Widerkrantz 2025-04-08 16:16:58 +02:00
  • 3d4f177359
    fw: Remove define about size of app in app slot 0 Michael Cardell Widerkrantz 2025-04-08 14:12:43 +02:00
  • dd641118b8
    fw: Use BLAKE2s functions from tkey-libs Michael Cardell Widerkrantz 2025-04-08 12:07:16 +02:00
  • f87a70b87a
    Import tag fw-3 of tkey-libs Michael Cardell Widerkrantz 2025-04-08 13:30:05 +02:00
  • eb02ad16da
    Add default partition table Mikael Ågren 2025-04-07 16:50:46 +02:00
  • 16e478a993
    fw: Use existing compute_app_digest function when loading from client Mikael Ågren 2025-04-07 16:40:20 +02:00
  • 06f67f3eec
    fw: Remove check CDI TODO Mikael Ågren 2025-04-07 16:39:34 +02:00
  • 98f852b27b
    fw: testloadapp: Add reset to client loading Michael Cardell Widerkrantz 2025-04-07 15:51:43 +02:00
  • dc9f2c6750
    fw: Simplify state machine Michael Cardell Widerkrantz 2025-04-07 15:49:08 +02:00
  • 557031aadc
    fw: Re-arrange check for free app slot Michael Cardell Widerkrantz 2025-04-07 15:23:19 +02:00
  • 9608c95931
    fw: Pass length of next_app_data to syscall reset Michael Cardell Widerkrantz 2025-04-07 14:45:56 +02:00
  • 6d76bdeafd
    fw: Read pre loaded app 0 size from flash Mikael Ågren 2025-04-07 13:35:23 +02:00
  • da275acebc
    Optionally add size of pre loaded app 0 when generating partition table Mikael Ågren 2025-04-04 19:11:08 +02:00
  • 8347ae7c8e
    fw: Add status syscall for flash status Michael Cardell Widerkrantz 2025-04-04 16:02:55 +02:00
  • e1d25f6d74
    fw: Indicate which partition table used by return value when reading Michael Cardell Widerkrantz 2025-04-04 15:36:43 +02:00
  • 2eee630649
    fw: Load default partition table image when installing preloaded app Michael Cardell Widerkrantz 2025-04-04 15:25:31 +02:00
  • 258e57fd49
    build: Don't ignore default partition table binary Michael Cardell Widerkrantz 2025-04-04 15:24:55 +02:00
  • 4c29de23dc
    Update length and digest of testloadapp Michael Cardell Widerkrantz 2025-04-04 14:54:35 +02:00
  • 1636b40c71
    fw: Implement redundancy of partition table Michael Cardell Widerkrantz 2025-04-04 14:32:15 +02:00
  • 03625b312d
    Remove commented out code about creating partition table Michael Cardell Widerkrantz 2025-04-04 13:59:34 +02:00
  • f24c7ea515
    fw: Add checksum to partition table Mikael Ågren 2025-04-03 15:48:51 +02:00
  • 75dd726998
    tool: Introduce b2s tool to help compute BLAKE2s digests Michael Cardell Widerkrantz 2025-03-31 16:32:50 +02:00
  • caa06dcc4a
    testapp: Fix illegal TK1_SYSCALL_RESET call Mikael Ågren 2025-03-28 12:37:44 +01:00
  • fba6e04c7f
    fw: Only allow sector aligned erase ops Mikael Ågren 2025-03-28 11:44:22 +01:00
  • 930d204e9f
    fw: Remove storage area address and size from partition table Mikael Ågren 2025-03-28 11:37:30 +01:00
  • b837eec9e6
    fw: Remove TK1_SYSCALL_REG_MGMT Mikael Ågren 2025-03-25 16:02:33 +01:00
  • 715d792d86
    fw: Remove pre loaded app auth and status from partition table Mikael Ågren 2025-03-25 15:00:40 +01:00
  • f590f423a3
    Add tool to inspect partition table dump Mikael Ågren 2025-03-25 12:59:57 +01:00
  • 29638a99a0
    fw: Only allow a specific app to start from first flash Michael Cardell Widerkrantz 2025-03-24 15:53:37 +01:00
  • d9a9e22074
    testloadapp: Delete any existing preloaded app before installing Mikael Ågren 2025-03-24 13:54:19 +01:00
  • ff472b0c1f
    WIP: verify pre loaded app 2 Mikael Ågren 2025-03-21 15:24:56 +01:00
  • 76b7ba7d73
    testloadapp: Use blake2s from tkey-libs Mikael Ågren 2025-03-21 15:23:19 +01:00
  • ea6b755699
    Add tool to create a flash image containing a preloaded app at slot 0 Mikael Ågren 2025-03-20 16:24:32 +01:00
  • 12916f9736
    Do not hardcode preloaded app 1 size Mikael Ågren 2025-03-20 16:13:13 +01:00
  • 04d54c9396
    Add QEMU_SYSCALL to enable Qemu syscalls Mikael Ågren 2025-03-20 16:04:09 +01:00
  • 7cd1f03933
    Add start of test app for installing and verifying flash app Michael Cardell Widerkrantz 2025-03-19 17:32:38 +01:00
  • 099fe46e1f
    Do note delete or corrupt preloaded app 0 when storing preloaded app 1 Mikael Ågren 2025-03-20 16:17:17 +01:00
  • 90da452f80
    Delete app digest and signature when preloaded app is deleted Mikael Ågren 2025-03-18 16:45:54 +01:00
  • 9018ae5b33
    Store app digest and signature for each app slot Mikael Ågren 2025-03-18 16:25:49 +01:00
  • 93a49f50c2
    Introduce syscalls to change preloaded app Michael Cardell Widerkrantz 2025-03-18 14:56:15 +01:00
  • ac5c2aef86
    fw: Add second pre-loaded app slot in flash Mikael Ågren 2025-03-18 13:18:33 +01:00
  • 1c4d11f49e
    fw: When requested, verify app digest before running Mikael Ågren 2025-03-18 09:16:58 +01:00
  • e4028d9a86
    Handle reset info in reset syscall Mikael Ågren 2025-03-17 18:41:50 +01:00
  • ba211212f0
    Add resetinfo testapp Jonas Thörnblad 2025-03-17 16:39:45 +01:00
  • ba9e08fcdb
    Add resetinfo handling Michael Cardell Widerkrantz 2025-03-17 15:47:19 +01:00
  • 76b25bc121
    Document state machine Michael Cardell Widerkrantz 2025-03-17 10:31:32 +01:00
  • ab12c201c4
    Experiment with new state machine Michael Cardell Widerkrantz 2025-03-17 10:31:08 +01:00
  • 6ef1b1c659
    Experiment with state machine when starting from flash Michael Cardell Widerkrantz 2025-03-14 17:02:14 +01:00
  • 9316886c88
    Introduce symbolic names for present and present & authenticated Michael Cardell Widerkrantz 2025-03-13 16:36:54 +01:00
  • a20bcdab29
    Make run_flash() and run() both call jump_to_app() Michael Cardell Widerkrantz 2025-03-13 16:31:32 +01:00
  • 820c273e7f
    Add hardcoded preloaded app size Michael Cardell Widerkrantz 2025-03-13 16:02:02 +01:00
  • a1acbe7cd7
    Add script to load pre-loaded app into flash Mikael Ågren 2025-03-13 15:34:14 +01:00
  • c273727c7b
    fw: Replace custom picorv32 instructions in qemu target Mikael Ågren 2025-03-13 15:33:20 +01:00
  • f2b78be4cb
    Add start of pre-loaded app from flash Michael Cardell Widerkrantz 2025-03-13 14:18:38 +01:00
  • 20b008d20e
    Add filesystem code and storage syscalls Michael Cardell Widerkrantz 2025-03-12 16:17:48 +01:00
  • bd2df9bd3f
    Update firmware state machine Michael Cardell Widerkrantz 2025-03-10 15:54:54 +01:00
  • 3ef1dade37
    Clarify golden path Michael Cardell Widerkrantz 2025-03-06 16:30:37 +01:00
  • aa9335691f
    doc: Add description on how firmware starts app from flash Michael Cardell Widerkrantz 2025-02-28 12:20:10 +01:00
  • d0c049cdba
    fw/ch552: Document new dynamic endpoint functionality main Michael Cardell Widerkrantz 2025-04-04 11:48:05 +02:00
  • 7eca72c2c3
    ch552: Add SPDX tags Michael Cardell Widerkrantz 2025-04-04 11:27:04 +02:00
  • d43585ee1a
    ch552: Add functionality to dynamically control USB endpoints Jonas Thörnblad 2025-03-24 16:00:41 +01:00
  • d94387a9e7
    ch552: Split functionality into separate files Jonas Thörnblad 2025-03-24 14:14:43 +01:00
  • fb361363f5
    testapp: Add commands to test dynamic usb enpdoints ch552_dynamic_pipes_test Mikael Ågren 2025-04-03 13:33:46 +02:00
  • 6b3ef15fb8
    fw: Disable all endpoints except CDC on start Mikael Ågren 2025-04-03 13:33:11 +02:00
  • 72a2ea9cd3
    tkey-libs: Copy files from tkey-libs repo Mikael Ågren 2025-04-03 13:31:54 +02:00
  • 056f2363b4
    ch552: Add functionality to dynamically control USB endpoints Jonas Thörnblad 2025-03-24 16:00:41 +01:00
  • 1ed8398700
    ch552: Split functionality into separate files Jonas Thörnblad 2025-03-24 14:14:43 +01:00
  • 7de49d2021
    ch552: Reorganize file directory structure Jonas Thörnblad 2025-03-19 15:44:37 +01:00
  • e4eeb89f19
    Merge 80e18a7edc69fe669719591bb0ccad6cbc72c99a into 8d8f4c7fafe84ee198f6794ed4b9aa0a0aecdefe Daniel Jobson 2025-03-14 13:25:34 +01:00