nuttx-apps/system
wangjianyu3 536e2ccac6 system/fastboot: Add support for fastboot oem shell
To support executing custom commands.

Usage

  fastboot oem shell <command>

Tests

  # Configuration "esp32s3-devkit:fastboot" with `SYSTEM_FASTBOOTD_SHELL` enabled

  $ fastboot --version
  fastboot version 35.0.2-12147458

  $ fastboot oem shell ls /FILE_NOT_EXISTS
  FAILED (remote: 'error detected 0xff00 4')
  fastboot: error: Command failed

  $ fastboot oem shell ps
    PID GROUP PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK            STACK COMMAND
      0     0   0 FIFO     Kthread   - Ready              0000000000000000 0003056 Idle_Task
      1     0 224 RR       Kthread   - Waiting  Semaphore 0000000000000000 0001976 hpwork 0x3fc8bd50 0x3fc8bd80
      2     2 100 RR       Task      - Waiting  Semaphore 0000000000000000 0004048 nsh_main
      3     3 100 RR       Task      - Ready              0000000000000000 0001992 fastbootd
      4     4 100 RR       Task      - Running            0000000000000000 0001992 popen -c ps
  OKAY [  0.010s]
  Finished. Total time: 0.010s

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2025-02-25 08:23:37 +01:00
..
adb system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
argtable3 system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
batterydump system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
cdcacm system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
cfgdata system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
cle system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
composite system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
conntrack system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
coredump coredump: add error print 2025-01-24 09:34:47 +08:00
cpuload system/cpuload: Fix application's Make.defs location 2025-02-20 08:34:52 +01:00
critmon system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
cu system/cu: fix nxstyle error 2025-01-23 09:57:22 +08:00
dd system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
debugpoint system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
dhcp6c system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
dhcpc system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
dumpstack system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
fastboot system/fastboot: Add support for fastboot oem shell 2025-02-25 08:23:37 +01:00
fdt system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
flash_eraseall system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
flatbuffers system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
gcov system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
gdbstub gdbstub: change send buffer to const char 2025-01-20 20:07:22 +08:00
gprof system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
hex2bin system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
hexed system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
hostname system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
i2c system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
input system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
iptables system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
irtest system/irtest/Make.defs: fixed the wrong path 2025-02-22 13:27:25 +08:00
libuv system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
lm75 system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
lsan system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
lzf system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
mdio system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
monkey apps/testing: Move irtest/sensortest/resmonitor/monkey to apps/system 2025-01-27 02:25:08 +01:00
netdb system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
ntpc system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nxcamera apps/system: replace CONFIG_NSH_LINELEN to LINE_MAX 2025-01-14 19:31:54 +08:00
nxcodec system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nxdiag apps/nxdiag: Update nxdiag app due to script place changes 2025-01-07 23:41:42 +08:00
nxlooper apps/system: replace CONFIG_NSH_LINELEN to LINE_MAX 2025-01-14 19:31:54 +08:00
nxplayer apps/system: replace CONFIG_NSH_LINELEN to LINE_MAX 2025-01-14 19:31:54 +08:00
nxrecorder apps/system: replace CONFIG_NSH_LINELEN to LINE_MAX 2025-01-14 19:31:54 +08:00
ofloader system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
ping system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
ping6 system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
popen system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
psmq system/psmq: add proper include path for embedlog 2025-02-20 08:39:13 +01:00
ptpd system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
readline apps/system: replace CONFIG_NSH_LINELEN to LINE_MAX 2025-01-14 19:31:54 +08:00
resmonitor apps/testing: Move irtest/sensortest/resmonitor/monkey to apps/system 2025-01-27 02:25:08 +01:00
sched_note system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
sensorscope [nxstyle] fix Relative file path 2025-02-21 16:29:13 -05:00
sensortest apps/testing: Move irtest/sensortest/resmonitor/monkey to apps/system 2025-01-27 02:25:08 +01:00
setlogmask system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
settings system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
spi system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
stackmonitor system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
system system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
taskset apps/system: replace CONFIG_NSH_LINELEN to LINE_MAX 2025-01-14 19:31:54 +08:00
tcpdump system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
tee system/tee: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
telnet system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
telnetd system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
termcurses system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
trace apps/system: replace CONFIG_NSH_LINELEN to LINE_MAX 2025-01-14 19:31:54 +08:00
ubloxmodem system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
uniqueid system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
uorb system/uorb: require that LIBC_FLOATINGPOINT be enabled for DEBUG_UORB 2025-02-07 09:45:59 +01:00
usbmsc system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
vi Remove unused header files across multiple source files 2025-01-10 21:42:00 +08:00
ymodem system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
zlib system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
zmodem Remove unused header files across multiple source files 2025-01-10 21:42:00 +08:00
.gitignore Remove extra whitespace from files (#43) 2020-01-31 08:29:24 -06:00
CMakeLists.txt system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Make.defs system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Makefile system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00