Re: [PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-19 Thread via GitHub
JianyuWang0623 commented on code in PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098#discussion_r2157154445 ## system/fastboot/fastboot.c: ## @@ -1115,6 +1354,12 @@ static void fastboot_context_initialize(FAR struct fastboot_ctx_s *ctx) ctx->total_imgsize = 0;

Re: [PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-18 Thread via GitHub
xiaoxiang781216 merged PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098 -- 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...

Re: [PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-18 Thread via GitHub
xiaoxiang781216 commented on code in PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098#discussion_r2154077329 ## system/fastboot/fastboot.c: ## @@ -1074,85 +1148,292 @@ static int fastboot_usbdev_initialize(void) } #endif /* SYSTEM_FASTBOOTD_USB_BOARDCTL */ +

Re: [PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-17 Thread via GitHub
JianyuWang0623 commented on code in PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098#discussion_r2153663717 ## system/fastboot/fastboot.c: ## @@ -437,7 +433,7 @@ fastboot_flash_program(FAR struct fastboot_ctx_s *context, int fd) break; case

Re: [PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-17 Thread via GitHub
JianyuWang0623 commented on code in PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098#discussion_r2153657183 ## system/fastboot/fastboot.c: ## @@ -1074,18 +1151,240 @@ static int fastboot_usbdev_initialize(void) } #endif /* SYSTEM_FASTBOOTD_USB_BOARDCTL */ +

Re: [PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-17 Thread via GitHub
JianyuWang0623 commented on code in PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098#discussion_r2153654362 ## system/fastboot/fastboot.c: ## @@ -1074,18 +1151,240 @@ static int fastboot_usbdev_initialize(void) } #endif /* SYSTEM_FASTBOOTD_USB_BOARDCTL */ +

Re: [PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-17 Thread via GitHub
Donny9 commented on code in PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098#discussion_r2153623957 ## system/fastboot/fastboot.c: ## @@ -1074,18 +1151,240 @@ static int fastboot_usbdev_initialize(void) } #endif /* SYSTEM_FASTBOOTD_USB_BOARDCTL */ + ctx->tr

Re: [PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-17 Thread via GitHub
xiaoxiang781216 commented on code in PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098#discussion_r2153577312 ## system/fastboot/fastboot.c: ## @@ -437,7 +433,7 @@ fastboot_flash_program(FAR struct fastboot_ctx_s *context, int fd) break; case

Re: [PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-17 Thread via GitHub
xiaoxiang781216 commented on code in PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098#discussion_r2152833432 ## system/fastboot/fastboot.c: ## @@ -1094,29 +1182,206 @@ static int fastboot_usbdev_initialize(FAR struct fastboot_ctx_s *ctx) static void fastboot_usb

Re: [PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-17 Thread via GitHub
JianyuWang0623 commented on code in PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098#discussion_r2152545713 ## system/fastboot/fastboot.c: ## @@ -122,10 +139,20 @@ struct fastboot_file_s off_t offset; }; +struct fastboot_transport_s +{ + int (*init)(FAR struc

Re: [PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-17 Thread via GitHub
JianyuWang0623 commented on code in PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098#discussion_r2152345066 ## system/fastboot/fastboot.c: ## @@ -1105,8 +1177,175 @@ static void fastboot_usbdev_deinit(FAR struct fastboot_ctx_s *ctx) } } +static ssize_t fast

Re: [PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-17 Thread via GitHub
JianyuWang0623 commented on code in PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098#discussion_r2152345612 ## system/fastboot/fastboot.c: ## @@ -1105,8 +1177,175 @@ static void fastboot_usbdev_deinit(FAR struct fastboot_ctx_s *ctx) } } +static ssize_t fast

Re: [PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-17 Thread via GitHub
JianyuWang0623 commented on code in PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098#discussion_r2152344175 ## system/fastboot/fastboot.c: ## @@ -1105,8 +1177,175 @@ static void fastboot_usbdev_deinit(FAR struct fastboot_ctx_s *ctx) } } +static ssize_t fast

Re: [PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-17 Thread via GitHub
JianyuWang0623 commented on code in PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098#discussion_r2152343023 ## system/fastboot/fastboot.c: ## @@ -1115,6 +1354,12 @@ static void fastboot_context_initialize(FAR struct fastboot_ctx_s *ctx) ctx->total_imgsize = 0;

Re: [PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-17 Thread via GitHub
JianyuWang0623 commented on code in PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098#discussion_r2152343023 ## system/fastboot/fastboot.c: ## @@ -1115,6 +1354,12 @@ static void fastboot_context_initialize(FAR struct fastboot_ctx_s *ctx) ctx->total_imgsize = 0;

Re: [PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-17 Thread via GitHub
xiaoxiang781216 commented on code in PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098#discussion_r2152342236 ## system/fastboot/fastboot.c: ## @@ -122,10 +139,20 @@ struct fastboot_file_s off_t offset; }; +struct fastboot_transport_s +{ + int (*init)(FAR stru

Re: [PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-17 Thread via GitHub
JianyuWang0623 commented on code in PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098#discussion_r2152337199 ## system/fastboot/fastboot.c: ## @@ -122,10 +139,20 @@ struct fastboot_file_s off_t offset; }; +struct fastboot_transport_s +{ + int (*init)(FAR struc

Re: [PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-17 Thread via GitHub
JianyuWang0623 commented on code in PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098#discussion_r2152340756 ## system/fastboot/fastboot.c: ## @@ -1105,8 +1177,175 @@ static void fastboot_usbdev_deinit(FAR struct fastboot_ctx_s *ctx) } } +static ssize_t fast

Re: [PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-17 Thread via GitHub
JianyuWang0623 commented on code in PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098#discussion_r2152338561 ## system/fastboot/fastboot.c: ## @@ -217,6 +267,28 @@ static const struct memory_region_s g_memory_region[] = }; #endif +#ifdef CONFIG_USBFASTBOOT +struc

Re: [PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-17 Thread via GitHub
JianyuWang0623 commented on code in PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098#discussion_r2152339074 ## system/fastboot/fastboot.c: ## @@ -937,12 +1008,12 @@ static void fastboot_command_loop(FAR struct fastboot_ctx_s *context) size_t ncmds = nitems(g

Re: [PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-17 Thread via GitHub
JianyuWang0623 commented on code in PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098#discussion_r2152335720 ## system/fastboot/fastboot.c: ## @@ -1070,18 +1070,63 @@ static int fastboot_usbdev_initialize(void) } #endif /* SYSTEM_FASTBOOTD_USB_BOARDCTL */ +

Re: [PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-17 Thread via GitHub
xiaoxiang781216 commented on code in PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098#discussion_r2152241503 ## system/fastboot/fastboot.c: ## @@ -1105,8 +1177,175 @@ static void fastboot_usbdev_deinit(FAR struct fastboot_ctx_s *ctx) } } +static ssize_t fas

[PR] system/fastboot: Add support for TCP network device [nuttx-apps]

2025-06-17 Thread via GitHub
JianyuWang0623 opened a new pull request, #3098: URL: https://github.com/apache/nuttx-apps/pull/3098 ## Summary Add TCP network transport support for fastboot, users can add "-s tcp:HOST[:PORT]" option to specify a network device. 1. replace GETUINT32 with be32toh 2. add func for co