Skip to content

[FEATURE] Should we extend fastboot oem to support executing custom commands? #2991

@JianyuWang0623

Description

@JianyuWang0623

Is your feature request related to a problem? Please describe.

Should we extend "fastboot oem" to support executing custom commands for test or debug, such as, make ram disk: fastboot oem sh "mkrd -m 10 -s 512 640". -- https://github.com/apache/nuttx-apps/blob/master/system/fastboot/fastboot.c#L200

The background/reason:

  1. Enabled fastboot for NuttX based bootloader, and plan to test fastboot commands that will write data to block device. But there is no partition on devices created for fastboot testing generally, so we need making ram disk maybe.
  2. The nsh was exited/disabled so we can not input command ("mkrd" for making ram disk).
  3. ADB and Fastboot can not enable at the same time currently, so we can not executing command through ADB. -- https://github.com/apache/nuttx/blob/master/drivers/usbdev/adb.c#L53

Describe the solution you'd like

Add support for "fastboot oem sh" to support executing custom commands.

Describe alternatives you've considered

No response

Verification

  • I have verified before submitting the report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions