Commit Graph

15 Commits

Author SHA1 Message Date
Kalp Parikh ecbcbbdadd [QEMU] Updating test case for UEFI Payload
To align with universal payload ID,
a new file for Universal Payload is added.
Updating the test case to the new file in repo.

Signed-off-by: Kalp Parikh <kalp.parikh@intel.com>
2022-12-13 15:15:47 -07:00
kokweich dabb3143d1 Enable Grahpics Console during firmware update
This patch enables graphics console when entering FWU payload.
FWU progress will show on both graphics console and serial port.

Signed-off-by: kokweich <kok.wei.chan@intel.com>
2022-02-24 13:31:59 -08:00
Mike Crowe 990e3e81e6 Use LF line endings in the repository
Convert the line endings stored for all text files in the repository to
LF. The majority previously used DOS-style CRLF line endings. Add a
.gitattributes file to enforce this and treat certain extensions as
never being text files.

Update PatchCheck.py to insist on LF line endings rather than CRLF.
However, its other checks fail on this commit due to lots of
pre-existing complaints that it only notices because the line endings
have changed.

Silicon/QemuSocPkg/FspBin/Patches/0001-Build-QEMU-FSP-2.0-binaries.patch
needs to be treated as binary since it contains a mixture of line
endings.

This change has implications depending on the client platform you are
using the repository from:

* Windows

The usual configuration for Git on Windows means that text files will
be checked out to the work tree with DOS-style CRLF line endings. If
that's not the case then you can configure Git to do so for the entire
machine with:

 git config --global core.autocrlf true

or for just the repository with:

 git config core.autocrlf true

Line endings will be normalised to LF when they are committed to the
repository. If you commit a text file with only LF line endings then it
will be converted to CRLF line endings in your work tree.

* Linux, MacOS and other Unices

The usual configuration for Git on such platforms is to check files out
of the repository with LF line endings. This is probably the right thing
for you. In the unlikely even that you are using Git on Unix but editing
or compiling on Windows for some reason then you may need to tweak your
configuration to force the use of CRLF line endings as described above.

* General

For more information see
https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings .

Fixes: https://github.com/slimbootloader/slimbootloader/issues/1400
Signed-off-by: Mike Crowe <mac@mcrowe.com>
2021-11-10 12:46:42 -08:00
Maurice Ma aa219ecd67 [QEMU] Enable CFGDATA update test using CfgDataStitch tool
This patch added test cases to verify CfgDataStitch flow for
CFGDATA modification.

Signed-off-by: Maurice Ma <maurice.ma@intel.com>
2021-10-29 16:17:39 -07:00
Maurice Ma 2e9cdbf5a7 [QEMU] Add GPIO fields to enable more tests
This patch added more fields in QEMU GPIO so that more CFGDATA
related tests can be done on QEMU platform.

Signed-off-by: Maurice Ma <maurice.ma@intel.com>
2021-10-29 16:17:39 -07:00
Maurice Ma eea78479da [QEMU] Add UEFI universal payload test case
This patch added UEFI universal payload boot test on QEMU.
It fixed #1332.

Signed-off-by: Maurice Ma <maurice.ma@intel.com>
2021-10-11 15:23:42 -07:00
stanley f87b8c3c49
[QEMU] extend auto test timeout (#1247)
Recently, github CI test case, Qemu-linux_boot.py, randomly fails.

Comparing the logs between failed and pass cases, we can find:

  1. the failure is caused by timeout before Minimal Linux
     completely boots into console and shows "Welcome to Minimal
     Linux" messages.

     Although such timeout can be a real error (true-positive),
     it is also possible just a false alarm (false-positive)...

  2. for a failed case, a force push to trigger another CI check
     can result in pass, even no code changes. Thus, the timeout
     failure points to CI environment (e.g., loading) - a false alarm.

  3. the margin (of pass case to timeout) is about 0.4 sec.

This patch increases timeout for 2 seconds to avoid unexpected
test timeout caused CI envornment (e.g., loading).

Signed-off-by: Stanley Chang <stanley.chang@intel.com>
2021-08-04 09:45:08 -07:00
Maurice Ma 631489e1e4 [QEMU] Allow to run specific test case
This patch added argument support for qemu_test.py so that a
specified test case can be launched separately. Wilecard chars
are supported for the test case name.

Signed-off-by: Maurice Ma <maurice.ma@intel.com>
2021-04-05 09:41:37 -07:00
Subash Lakkimsetti cf5257c563 Extend Key Ids to include sign and size types.
KEY IDs are extended to include key type and sizes.
Platforms can configure corresponding RSA2048 and
RSA3072 KEY IDs. Updated tools to adjust hash type
based on key size.

Signed-off-by: Subash Lakkimsetti <subash.lakkimsetti@intel.com>
2020-06-22 16:29:20 -07:00
Subash Lakkimsetti 735d7b905f Update travis for private key generation
GenerateKeys.py is invoked before automated
build gets triggered.

Signed-off-by: Subash Lakkimsetti <subash.lakkimsetti@intel.com>
2020-06-11 15:50:49 -07:00
Maurice Ma 7455ead93e
Add linux boot test in travis (#657)
This patch added test script for Linux boot test in travis for QEMU.

It fixed #656.

Signed-off-by: Maurice Ma <maurice.ma@intel.com>
2020-04-12 22:27:12 -07:00
Maurice Ma fae2dbd1b4 Add QEMU test script
This patch added some basic test script for QEMU. It can be
used by travis to do some test automation for PRs.

Signed-off-by: Maurice Ma <maurice.ma@intel.com>
2020-02-10 10:54:55 -08:00
Maurice Ma de4bec8df4 Add QEMU firmware update test script
This patch added a script to test QEMU firwmare update flow.
To use it:
  - Build SlimBootloader.bin for QEMU
    python BuildLoader.py build qemu
  - Generate firmware update capsule
    python BootloaderCorePkg\Tools\GenCapsuleFirmware.py
          -p BIOS Outputs\qemu\SlimBootloader.bin
          -k BootloaderCorePkg\Tools\Keys\TestSigningPrivateKey.p
	  -o Test\FwuImage.bin
  - Run the script
    python qemu_fwu.py  Outputs\qemu\SlimBootloader.bin Test

Signed-off-by: Maurice Ma <maurice.ma@intel.com>
2020-02-08 13:23:59 -08:00
Aiden Park b24fd2759c Cosmetic: Convert LF to CRLF
This will fully support PatchCheck.py.
- Remove all trailing whitespace
- Convert LF to CRLF by default
- Update EFI_D_* to DEBUG_*
- Re-enable CRLF check in PatchCheck.py

Signed-off-by: Aiden Park <aiden.park@intel.com>
2019-12-02 16:21:19 -08:00
Aiden Park 23564f2d76 Add GDB helper scripts
Add GDB helper scripts for 'Debug SBL on QEMU with GDB'.
Here is step-by-step tutorial.
https://slimbootloader.github.io/tutorials/ex_debug_sbl_on_qemu_with_gdb.html

Signed-off-by: Maurice Ma <maurice.ma@intel.com>
Signed-off-by: Aiden Park <aiden.park@intel.com>
2019-10-02 12:18:57 -07:00