From Fedora Project Wiki

(add the simplest form of xzcat command for convenience)
m (also relevant for IoT)
(9 intermediate revisions by 4 users not shown)
Line 4: Line 4:
|description=This case tests whether a direct deployment of a Fedora image works on an ARM platform.
|description=This case tests whether a direct deployment of a Fedora image works on an ARM platform.
|setup=
|setup=
# Make any required changes to the test system's bootloader configuration.
# Insert or connect the media to write the Fedora ARM disk image.
|actions=
|actions=
# Download the image you wish to test.
You can quite easily prepare an image on the SD card using Fedora or any Linux distribution, MacOS or Windows. The default settings will provide the user interface on a HDMI monitor with keyboard and mouse support
# Write it to a form of media bootable on the test system following any instructions given on the appropriate instruction page (e.g. [[Architectures/ARM/F{{FedoraVersionNumber|next}}/Installation]] for the currently-pending Fedora release). Usually, this means running a command like <code>xzcat -v <filename>.raw.xz > /dev/<location-of-your-media></code>
 
# Attach the written medium to the test system and boot it, ensuring the medium takes priority over other boot methods.
=== Manually ===
<pre> $ xzcat Fedora-IMAGE-NAME.raw.xz | sudo dd status=progress bs=4M of=/dev/XXX # Location of your media (will be sdX or mmcblkX depending on hardware)</pre>
=== Scripted ===
To install using arm-image-installer:
<pre>
$ sudo dnf install -y arm-image-installer
</pre>
To write the image out use the following:
<pre>
$ sudo arm-image-installer
 
Usage: arm-image-installer <options>
 
  --image=IMAGE    - xz compressed image file name
  --target=TARGET  - target board
  --media=DEVICE  - media device file (/dev/[sdX|mmcblkX])
  --selinux=ON/OFF - Turn SELinux off/on as needed
  --norootpass    - Remove the root password
  -y     - Assumes yes, will not wait for confirmation
  --version     - Display version and exit
  --resizefs     - Resize root filesystem to fill media device
  --addconsole    - Add system console to extlinux.conf
  --addkey=        - /path/to/ssh-public-key
 
Example: arm-image-installer --image=Fedora-Rawhide.xz --target=Bananapi --media=/dev/mmcblk0
 
For list of supported boards please check SUPPORTED-BOARDS file.
</pre>
Attach the written medium to the test system and boot it, ensuring the medium takes priority over other boot methods.
|results=
|results=
# The system boots to the initial-setup tool.
# When testing a standard Fedora disk image, the system boots to the initial-setup tool.
# When testing an Iot disk image, the system boots to log in.  
}}
}}
[[Category:Test Cases|a]] [[Category:IoT_Acceptance_Test_Cases]]

Revision as of 12:55, 25 May 2020

Note.png
Associated release criterion
This test case is associated with the Basic_Release_Criteria#initialization-requirements release criterion. If you are doing release validation testing, a failure of this test case may be a breach of that release criterion. If so, please file a bug and nominate it as blocking the appropriate milestone, using the blocker bug nomination page.


Description

This case tests whether a direct deployment of a Fedora image works on an ARM platform.

Setup

  1. Insert or connect the media to write the Fedora ARM disk image.

How to test

You can quite easily prepare an image on the SD card using Fedora or any Linux distribution, MacOS or Windows. The default settings will provide the user interface on a HDMI monitor with keyboard and mouse support

Manually

 $ xzcat Fedora-IMAGE-NAME.raw.xz | sudo dd status=progress bs=4M of=/dev/XXX # Location of your media (will be sdX or mmcblkX depending on hardware)

Scripted

To install using arm-image-installer:

$ sudo dnf install -y arm-image-installer

To write the image out use the following:

$ sudo arm-image-installer

Usage: arm-image-installer <options>

   --image=IMAGE    - xz compressed image file name
   --target=TARGET  - target board
   --media=DEVICE   - media device file (/dev/[sdX|mmcblkX])
   --selinux=ON/OFF - Turn SELinux off/on as needed
   --norootpass     - Remove the root password
   -y		    - Assumes yes, will not wait for confirmation
   --version	    - Display version and exit
   --resizefs	    - Resize root filesystem to fill media device
   --addconsole     - Add system console to extlinux.conf
   --addkey=        - /path/to/ssh-public-key

Example: arm-image-installer --image=Fedora-Rawhide.xz --target=Bananapi --media=/dev/mmcblk0

For list of supported boards please check SUPPORTED-BOARDS file.

Attach the written medium to the test system and boot it, ensuring the medium takes priority over other boot methods.

Expected Results

  1. When testing a standard Fedora disk image, the system boots to the initial-setup tool.
  2. When testing an Iot disk image, the system boots to log in.