From: Thierry Reding <treding(a)nvidia.com>
This script is incompatible with Python 3, so make sure it is run using
Python 2 explicitly. This establishes compatibility on systems that
default to Python 3 and which make the python symlink point to the
Python 3 binary.
For further background, see:
https://www.python.org/dev/peps/pep-0394/
Signed-off-by: Thierry Reding <treding(a)nvidia.com>
---
parse-platforms.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/parse-platforms.py b/parse-platforms.py
index 748374953370..1b7b856773de 100755
--- a/parse-platforms.py
+++ b/parse-platforms.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
import sys, os, argparse, ConfigParser
--
2.21.0
..trusted OS directory
documentation/optee_design.md was recently removed in a patch upstream
so use another file less likely to be removed again.
Signed-off-by: Victor Chong <victor.chong(a)linaro.org>
---
v2: update commit message to fix filename typo
---
opteed-build.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/opteed-build.sh b/opteed-build.sh
index 2dd40ff..3229cbb 100755
--- a/opteed-build.sh
+++ b/opteed-build.sh
@@ -126,7 +126,7 @@ function build_platform
# Check to see if we are in a trusted OS directory
# refuse to continue if we aren't
-if [ ! -f documentation/optee_design.md ]
+if [ ! -f core/tee/tee_svc.c ]
then
echo "ERROR: we aren't in the optee_os directory."
usage
--
2.17.1
..trusted OS directory
documentation/optee_design.md was recently removed in a patch upstream
so use another file less likely to be removed again.
Signed-off-by: Victor Chong <victor.chong(a)linaro.org>
---
opteed-build.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/opteed-build.sh b/opteed-build.sh
index 2dd40ff..3229cbb 100755
--- a/opteed-build.sh
+++ b/opteed-build.sh
@@ -126,7 +126,7 @@ function build_platform
# Check to see if we are in a trusted OS directory
# refuse to continue if we aren't
-if [ ! -f documentation/optee_design.md ]
+if [ ! -f core/tee/tee_svc.c ]
then
echo "ERROR: we aren't in the optee_os directory."
usage
--
2.17.1
Another exception issue while UsbMass block io uninstalled when boot to grub:
The system environment: virtual-CDROM(USB interface) via BMC, insert a
iso file to virtual-CDROM, like ubuntu-18.04.1-server-arm64.iso, change
virtaul-CDROM to first boot option.
Disconnecting virtual-CDROM when boot to grub menu
"Install Ubuntu Server"
then select "Install Ubuntu Server", system will also get exception.
The root cause is the EFI_BLOCK_IO_PROTOCOL for USBMass will be uninstalled
in this situation after print some transfer error(see blow), but grub will
still use the block io which had initialized by grub_efidisk_init() in efidisk.c.
When run m->io_align in grub_efidisk_open ():
if (m->io_align & (m->io_align - 1))
grub will get exception for the EFI_BLOCK_IO_PROTOCOL had uninstalled and
the memory had set to 0xAF by PcdDebugClearMemoryValue.
This exception look like the matching problem grub and uefi. Is it need to
do something in uefi side or grub side?
The open source grub grub_efidisk_open function chunk:
m = d->block_io->media;
/* FIXME: Probably it is better to store the block size in the disk,
and total sectors should be replaced with total blocks. */
grub_dprintf ("efidisk",
"m = %p, last block = %llx, block size = %x, io align = %x\n",
m, (unsigned long long) m->last_block, m->block_size,
m->io_align);
/* Ensure required buffer alignment is a power of two (or is zero). */
if (m->io_align & (m->io_align - 1))
USB transfer error log:
UsbBootExecCmd: Device Error to Exec 0x0 Cmd (Result = 1)
EhcExecTransfer: transfer failed with 40
EhcBulkTransfer: error - Device Error, transfer - 40
UsbBotExecCommand: UsbBotSendCommand (Device Error)
UsbBootRequestSense: (Device Error) CmdResult=0x1
UsbBootDetectMedia: UsbBootIsUnitReady (Device Error)
-----------------------------------------------------------
Ming Huang (1):
MdeModulePkg/UefiBootManangerLib: Fix exception issue
MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--
2.9.5