https://github.com/shizacat/smartfs-tools
Python library and utilities for creating a dump of SmartsFS from a directory.
https://github.com/shizacat/smartfs-tools
nuttx python-library
Last synced: 4 months ago
JSON representation
Python library and utilities for creating a dump of SmartsFS from a directory.
- Host: GitHub
- URL: https://github.com/shizacat/smartfs-tools
- Owner: shizacat
- Created: 2024-08-26T13:15:42.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-09-29T10:56:24.000Z (8 months ago)
- Last Synced: 2025-11-27T20:15:23.280Z (6 months ago)
- Topics: nuttx, python-library
- Language: Python
- Homepage:
- Size: 169 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog.md
Awesome Lists containing this project
README
# SmartFS tools
[](https://coveralls.io/github/shizacat/smartfs-tools?branch=main)
Python library and utilities for creating a dump of SmartsFS from a directory. The dump will be written on flash memory next.
SmartFS is a file system usage in NuttX. SmartFS stands for Sector Mapped Allocation for Really Tiny (SMART) flash.
# Links
- [SmartFS Internals](https://cwiki.apache.org/confluence/display/NUTTX/SmartFS+Internals)
# Usage
Install
```bash
pip install smartfs_tools
```
Example run:
```bash
# Veiw help
smartfs_mkdump --help
# Create dump
smartfs_mkdump \
--base-dir ./dir_with_content \
--out out.bin \
--storage-size 1048576 \
--smart-erase-block-size 4096 \
--smart-sector-size 1024 \
--smart-max-len-filename 16
```
# Developemnt
Run script (smartfs_mkdump):
```bash
python -m smartfs_tools.script
```
## Tests
You must have [uv](https://docs.astral.sh/uv/) installed.
```bash
uv venv
uv sync
uv run pytest
# with coverage
uv run pytest --cov source
```