Commit graph

410 commits

Author SHA1 Message Date
b006de37ad shell: generalise interface of mufs write/mufs append by reading stdin 2017-10-19 16:06:05 +02:00
3df8a7afdf main: check if the flash chip can be probed properly 2017-10-19 13:23:28 +02:00
ece960b3c9 stm32f0: stm32f1: usart: send \r\n instead of \r 2017-10-19 13:23:02 +02:00
1e9a5b3fe4 shell: return exit code for admin shell 2017-10-19 13:21:52 +02:00
1503c6f0ed usart: set baud rate to 115200 2017-10-12 17:10:00 +02:00
52956ae46d stm32f0: spi: divide clock rate by 2 instead of 64 2017-10-12 17:00:00 +02:00
63525ac93b stm32f1: spi: divide clock rate by 2 instead of 64 2017-10-12 16:53:12 +02:00
a53484051a stm32f1: spi: use SPI mode 0 instead of SPI mode 3 2017-10-10 18:20:32 +02:00
6defd2365c spi: flash: require manufacturer ID 2017-10-09 17:21:12 +02:00
84454c8054 shell: flash: show JEDEC ID when running flash info 2017-10-09 17:18:17 +02:00
81430df971 core: spi: flash: implement flash_get_jedec_id() 2017-10-09 17:17:47 +02:00
238ea35524 stm32f1: fix PRSZu macro 2017-10-09 17:16:59 +02:00
36971300b0 ftl: map: only declare __wrap_find_block() in testing mode 2017-10-09 16:24:56 +02:00
adbd045af5 mufs: fix offset calculation in mufs_seek() 2017-10-05 16:58:50 +02:00
23b478e582 shell: fix off by one in draw_progress() 2017-10-03 17:21:47 +02:00
635df8e06f shell: mufs: use fprintf in shell_stat() 2017-10-03 16:49:03 +02:00
9a2888341d shell: mufs: fix order 2017-10-03 16:44:02 +02:00
5cc4824fdb shell: mufs: implement mufs cp to copy files 2017-10-03 16:40:49 +02:00
1638f9b0f1 shell: implement draw_progress() as a convenience function 2017-10-03 16:40:23 +02:00
4c2f4eab24 ftl: call trace_path() in ftl_sync() to get the page descriptor to write out 2017-10-03 14:55:32 +02:00
dddba0af8f ftl: check outstanding flags in ftl_seek() 2017-10-03 14:24:34 +02:00
52a7ec1fae mufs: call flash_sync() after each flash_write() 2017-10-03 14:20:47 +02:00
bf1f0f4bee test: ftl: add tests for ftl_read() 2017-10-03 13:56:38 +02:00
0d1ffa71fb ftl: change order of decrementing the used page count to be more logical 2017-10-03 13:33:45 +02:00
bea048006a ftl: separate code to start a transaction 2017-10-03 13:19:09 +02:00
65d269e2d4 ftl: maintain state for the transaction that is currently active 2017-10-03 13:15:10 +02:00
e40bd819d6 test: flash: mock flash_write0() and flash_copy() 2017-10-03 11:34:39 +02:00
fc1476d9dd test: ftl: add test to check if an exact match works for trace_path() 2017-10-03 11:24:44 +02:00
851c0cb7a6 test: ftl: check returned page descriptor for trace_path() 2017-10-03 11:14:44 +02:00
ae3b7933b7 test: ftl: add tests for trace_path() 2017-10-03 11:07:17 +02:00
f3eb5df644 test: ftl: add tests for ftl_is_mapped() 2017-09-21 17:27:15 +02:00
5004fed4aa test: reorganise code 2017-09-21 16:44:00 +02:00
6243dabea8 test: ftl: add tests for find_head() 2017-09-21 15:36:44 +02:00
920a59499b test: ftl: add tests for find_root() 2017-09-20 15:41:41 +02:00
b8426f12f2 test: ftl: mock read_page_desc() 2017-09-20 15:28:30 +02:00
1153f2bdcd test: ftl: improve descriptions for the test cases 2017-09-20 14:56:07 +02:00
6dcfd0d322 test: add tests for find_last_group() 2017-09-20 14:34:13 +02:00
d778e5a325 test: add tests for find_last_block() 2017-09-20 14:33:54 +02:00
c6744d6975 test: ftl: add tests for find_block() 2017-09-20 14:31:54 +02:00
73057f6f25 test: only call memcpy() in __wrap_flash_read() and __wrap_flash_write() when there is something to copy 2017-09-20 14:31:07 +02:00
0da262cc0f test: implement __wrap_is_group_erased() and __wrap_find_block() 2017-09-20 14:30:38 +02:00
bbfb9ca800 ftl: mock is_group_erased() and find_block() and simplify implementation of binary search 2017-09-20 14:30:08 +02:00
8e4dc856e7 test: ftl: separate mocked functions 2017-09-19 18:45:37 +02:00
2ff1003430 test: ftl: add tests for write_upage() 2017-09-19 18:45:18 +02:00
c1a7b885f2 test: call __real_write_page_desc() in tests and mock prepare_head() and write_page_desc() 2017-09-19 18:44:53 +02:00
d2aa954573 test: remove redundant declarations 2017-09-19 17:49:48 +02:00
f951d695e8 test: flash: use different mocking technique 2017-09-19 17:49:26 +02:00
b4ecfb527c ftl: check magic in read_page_group() 2017-09-19 16:19:01 +02:00
ed49402e3b test: ftl: add tests for read_page_group() 2017-09-19 16:18:46 +02:00
3e0df6537a test: ftl: implement tests for write_page_desc() 2017-09-19 16:07:13 +02:00