Skip to content

Conversation

dpgeorge
Copy link
Member

Summary

Change ROMFS partition configuration variables to be more consistent across the ports, and use index 0 as the starting partition number (instead of index 1).

Reason:

  • vfs.rom_ioctl() numbers the partitions starting from 0
  • mpremote romfs -p <partition id> numbers the partitions starting from 0

Testing

CI should test this, building the boards that enable ROMFS on stm32 and esp8266.

@dpgeorge
Copy link
Member Author

@iabdalkader FYI

Copy link

Code size report:

   bare-arm:    +0 +0.000% 
minimal x86:    +0 +0.000% 
   unix x64:    +0 +0.000% standard
      stm32:    +0 +0.000% PYBV10
     mimxrt:    +0 +0.000% TEENSY40
        rp2:    +0 +0.000% RPI_PICO_W
       samd:    +0 +0.000% ADAFRUIT_ITSYBITSY_M4_EXPRESS
  qemu rv32:    +0 +0.000% VIRT_RV32

@dpgeorge dpgeorge changed the title Ports romfs consistent part naming ports: make naming of ROMFS partition config variables consistent Mar 11, 2025
@dpgeorge dpgeorge added this to the release-1.25.0 milestone Mar 11, 2025
@iabdalkader
Copy link
Contributor

This is much better, thanks! Note, this PR will have to be updated or merged first #16869

Change ROMFS partition configuration variables to use index 0 as the
starting partition number (instead of index 1).

Reasons to do this:
- `vfs.rom_ioctl()` numbers the partitions starting from 0
- `mpremote romfs -p <partition id>` numbers the partitions starting from 0

Signed-off-by: Damien George <damien@micropython.org>
For consistency with the stm32 port.

Signed-off-by: Damien George <damien@micropython.org>
@dpgeorge dpgeorge force-pushed the ports-romfs-consistent-part-naming branch from 6105f50 to d5aeca2 Compare March 13, 2025 07:30
@dpgeorge dpgeorge merged commit d5aeca2 into micropython:master Mar 13, 2025
70 checks passed
@dpgeorge dpgeorge deleted the ports-romfs-consistent-part-naming branch March 13, 2025 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants