In my previous post, I showed you how to make DXE Driver which stores current time in UEFI variable, and convert that into FFS file. To execute this DXE Driver, I'll show you how to add this FFS file into extracted BIOS image from UP2 Pro Board. I will be using followings in this post.
- UP Squared Pro ATOM Quad Core 04/64 (UP2 board)
- SF100 SPI NOR Flash Programmer (SF100)
- ISP Testclip SO8 (TestClip)
- UEFI Shell (which is installed by default on UP2 board)
UEFITool is an opensource tool to parse and edit UEFI image. I will be using this tool to add FFS file into UEFI image. Don't use the version with "NE" in the name because this version has some restricted functionality.
First you need to extract UEFI image from UP2 board. You can do this by using SF100, and I explained how to do this in my previous post.
Open UEFITool and Drag&Drop UEFI image file extracted by SF100. Then, locate DXE Volume which is a volume that DXE Drivers are stored by searching the string "DXE" by
Ctrl-F and double-clicking one of the results.
Go to the last DXE Driver in the volume and right click that.
You will see "Insert after..." if you have downloaded the right version of UEFITool so click on that and select the ffs file generated in the previous post. If successfully added, you will see the result like below.
Ctrl-S and save this BIOS image somewhere.
Again using SF100, flash the modified UEFI image to the UP2 board. This is also explained in my previous post.
Power on the board and see if it boots successfully first. If display won't show up, then there might be some errors in DXE Driver. You can debug DXE Driver by using Intel DCI and I also explained this method in my previous post.