Instructions for U-Boot

///Install onto USB Drive
The below instructions describe how to install Fienix onto a USB drive. You will need a computer running Linux to prepare the USB drive. 

Downloading and Extracting
Download CYRUSBOOT-files and extract - you should have "uImage-4.18" and "cyrus_p5020_eth_poweroff.dtb" 
Download the Fienix image and extract, make note of the path to the Fienix image, such as "/home/user/Fienix.img"

Preparing the USB Drive 
Insert your USB drive and open gparted

Use the menu on the right side of the toolbar to select the USB drive you inserted

Make note of the device path, such as “/dev/sdb” -this will be referred to as "/dev/usbdrive" from this point forward, use your correct path

Click the Device menu, then click Create Partition Table

Select new partition table type: msdos

Click Apply

Choose the Partition menu, then New

Enter the following options:  Free space preceding: 1; New size: 128; File system: fat32; Label: CYRUSBOOT

Click Add button

Choose Partition, then New

Enter the following options:  File System: ext4; Label: FIENIX

Click Add button

In the toolbar, click the check mark for “Apply All Operations”

Click the Apply button

After all operations have completed, click the Close button
 
Copying the Boot Files and Fienix
Copy the two “CYRUSBOOT” files (uImage-4.18 and cyrus_p5020_eth_poweroff.dtb) onto the new CYRUSBOOT partition you just made on your USB drive

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 FIENIX partition you created, such as "/dev/sdb2"
 
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
  
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.18
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. 

Preparing the Hard Drive
Open gparted

Use the menu on the right side of the toolbar to select the hard drive you wish to install Fienix onto

Make note of the device path, such as “/dev/sda -this will be referred to as "/dev/harddrive" from this point forward, use your correct path  

Click the Device menu, then click Create Partition Table

Select new partition table type: msdos

Click Apply

Choose the Partition menu, then New

Enter the following options:  Free space preceding: 1; New size: 128; File system: fat32; Label: CYRUSBOOT

Click Add button

Choose Partition, then New

Enter the following options:  File System: ext4; Label: FIENIX

Click Add button

In the toolbar, click the check mark for “Apply All Operations”

Click the Apply button

After all operations have completed, click the Close button

Copying the Boot Files and Fienix
Copy the two “CYRUSBOOT” files (uImage-4.18 and cyrus_p5020_eth_poweroff.dtb) onto the new CYRUSBOOT partition you just made on your hard drive

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 drive, 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 drive which Fienix is installed on, such as /dev/sdb2, and "/dev/harddrive" is the path to the FIENIX partition you created, such as "/dev/sda2"

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 the FIENIX partition you created, such as "/dev/sda2"
 
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"