Difference between revisions of "Fusionio driver"
From Hawk Wiki
(→Build your own for ubuntu 20) |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <h2>ubuntu 16</h2> | + | <h2>ubuntu 16 (deprecated)</h2> |
<pre> | <pre> | ||
# install fusion io driver. reference https://www.thomas-krenn.com/en/wiki/Fusion-io_ioDrive_use_with_Debian | # install fusion io driver. reference https://www.thomas-krenn.com/en/wiki/Fusion-io_ioDrive_use_with_Debian | ||
Line 31: | Line 31: | ||
# hold kernel prevent auto kernel version update | # hold kernel prevent auto kernel version update | ||
sudo apt-mark hold $(uname -r) | sudo apt-mark hold $(uname -r) | ||
+ | </pre> | ||
+ | |||
+ | ==lock ubuntu kernel== | ||
+ | <pre> | ||
+ | grep submenu /boot/grub/grub.cfg | ||
+ | submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-74f18fa3-ec82-4e3c-8656-79a71108a97b' { | ||
+ | </pre> | ||
+ | |||
+ | <pre> | ||
+ | grep gnulinux /boot/grub/grub.cfg | ||
+ | # find item you want to lock | ||
+ | menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-74f18fa3-ec82-4e3c-8656-79a71108a97b' { | ||
+ | submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-74f18fa3-ec82-4e3c-8656-79a71108a97b' { | ||
+ | menuentry 'Ubuntu, with Linux 4.13.0-36-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.13.0-36-generic-advanced-74f18fa3-ec82-4e3c-8656-79a71108a97b' { | ||
+ | </pre> | ||
+ | |||
+ | <pre> | ||
+ | sudo vim /etc/default/grub | ||
+ | #GRUB_DEFAULT=0 | ||
+ | |||
+ | GRUB_DEFAULT="gnulinux-advanced-74f18fa3-ec82-4e3c-8656-79a71108a97b>gnulinux-4.13.0-36-generic-advanced-74f18fa3-ec82-4e3c-8656-79a71108a97b" | ||
+ | |||
+ | sudo update-grub | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | ===Build your own for ubuntu 20=== | ||
+ | |||
+ | <pre> | ||
+ | # fusion io | ||
+ | |||
+ | sudo apt-get install debhelper dkms -y | ||
+ | |||
+ | # repo https://github.com/RemixVSL/iomemory-vsl | ||
+ | |||
+ | git clone https://github.com/RemixVSL/iomemory-vsl | ||
+ | cd iomemory-vsl/ | ||
+ | sudo make dkms | ||
+ | |||
+ | download fio-util_3.2.16.1731-1.0_amd64.deb from https://link.westerndigital.com/enterprisesupport/software-download.html | ||
+ | |||
+ | sudo dpkg -i fio-util_3.2.16.1731-1.0_amd64.deb | ||
+ | |||
+ | sudo modprobe iomemory-vsl | ||
+ | |||
+ | sudo fio-status -a | ||
+ | |||
</pre> | </pre> |
Latest revision as of 17:34, 17 October 2023
ubuntu 16 (deprecated)
# install fusion io driver. reference https://www.thomas-krenn.com/en/wiki/Fusion-io_ioDrive_use_with_Debian apt-get install -y gcc fakeroot build-essential debhelper linux-headers-$(uname -r) rsync apt-get install -y libelf-dev # download driver here http://support.fusionio.com/ # choose ubuntu 16, download all packages listed below and upload to home folder ~/iomemory cd iomemory sudo dpkg -i fio-preinstall_3.2.16.1731-1.0_amd64.deb fio-common_3.2.16.1731-1.0_amd64.deb fio-firmware-fusion_3.2.16.20180821-1_all.deb fio-sysvinit_3.2.16.1731-1.0_all.deb fio-util_3.2.16.1731-1.0_amd64.deb tar xzvf iomemory-v*.tar.gz cd iomemory-v* dpkg-buildpackage -uc -us sudo dpkg -i iomemory-vsl-source_3.2.16.1731-1.0_amd64.deb #sudo dpkg -i iomemory-vsl-4.13.0-36-generic_3.2.16.1731-1.0_amd64.deb # I got some conflict when installing the package above. will fix it manually later. sudo dpkg -i iomemory-vsl-config-4.13.0-36-generic_3.2.16.1731-1.0_amd64.deb # manually extract the package content and copy item into target folder dpkg-deb -xv iomemory-vsl-4.13.0-36-generic_3.2.16.1731-1.0_amd64.deb ./extract cd extract cp lib/modules/4.13.0-36-generic/extra/fio/iomemory-vsl.ko /lib/modules/`uname -r` sudo depmod -a sudo modprobe iomemory-vsl sudo fio-status -a # now this driver should load fine. # hold kernel prevent auto kernel version update sudo apt-mark hold $(uname -r)
lock ubuntu kernel
grep submenu /boot/grub/grub.cfg submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-74f18fa3-ec82-4e3c-8656-79a71108a97b' {
grep gnulinux /boot/grub/grub.cfg # find item you want to lock menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-74f18fa3-ec82-4e3c-8656-79a71108a97b' { submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-74f18fa3-ec82-4e3c-8656-79a71108a97b' { menuentry 'Ubuntu, with Linux 4.13.0-36-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.13.0-36-generic-advanced-74f18fa3-ec82-4e3c-8656-79a71108a97b' {
sudo vim /etc/default/grub #GRUB_DEFAULT=0 GRUB_DEFAULT="gnulinux-advanced-74f18fa3-ec82-4e3c-8656-79a71108a97b>gnulinux-4.13.0-36-generic-advanced-74f18fa3-ec82-4e3c-8656-79a71108a97b" sudo update-grub
Build your own for ubuntu 20
# fusion io sudo apt-get install debhelper dkms -y # repo https://github.com/RemixVSL/iomemory-vsl git clone https://github.com/RemixVSL/iomemory-vsl cd iomemory-vsl/ sudo make dkms download fio-util_3.2.16.1731-1.0_amd64.deb from https://link.westerndigital.com/enterprisesupport/software-download.html sudo dpkg -i fio-util_3.2.16.1731-1.0_amd64.deb sudo modprobe iomemory-vsl sudo fio-status -a