-
Notifications
You must be signed in to change notification settings - Fork 583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
system/fastboot: Add support for fastboot oem shell #3003
system/fastboot: Add support for fastboot oem shell #3003
Conversation
@Donny9 @yangsong8-ai Could you review this PR please? |
a1c4364
to
de83ff2
Compare
de83ff2
to
f6b4a49
Compare
f6b4a49
to
0983ecc
Compare
0983ecc
to
cd5496f
Compare
cd5496f
to
76c6600
Compare
Using newer version fastboot tool to support code "TEXT" for original format output. |
265abb1
to
5b4a07f
Compare
5b4a07f
to
9727fa3
Compare
Selftest # Host side $ ./tools/configure.sh -l esp32s3-devkit:fastboot $ make flash -j ESPTOOL_PORT=/dev/ttyACMx $ fastboot devices 1234 fastboot $ fastboot -s 1234 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 More details apache/nuttx-apps#3003 Signed-off-by: wangjianyu3 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @JianyuWang0623 :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add commit message
fb4c03f
Add support for producing output according to a format like printf(). Signed-off-by: wangjianyu3 <[email protected]>
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 <[email protected]>
9727fa3
to
0ce5909
Compare
Summary
Add support for fastboot oem shell to support executing custom commands.
Usage
Impact
system/fastboot
Testing