Amd raid driver linux

How to access AMD RAID on X399M board through Ubuntu 18.04

The AMD RAID (on-board SATA and NVMe RAID chip) drivers are not installed in Ubuntu 18.04, so the disks show up by themselves but only when AHCI is enabled (the default AHCI driver is used). Enabling RAID mode shows nothing of course.

The driver is not available through AMD support for X399M but rather an AM4 chipset like X370. As of now, the driver can be obtained here but if link is broken, visit amd.com support section for driver download.

After download, attempting to install this AMD RAID driver manually from source failed immediately. Ubuntu 18.04 comes with kernel 4.15 with which this driver is incompatible.

Normally I would say «Someone please point me in the right direction» here but I happened to find the answer just now and will post below.

1 Answer 1

Follow the instructions in this repo to install the rcraid-dkms package and enable AMD RAID in Ubuntu 18.04

Through this forum post, I was led to the repo rcraid-patches.

Now, I have attempted to patch the files manually before (few months ago) and the process became so tedious I eventually gave up. Thankfully, there was an addition made to the README pointing to another repo to make the process much easier — rcraid-dkms.

if you happen to have two types of the same kernel version (like generic and low-latency) make sure you remove the one you aren’t using or the installer may modify the wrong kernel(s)

After installing rcraid-dkms and following the instructions in the repo, my RAID array is finally accessible (along with the other two individual drives).

In case site goes offline — per instructions:

Installation ============ * Driver package for Ubuntu: https://launchpad.net/~thopiekar/+archive/ubuntu/rcraid ```bash sudo add-apt-repository ppa:thopiekar/rcraid sudo apt-get update sudo apt-get install rcraid-dkms ``` * Switching to RAID mode: * Boot Linux in AHCI mode. * Append `modprobe.blacklist=ahci` to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub * Run `sudo update-grub` * Restart * Switch to RAID mode * Boot your Linux installation from a RAID disk 

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Inofficial Patches for AMD RAID linux kernel modules (rcraid.ko)

License

martinkarlweber/rcraid-patches

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Читайте также:  Операционная система windows linux реферат

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Inofficial Patches for AMD RAID linux kernel modules (rcraid.ko)

This is a third-party patch, it is not from AMD. AMD does not take any responsibility for this patch. Read also the contents of the file LICENSE for permissions and liability.

These patches bundle several fixes to the rcraid kernel module source code in order to make it compile under newer kernel versions than those officially supported in 2017 by AMD. It has been tested with Ubuntu 18.04, 18.10 and 19.04, but should run on other Linux flavors as well.

For a complete description of fixes, see file CHANGELOG.md.

Applying the patches is done by hand and cumbersome. A more convenient way may be to use the rcraid-dkms package from Thomas Karl Pietrowski (@thopiekar). If you still want to use this package, follow these instructions:

First download the AMD Linux RAID driver from the official AMD Raid driver page. (You need to accept the license.) Go to your download folder and unzip the downloaded file,

Download the file rcraid.patch from this repository and put it in the same folder you saved the above zip file in. Then issue

 patching file driver_sdk/install patching file driver_sdk/src/Makefile patching file driver_sdk/src/common_shell patching file driver_sdk/src/install_rh patching file driver_sdk/src/install_suse patching file driver_sdk/src/rc_init.c patching file driver_sdk/src/rc_mem_ops.c patching file driver_sdk/src/rc_msg.c patching file driver_sdk/src/uninstall_rh patching file driver_sdk/src/uninstall_suse patching file driver_sdk/uninstall 

Congratulations! You are done with patching.

Quick install instructions for Ubuntu 18.04

Download the latest Ubuntu 18.04 image, install it on a USB stick and boot it in UEFI mode (turn of CSM module in BIOS). After booting, download the official AMD RAID driver. Open a shell and follow these instructions:

 cd Downloads/ unzip raid_linux_driver_8_01_00_039_public.zip sudo apt install git git clone https://github.com/martinkarlweber/rcraid-patches.git mv rcraid-patches/rcraid.patch . rm -rf rcraid-patches/ patch -p1 < rcraid.patch cd driver_sdk/ sudo apt install build-essential sudo /bin/bash ./install sudo rmmod ahci libahci sudo modprobe rcraid dmesg | less 

If everything goes well, you will see an output similar to

 rcraid: loading out-of-tree module taints kernel. rcraid: module license 'Proprietary' taints kernel. Disabling lock debugging due to kernel taint rcraid: module verification failed: signature and/or required key missing - tainting kernel scsi host0: AMD, Inc. AMD-RAID scsi 0:0:0:0: Direct-Access AMD-RAID Array 01 8.1 PQ: 0 ANSI: 5 scsi 0:0:24:0: Processor AMD-RAID Configuration V1.2 PQ: 0 ANSI: 5 scsi 0:1:0:0: CD-ROM HL-DT-ST DVDRAM GH22NS50 TN03 PQ: 0 ANSI: 0 sd 0:0:0:0: Attached scsi generic sg1 type 0 sd 0:0:0:0: [sdb] 3905925120 512-byte logical blocks: (2.00 TB/1.82 TiB) sd 0:0:0:0: [sdb] Write Protect is off sd 0:0:0:0: [sdb] Mode Sense: 00 06 00 00 sd 0:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA scsi 0:0:24:0: Attached scsi generic sg2 type 3 sr 0:1:0:0: [sr0] scsi-1 drive cdrom: Uniform CD-ROM driver Revision: 3.20 sr 0:1:0:0: Attached scsi CD-ROM sr0 sr 0:1:0:0: Attached scsi generic sg3 type 5 sdb: sdb1 sdb2 sdb3 sd 0:0:0:0: [sdb] Attached SCSI disk 

