zephyr/subsys
Dmytro Semenets 8b33da03f3 fs: shell: littlefs: add support of block devices
For flash device, littlefs should be located at the partition.
Current implementation of the fs shell is hardcoded for the flash device
and the compilation fails if STORAGE_PARTITION isn't defined in the
device tree.
Add options for block dev support. This allows to mount littlefs on the
block device from the shell, and also removes the compile time
dependency on STORAGE_PARTITION, if CONFIG_FS_LITTLEFS_BLK_DEV is set.

Fix mounting of littlefs blk device. lfs_mount stucks in case when the
read/prog buffer less than SDMMC block size, because it can cause memory
corrupt, for example, look into function 'card_read_blocks' how it writes
data to read buffer in case when buffer isn't aligned. With default
config we have 32 bytes in the read buffer but trying to write
'block_size' to it and get memory corrupt, the same issue will be in
case when the read buffer is aligned.

This is an incremental improvement, ideally, someone should implement
selection of the storage dev from the shell args.

Co-authored-by: Mykola Kvach <mykola_kvach@epam.com>
Signed-off-by: Dmytro Semenets <dmytro_semenets@epam.com>
2023-09-01 17:44:15 +02:00
..
bluetooth Bluetooth: Audio: Rename codec qos framing 2023-09-01 09:54:18 +02:00
canbus canbus: isotp: replace internal z_timeout with k_timer 2023-08-29 16:14:35 +02:00
console
debug debug: gdbstub: s/device.h/init.h 2023-08-30 11:52:49 +02:00
demand_paging
dfu
disk
dsp
emul emul: Don't panic if matching emul can't be found 2023-07-18 11:09:08 +00:00
fb fb: cfb: Remove unused value 2023-08-14 18:08:59 +00:00
fs fs: shell: littlefs: add support of block devices 2023-09-01 17:44:15 +02:00
input drivers,subsys: fix few missing k_work_delayable_from_work 2023-08-28 10:12:21 +02:00
ipc ipc: rpmsg_service: add missing init.h 2023-08-31 14:43:08 +02:00
jwt
logging logging: fix few mismatched CONTAINER_OF 2023-08-31 14:08:31 +02:00
lorawan lorawan: services: add missing init.h 2023-08-30 11:37:53 +02:00
mgmt mgmt/MCUmgr/grp/img: Reduce logic in img_mgmt_slot_to_image 2023-08-31 10:19:15 +02:00
modbus modbus: use macro for function code for input register 2023-08-16 14:58:47 +02:00
modem subsys/modem: Add modem modules 2023-08-30 13:48:51 +02:00
net net: wifi_utils: Add missing break 2023-09-01 16:37:34 +02:00
pm pm: Fix unused-parameter warnings 2023-08-21 17:15:56 +02:00
portability COVERAGE: Fix COVERAGE_GCOV dependencies 2023-08-24 15:36:31 +02:00
random random: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
retention retention: Drop prefix/checksum code if not used 2023-08-24 20:44:02 +02:00
rtio rtio: add missing init.h include 2023-08-29 11:29:37 +01:00
sd sd: clean up sizes of some SD data fields 2023-08-31 10:19:37 +02:00
sensing sensing: sensor_mgmt: s/device.h/init.h 2023-08-29 12:17:24 +01:00
settings settings: rename shadow variables 2023-08-22 11:39:58 +02:00
shell shell: make ascii filtering optional 2023-08-29 19:22:16 +03:00
sip_svc
stats
storage storage: rename shadow variables 2023-08-22 11:39:58 +02:00
task_wdt
testsuite tests: interrupt util: Fix for native/posix targets 2023-09-01 09:54:27 +02:00
timing
tracing tracing_user: let user implementation to do everything 2023-08-17 15:13:17 +02:00
usb usb: host: core: add missing init.h 2023-08-29 16:13:19 +01:00
zbus zbus: improve the way of storing observers 2023-08-29 10:18:55 +02:00
CMakeLists.txt subsys/modem: Add modem modules 2023-08-30 13:48:51 +02:00
Kconfig subsys/modem: Add modem modules 2023-08-30 13:48:51 +02:00