-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
!!! WARNING: BREAKING CHANGE !!! SPI_SIZE and DISABLE_SPIFFS directives are removed! If you have an application that is using spiffs make sure to add the following line in your component.mk and remove the `DISABLE_SPIFFS` directive, if present. ``` HWCONFIG := spiffs ``` If your application is not using spiffs then just remove the `DISABLE_SPIFFS` directive. For more information take a look at the [migration document](https://sming.readthedocs.io/en/feature-partition-tables/upgrading/4.2-4.3.html). More information about the changes can be seen below: ========================================== Implement class-based API for Sming with support for all architectures. See #1676 for discussion. Summary of changes: * Create new `Storage` component and port low-level Esp32 partition support * Use `gen_esp32part.py` tool as basis for new `hwconfig.py` tool. Integrate into build system. Add new targets. * Implement a C++ API. `Partition::SubType::App` and `Partition::SubType::Data` are strong enums used to identify all the standard types, but the base API still uses type/subtype so custom types can be accommodated. * Revise esp8266 sector layout - see updated documentation. This places all the critical information at the start of flash, whereas previously it was at the end. This avoids issues where flash size is set incorrectly. * Custom `sysParam` data partition sub-type used for esp8266 system parameters and RF calibration data. * Add support for 'external' devices (e.g. SPIRAM, supplementary flash, EEPROM, etc.) using a custom `Storage` partition type. Applications register a `Storage::Device` object implementation with the Partition API to register these external devices with a C++ interface for them. * Disentangle SPIFFS from rBoot - OTA upgrading uses partition API. * Drive SPIFFS image creation from partition table entries - more flexible, multiple images. * Generate build variables directly from hardware config file (see `out/.../hwconfig.mk`). Preserve existing build variables where possible, document changes. * Document hardware configuration with schema and incorporate validation. This can assist with fixing malformed configurations and supplements checks included in the partition tool. * Add `Basic_Storage` sample to more thoroughly demonstrate usage * Update documentation * Test (HostTests) on all arches * Remove `DISABLE_SPIFFS`, `SPI_SIZE` and `SPIFF_SIZE` build variables from all samples, including those in submodules. * Include samples and tests within submodules to CI * Add check to ensure image size will fit within partition
- Loading branch information
Showing
219 changed files
with
5,626 additions
and
949 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ COMPONENT_DEPENDS := \ | |
driver \ | ||
heap \ | ||
fatfs \ | ||
esp_spiffs \ | ||
esp32 \ | ||
gdbstub \ | ||
esptool | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name": "Standard config with single ROM", | ||
"comment": "Should work with any Esp32 variant", | ||
"arch": "Esp32", | ||
"partition_table_offset": "0x8000", | ||
"devices": { | ||
"spiFlash": { | ||
"type": "flash", | ||
"size": "4M", | ||
"mode": "dio", | ||
"speed": 40 | ||
} | ||
}, | ||
"partitions": { | ||
"phy_init": { | ||
"address": "0x00f000", | ||
"size": "0x1000", | ||
"type": "data", | ||
"subtype": "phy" | ||
}, | ||
"nvs": { | ||
"address": "0x009000", | ||
"size": "0x6000", | ||
"type": "data", | ||
"subtype": "nvs" | ||
}, | ||
"factory": { | ||
"address": "0x010000", | ||
"size": "0x1f0000", | ||
"type": "app", | ||
"subtype": "factory", | ||
"filename": "$(TARGET_BIN)" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
# Esp8266 build.run.sh | ||
|
||
make -C "$SMING_PROJECTS_DIR/samples/HttpServer_FirmwareUpload" python-requirements | ||
$MAKE_PARALLEL samples | ||
make clean samples-clean | ||
$MAKE_PARALLEL Basic_Blink ENABLE_CUSTOM_HEAP=1 DEBUG_VERBOSE_LEVEL=3 | ||
$MAKE_PARALLEL HttpServer_ConfigNetwork ENABLE_CUSTOM_LWIP=2 STRICT=1 | ||
|
||
# Some samples (UPnP, for example) require more recent compiler | ||
if [ "$BUILD_COMPILER" == "eqt" ]; then | ||
$MAKE_PARALLEL component-samples | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "Two ROM slots with single SPIFFS", | ||
"base_config": "spiffs", | ||
"partitions": { | ||
"rom1": { | ||
"address": "0x108000", | ||
"size": "992K", | ||
"type": "app", | ||
"subtype": "ota_0", | ||
"filename": "$(RBOOT_ROM_1_BIN)" | ||
} | ||
} | ||
} |
Oops, something went wrong.