public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Capturing Stdio of an image loaded using EFI_BOOT_SERVICES.LoadImage()
@ 2022-07-19 19:47 Ayush Singh
  0 siblings, 0 replies; only message in thread
From: Ayush Singh @ 2022-07-19 19:47 UTC (permalink / raw)
  To: devel@edk2.groups.io
  Cc: Kinney, Michael D, mikuback@linux.microsoft.com,
	Gaibusab, Jabeena B, Yao, Jiewen

Hello everyone. So while trying to make Rust `remote-test-server`, I 
found out that it also needs to be able to launch other UEFI 
applications (which will be the tests themselves). The Stdout and Stderr 
of these tests is supposed to be captured and sent back to the 
`remote-test-client` over TCP. I can now launch the `remote-test-server` 
under UEFI and get it to connect to the `remote-test-client`, however 
the application launch stuff isn't implemented yet.

While I think I can implement the launching application portion using 
the `EFI_BOOT_SERVICES.LoadImage()` and `EFI_BOOT_SERVICES.StartImage()` 
functions, I do not know how to capture the input/output of these 
applications. So is there a way to do it normally? I think UefiShell 
must do this, but I am not sure how.

Currently I do have a way to capture output when specifically running 
tests (basically writing the output and errors to a file and reading 
from it). However, that seems more like a hack, and so I wanted to know 
if there was a better way to do this.


Yours Sincerely

Ayush Singh


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-19 19:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-19 19:47 Capturing Stdio of an image loaded using EFI_BOOT_SERVICES.LoadImage() Ayush Singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox