Skip to content

Implement ADB function through qemu pipe - #43

Merged
spiriou merged 1 commit into
spiriou:masterfrom
JianyuWang0623:br_wjy_qemu_pipe_1013
Oct 21, 2024
Merged

Implement ADB function through qemu pipe#43
spiriou merged 1 commit into
spiriou:masterfrom
JianyuWang0623:br_wjy_qemu_pipe_1013

Conversation

@JianyuWang0623

Copy link
Copy Markdown
Contributor

Summary

Add qemu pipe support for microADB.
Please enable ADBD_QEMU_SERVER to experience this feature.
More details about Kconfig, please see https://github.com/apache/nuttx-apps/pull/2688 - a497eb954e69165aa785597fa50082f74a0f718a.

Impact

New feature, enabled by CONFIG_ADBD_QEMU_SERVER.

Testing

CI

Signed-off-by: getian <getian@xiaomi.com>
@JianyuWang0623

JianyuWang0623 commented Oct 13, 2024

Copy link
Copy Markdown
Contributor Author

Splited from #42.
CC: @xiaoxiang781216 @GUIDINGLI @Donny9

@xiaoxiang781216

xiaoxiang781216 commented Oct 14, 2024

Copy link
Copy Markdown
Contributor

should we add CONFIG_ADBD_QEMU_SERVER to CMakefile.txt too? @JianyuWang0623

@JianyuWang0623

Copy link
Copy Markdown
Contributor Author

@JianyuWang0623

Copy link
Copy Markdown
Contributor Author

@spiriou Could you reivew this PR please?

Comment thread hal/hal_uv_client_qemu.c

ret = write(fd, cookie, sizeof(cookie) - 1);
if (ret != sizeof(cookie) - 1) {
adb_err("qemu server write error %d %d\n", ret, errno);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's possible that ret is positive integer if fd is nonblocking (it should be with libuv).
https://man7.org/linux/man-pages/man2/write.2.html

Note that a successful write() may transfer fewer than count bytes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get, thank you.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's possible that ret is positive integer if fd is nonblocking (it should be with libuv). https://man7.org/linux/man-pages/man2/write.2.html

Note that a successful write() may transfer fewer than count bytes.

Link: #47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants