Re: [edk2] shell command MM does not run inside a shell script and PrintToken

Subject: Re: [edk2] shell command MM does not run inside a shell script and PrintToken

From: Andrew Fish <afish@apple.com>

To: Toto Lebolo <toto_lebolo@yahoo.com>

Date: 2013-02-06 03:48:33

On Feb 5, 2013, at 5:37 PM, Toto Lebolo <toto_lebolo@yahoo.com> wrote:

Andrew,
I am just rebuilding the shell commands without changing anything.
The build completes successfully and a mm.efi is created.
The PrintToken() return 0 which means it fails.
I checked out the edkshell from here:
https://efi-shell.svn.sourceforge.net/svnroot/efi-shell/trunk/Shell/
Copied into the UDK2010 environement
and run build -a X64 -p EdkShellPkg\EdkShellPkg.dsc
the file EdkShellPkg.dsc is unchanged.
Is there anything wrong I did?

Are you running mm.efi on top of the EDK shell?
Does your test platform produce gEfiHiiDatabaseProtocolGuid and gEfiHiiStringProtocolGuid?
Have you tried using ShellFull that has all the commands built in?

Thanks,

Andrew Fish


MiKL~



From: Andrew Fish <afish@apple.com>
To: Toto Lebolo <toto_lebolo@yahoo.com>; edk2-devel@lists.sourceforge.net
Sent: Saturday, February 2, 2013 5:59 PM
Subject: Re: [edk2] shell command MM does not run inside a shell script and PrintToken


On Feb 2, 2013, at 3:37 PM, Toto Lebolo <toto_lebolo@yahoo.com> wrote:

Hello,
I noticed that the shell command "mm" does not run inside a shell script or from a python script. The command seems to NOT understand the arguments that are passed. 
I found that there is a ticket about that here: http://sourceforge.net/apps/trac/efidevkit/ticket/1316
I wanted to investigate this. I rebuild the file mm.c to create mm.efi but I faced a new issue: when I run my build, the new mm command does not display anything on the stdout using the function PrintToken(). The Print() function is fine.
Anybody can guide me with those issues?

Are you using an existing token? The *.uni file is Unicode so you need to be careful your editor does not mess up the file?
If you are making your own command did you do the HiiAddPackages() to register the strings?

Thanks,

Andrew Fish

I am new to the EFI environment.
MIKL~
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel