Page 1 of 1

Can Intel DAL python commands access the UEFI interfaces on the UUT?

Posted: Wed May 02, 2018 1:42 am
by YouGotIt
I am a bios run control debugger hobbyist.
Mostly JTAG based debugger, like Asset XDP or Intel DCI.
Intel DAL has a rich set of commands to access HW resource on the target system.
I am thinking about that if it can access the UEFI resources on the target?
Such as Run Time services, Boot Services?
Is it possible to call functions on UUT from host DAL?

Re: Can Intel DAL python commands access the UEFI interfaces on the UUT?

Posted: Wed May 02, 2018 11:47 am
by armstrong
For sure, if it is really necessary. You can copy your UEFI binary into a reserved memory region and change EIP to execute it.

Re: Can Intel DAL python commands access the UEFI interfaces on the UUT?

Posted: Wed May 02, 2018 12:01 pm
by BobJC
I don’t think above practice is applicable since DXE core is skipped and you might not be able to rewind the stack after the invoke. I remember ITP used to have a script macro named loadimage(), which could copy the image to proper memory region and search memory for DXE RT service LoadImage() then invoke the service with the copied image’s entry point address.

Re: Can Intel DAL python commands access the UEFI interfaces on the UUT?

Posted: Wed May 02, 2018 3:26 pm
by matt.huang
Yes it can, and some of the companies have already implemented in their black box test plans. I've seen some of the OEM features contains python scripts extracted from Intel DAL and run it via a base board co-processor to fetch & debug the same host on the board when the system crashes.