You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "JianyuWang0623 (via GitHub)" <gi...@apache.org> on 2025/02/13 13:50:48 UTC

[PR] boards/esp32s3-devkit: Initializing configuration for Fastboot [nuttx]

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

   ## Summary
   boards/esp32s3-devkit
     1. Initializing configuration for Fastboot
     2. Add fastboot starting command to initialization script
     3. Add doc for USB Fastboot
   
   ## Impact
   boards/esp32s3-devkit
   
   ## Testing
   ```
   $ ./tools/configure.sh -l esp32s3-devkit:fastboot
   $ make flash ESPTOOL_PORT=/dev/ttyACMx -j
   $ fastboot getvar kernel
   kernel: NuttX
   Finished. Total time: 0.000s
   ```
   


-- 
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


Re: [PR] boards/esp32s3-devkit: Initializing configuration for Fastboot [nuttx]

Posted by "tmedicci (via GitHub)" <gi...@apache.org>.
tmedicci commented on code in PR #15836:
URL: https://github.com/apache/nuttx/pull/15836#discussion_r1958191868


##########
Documentation/platforms/xtensa/esp32s3/boards/esp32s3-devkit/index.rst:
##########
@@ -857,3 +857,23 @@ To test it, just run the following::
   # Host
   $ sudo mkfs.ext4 /dev/sdx
   $ sudo mount /dev/sdx ./mnt/
+
+fastboot
+--------
+
+Basic Fastboot configuration based on esp32s3-devkit:usb_device
+
+You can run the configuration and compilation procedure::
+
+  $ ./tools/configure.sh -l esp32s3-devkit:fastboot
+  $ make flash ESPTOOL_PORT=/dev/ttyACMx -j
+
+To test it, just run the following::
+
+  # Host
+  $ fastboot devices
+  1234    fastboot
+
+  $ fastboot getvar kernel
+  Kernel: NuttX
+  Finished. Total time: 0.000s

Review Comment:
   Thanks!



-- 
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


Re: [PR] boards/esp32s3-devkit: Initializing configuration for Fastboot [nuttx]

Posted by "JianyuWang0623 (via GitHub)" <gi...@apache.org>.
JianyuWang0623 commented on code in PR #15836:
URL: https://github.com/apache/nuttx/pull/15836#discussion_r1958134827


##########
boards/xtensa/esp32s3/esp32s3-devkit/configs/fastboot/defconfig:
##########


Review Comment:
   Maybe users only focus on configurations related to "Fastboot".



-- 
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


Re: [PR] boards/esp32s3-devkit: Initializing configuration for Fastboot [nuttx]

Posted by "JianyuWang0623 (via GitHub)" <gi...@apache.org>.
JianyuWang0623 commented on code in PR #15836:
URL: https://github.com/apache/nuttx/pull/15836#discussion_r1956960550


##########
Documentation/platforms/xtensa/esp32s3/boards/esp32s3-devkit/index.rst:
##########
@@ -857,3 +857,23 @@ To test it, just run the following::
   # Host
   $ sudo mkfs.ext4 /dev/sdx
   $ sudo mount /dev/sdx ./mnt/
+
+fastboot
+--------
+
+Basic Fastboot configuration based on esp32s3-devkit:usb_device
+
+You can run the configuration and compilation procedure::
+
+  $ ./tools/configure.sh -l esp32s3-devkit:fastboot
+  $ make flash ESPTOOL_PORT=/dev/ttyACMx -j
+
+To test it, just run the following::
+
+  # Host
+  $ fastboot devices
+  1234    fastboot
+
+  $ fastboot getvar kernel
+  Kernel: NuttX
+  Finished. Total time: 0.000s

Review Comment:
   @tmedicci Host side.



-- 
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


Re: [PR] boards/esp32s3-devkit: Initializing configuration for Fastboot [nuttx]

Posted by "tmedicci (via GitHub)" <gi...@apache.org>.
tmedicci commented on code in PR #15836:
URL: https://github.com/apache/nuttx/pull/15836#discussion_r1954547233


##########
Documentation/platforms/xtensa/esp32s3/boards/esp32s3-devkit/index.rst:
##########
@@ -857,3 +857,23 @@ To test it, just run the following::
   # Host
   $ sudo mkfs.ext4 /dev/sdx
   $ sudo mount /dev/sdx ./mnt/
+
+fastboot
+--------
+
+Basic Fastboot configuration based on esp32s3-devkit:usb_device
+
+You can run the configuration and compilation procedure::
+
+  $ ./tools/configure.sh -l esp32s3-devkit:fastboot
+  $ make flash ESPTOOL_PORT=/dev/ttyACMx -j
+
+To test it, just run the following::
+
+  # Host
+  $ fastboot devices
+  1234    fastboot
+
+  $ fastboot getvar kernel
+  Kernel: NuttX
+  Finished. Total time: 0.000s

