public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: krishnaLee <sssky307@163.com>
To: edk2-devel@lists.01.org
Subject: Need help about a Hii tutorial.
Date: Thu, 1 Feb 2018 11:41:00 +0800 (CST)	[thread overview]
Message-ID: <7e4da49a.4793.1614f740a15.Coremail.sssky307@163.com> (raw)

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




                 reply	other threads:[~2018-02-01  3:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7e4da49a.4793.1614f740a15.Coremail.sssky307@163.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox