You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/05/17 17:53:21 UTC

[GitHub] [incubator-nuttx] gustavonihei opened a new pull request, #6291: ESP32-C3: Add support for Protected Mode

gustavonihei opened a new pull request, #6291:
URL: https://github.com/apache/incubator-nuttx/pull/6291

   ## Summary
   This PR intends to add Protected Mode support for **ESP32-C3** by relying on the PMP component from the RISC-V CPU for separating the userspace from the kernel.
   
   ### Note
   
   The **IDFboot bootloader** distributed in binary form also configures the PMP and the PMP configuration cannot be reset or overriden without a CPU reset.
   So using `BUILD_PROTECTED` on  ESP32-C3 requires the build of the IDFboot bootloader from source via `make bootloader` command, which will generate a version that bypasses the PMP configuration by deselecting the option `CONFIG_BOOTLOADER_REGION_PROTECTION_ENABLE` from IDF:
   https://github.com/espressif/esp-idf/blob/release/v4.4/components/bootloader/Kconfig.projbuild#L196-L202
   https://github.com/espressif/esp-idf/blob/release/v4.4/components/bootloader_support/src/bootloader_mem.c#L20-L23
   
   ## Impact
   New feature for **ESP32-C3**, only enabled when `BUILD_PROTECTED` is selected. Should not impact existing configurations.
   
   ## Testing
   `esp32c3-devkit:knsh`
   ```bash
   ./tools/configure.sh esp32c3-devkit:knsh
   make bootloader
   make ESPTOOL_BINDIR=.
   ```
   


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #6291: ESP32-C3: Add support for Protected Mode

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged PR #6291:
URL: https://github.com/apache/incubator-nuttx/pull/6291


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org