Review Comment:
   Where should I run these commands?



-- 
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


Re: [PR] boards/esp32s3-devkit: Initializing configuration for Fastboot [nuttx]

Posted by "tmedicci (via GitHub)" <gi...@apache.org>.
tmedicci commented on code in PR #15836:
URL: https://github.com/apache/nuttx/pull/15836#discussion_r1958191346


##########
boards/xtensa/esp32s3/esp32s3-devkit/configs/fastboot/defconfig:
##########
@@ -0,0 +1,11 @@
+#include "../usb_device/defconfig"

Review Comment:
   Yes, but I couldn't find any other usage of such syntax on NuttX (and I don't think this kind of syntax is generated by `make savedefconfig`, so I prefer not to mix syntaxes.
   
   Any ideas about it @cederom , @acassis and @jerpelea ?



-- 
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


Re: [PR] boards/esp32s3-devkit: Initializing configuration for Fastboot [nuttx]

Posted by "tmedicci (via GitHub)" <gi...@apache.org>.
tmedicci commented on code in PR #15836:
URL: https://github.com/apache/nuttx/pull/15836#discussion_r1958071860


##########
Documentation/platforms/xtensa/esp32s3/boards/esp32s3-devkit/index.rst:
##########
@@ -857,3 +857,23 @@ To test it, just run the following::
   # Host
   $ sudo mkfs.ext4 /dev/sdx
   $ sudo mount /dev/sdx ./mnt/
+
+fastboot
+--------
+
+Basic Fastboot configuration based on esp32s3-devkit:usb_device
+
+You can run the configuration and compilation procedure::
+
+  $ ./tools/configure.sh -l esp32s3-devkit:fastboot
+  $ make flash ESPTOOL_PORT=/dev/ttyACMx -j
+
+To test it, just run the following::
+
+  # Host
+  $ fastboot devices
+  1234    fastboot
+
+  $ fastboot getvar kernel
+  Kernel: NuttX
+  Finished. Total time: 0.000s

Review Comment:
   Thanks. Can you improve documentation? Say the following commands should be run in the host system with ADB and Fastboot installed (provide a reference for the required packages) and the commands run in a terminal?



-- 
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


Re: [PR] boards/esp32s3-devkit: Initializing configuration for Fastboot [nuttx]

Posted by "JianyuWang0623 (via GitHub)" <gi...@apache.org>.
JianyuWang0623 commented on PR #15836:
URL: https://github.com/apache/nuttx/pull/15836#issuecomment-2656667967

   Depends on https://github.com/apache/nuttx-apps/pull/2994


-- 
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


Re: [PR] boards/esp32s3-devkit: Initializing configuration for Fastboot [nuttx]

