File tree Expand file tree Collapse file tree 3 files changed +20
-6
lines changed Expand file tree Collapse file tree 3 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,13 @@ $ mklittlefs --version
86
86
./mklittlefs version: 0.2.3-6-g9a0e072
87
87
```
88
88
89
+ ## Cross-compiling
90
+
91
+ To build for all cross compiled targets, run
92
+ ```
93
+ docker run --user $(id -u):$(id -g) --rm -v $(pwd):/workdir earlephilhower/gcc-cross bash -c "cd /workdir; bash build-cross.sh"
94
+ ```
95
+
89
96
90
97
## License
91
98
Original file line number Diff line number Diff line change @@ -92,12 +92,19 @@ void setLfsConfig()
92
92
s_cfg.erase = lfs_flash_erase;
93
93
s_cfg.sync = lfs_flash_sync;
94
94
95
- s_cfg.read_size = s_blockSize ;
96
- s_cfg.prog_size = s_blockSize ;
97
- s_cfg.block_size = s_blockSize;
95
+ s_cfg.read_size = 64 ;
96
+ s_cfg.prog_size = 64 ;
97
+ s_cfg.block_size = s_blockSize;
98
98
s_cfg.block_count = s_flashmem.size () / s_blockSize;
99
- s_cfg.cache_size = s_blockSize;
100
- s_cfg.lookahead_size = 128 ;
99
+ s_cfg.block_cycles = 16 ; // TODO - need better explanation
100
+ s_cfg.cache_size = 64 ;
101
+ s_cfg.lookahead_size = 64 ;
102
+ s_cfg.read_buffer = nullptr ;
103
+ s_cfg.prog_buffer = nullptr ;
104
+ s_cfg.lookahead_buffer = nullptr ;
105
+ s_cfg.name_max = 0 ;
106
+ s_cfg.file_max = 0 ;
107
+ s_cfg.attr_max = 0 ;
101
108
}
102
109
103
110
int littlefsTryMount () {
You can’t perform that action at this time.
0 commit comments