# Insyde Flash utility for Linux

This tool must work with InsydeH2O BIOS.

### License
Please visit the link below to read license information:
https://github.com/insyde-ct1/phy_alloc/blob/master/LICENSE

### How to setup?
#### Install the dependencies to build the Linux driver.
Install the following packages for compiling the Linux driver(phy_alloc.ko).  
Packages' names might be different among Linux distributions.
* kernel header
* GCC
* make  

#### Install
* RedHat / CentOS / Fedora
 * sudo yum install InsydeH2OFFT_x86_LINUX64_200.01.00.05.rpm
* Debian / Ubuntu
 * sudo apt install InsydeH2OFFT_x86_LINUX64_200.01.00.05.deb

#### Uninstall
* RedHat / CentOS / Fedora
 * sudo yum remove H2OFFT
* Debian / Ubuntu
 * sudo apt remove H2OFFT

### How to run this utility
After installation complete, open terminal and type tool name
```
$ sudo h2offt-lx64 -h
```

### Compile Information
* Tool build environment:
 * IA32 version
   * CentOS release 5.10
   * kernel version 2.6.18 with GNU C Library 2.5 and GNU CC version 4.1.2
 * x64 version
   * CentOS release 5.10
   * kernel version 2.6.18 with GNU C Library 2.5 and GNU CC version 4.1.2

### Trobuleshooting
* Command not found?
 * Check if utility exists in `/var/local/insyde`, if not found, uninstall & reinstall.
* Operation not permitted?
 * Please run with root or sudo.
* Driver not installed?
 * Type command `lsmod | grep phy_alloc` and check if driver was installed correctly, if not, run `sudo insmod <path_to_phy_alloc.ko>`
* Driver not signed?
 * Beware of secure boot enabled system, you have to sign **phy_alloc.ko** & install manually.
* Could not insert module phy_alloc.ko: Required key not available
 * When SecureBoot is enabled, phy_alloc.ko has to be signed before using.
 * Sign that with the command below:
 * sign-file sha256 <private_key> <public_key> phy_alloc.ko

 Note: sign-file could be found in /usr/src/kernels/<ver>/scripts/