Posted by "JianyuWang0623 (via GitHub)" <gi...@apache.org>.
JianyuWang0623 commented on PR #15836:
URL: https://github.com/apache/nuttx/pull/15836#issuecomment-2665524119

   > @JianyuWang0623 it should be nice if there are a complete board example demonstrating how to support and use fastboot. The documentation explains the commands: https://nuttx.apache.org/docs/latest/applications/system/fastboot/index.html but we don't have board with partitions and everything in place. I think a functional example for esp32s3-devkit should be nice!
   
   @acassis  Yes, we can make RAM disk for esp32s3-devkit:fastboot by using mkrd command, as partitions for fastboot flash command ;-)
   The complete steps testing fastboot on esp32s3-devkit was added to this PR.
   ![image](https://github.com/user-attachments/assets/5d5470ba-ccf5-458b-9a8f-c2ca7778f69c)
   ![image](https://github.com/user-attachments/assets/2fd04133-7ebb-47e7-907c-2b496aafd8dc)
   


-- 
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


Re: [PR] boards/esp32s3-devkit: Initializing configuration for Fastboot [nuttx]

Posted by "JianyuWang0623 (via GitHub)" <gi...@apache.org>.
JianyuWang0623 commented on code in PR #15836:
URL: https://github.com/apache/nuttx/pull/15836#discussion_r1959661107


##########
boards/xtensa/esp32s3/esp32s3-devkit/configs/fastboot/defconfig:
##########


Review Comment:
   @tmedicci It`s  an extension of [configure.sh](https://github.com/apache/nuttx/blob/master/tools/configure.sh#L244), not generated by make savedefconfig indeed.
   Here are other defconfigs that use this syntax, key configurations are "highlighted":
   ```
   $ find boards/ -name defconfig | xargs grep "#include"
   boards/sim/sim/sim/configs/thermal/defconfig:#include "../nsh/defconfig"
   boards/xtensa/esp32s3/esp32s3-devkit/configs/adb/defconfig:#include "../usb_device/defconfig"
   boards/xtensa/esp32s3/esp32s3-devkit/configs/usbmsc/defconfig:#include "../usb_device/defconfig"
   boards/xtensa/esp32s3/esp32s3-devkit/configs/txtable/defconfig:#include "../adb/defconfig"
   ```



-- 
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


Re: [PR] boards/esp32s3-devkit: Initializing configuration for Fastboot [nuttx]

Posted by "tmedicci (via GitHub)" <gi...@apache.org>.
tmedicci commented on code in PR #15836:
URL: https://github.com/apache/nuttx/pull/15836#discussion_r1958191346


##########
boards/xtensa/esp32s3/esp32s3-devkit/configs/fastboot/defconfig:
##########
@@ -0,0 +1,11 @@
+#include "../usb_device/defconfig"

Review Comment:
   Yes, but I couldn't find any other usage of such syntax on NuttX (and I don't think this kind of syntax is generated by `make savedefconfig`, so I prefer not to mix syntaxes.
   
   Any ideas about it @cederom , @acassis and @jerpelea ?



##########
boards/xtensa/esp32s3/esp32s3-devkit/configs/fastboot/defconfig:
##########


Review Comment:
   Yes, but I couldn't find any other usage of such syntax on NuttX (and I don't think this kind of syntax is generated by make savedefconfig, so I prefer not to mix syntaxes.
   
   Any ideas about it @cederom , @acassis and @jerpelea ?



-- 
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


Re: [PR] boards/esp32s3-devkit: Initializing configuration for Fastboot [nuttx]

Posted by "Donny9 (via GitHub)" <gi...@apache.org>.
Donny9 merged PR #15836:
URL: https://github.com/apache/nuttx/pull/15836


-- 
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


Re: [PR] boards/esp32s3-devkit: Initializing configuration for Fastboot [nuttx]

Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis commented on PR #15836:
URL: https://github.com/apache/nuttx/pull/15836#issuecomment-2664085656

   @JianyuWang0623 it should be nice if there are a complete board example demonstrating how to support and use fastboot. The documentation explains the commands: https://nuttx.apache.org/docs/latest/applications/system/fastboot/index.html but we don't have board with partitions and everything in place. I think a functional example for esp32s3-devkit should be nice!


-- 
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


Re: [PR] boards/esp32s3-devkit: Initializing configuration for Fastboot [nuttx]

Posted by "JianyuWang0623 (via GitHub)" <gi...@apache.org>.
JianyuWang0623 commented on code in PR #15836:
URL: https://github.com/apache/nuttx/pull/15836#discussion_r1958136503


##########
Documentation/platforms/xtensa/esp32s3/boards/esp32s3-devkit/index.rst:
##########
@@ -857,3 +857,23 @@ To test it, just run the following::
   # Host
   $ sudo mkfs.ext4 /dev/sdx
   $ sudo mount /dev/sdx ./mnt/
+
+fastboot
+--------
+
+Basic Fastboot configuration based on esp32s3-devkit:usb_device
+
+You can run the configuration and compilation procedure::
+
+  $ ./tools/configure.sh -l esp32s3-devkit:fastboot
+  $ make flash ESPTOOL_PORT=/dev/ttyACMx -j
+
+To test it, just run the following::
+
+  # Host
+  $ fastboot devices
+  1234    fastboot
+
+  $ fastboot getvar kernel
+  Kernel: NuttX
+  Finished. Total time: 0.000s

Review Comment:
   > Say the following commands should be run in the host system
   
   Line 873 said, maybe not noticeable, moved out of code block.
   
   Already copied from a terminal(bash), splited commands and examples.
   
   People can install fastboot tool by executing `sudo apt install fastboot`, added to doc.
   
   ![image](https://github.com/user-attachments/assets/8e3c9be8-2b20-489d-becf-af021e1d5177)



-- 
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


Re: [PR] boards/esp32s3-devkit: Initializing configuration for Fastboot [nuttx]

Posted by "tmedicci (via GitHub)" <gi...@apache.org>.
tmedicci commented on code in PR #15836:
URL: https://github.com/apache/nuttx/pull/15836#discussion_r1958070219


##########
boards/xtensa/esp32s3/esp32s3-devkit/configs/fastboot/defconfig:
##########


Review Comment:
   Please, provide the full defconfig (generated by `make savedefconfig`). 



-- 
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


Re: [PR] boards/esp32s3-devkit: Initializing configuration for Fastboot [nuttx]

Posted by "tmedicci (via GitHub)" <gi...@apache.org>.
tmedicci commented on code in PR #15836:
URL: https://github.com/apache/nuttx/pull/15836#discussion_r1959711746


##########
boards/xtensa/esp32s3/esp32s3-devkit/configs/fastboot/defconfig:
##########


Review Comment:
   Alright, if it's being used by other defconfigs and doesn't trigger any issue with the `refresh.sh` script, I'm fine with it...



-- 
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