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

   ## Summary
   Add support for enabling USB and TCP transport at the same time.
   Please see the "Testing" below for more details.
   
   And ignore space change may be eaiser to review, thanks.
   ```
   $ git diff apache/master --stat
    system/fastboot/fastboot.c | 246 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------
    1 file changed, 155 insertions(+), 91 deletions(-)
   
   $ git diff apache/master --stat -b
    system/fastboot/fastboot.c | 148 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------
    1 file changed, 106 insertions(+), 42 deletions(-)
   ```
   ## Impact
   - system/fastboot
   
   ## Testing
   ### Selftest
   1. "qemu-armv8a:fastboot" and "esp32s3-devkit:fastboot_tcp" PASSED for TCP 
transport only
   2. "lckfb-szpi-esp32s3:fastboot" PASSED for both TCP and USB transport at 
the same time.
   
   Below are test records (of **the same time**) of 
"lckfb-szpi-esp32s3:fastboot" with both TCP and USB transport enabled:
   - Host - USB
   ```
   $ fastboot oem shell ifconfig
   wlan0   Link encap:Ethernet HWaddr a0:85:e3:f4:43:30 at RUNNING mtu 1500
           inet addr:192.168.211.111 DRaddr:192.168.211.107 Mask:255.255.255.0
   
   OKAY [  0.010s]
   Finished. Total time: 0.010s
   
   $ fastboot oem shell "uname -a"
   NuttX  0.0.0  Jun 19 2025 13:44:02 xtensa lckfb-szpi-esp32s3
   OKAY [  0.006s]
   Finished. Total time: 0.006s
   
   $ fastboot flash console Kconfig 
   Warning: skip copying console image avb footer (console partition size: 0, 
console image size: 1072).
   Sending 'console' (1 KB)                           OKAY [  0.013s]
   Writing 'console'                                  OKAY [  0.089s]
   Finished. Total time: 0.153s
   ```
   - Host - TCP
   ```
   PS C:\workspace> fastboot.exe -s tcp:192.168.211.111 oem shell ifconfig
   wlan0   Link encap:Ethernet HWaddr a0:85:e3:f4:43:30 at RUNNING mtu 1500
           inet addr:192.168.211.111 DRaddr:192.168.211.107 Mask:255.255.255.0
   
   OKAY [  0.049s]
   Finished. Total time: 0.049s
   
   PS C:\workspace> fastboot.exe -s tcp:192.168.211.111 oem shell "uname -a"
   NuttX  0.0.0  Jun 19 2025 13:44:02 xtensa lckfb-szpi-esp32s3
   OKAY [  0.040s]
   Finished. Total time: 0.041s
   
   PS C:\workspace> fastboot.exe -s tcp:192.168.211.111 flash console Kconfig
   Warning: skip copying console image avb footer (console partition size: 0, 
console image size: 580).
   Sending 'console' (0 KB)                           OKAY [  0.028s]
   Writing 'console'                                  OKAY [  0.046s]
   Finished. Total time: 0.243s
   ```


-- 
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-unsubscr...@nuttx.apache.org

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

Reply via email to