public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Need help about a Hii tutorial.
@ 2018-02-01  3:41 krishnaLee
  0 siblings, 0 replies; only message in thread
From: krishnaLee @ 2018-02-01  3:41 UTC (permalink / raw)
  To: edk2-devel

Hi,
I am learning Hii and I know few about Hii,luckly,I found a good tutorial here:
https://firmware.intel.com/sites/default/files/Lab_Material_FW.zip
source_code locate in:Lab_Material_FW.zip\FW\LabSampleCode\MyWizardDriver
https://firmware.intel.com/sites/default/files/Presentations161017.zip
Hii-tutorial locate in:Presentations161017.zip\FW\Presentations\_UEFI_Lab_Guide .docx,--> chapter 9.1


So I follow the chapter9.1, when I compile and build run,I find a entry at bios setup->Device Manager->My Wizard Driver Sample Formset,ok,
so I select it and press Enter,Error happened:
ASSERT!: [HiiDatabase] d:\edk2-vudk2017\MdePkg\Library\BaseLib\String.c (172): String != ((void *) 0)


I had tried more then 5 times form start to end,same failure.
I find the checkbox can't work, if I disable the VFR-file's checkbox and add a text,it worked:
//working VFR:
form formid = 1, title = STRING_TOKEN(STR_SAMPLE_FORM1_TITLE);
    subtitle text = STRING_TOKEN(STR_SUBTITLE_TEXT);
    subtitle text = STRING_TOKEN(STR_SUBTITLE_TEXT2);
  // Define a checkbox to enable / disable the device
      checkbox varid   = MWD_IfrNVData.MyWizardDriverChooseToEnable,
  //               prompt   = STRING_TOKEN(STR_CHECK_BOX_PROMPT),
  //               help     = STRING_TOKEN(STR_CHECK_BOX_HELP),
  //               flags    = CHECKBOX_DEFAULT ,
  //               key      = 0,
  //               default  = 1,
  //   endcheckbox;
      text
      help   = STRING_TOKEN(STR_CHECK_BOX_PROMPT),
      text   = STRING_TOKEN(STR_CHECK_BOX_HELP),
    text   = STRING_TOKEN(STR_CHECK_BOX_HELP),
      flags  = 0,
      key    = 0;
   endform;
endformset;


I think the tutorial has a bug,I don't how to contuine,some help will be great appreciate.
my platform:windows 10 x64+UDK2017+VS2015


by krishna




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

only message in thread, other threads:[~2018-02-01  3:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-01  3:41 Need help about a Hii tutorial krishnaLee

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