fdcavalcanti opened a new pull request, #18757:
URL: https://github.com/apache/nuttx/pull/18757

   ## Summary
   
   RISC-V Espressif Kconfig defaults for MCUboot OTA layout are updated to use 
slot size `0x150000` (~1.4MB), with secondary slot offset `0x170000`, scratch 
at `0x2C0000`, storage MTD at `0x300000`, and matching documentation updates on 
the ESP32-C3, ESP32-C6, and ESP32-H2 platform pages.
   
   * arch/risc-v: update MCUBoot slot size and offsets
   
   Increase image slot size from ~1MB to ~1.4MB to allow more features by 
default.
   Solves issues when enabling debug features would extrapolate the slot size.
   
   * documentation: update ESP32-C3|C6|H2 flash allocation table
   
   Update the user documentation for flash allocation when using MCUboot.
   
   
   Reason for this change: image size is getting to close to 1MB and may not 
fit the slot when some features such as Wi-Fi are enabled.
   
   ## Impact
   <!-- Please fill the following sections with YES/NO and provide a brief 
explanation -->
   
   Impact on user: No.
   <!-- Does it impact user's applications? How? -->
   
   Impact on build: Yes, avoids bad image build when too many features are 
enabled along MCUboot.
   <!-- Does it impact on building NuttX? How? (please describe the required 
changes on the build system) -->
   
   Impact on hardware: ESP32-C3|C6|H2|P4.
   <!-- Does it impact a specific hardware supported by NuttX? -->
   
   Impact on documentation: Yes, updates the documentation for flash allocation 
when using MCUboot.
   <!-- Does it impact the existing documentation? Please provide additional 
documentation to reflect that -->
   
   Impact on security: No.
   <!-- Does it impact NuttX's security? -->
   
   Impact on compatibility: No.
   <!-- Does it impact compatibility between previous and current versions? Is 
this a breaking change? -->
   
   ## Testing
   <!-- Please provide all the testing procedure. Consider that upstream 
reviewers should be able to reproduce the same testing performed internally -->
   
   ### Building
   <!-- Provide how to build the test for each SoC being tested -->
   - `./tools/configure.sh esp32c6-devkitc:mcuboot_update_agent`
   - Enable DEBUG_ASSERTIONS and DEBUG_FEATURES
   - `make bootloader`
   - `make ESPTOOL_BINDIR=./`
   
   ### Results
   
   - Before change:
   Build would failure when `imgtool` was invoked because the image size was 
bigger than the MCUboot slot.
   ```
   Usage: imgtool sign [OPTIONS] INFILE OUTFILE
   Try 'imgtool sign -h' for help.
   
   Error: Image size (0x10a894) + trailer (0x630) exceeds requested size 
0x100000
   make: *** [tools/Unix.mk:575: nuttx] Error 2
   ```
   
   - After changes:
   Build succeeds.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to