Kernel upgrade testing

From postmarketOS
Jump to navigation Jump to search

Step by step instructions for testing new kernels in merge requests, so we have comparable results.

Steps

  • Install unmodified postmarketOS edge or stable (depending on MR target branch)
  • Boot up (while watching serial log, if possible, look for errors)
  • Fill out the template below for the current (old) kernel
  • Install the new kernel
  • Reboot (look for errors again in serial log)
  • Fill out the template below for the new kernel

Result template

Add results as OK or NOK. If there's more information (e.g. it did not work every time, add an asterisk and explain below.)

Old kernel version:

| Feature          | Old kernel | New kernel |
| ---------------- | ---------- | -----------|
| Call (incoming)  |            |            |
| Call (outgoing)  |            |            |
| Camera (front)   |            |            |
| Camera (rear)    |            |            |
| HDMI             |            |            |
| LEDs             |            |            |
| SMS              |            |            |
| System suspend   |            |            |
| Video in browser |            |            |

Notes for specific tests

System suspend

Run the following command over SSH, e.g. while the video in the browser is still playing. For the PinePhone, this will test the crust firmware (pmaports!1163).

# echo mem > /sys/power/state

LEDs

In Phosh, based on pmaports#766 (comment):

$ killall feedbackd
$ G_MESSAGES_DEBUG=all G_LOG_LEVEL_INFO=all G_DEBUG=all DISPLAY=:0 /usr/libexec/feedbackd &
$ G_MESSAGES_DEBUG=all G_LOG_LEVEL_INFO=all G_DEBUG=all DISPLAY=:0 fbcli -E message-missed-email

Camera

Install megapixels, take a photo with the rear camera, switch cameras, take a selfie.

HDMI

In case of the PinePhone, if it does not work and you had power plugged into the USB dock, test again without power.