About

Inofficial Patches for AMD RAID linux kernel modules (rcraid.ko)

Читайте также:  Установка ms sql server linux

Источник

Drivers & Software

I have been at this for days which is leading to the creation of my account and this discussion.

After trying basically anything I could over the course of about 4 days, I decided to go through the actual RAIDXpert2 manual linked here.

According the revision history, the most recent update is June of 2019.

NVMe RAID updates were added in March of 2018.

Ubuntu support for 16.04 LTS is shown as of July 2017.

Then further below in the same document we have sections 2.3.1 and 2.3.2

Supported Processors and Chipsets

  • 3rd Gen AMD Ryzen™ Desktop Processor
  • 2nd Gen AMD Ryzen™ Threadripper™ Processor
  • 2nd Gen AMD Ryzen™ Desktop Processor
  • AMD Ryzen™ Threadripper™ Processor
  • AMD Ryzen™ Desktop Processor
  • AMD Ryzen™ Desktop Processor with Radeon™ Vega Graphics

  • AMD X399 Chipset
  • AMD B450 Chipset
  • AMD X370 Chipset
  • AMD B350 Chipset
  • AMD A320 Chipset
  • AMD X570 Chipset

Supported Operating Systems

  • RAIDXpert2 supports the following operating systems:
    • RC-9.2.x Release:
      • Microsoft® Windows® 10—64 bit.
    • RC-8.1.x Release:
      • Microsoft Windows 7: Professional Edition, Ultimate Edition—32 bit and 64 bit
      • Microsoft Windows 10—32 bit and 64 bit
      • Red Hat Enterprise Linux® (RHEL) 7.3—64 bit
      • Ubuntu Desktop Linux 16.04—32 bit and 64 bit

    • 3rd Gen AMD Ryzen (3800X) Processor
    • X470 Motherboard (Asus Crosshair VII Hero)
    • Ubuntu 16.04+

    The above is enough to understand the problem. In order to boot the 3800X processor on the X470 motherboard required a bios update. The bios update installed RAIDXpert2 UEFI 9.2 firmware. Based on the above "Supported Operating Systems", Only Windows 10 - 64 bit is supported.

    The above document is entirely misleading as there is no support for 3rd gen processors on any X470, X570 motherboard for Linux based operating systems.

    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    The X470 is still not supported.

    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    Sep 2020 check in, x370 still the last supported generation, still nothing for x470 or x570. Git f*cked high end mobo user's.

    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    If you use Ubuntu, you can try using the thopiekar PPA which provide a patched version of the x370 RAID drivers for Linux that has been patched to support X399, X570, X470 and B450 as well. Sadly it's SATA RAID only and stuck at 8.1.0.

    The more disturbing thing is in the latest version of the RAID manual- apparently there are newer versions of the drivers out there. Just that AMD tells you to go talk to your motherboard manufacturer, who if they decide to not provide the drivers, won't (seriously. I checked Gigabyte and Asrock's website. No sign of this RCRAID 9.3 that the manual mentions). Even more humiliating is that the new version adds support for NVME RAID.

    I was just about to convert my Threadripper build to Linux because the Killer NIC LAN under Windows 10 is extremely unstable and requires me to unplug and re-plug my network switch from the workstation regularly or it would randomly suddenly drop connection, and it has gotten worse as of late (Gigabyte X399 Aorus Gaming 7, which is the only X399 board Gigabyte Malaysia sells. I switched from an Asrock X399 Taichi because that board let out magic smoke and upped during a TimeSpy Extreme run. with everything at stock settings, hence I don't trust Asrock with the X399 chipset anymore. I am still soured with how MSI handled the capacitor plague two decades ago and thus avoided that brand, and now that I think of it, I recall that MSI also uses Killer NIC on their X399 boards, and Asus' board is too expensive at over RM4000). I tested it under Linux and the NIC was stable as a rock. So I want to switch it to Linux. Except that it is not possible to do so without the newer RAID drivers because of my NVME disk configuration (three in RAID-0. I'm given three ports and thus I'm entitled to use it all). Killer Networking has been unhelpful, Gigabyte's support on this matter is appalling (they keep insisting that the Killer NIC is flawless despite dozens of complains out there instead of getting Killer to fix their drivers). And no, I do not want to resort to a USB or PCIe NIC.

    Why AMD wouldn't just work with the DMRAID people to add support for their RAID solution in Linux universally is beyond me. I've already brought this up many times but AMD won't listen. AMD champions open source software for their GPUs and that model works extremely well for both AMD and the end users (out of the box support for Radeon graphics, as a result the DRM and KMS driver for AMD is extremely mature and stable and all distros support acceleration out of the box). Why won't they do the same for their RAID?

    Источник

Оцените статью
Adblock
detector