Re: [edk2] [PATCH] ShellPkg: Correct a parameter's name

2019-02-20 Thread krishnaLee
Hi Shenglei, I am confused some times,see UEFI_Shell_specification_2_2,chapter-3.7: 3.7 File Names The UEFI Shell supports file names and paths with the following format: fs-path := [fs-map-name] [fs-divider][fs-dirs][fs-name] May be if the define name "fs-path" rename to

Re: [edk2] [question] A piece of log.txt showed in uefi shell is not the same as showed in notepad++

2019-01-24 Thread krishnaLee
a to a serial terminal then it would use terminal emulation and the output stream would look different. Thanks, Andrew Fish On Jan 23, 2019, at 11:07 PM, krishnaLee wrote: Andrew Fish, thank you,in this case,you are right. but I think there may be other case that the user dat

Re: [edk2] [question] A piece of log.txt showed in uefi shell is not the same as showed in notepad++

2019-01-23 Thread krishnaLee
this, but the editor should make sure other visible chars can output normal... I don't know if it is a bug or not. Thank you very much. krishna. 在 2019-01-24 12:13:50,"Andrew Fish" 写道: On Jan 23, 2019, at 7:17 PM, krishnaLee wrote: Hi, I dumped a small log.txt from my work,but t

[edk2] [question] A piece of log.txt showed in uefi shell is not the same as showed in notepad++

2019-01-23 Thread krishnaLee
Hi, I dumped a small log.txt from my work,but the log.txt showed in uefi shell,is not the same as it showed in notepad++. I had upload the log here: https://github.com/krishna116/test/blob/master/log.zip it seems the log showed in uefi shell had missed some strings...I don't know why,please

Re: [edk2] A question about shell-application's argument make system blocked;

2019-01-10 Thread krishnaLee
many people would expect certain characters inside a quoted >> string, like "#" for example, to NOT need escaping. The only ones >> that should need escaping (again IMHO) are: ", ^, and %. >> >> Regards, >> Jim >> >> -Original Messa

[edk2] A question about shell-application's argument make system blocked;

2019-01-09 Thread krishnaLee
Hi everybody, I meet a question,a special arg can make system blocked,follow is my steps. 1,go to uefi shell v2.2(uefi v2.70),run this application in QEMU-ovmf: testapp.efi 2,the output is "index:0,string:FS0:\testapp.efi" 3,testapp.efi #abc. 4,the output is same as step 2. ///< I had read the

Re: [edk2] [RFC] Proposal to add edk2-apps repository

