From d5d6b7fbe4e3f61baf096f42b21aea5772c1e11a Mon Sep 17 00:00:00 2001 From: Murali Karicheri Date: Fri, 3 Nov 2023 16:17:52 -0400 Subject: [PATCH] samples: fs: littlefs: sdmmc: remove fstab and fixed partition For littleFS, the fstab entries in DTS are ignored currently. So remove the overlay entries for the same. Also fixed-partitions can't be used for sdmmc-disk. So remove the same. We just need to have sdmmc node with zephyr,sdmmc-disk compatible string to have littleFS working on disk. build littleFS sample as follows:- west build -p always -b stm32h747i_disco_m7 \ samples/subsys/fs/littlefs/ -- \ -DOVERLAY_CONFIG=boards/stm32h747i_disco_m7.conf \ -DCONF_FILE=prj_blk.conf Signed-off-by: Murali Karicheri --- .../boards/stm32h747i_disco_m7.overlay | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/samples/subsys/fs/littlefs/boards/stm32h747i_disco_m7.overlay b/samples/subsys/fs/littlefs/boards/stm32h747i_disco_m7.overlay index bc2b79ea7a74a8..cf1c30e2e87b8c 100644 --- a/samples/subsys/fs/littlefs/boards/stm32h747i_disco_m7.overlay +++ b/samples/subsys/fs/littlefs/boards/stm32h747i_disco_m7.overlay @@ -4,35 +4,8 @@ * SPDX-License-Identifier: Apache-2.0 */ -/delete-node/ &storage_partition; - -/ { - fstab { - compatible = "zephyr,fstab"; - lfs1: lfs1 { - compatible = "zephyr,fstab,littlefs"; - read-size = <512>; - prog-size = <512>; - cache-size = <512>; - lookahead-size = <4096>; - block-cycles = <512>; - partition = <&storage_partition>; - mount-point = "/lfsemmc"; - }; - }; -}; - &sdmmc1 { sdmmc { compatible = "zephyr,sdmmc-disk"; - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - storage_partition: partition@0 { - label = "storage"; - reg = <0x0 DT_SIZE_M(2048)>; - }; - }; }; };