FirmwareTestSuiteLive

Differences between revisions 13 and 28 (spanning 15 versions)
Revision 13 as of 2012-02-16 20:57:12
Size: 5217
Editor: cpe-174-109-107-185
Comment:
Revision 28 as of 2019-10-03 18:41:23
Size: 5984
Editor: alexhung
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
<<Include(HardwareEnablementTeam/Header)>>
## page was renamed from HardwareEnablementTeam/Documentation/FirmwareTestSuiteLive
Line 9: Line 8:
fwts-live is a bootable USB image that will automatically boot and run the [[Kernel/Reference/fwts|Firmware Test Suite]] on both legacy BIOS as well as native UEFI Firmware (x86_64 only). The test results are stored on the USB device and can be analysed on the fly or later on another computer. fwts-live is a bootable USB image that will automatically boot and run the [[FirmwareTestSuite|Firmware Test Suite]] on both legacy BIOS as well as native UEFI Firmware (x86_64 only). The test results are stored on the USB device and can be analysed on the fly or later on another computer.
Line 14: Line 13:
1. Download either the [[http://hwe.ubuntu.com/fwts-live/fwts-live-oneiric-i386-usb-hdd.img.bz2|32 bit]] or [[http://hwe.ubuntu.com/fwts-live/fwts-live-oneiric-amd64-usb-hdd.img.bz2|64 bit]] image from http://odm.ubuntu.com/fwts-live/ 1. Download the image from http://fwts.ubuntu.com/fwts-live/
Line 16: Line 15:
2. Unzip the image using bunzip2, e.g. 2. Verify the downloaded image's [[http://fwts.ubuntu.com/fwts-live/SHA256SUM|checksum]] to make sure the image is intact.

3. Decompress xz file using the following command (for 19.03.00 and after):
Line 18: Line 19:
    $ bzip2 -d fwts-live-oneiric-*.img.bz2     $ unxz fwts-live-19.08.00.img.xz
Line 21: Line 22:
3. Insert a USB stick into your machine, and unmount it. 4. Insert a USB stick into your machine, and unmount it.
Line 23: Line 24:
4. Copy the live image to the USB stick, you can find out the device using: 5. Copy the live image to the USB stick, you can find out the device using:
Line 31: Line 32:
And copy the image to the USB stick. For example, for the 64 bit image fwts-live-oneiric-amd64-usb-hdd-20120216-0.img we use: And copy the image to the USB stick. For example, for the image fwts-live-19.08.00.img we use:
Line 33: Line 34:
    $ sudo dd if=fwts-live-oneiric-amd64-usb-hdd-20120116-0.img of=/dev/sdb && sync     $ sudo dd if=fwts-live-19.08.00.img of=/dev/sdb bs=4MB && sync
Line 36: Line 37:
5. Remove the USB stick. 6. Remove the USB stick.

=== Windows ===

 * "Winzip" or "7-Zip" may be used to decompress xz files (19.03.00 and after).

 * "Win32 Disk Imager" may be used to copy the live image (img files) to a USB stick.
Line 74: Line 81:

Note: Staring from 19.03.00, fwts-live saves log files in directories named by system date in a FAT32 partition "fwts-result". In the above example, the it mean the results is in /media/$USER/fwts-result/11102011/1327/results.log. On a Windows machine, fwts-result partition is readable while other partitions are not.


Note that on each run of fwts-live, an HTML based report is generated and placed in the fwts directory. For example: /media/OEM_BUILD/fwts/results.html or D:\fwts\results.html. This is achieved by using the [[Kernel/Reference/fwts|Firmware Test Suite's]] --log-type option. Each time you run fwts-live, the plaintext file will be preserved, however only the most recent run of fwts-live will preserve the HTML report.

See an example of the HTML report [[http://hwe.ubuntu.com/fwts-live/results_example/results.html|here]].
Line 85: Line 99:
The [[https://wiki.ubuntu.com/Kernel/Reference/fwts|FWTS reference guide]] describes in detail each test and the errors that the test may find. Alternatively, the results.log can be copied from the USB stick and sent to Canonical for an engineer to analyse and diagnose any faults that need fixing in the firmware or attached to a new bug within the [[https://launchpad.net/fwts-live|FWTS Live Launchpad Project]]
Line 87: Line 100:
||<tablestyle="width:100%; -moz-border-radius: 5px; background-color: #E5E5E5; border: none; font-size: 0.75em; text-align: left;" style="border: none; ">~+'''Sub-pages:'''+~||<style="border: none; "><<Navigation(children,1)>>|| The [[FirmwareTestSuite/Reference|FWTS reference guide]] describes in detail each test and the errors that the test may find. Alternatively, the results.log can be copied from the USB stick and sent to Canonical for an engineer to analyse and diagnose any faults that need fixing in the firmware or attached to a new bug within the [[https://launchpad.net/fwts-live|FWTS Live Launchpad Project]].

fwts-live

http://odm.ubuntu.com/fwts-live/screenshots/fwts-live-0.png

Overview

fwts-live is a bootable USB image that will automatically boot and run the Firmware Test Suite on both legacy BIOS as well as native UEFI Firmware (x86_64 only). The test results are stored on the USB device and can be analysed on the fly or later on another computer.

Have a look at a quick demo of fwts-live booting and executing tests within QEMU

Preparation

1. Download the image from http://fwts.ubuntu.com/fwts-live/

2. Verify the downloaded image's checksum to make sure the image is intact.

3. Decompress xz file using the following command (for 19.03.00 and after):

    $ unxz fwts-live-19.08.00.img.xz

4. Insert a USB stick into your machine, and unmount it.

5. Copy the live image to the USB stick, you can find out the device using:

    $ dmesg | tail -10 | grep Attached
      [ 9705.954616] sd 5:0:0:0: [sdb] Attached SCSI removable disk

... in the above example it is /dev/sdb

And copy the image to the USB stick. For example, for the image fwts-live-19.08.00.img we use:

    $ sudo dd if=fwts-live-19.08.00.img of=/dev/sdb bs=4MB && sync

6. Remove the USB stick.

Windows

  • "Winzip" or "7-Zip" may be used to decompress xz files (19.03.00 and after).
  • "Win32 Disk Imager" may be used to copy the live image (img files) to a USB stick.

Running the live image

Insert the USB stick into the machine you want to test and boot the machine. You may need to modify the BIOS settings to boot from the USB stick. You will see the following boot screen, wait a few moments and the boot will proceed.

http://odm.ubuntu.com/fwts-live/screenshots/fwts-live-1.png

After a while, you will be presented with the following screen:

http://odm.ubuntu.com/fwts-live/screenshots/fwts-live-2.png

You may chose to either run all the fwts batch tests, or select individual tests to run, or abort testing altogether. To navigate the menu press the cursor up/down keys and press the space key to toggle the selection. Press the enter key to confirm the selection.

Running all the batch tests

The "All Batch Tests" option will make fwts run all the batch tests automatically. This is the simplest and easiest way of using this tool. It will take few minutes to run through all the tests.

After selecting the "All Batch Tests" from the menu, the tests will start and you will see a progress dialog box:

http://odm.ubuntu.com/fwts-live/screenshots/fwts-live-3.png

and once the tests are all complete, you can opt to view the results log:

http://odm.ubuntu.com/fwts-live/screenshots/fwts-live-4.png

one can then look at the results log by pressing enter to select < Yes > and you will then be presented with a view of the results log:

http://odm.ubuntu.com/fwts-live/screenshots/fwts-live-5.png

You can navigate up/down using the cursor up/down and page up/down keys. Also one can scroll left/right using the cursor left/right keys. Press the enter key to select the < EXIT > button and exit the log viewer.

The tests are now complete and you will be see the following dialog box that will inform you the path name to the results.log on the USB stick and you can then press enter to shutdown the machine.

http://odm.ubuntu.com/fwts-live/screenshots/fwts-live-6.png

So, in the above example, if you later plug the USB stick into Ubuntu, you will find the results in /media/OEM_BUILD/fwts/11102011/1327/results.log. On a Windows machine, if this USB stick is mounted on drive D: you would find the log in D:\fwts\11102011\1327\results.log

Note: Staring from 19.03.00, fwts-live saves log files in directories named by system date in a FAT32 partition "fwts-result". In the above example, the it mean the results is in /media/$USER/fwts-result/11102011/1327/results.log. On a Windows machine, fwts-result partition is readable while other partitions are not.

Note that on each run of fwts-live, an HTML based report is generated and placed in the fwts directory. For example: /media/OEM_BUILD/fwts/results.html or D:\fwts\results.html. This is achieved by using the Firmware Test Suite's --log-type option. Each time you run fwts-live, the plaintext file will be preserved, however only the most recent run of fwts-live will preserve the HTML report.

See an example of the HTML report here.

Running individual tests

The "Select Individual Tests" option will allow you to select specific fwts tests. Once selected you will be presented with a scrollable menu of the available tests to run:

http://odm.ubuntu.com/fwts-live/screenshots/fwts-live-7.png

To navigate the menu press the cursor up/down keys and press the space key to toggle the selections. Press the enter key to run the test(s). You may select one or more tests.

You will then see a progress dialog box and then the option to see the results log, as described in the "Running all the batch tests" section above.

Interpreting the Results

The FWTS reference guide describes in detail each test and the errors that the test may find. Alternatively, the results.log can be copied from the USB stick and sent to Canonical for an engineer to analyse and diagnose any faults that need fixing in the firmware or attached to a new bug within the FWTS Live Launchpad Project.

FirmwareTestSuite/FirmwareTestSuiteLive (last edited 2023-10-03 08:26:00 by ivan.hu)