Portal
Language
 
Home>Knowledge Base>Linux Specific>Ubuntu/Debian: Building the Driver From Source
Information
Article ID59
Created On11/3/2009
Modified8/19/2010
Share With Others
Ubuntu/Debian: Building the Driver From Source
Ubuntu/Debian: Building From Source Procedure

Ubuntu/Debian: Building the Driver From Source

Follow the instructions based on your driver version.

Building the 2.1.x Driver from Source
Building the 1.2.x Driver from Source
Troubleshooting

Building the 2.1.x Driver from Source


1. Install prerequisites for building the Fusion-io source driver package.

$ sudo apt-get install gcc fakeroot rsync build-essential debhelper linux-headers-`uname -r`


Packages may also be installed separately in this fashion:

$ sudo apt-get install gcc


2. Go to the Fusion-io support website and download the driver source file for the target operating system.


3. Unpack the driver source file.

$ tar zxvf iomemory-vsl*.tar.gz


4. Change directory to the folder created during the previous step.

$ cd iomemory-vsl*


5. Begin the driver rebuild.

$ sudo dpkg-buildpackage

(Optional) If preferred, build the driver as a non-root user.

$ dpkg-buildpackage -rfakeroot -b

6. Move up one directory.

$ cd ..


7. Install the newly created driver package.

$ sudo dpkg -i iomemory-vsl*amd64*.deb

8. Load the fio-driver kernel module.

$ sudo modprobe iomemory-vsl


9. Check Fusion-io driver status.

$ sudo fio-status

Found 1 ioDrive in this system

fct0 Attached as 'fioa' (block device)
Fusion-io ioDIMM3 160GB, Product Number:FS1-001-161-ES SN:6168
Firmware v5.0.1, rev 42895
161 GBytes block device size, 198 GBytes physical device size capacity.
PCI:0c:00.0, Slot Number:6
Internal temperature: avg 42.3 degC, max 44.3 degC
Media status: Healthy; Reserves: 100.00%, warn at 10.00%

Building the 1.2.x Driver from Source

This example uses the 1.2.6 driver

1. Install prerequisites for building the Fusion-io source driver package.

$ sudo apt-get install gcc fakeroot rsync build-essential debhelper linux-headers-`uname -r`


Packages may also be installed separately in this fashion:

$ sudo apt-get install gcc


2. Go to the Fusion-io support website and download the driver source file for the target operating system.


3. Unpack the driver source file.

$ tar zxvf iodrive-driver-source_1.2.6.5-1.0.tar.gz


4. Change directory to the folder created during the previous step.

$ cd iodrive-driver-source-1.2.6*


5. Begin the driver rebuild.

$ sudo dpkg-buildpackage

(Optional) If preferred, build the driver as a non-root user.

$ dpkg-buildpackage -rfakeroot -b

6. Move up one directory.

$ cd ..


7. Install the newly created driver package.

$ sudo dpkg -i iodrive-driver_*amd64*.deb

8. Load the fio-driver kernel module.

$ sudo modprobe fio-driver


9. Check Fusion-io driver status.

$ sudo fio-status

Found 1 ioDrive in this system

Fusion-io driver version: 1.2.6.5
fct0 Attached as 'fioa' (block device)
ioDimm3 SN:012345
ioDimm3, PN:001194011, Mfr:000, Date:20080915
Firmware v36867
80.46 GBytes block device size, 99 GBytes physical device size
Internal temperature: avg 57.6 degC, max 58.1 degC
Media status: Healthy; Reserves: 100.00%, warn at 10%

Troubleshooting

Verify each of the developer packages loaded properly in step 1.
For example,

$ dpkg -s gcc

If after troubleshooting the problem has not been resolved, please contact Fusion-io Technical Support (http://support.fusionio.com) for further assistance.

Please run fio-bugreport and send the output to us. It creates a file in the /tmp directory, which can be emailed. fio-bugreport is included in the iodrive-util package on our Support site.