Thanks Andrew Fish and Scott Duplichan for your replies.

Actually I want to execute this helloworld function as part of the boot
sequence. Lets say for example, I should see "Hello World" message during
board bringup, may be just before it displays boot options.

What should I do to add a new package which needs to be executed during
bootup? Should I assign one function in the new package to
ReadyToBootEventSignal, and generate this ReadyToBootEvent signal before it
displays boot options?

e.g:

tianocore/ArmPlatformPkg/Bds/BootOption.c


<snip>

EFI_STATUS

BootOptionStart (

  IN BDS_LOAD_OPTION *BootOption

  )

{
   *EfiSignalEventReadyToBoot();*
   .
   .
   .
}
</snip>


HelloWorld.c

HelloWorldLauncherEntry( IN EFI_HANDLE iHandle, IN EFI_SYSTEM_TABLE
*sTable)
{

<*createEventEx*(for ReadyToBootEvent, and callback function is
"HelloWorld()" which will simply print the statement.)
}


Thanks,
Manish



On Mon, Mar 31, 2014 at 7:10 PM, Scott Duplichan <[email protected]> wrote:

> manish mahajan [mailto:[email protected]] wrote:
>
>
> ]Hello,
> ]
> ]I am new to Edk-II development. I tried hello world sample program
> provided
> ]here:
> http://sourceforge.net/apps/mediawiki/tianocore/index.php?]title=Getting_Started_Writing_Simple_Application
> ]
> ]I am using arm-64 chip. I hooked MyHellowWorld.inf to
> ]"tianocore/ArmPlatformPkg/<vendor>Pkg/Mustang-UHP.dsc.
> ]UHP image build is successful. But when I load the new UEFI,
> ]I don't see my "hello world" print on the console. I directly
> ]see UEFI bootup log and boot options.
> ]
> ]Since, "UefiMain" is defined as an entry point, when this
> ]function will be invoked? or do I need to manually call it
> ]from other function? My understanding is that "ENTRY_POINT"
> ]in .inf is like main() function in C.
> ]
> ]What should I do to make sure that UefiMain function is getting called?
>
> If I am understanding the sequence correctly, your application
> must be manually launched. For example, copy the helloworld.efi
> to a FAT formatted USB flash drive, then move that drive to the
> arm-64 board. Boot the arm-64 board to a UEFI shell prompt. Then
> type "fs0:" or whatever is mapped to the USB flash drive. After
> that, type helloworld.efi to actually execute the hello world
> application. In other words, adding helloworld.inf to the DSC file
> causes it to get built, but it does not cause it to execute as part
> of the boot sequence.
> Thanks,
> Scott
>
> ]Thanks,
> ]Manish
>
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
>
------------------------------------------------------------------------------
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to