From Fedora Project Wiki
 
(29 intermediate revisions by 6 users not shown)
Line 1: Line 1:
Installing Fedora on your ARM device
Installing Fedora on your ARM device.


=General process=
=General process=
=== Fedora Arm Installer ===
{{admon/note|Note | The examples provided here are from a Fedora 22/23/24 host and may need to be adjusted depending on your host environment.}}


Execute the following script as a user with sudo privileges. It will copy the
Arm devices come in both 32-bit and 64-bit variations. Armv9 is the latest version of the arm architecture and is backwards compatible with Armv8 which added 64-bit support in the form of aarch64 mode. Aarch32 is the Armv8 32-bit compatibility mode, which is generally backwards compatible with the previous 32-bit ARMv7. Not all ARMv8+ devices support both 64-bit and 32-bit execution so its best to check the specifications on a given piece of hardware.
selected disk image and write the appropriate U-Boot for the target hardware
platform. Optionally you can also enable and disable SE Linux and remove the
root password requirement (allowing log in without completing initial setup).
To add a board not listed, simply create a bash scriptlet with the commands
needed to copy U-Boot to media and add to the 'boards.d' directory.


  sudo dnf install fedora-arm-installer
Fedora only supports aarch64 images which run on 64-bit ARMv8 hardware. Aarch64 machines are expected to provide a base level of UEFI support. That support may be baked into the system firmware, or provided by fedora as part of the arm-image-installer's uboot. 
 
==Stable Releases==
 
