For a really simple experiment. If you run the HelloWorld app that is in MdeModulePkg, does it's print out work?
-Jaben > -----Original Message----- > From: edk2-devel [mailto:[email protected]] On Behalf Of > Mahan, Patrick > Sent: Thursday, December 17, 2015 11:30 AM > To: [email protected]; [email protected] > Subject: Re: [edk2] Simple Textoutput is not working > > I am seeing something similar when using UEFI on a Dell T100 II. From my UEFI > driver I do the following: > > VOID > EFIAPI > myprintf(IN CONST CHAR8 *format, ...) > { > CHAR16 MyBuff[512]; > VA_LIST Marker; > > VA_START(Marker, format); > UnicodeVSPrintAsciiFormat(MyBuff, sizeof(MyBuff), format, Marker); > VA_END(Marker); > > gST->ConOut->OutputString(gST->ConOut, MyBuff); > } > > I am seeing the literal string in the format, but nothing else. For example: > > myprintf("Enter function a1\n"); > > prints "Enter function a1", but > > myprintf("Enter function %a\n", __FUNCTION__); > > prints "Enter function <NULL STRING>". > > I am building on Ubuntu 14.04 using the GCC 4.8 toolchain. I finally realized > this last night where I thought I was > seeing incorrect PCI config values (the integer formats: %d and %x just print > 0's). > > So I am also interested in how to make this work correctly. > > Patrick Mahan > Cavium, Inc. > ________________________________________ > From: edk2-devel <[email protected]> on behalf of bowser- > [email protected] <[email protected]> > Sent: Thursday, December 17, 2015 6:44 AM > To: [email protected] > Subject: [edk2] Simple Textoutput is not working > > Hello everyone, > > I have a problem regarding the output to the console using the EDK. When the > EFI Systems loads my application I can't see any output. I tryed to change the > output mode to texmode but it didn't work out. Can anyone help me? > Following the code: > > #include <../../EdkCompatibilityPkg/Foundation/Protocol/ConsoleControl > ConsoleControl.h> > EFI_STATUS EFIAPI UefiMain(IN EFI_HANDLE ImageHandle,IN > EFI_SYSTEM_TABLE *SystemTable) > { > efi_image_handle = ImageHandle; > efi_system_table = SystemTable; > efi_boot_servic = SystemTable->BootServices; > > EFI_GUID consol_control_guid = > EFI_CONSOLE_CONTROL_PROTOCOL_GUID; > > //Locate Protocol > EFI_CONSOLE_CONTROL_PROTOCOL *console_control = NULL; > status = efi_boot_servic->LocateProtocol(&consol_control_guid, NULL, > (void**)&console_control); > > > efi_system_table->ConOut->EnableCursor(efi_system_table->ConOut, > TRUE); > > status = console_control->SetMode(console_control, > EfiConsoleControlScreenText); > //I tried to reset the output but it didn't work out > //efi_system_table->ConOut->Reset(efi_system_table->ConOut, TRUE); > > AsciiPrint("status : %x\n", status); > efi_system_table->ConOut->OutputString(efi_system_table->ConOut, > L"Test\n"); > Print(L"test2\n"); > } > > > > Kind regards > Daniel > _______________________________________________ > edk2-devel mailing list > [email protected] > https://lists.01.org/mailman/listinfo/edk2-devel > _______________________________________________ > edk2-devel mailing list > [email protected] > https://lists.01.org/mailman/listinfo/edk2-devel _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

