Instructions for U-Boot

///Install onto USB Drive
The below instructions describe how to install Fienix onto a USB disk. You will need an 8 GB or larger USB disk and a computer running Linux to copy Fienix to the disk. 

Downloading and Extracting
Download the Fienix image and extract, make note of the path to the Fienix image, such as "/home/user/Fienix.img"
 
Copying the Boot Files and Fienix
Open a Terminal window

As sudo (Ubuntu) or su (Debian), enter:  
dd if=/path/to/Fienix.img of=/dev/usbdrive 
    -where "/dev/usbdrive" is the path to the USB disk, such as "/dev/sdb"
    -if you do not know the path to your USB disk you can find it by entering "df -h"
 
Allow dd to copy the Fienix image to your USB drive
 

Correcting Partition Size
Open gparted
Select the FIENIX partition
Click the Partition menu, then click Check
Click the checkmark icon on the toolbar to Apply All Operations, then click Apply when asked if you're sure
    -if the Fienix partition does not expand to include all available disk space you may resize it so that it does
  
Booting into Fienix
Restart your X5000 and enter Uboot Command Line

Enter commands as follows (enter after each line): 
usb reset
setenv bootargs root=/dev/usbdrive rootdelay=5
fatload usb 0:1 1000000 uImage-4.20
fatload usb 0:1 1c00000 cyrus_p5020_eth_poweroff.dtb
bootm 1000000 - 1c00000

///Installing onto Hard Drive
The below instructions describe how to install Fienix onto a hard drive from Fienix on a USB drive. The instructions presume no other OS is present on the hard drive, dual-booting is outside the scope of these instructions. 


Copying the Boot Files and Fienix
Open a Terminal window

Login to Terminal as superuser by typing "su" and entering the superuser password
 
If you are currently running Fienix from a USB disk, and want to copy your existing installation onto your hard drive, enter:  
dd if=/dev/usbdrive of=/dev/harddrive
    -where "/dev/usbdrive" is the USB disk which Fienix is installed on, such as /dev/sdb, and "/dev/harddrive" is the path to your hard drive, such as "/dev/sda"

If you want to copy a fresh install of Fienix onto your hard drive you can copy the Fienix image, enter:  
dd if=/path/to/Fienix.img of=/dev/harddrive
    -where "/dev/harddrive" is the path to your hard drive, such as "/dev/sda"
 
Allow dd to copy the Fienix image to your hard drive

Confirming Fienix Installation / Booting into Fienix
Restart your X5000 and enter Uboot Command Line

Enter commands as follows (enter after each line):   
sata init
setenv bootargs root=/dev/harddrive rootdelay=5
fatload sata 0:1 1000000 uImage-4.18
fatload sata 0:1 1c00000 cyrus_p5020_eth_poweroff.dtb
bootm 1000000 - 1c00000

Configuring the Linux Boot Menu Button
These instructions will allow you to boot into Fienix using the "Linux" boot menu button instead of typing in the boot commands each time. 
Restart your X5000 and enter Uboot Command Line

Enter the following:
sata init;setenv bootargs root=/dev/harddrive rootdelay=5;fatload sata 0:1 1000000 uImage-4.18;fatload sata 0:1 1c00000 cyrus_p5020_eth_poweroff.dtb;bootm 1000000 - 1c00000
 
saveenv 
    -where "/dev/harddrive" is the path to the FIENIX partition you created, such as "/dev/sda2"