Liquorix 6.0 Kernel ECC ram help
moon-phasexx
Status: New User - Welcome
Joined: 07 Nov 2022
Posts: 2
Reply Quote
hello i just bought this nice ECC ram
https://www.amazon.com/2x16GB-DDR4-3200-PC4-25600-NEMIX-RAM/dp/B0944BBZT4/ref=sr_1_13?keywords=ecc+sodimm+ram&qid=1667839613&sr=8-13


Well when i apt-get install edac-utils and run i get print below.
:: Code ::
$ edac-util
edac-util: Error: No memory controller data found.


check for amd64_edac modprob
:: Code ::
$ modprobe amd64_edac
modprobe: ERROR: could not insert 'amd64_edac': No such device




Linux Kernel Patch to Support ECC Memory on AMD Ryzen 5000 APUs
https://blog.zorinaq.com/ecc-on-amd-cezanne/
.
:: Quote ::
I do not have Windows, but if only to confirm ECC can work on my hardware, I figured I can probably run that wmic memphysical get memoryerrorcorrection command from the Windows installation ISO, without installing the OS. When the installer starts, select “Repair Windows”, open a command prompt, and, indeed, the wmic command prints 6, meaning Multi-bit ECC is working

The instructions below for Debian 12 (bookworm) are minimally intrusive. They install only one modified kernel module (amd64_edac.ko) while keeping the kernel image and other modules unmodified.

First, install dependencies to compile the kernel module:

$ apt install build-essential bc kmod cpio bison flex gnupg wget linux-headers-amd64 libncurses-dev libelf-dev libssl-dev rsync dwarves

Get the kernel source and extract it:

$ apt install linux-source
$ cd /usr/src/
$ tar xf linux-source-5.15.tar.xz
$ cd linux-source-5.15

Obtain the configuration of the running kernel, disable signing of the modules (or else compilation would fail as we do not possess Debian’s signing key):

$ cp /usr/src/linux-headers-$(uname -r)/.config .
$ sed -r -i -e 's,^CONFIG_SYSTEM_TRUSTED_KEYS=.+,CONFIG_SYSTEM_TRUSTED_KEYS="",g' .config

Download my patch ecc-amd-cezanne.patch and apply it:

$ curl https://blog.zorinaq.com/assets/ecc-amd-cezanne.patch | patch -Np0

Compile:

$ make -j $(nproc) bindeb-pkg

Strip the .BTF section from the module amd64_edac.ko, or else attempting to load it will fail with the error failed to validate module [amd64_edac] BTF: -22 in dmesg. This seems to be a subtle bug due to a corner case in the BTF validation framework:

$ objcopy --remove-section .BTF debian/linux-image/lib/modules/*/kernel/drivers/edac/amd64_edac.ko

Install the module amd64_edac.ko in the updates directory which is given higher priority by depmod (so our patched module will load instead of the original module):

$ DEST="/lib/modules/$(uname -r)/updates"
$ mkdir -p "$DEST"
$ cp debian/linux-image/lib/modules/*/kernel/drivers/edac/amd64_edac.ko "$DEST"
$ depmod -a

Try loading the module. If it works, edac-util -v should show ECC statistics:

$ modprobe amd64_edac
$ edac-util -v
mc0: 0 Uncorrected Errors with no DIMM info
mc0: 0 Corrected Errors with no DIMM info
mc0: csrow0: 0 Uncorrected Errors
mc0: csrow0: mc#0csrow#0channel#0: 0 Corrected Errors
mc0: csrow0: mc#0csrow#0channel#1: 0 Corrected Errors
mc0: csrow1: 0 Uncorrected Errors
mc0: csrow1: mc#0csrow#1channel#0: 0 Corrected Errors
mc0: csrow1: mc#0csrow#1channel#1: 0 Corrected Errors
mc0: csrow2: 0 Uncorrected Errors
mc0: csrow2: mc#0csrow#2channel#0: 0 Corrected Errors
mc0: csrow2: mc#0csrow#2channel#1: 0 Corrected Errors
mc0: csrow3: 0 Uncorrected Errors
mc0: csrow3: mc#0csrow#3channel#0: 0 Corrected Errors
mc0: csrow3: mc#0csrow#3channel#1: 0 Corrected Errors
edac-util: No errors to report.





is there any way you guys could include this patch https://blog.zorinaq.com/assets/ecc-amd-cezanne.patch or something equal to enable ECC by default in the Liquorix 6.0 Kernel + please as i just bought this new EXPENSIVE ECC RAM, if this update ever did hapen i would be very happy to donate money$$?

i have a ryzen 5 as well with the ECC ram present but no patched amd64_edac.ko modual as compiling for me every update is to much!!



https://blog.zorinaq.com/assets/ecc_asrock_x570m_pro4.jpg

< Edited by moon-phasexx :: Nov 7, 22, 9:25 >

Back to top
moon-phasexx
Status: New User - Welcome
Joined: 07 Nov 2022
Posts: 2
Reply Quote
Some system info to work with?

:: Code ::
System:
  Kernel: 6.0.0-7.1-liquorix-amd64 arch: x86_64 bits: 64
  Desktop: IceWM v: 3.2.0 vt: 7 dm: slimski v: 1.5.0
    Distro: antiX-21_x64-base Grup Yorum 31 October 2021 base: Debian GNU/Linux 11 (bullseye)
Machine:
  Type: Laptop System: ASUSTeK product: TUF Gaming FX505DY_FX505DY v: 1.0
    serial:
  Mobo: ASUSTeK model: FX505DY
CPU:
  Info: model: AMD Ryzen 5 3550H with Radeon Vega Mobile Gfx bits: 64 type: MT MCP arch: Zen/Zen+




:: Code ::
$ sudo dmidecode --type memory
[sudo] password for user:
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.2.1 present.

Handle 0x000A, DMI type 16, 23 bytes
Physical Memory Array
   Location: System Board Or Motherboard
   Use: System Memory
   Error Correction Type: None
   Maximum Capacity: 32 GB
   Error Information Handle: 0x0009
   Number Of Devices: 2

Handle 0x0011, DMI type 17, 40 bytes
Memory Device
   Array Handle: 0x000A
   Error Information Handle: 0x0010
   Total Width: 128 bits
   Data Width: 64 bits
   Size: 16 GB
   Form Factor: SODIMM
   Set: None
   Locator: DIMM 0
   Bank Locator: P0 CHANNEL A
   Type: DDR4
   Type Detail: Synchronous Unbuffered (Unregistered)
   Speed: 2667 MT/s
   Manufacturer: Unknown
   Serial Number: 02163766
   Asset Tag: Not Specified
   Part Number: Unknown
   Rank: 2
   Configured Memory Speed: 2400 MT/s
   Minimum Voltage: 1.2 V
   Maximum Voltage: 1.2 V
   Configured Voltage: 1.2 V

Handle 0x0014, DMI type 17, 40 bytes
Memory Device
   Array Handle: 0x000A
   Error Information Handle: 0x0013
   Total Width: 128 bits
   Data Width: 64 bits
   Size: 16 GB
   Form Factor: SODIMM
   Set: None
   Locator: DIMM 0
   Bank Locator: P0 CHANNEL B
   Type: DDR4
   Type Detail: Synchronous Unbuffered (Unregistered)
   Speed: 2667 MT/s
   Manufacturer: Unknown
   Serial Number: 0216386C
   Asset Tag: Not Specified
   Part Number: Unknown
   Rank: 2
   Configured Memory Speed: 2400 MT/s
   Minimum Voltage: 1.2 V
   Maximum Voltage: 1.2 V
   Configured Voltage: 1.2 V

Back to top
Display posts from previous:   

All times are GMT - 8 Hours