The current stable release for aarch64 can always be found at [https://getfedora.org/ Get Fedora]
 
==Branched Development Release==
 
The repository for current development releases:
http://dl.fedoraproject.org/pub/fedora/linux/development/
 
==Rawhide Rolling Release==
<b>Rawhide Installation Tree(aarch64)</b>
https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Server/aarch64/
https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/aarch64/
 
=General Installation instructions for all Releases=
== Aarch64 SBSA/SBBR, and SystemReady compliant hardware ==
Machines which conform to the standard system architecture and boot requirements can be installed using normal fedora installation methods. Those methods are documented in the version specific installation instructions here https://docs.fedoraproject.org/.
 
== Arm Image Installer ==
{{admon/note|Note | The examples provided here are from a Fedora 31 host and may need to be adjusted depending on your host environment.}}
 
Used to deploy disk images for a limited set of Aarch64 SBCs. Execute the following script as a user with sudo privileges. It will copy the selected disk image and write the appropriate U-Boot for the target hardware platform. Optionally you can also enable and disable SE Linux and remove the root password requirement (allowing log in without completing initial setup). To add a board not listed, simply create a bash scriptlet with the commands needed to copy U-Boot to media and add to the 'boards.d' (/usr/share/arm-image-installer/boards.d) directory.
 
  sudo dnf -y install arm-image-installer


<pre>
<pre>
Usage: fedora-arm-image-installer <options>
Usage: arm-image-installer <options>


  --image=IMAGE   - xz compressed image file name
        --image=IMAGE   - xz compressed image file name
  --target=TARGET  - target board
        --media=DEVICE - media device file (/dev/[sdX|mmcblkX])
  --media=DEVICE   - media device file (/dev/[sdX|mmcblkX])
Optional
   --selinux=ON/OFF - Turn SELinux off/on as needed
        --addconsole   - Add system console kernel parameter for the target
  --norootpass     - Remove the root password
        --addkey        - /path/to/ssh-public-key
  -y     - Assumes yes, will not wait for confirmation
        --args          - Optional kernel parameters listed in quotes
  --version     - Display version and exit
        --norootpass   - Remove the root password
  --resizefs     - Resize root filesystem to fill media device
        --relabel      - SELinux relabel root filesystem on first boot
  --addconsole    - Add system console to extlinux.conf
        --resizefs      - Resize root filesystem to fill media device
        --showboot      - Show boot messages, removes 'rhgb quiet' from kargs
        --sysrq        - Enable System Request debugging of the kernel
        --target=TARGET - target board for uboot
        -y             - Assumes yes, will not wait for confirmation
Help
        --supported     - List of supported hardware
        --version      - Display version and exit


Example: fedora-arm-image-installer --image=Fedora-Rawhide.xz --target=Bananapi --media=/dev/mmcblk0 --selinux=OFF
Example: arm-image-installer --image=Fedora-Rawhide.xz --target=Bananapi --media=/dev/mmcblk0
</pre>
</pre>


=Stable Releases=
All available targets are stored in a file called ''SUPPORTED-BOARDS'':
The current stable release for ARMv7 can always be found at the [https://arm.fedoraproject.org/ ARM Image landing page]


The current stable release for aarch64 can always be found at [https://alt.fedoraproject.org/alt/ Alternate Architectures landing page]
cat /usr/share/doc/arm-image-installer/SUPPORTED-BOARDS


=Branched Development Release=
== Network Installation ==


=Rawhide Rolling Release=
A network installation is a preferred installation method for current Aarch64 hardware targets. In order to begin, you will need to setup the installation server, a guide can be found below:


=General Installation instructions for all Releases=
    https://docs.fedoraproject.org/en-US/fedora/f36/install-guide/advanced/Network_based_Installations/

Latest revision as of 23:40, 19 April 2023

Installing Fedora on your ARM device.

General process

Arm devices come in both 32-bit and 64-bit variations. Armv9 is the latest version of the arm architecture and is backwards compatible with Armv8 which added 64-bit support in the form of aarch64 mode. Aarch32 is the Armv8 32-bit compatibility mode, which is generally backwards compatible with the previous 32-bit ARMv7. Not all ARMv8+ devices support both 64-bit and 32-bit execution so its best to check the specifications on a given piece of hardware.

Fedora only supports aarch64 images which run on 64-bit ARMv8 hardware. Aarch64 machines are expected to provide a base level of UEFI support. That support may be baked into the system firmware, or provided by fedora as part of the arm-image-installer's uboot.

Stable Releases

The current stable release for aarch64 can always be found at Get Fedora

Branched Development Release

The repository for current development releases:

http://dl.fedoraproject.org/pub/fedora/linux/development/

Rawhide Rolling Release

Rawhide Installation Tree(aarch64)

https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Server/aarch64/
https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/aarch64/

General Installation instructions for all Releases

Aarch64 SBSA/SBBR, and SystemReady compliant hardware

Machines which conform to the standard system architecture and boot requirements can be installed using normal fedora installation methods. Those methods are documented in the version specific installation instructions here https://docs.fedoraproject.org/.

Arm Image Installer

Note
The examples provided here are from a Fedora 31 host and may need to be adjusted depending on your host environment.

Used to deploy disk images for a limited set of Aarch64 SBCs. Execute the following script as a user with sudo privileges. It will copy the selected disk image and write the appropriate U-Boot for the target hardware platform. Optionally you can also enable and disable SE Linux and remove the root password requirement (allowing log in without completing initial setup). To add a board not listed, simply create a bash scriptlet with the commands needed to copy U-Boot to media and add to the 'boards.d' (/usr/share/arm-image-installer/boards.d) directory.

sudo dnf -y install arm-image-installer
Usage: arm-image-installer <options>

        --image=IMAGE   - xz compressed image file name
        --media=DEVICE  - media device file (/dev/[sdX|mmcblkX])
Optional
        --addconsole    - Add system console kernel parameter for the target
        --addkey        - /path/to/ssh-public-key
        --args          - Optional kernel parameters listed in quotes
        --norootpass    - Remove the root password
        --relabel       - SELinux relabel root filesystem on first boot
        --resizefs      - Resize root filesystem to fill media device
        --showboot      - Show boot messages, removes 'rhgb quiet' from kargs
        --sysrq         - Enable System Request debugging of the kernel
        --target=TARGET - target board for uboot
        -y              - Assumes yes, will not wait for confirmation
Help
        --supported     - List of supported hardware
        --version       - Display version and exit

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

All available targets are stored in a file called SUPPORTED-BOARDS:

cat /usr/share/doc/arm-image-installer/SUPPORTED-BOARDS

Network Installation

A network installation is a preferred installation method for current Aarch64 hardware targets. In order to begin, you will need to setup the installation server, a guide can be found below:

   https://docs.fedoraproject.org/en-US/fedora/f36/install-guide/advanced/Network_based_Installations/