Skip to content

fix(mtd): support for very small partition sizes of just 32B#26936

Draft
alexcekay wants to merge 1 commit intomainfrom
pr-fix-small-mtd
Draft

fix(mtd): support for very small partition sizes of just 32B#26936
alexcekay wants to merge 1 commit intomainfrom
pr-fix-small-mtd

Conversation

@alexcekay
Copy link
Copy Markdown
Member

Solved Problem

  • When you have small partitions, like using 1 block of an EEPROM only in an px4_mtd_entry_t a partition of size 32 byte is used.
  • The mtd systemcmd can not handle those well as it works in chunks > 32 byte, which for example causes problems with read(fd, v, sizeof(v)) == sizeof(v) when sizeof(v) > 32 (which it currently is)

Solution

  • Use chunks of 32 bytes

Test coverage

  • Tested with the v6s on the bench

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 1, 2026

💡 Commit messages could be improved

Not blocking, but these commit messages could use some cleanup.

Commit Message Suggestion
1bba8348ba Fix mtd command for very small partition sizes of just 32B Missing conventional commit format (e.g. "feat(ekf2): add something")

See the commit message convention for details.


This comment will be automatically removed once the issues are resolved.

@alexcekay alexcekay changed the title fix(mtd systemcmd): support for very small partition sizes of just 32B fix(mtd): support for very small partition sizes of just 32B Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants