Amd raid linux drivers

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.

Читайте также:  Gcc error unrecognized argument in option mabi aapcs linux

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?

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

Читайте также:  Linux ubuntu сменить пользователя

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)

Источник

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.

AMD RAIDXpert driver as DKMS package

thopiekar/rcraid-dkms

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?

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.

Читайте также:  Linux compile java with jar

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

Latest commit

Fix compile for `5.15.6-200.fc35.x86_64`

Git stats

Files

Failed to load latest commit information.

README.md

AMD RAIDXpert driver as DKMS package

Many AMD mainboards for the AM4 socket based on the following chipsets come with RAID support:

But this RAID mode, which needs to be set in the BIOS, requires a specific driver for each OS. There is a driver for Windows, but for Linux AMD provides either a binary blob or the sources. When following the instructions, you will need to recompile the driver and install the kernel module on each kernel update and/or upgrade. Since we are in the 21 century and we have software like DKMS, we don't need to do this manually, but let it happen automatically.

Therefore we try here to keep the code alive for many kernel versions as possible and deliver it within a PPA for Ubuntu as a DKMS package.

sudo add-apt-repository ppa:thopiekar/rcraid sudo apt-get update sudo apt-get install rcraid-dkms
  • 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
git clone https://github.com/thopiekar/rcraid-dkms.git
  • This will compile sources and install package for current running kernel. If you need to make package for different kernel then you can use KVERS option. After installing edit /etc/mkinitcpio.conf and add

Note: If you just planning on switching to rcraid, my advice is: don't. Support from AMD for Promontory raid on Linux is pretty much non-existent. You will be way better off sticking with mdadm, zfs or lvm.

If you REALLY want this to dual-boot Linux/Win, also don't. Setting up virtualization with KVM with GPU Passtrough today is really simple, and you will not need to boot Windows directly on your hardware ever again.

Sidenote: If you decide to use rcraid regardless you might want to also install RAIDXpert. Web interface isn't working properly on Manjaro, but rcadm is more or less is.

Sidenote 2: If you ever decide to switch from rcraid to something else, you may find it useful to know that deleting arrays only removes metadata. Partitions are still there, and can be recovered with gdisk, gpart etc. I found out that offset for partitions is 1069056 sectors (512B). So if you have partition starting at usual 2048 it will be at 1071104 after array deletion.

  • To AMD to hand out the driver as source code at least. (Some history: Just think about Intel Poulsbo..)
    • https://www.amd.com/en/support/chipsets/amd-socket-am4/x370 - section Linux
    • https://github.com/martinkarlweber/rcraid-patches

    Источник

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