2018-12-02 Thread krishnaLee
l [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of >> krishnaLee >> Sent: Friday, November 30, 2018 9:45 AM >> To: edk2-devel@lists.01.org >> Subject: Re: [edk2] [RFC] Proposal to add edk2-apps repository >> >> Kinney, >> I always think there may be t

Re: [edk2] [RFC] Proposal to add edk2-apps repository

2018-11-29 Thread krishnaLee
Kinney, I always think there may be two kinds of apps: 1,some apps have dependency on uefi_shell(shell-lib,efi_shell_protocol,...they usually execute under uefi_shell),I would call them "uefi_shell_application"; 2,some apps have no dependency on uefi_shell(such as apps in

Re: [edk2] [Patch] edk2-BaseTools-win32: Add notes to announce BaseTools Win32 doesn't work

2018-10-09 Thread krishnaLee
Hi, I think someone needs update the wiki if the BaseTools_win32_bin no longer work, https://github.com/tianocore/tianocore.github.io/wiki/Windows-systems thanks, krishna. At 2018-10-10 08:33:19, "Liming Gao" wrote:

Re: [edk2] question about uefi shell-current working directory and shell-script

2018-09-20 Thread krishnaLee
; >> -Original Message- >> From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of >> krishnaLee >> Sent: Thursday, September 20, 2018 2:22 AM >> To: edk2-devel@lists.01.org >> Subject: [edk2] question about uefi shell-current working direc

[edk2] question about uefi shell-current working directory and shell-script

2018-09-20 Thread krishnaLee
Hi, I wonder if it is a bug: I have a usb Fat32-disk,installed with EDK2 shell2.6 or 2.7, the root directory has a startup.nsh,the startup.nsh has only one line:"cd \", I boot my cannolake machine with this usb disk, in the uefi shell,I got a message:"cd: current directory not specified".it means

Re: [edk2] [PATCH v2 00/12] Add WinHost support in EmulatorPkg

2018-09-03 Thread krishnaLee
Hi, It's a good idea,besides the code,I also think it is bettter to put out some design note to help newbie/user/developer,it may be useful to many people,such as: Emulator_user_guide.pdf, Emulator_developer_guide.pdf, the implementation_of_Emulator.pdf the implementation_of_Emulator's xxx .pdf

Re: [edk2] question about uefi calling convention

2018-08-14 Thread krishnaLee
thank you,Laszlo. krishna. At 2018-08-14 21:54:03, "Laszlo Ersek" wrote: >On 08/14/18 11:09, krishnaLee wrote: >> Hi, >> In uefi 2.6 specification -> 2.3.4 x64 Platforms, >> "Paging mode is enabled and any memory space defined by the UEFI mem

[edk2] question about uefi calling convention

2018-08-14 Thread krishnaLee
Hi, In uefi 2.6 specification -> 2.3.4 x64 Platforms, "Paging mode is enabled and any memory space defined by the UEFI memory map is identity mapped (virtual address equals physical address)" ... is that mean if I write C code like " void *pointer=0xabcd",the pointer is virtual address ,is equal

Re: [edk2] question about uefi shell pipe.

2018-07-10 Thread krishnaLee
your question here? Would you like to share this > grep.efi tool? Or you meet with the problem in this grep.efi tool? > >Thanks >Liming >>-Original Message- >>From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of >>krishnaLee >>Sent: Fri

Re: [edk2] question about uefi shell pipe.

2018-07-06 Thread krishnaLee
e ASCII's range of" 0x~0x0020. ) 2,always make sure outputBuffer[lastTwoWchar] = { 0x000A,0x000D },it will also bypass many other strange result. thank you, by krishna. At 2018-07-06 11:07:05, "krishnaLee" wrote: Jim, I attached the smalltest.efi if you have not

Re: [edk2] question about uefi shell pipe.

2018-07-05 Thread krishnaLee
isible wchars at end of this buffer, (the trimed of wchar is "like ASCII's range of" 0x~0x0020. ) 2,always make sure outputBuffer[lastTwoWchar] = { 0x000A,0x000D },it will also bypass many other strange result. thank you, by krishna. At 2018-07-06 11:07:05, "krishnaL

Re: [edk2] question about uefi shell pipe.

2018-07-04 Thread krishnaLee
gt; >UINT16 Buffer[80*25*4]; //tool's buffer; >UINTN BufferByteSize = sizeof(Buffer); > >Thanks, > >Andrew Fish > >> On Jul 4, 2018, at 2:15 AM, krishnaLee wrote: >> >> Hi, >> I wrote this shell application(smalltest.efi),did some pipe function >&g

[edk2] question about uefi shell pipe.

2018-07-04 Thread krishnaLee
Hi, I wrote this shell application(smalltest.efi),did some pipe function test,find some strange result. boot into shell: # test-1,the follow two command should has the same output ,but infact not the same in QEMU,and the second command failed WriteFile in real machine(AMI bios uefi 2.6): ls |

[edk2] [EDK2][UEFI_Shell_Specification_2.2]the fs-dirs define may be not accurate.

2018-06-14 Thread krishnaLee
Hi, Recently,I want to exactly know what is filepath/filename,I come across this specification, Follow information come from UEFI_Shell_2.2.pdf, 3.7 File Names fs-path := [fs-map-name] [fs-divider][fs-dirs][fs-name] fs-map-name := identifier : fs-divider:= \ | / fs-dirs

[edk2] [EDK2]How to do source level debug (OVMF & QEMU & Intel UEFI Development Debugger Tool)

2018-04-25 Thread krishnaLee
Hi everyone, I know nothing about this source level debug mode so I had read some articles and tried to make this environment,but failed. I do this as I want to observe how SEC phase jump to PEI phase. #1 build ovmf: build -p OvmfPkg/OvmfPkgIa32.dsc -a IA32 -D DEBUG_ON_SERIAL_PORT -D

Re: [edk2] Why the DEBUG can't output the full string?

2018-02-05 Thread krishnaLee
DEBUG ((EFI_D_INFO,"%s",buffer)); DEBUG ((EFI_D_INFO,"\r\n")); DEBUG ((EFI_D_INFO,"%s",buffer2)); DEBUG ((EFI_D_INFO,"\r\n")); return EFI_SUCCESS; } //test code end; I don't know if it is a bug,nevertheless,it worked as I expect. thank you. by kris

Re: [edk2] Why the DEBUG can't output the full string?

2018-02-01 Thread krishnaLee
" <af...@apple.com> wrote: On Feb 1, 2018, at 8:23 AM, Laszlo Ersek <ler...@redhat.com> wrote: On 02/01/18 10:47, krishnaLee wrote: Hi, For example,the follow code: //-code-start ConfigRequestHdr = HiiConstructConfigHdr (, VariableName, PrivateData1->DriverHandle[0]); Size =

[edk2] Why the DEBUG can't output the full string?

2018-02-01 Thread krishnaLee
Hi, For example,the follow code: //-code-start ConfigRequestHdr = HiiConstructConfigHdr (, VariableName, PrivateData1->DriverHandle[0]); Size = (StrLen (ConfigRequestHdr) + 32 + 1) * sizeof (CHAR16); ConfigRequest = AllocateZeroPool (Size); ASSERT (ConfigRequest != NULL); AllocatedRequest = TRUE;

[edk2] Need help about a Hii tutorial.

2018-01-31 Thread krishnaLee
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

Re: [edk2] Communicate with soft-smi-handler with uefi-application question.

2018-01-10 Thread krishnaLee
ulePkg/Application/SmiHandlerProfileInfo/SmiHandlerProfileInfo.c#L90 > to know how it be used. > > >Thanks, >Star >-Original Message- >From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of >krishnaLee >Sent: Wednesday, January 10, 2018 3:44 PM >

[edk2] Communicate with soft-smi-handler with uefi-application question.

2018-01-09 Thread krishnaLee
Hi, I'm learning to write and register some soft-Smi-Handler in smm-mode; then using QEMU to boot my ovmf.fd,run into uefi shell; then write uefi-application using EFI_SMM_COMMUNICATION_PROTOCOL to Communicate to my Smi-Handler,but failed when run my uefi-application,the log show error. I don't

Re: [edk2] How to using PcdGetEx to change a PCD.

2017-12-31 Thread krishnaLee
DynamicExDefault] or [PcdsDynamicExHii] section. From: krishnaLee [mailto:sssky...@163.com] Sent: Thursday, December 28, 2017 5:42 PM To: Gao, Liming <liming@intel.com> Cc: Andrew Fish <af...@apple.com>; edk2-devel@lists.01.org Subject: Re:[edk2] How to using PcdGetEx to change a PCD.

Re: [edk2] How to using PcdGetEx to change a PCD.

2017-12-28 Thread krishnaLee
On Behalf Of >> Andrew Fish >> Sent: Thursday, December 14, 2017 6:27 PM >> To: krishnaLee <sssky...@163.com> >> Cc: edk2-devel@lists.01.org >> Subject: Re: [edk2] How to using PcdGetEx to change a PCD. >> >> >> >> > On Dec 14, 2017, at 1

[edk2] How to using PcdGetEx to change a PCD.

2017-12-14 Thread krishnaLee
Hello, I am learning and writing a application to change the Nt32pkg-virtual machine's boot time.follow code is success. but I think if I using PcdGetEx16 function, it will also work well,but failed when I compile it. I had read some Specs about the difference between PcdGetEx and PcdGet,but I

[edk2] [edk2-UDK2017] issue about AsciiPrint

2017-08-02 Thread krishnaLee
Hi All, This function will output nothing or strange-output in my real Lenovo_Q270 machine, follow is the key point: //for(UINTN j=0;jSignature);j++) //{ //output byte by byte,or custom range...,or just some specified bytes in the string...