Skip to content

Commit bf46e5d

Browse files
authored
Add littlefs file system and update Sys.IO.FileSystem (#2911)
1 parent 828e15b commit bf46e5d

File tree

229 files changed

+16172
-13362
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

229 files changed

+16172
-13362
lines changed

.devcontainer/All/Dockerfile.All

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM ghcr.io/nanoframework/dev-container-all:v2.47
1+
FROM ghcr.io/nanoframework/dev-container-all:v2.48

.devcontainer/All/Dockerfile.All.SRC

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ RUN git clone --branch nf-build https://github.com/nanoframework/STM32CubeL4.git
7777
RUN git clone --branch v6.4.0_rel --recursive https://github.com/eclipse-threadx/threadx.git --depth 1 ./sources/AzureRTOS \
7878
&& git clone --branch v6.3.0_rel --recursive https://github.com/eclipse-threadx/netxduo.git --depth 1 ./sources/NetxDuo
7979

80-
# Clone dependent repos (mbedtls, fatfs and spiffs)
80+
# Clone dependent repos (mbedtls, fatfs and littlefs)
8181
RUN git clone --branch mbedtls-2.28.5 https://github.com/ARMmbed/mbedtls.git --depth 1 ./sources/mbedtls \
8282
&& git clone --branch R0.15 https://github.com/abbrev/fatfs.git --depth 1 ./sources/fatfs \
83-
&& git clone --branch nf-build https://github.com/nanoframework/spiffs.git --depth 1 ./sources/spiffs
83+
&& git clone --branch v2.9.3 https://github.com/littlefs-project/littlefs --depth 1 ./sources/littlefs
8484

8585
# Clone FreeRTOS and what is needed for ESP32
8686
RUN git clone --branch V10.4.1-kernel-only https://github.com/FreeRTOS/FreeRTOS-Kernel.git --depth 1 ./sources/FreeRTOS \

.devcontainer/All/scripts/git-pull-repos.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ cd /sources/CMSIS_5
2424
git pull origin 5.5.1
2525
cd /sources/lwip
2626
git pull origin STABLE-2_1_3_RELEASE
27-
cd /sources/spiffs
28-
git pull origin nf-build
27+
cd /sources/littlefs
28+
git pull origin v2.9.3
2929
cd /sources/SimpleLinkCC32
3030
git pull origin 4.10.00.07
3131
cd /sources/SimpleLinkCC13
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM ghcr.io/nanoframework/dev-container-azure-rtos:v1.26
1+
FROM ghcr.io/nanoframework/dev-container-azure-rtos:v1.27

.devcontainer/AzureRTOS/Dockerfile.AzureRTOS.SRC

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ RUN git clone --branch nf-build https://github.com/nanoframework/STM32CubeL4.git
6666
RUN git clone --branch v6.4.0_rel --recursive https://github.com/eclipse-threadx/threadx.git --depth 1 ./sources/AzureRTOS \
6767
&& git clone --branch v6.4.0_rel --recursive https://github.com/eclipse-threadx/netxduo.git --depth 1 ./sources/NetxDuo
6868

69-
# Clone dependent repos (mbedtls, fatfs and spiffs)
69+
# Clone dependent repos (mbedtls, fatfs and littlefs)
7070
RUN git clone --branch mbedtls-2.28.5 https://github.com/ARMmbed/mbedtls.git --depth 1 ./sources/mbedtls \
7171
&& git clone --branch R0.15 https://github.com/abbrev/fatfs.git --depth 1 ./sources/fatfs \
72-
&& git clone --branch nf-build https://github.com/nanoframework/spiffs.git --depth 1 ./sources/spiffs
72+
&& git clone --branch v2.9.3 https://github.com/littlefs-project/littlefs --depth 1 ./sources/littlefs
7373

7474
# set gcc location
7575
ARG TMP_GCC_PATH=/usr/local/bin/gcc
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM ghcr.io/nanoframework/dev-container-chibios:v1.27
1+
FROM ghcr.io/nanoframework/dev-container-chibios:v1.28

.devcontainer/ChibiOS/Dockerfile.ChibiOS.SRC

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ RUN git clone --branch nf-build https://github.com/nanoframework/STM32CubeL4.git
6464
&& git clone --branch nf-build https://github.com/nanoframework/STM32CubeH7.git --depth 1 ./sources/STM32CubeH7 \
6565
&& git clone --branch chibios-21.11.x https://github.com/ChibiOS/ChibiOS-Contrib.git --depth 1 ./sources/ChibiOs-Contrib
6666

67-
# Clone dependent repos (mbedtls, fatfs and spiffs etc.)
67+
# Clone dependent repos (mbedtls, fatfs and littlefs etc.)
6868
RUN git clone --branch mbedtls-2.28.5 https://github.com/ARMmbed/mbedtls.git --depth 1 ./sources/mbedtls \
6969
&& git clone --branch R0.15 https://github.com/abbrev/fatfs.git --depth 1 ./sources/fatfs \
70-
&& git clone --branch nf-build https://github.com/nanoframework/spiffs.git --depth 1 ./sources/spiffs \
70+
&& git clone --branch v2.9.3 https://github.com/littlefs-project/littlefs --depth 1 ./sources/littlefs \
7171
&& git clone --branch STABLE-2_1_3_RELEASE https://github.com/lwip-tcpip/lwip.git --depth 1 ./sources/lwip
7272

7373
# set gcc location

.devcontainer/TI/Dockerfile.TI

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM ghcr.io/nanoframework/dev-container-ti:v1.22
1+
FROM ghcr.io/nanoframework/dev-container-ti:v1.23

.devcontainer/TI/Dockerfile.TI.SRC

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ RUN mkdir -p /tmp/dc-extracted/titools \
3232
&& curl -o /tmp/dc-downloads/titools.zip $TI_TOOL_URL -L \
3333
&& unzip -d /tmp/dc-extracted/titools /tmp/dc-downloads/titools.zip
3434

35-
3635
FROM ubuntu:latest AS devcontainer
3736

3837
# Avoid warnings by switching to noninteractive

CMake/Modules/FindCHIBIOS_FATFS.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ foreach(SRC_FILE ${FATFS_SRCS})
2727

2828
find_file(FATFS_SRC_FILE ${SRC_FILE}
2929
PATHS
30-
${CMAKE_SOURCE_DIR}/targets/ChibiOS/_FatFS/
30+
${CMAKE_SOURCE_DIR}/targets/ChibiOS/_FatFs/
3131
${fatfs_SOURCE_DIR}/source
3232

3333
CMAKE_FIND_ROOT_PATH_BOTH
@@ -47,7 +47,7 @@ if(NF_FEATURE_HAS_USB_MSD)
4747
list(APPEND CHIBIOS_FATFS_SOURCES ${chibios-contrib_SOURCE_DIR}/os/various/fatfs_bindings/fatfs_diskio.c)
4848
else()
4949
# get it from the targets directory for fixing STM32F7 series Cache issues
50-
list(APPEND CHIBIOS_FATFS_SOURCES ${CMAKE_SOURCE_DIR}/targets/ChibiOS/_FatFS/fatfs_diskio.c)
50+
list(APPEND CHIBIOS_FATFS_SOURCES ${CMAKE_SOURCE_DIR}/targets/ChibiOS/_FatFs/fatfs_diskio.c)
5151
endif()
5252

5353
include(FindPackageHandleStandardArgs)

0 commit comments

Comments
 (0)