Skip to content

Instantly share code, notes, and snippets.

@jmftrindade
Last active April 21, 2022 20:25
Show Gist options
  • Save jmftrindade/0a5a09ebc8449df7d59b84e187d8fafb to your computer and use it in GitHub Desktop.
Save jmftrindade/0a5a09ebc8449df7d59b84e187d8fafb to your computer and use it in GitHub Desktop.
NVRAM and related

Installing ndctl, pmdk and ipmctl:

Keep the installation directories around for both of these libs, as the only way to uninstall them is by going into the original install dirs, and then make uninstall.

Required for both ndctl and pmdk:

$ apt install pkg-config
$ export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig:/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig:${PKG_CONFIG_PATH}
$ apt install asciidoctor libkmod-dev libudev-dev uuid uuid-dev libjson-c-dev libkeyutils-dev libiniparser-dev
$ sudo cp /usr/include/iniparser/* /usr/include/  # >.<
$ wget https://github.com/pmem/ndctl/archive/v72.zip
$ unzip v72.zip && mv ndctl-72/ ndctl-v72/ && cd ndctl-v72/
$ ./autogen.sh
$ ./configure CFLAGS='-g -O2' --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib
$ make -j8 -l4
$ make -j8 -l4 check
$ sudo make install
$ apt install fabric pandoc
$ wget https://github.com/pmem/pmdk/archive/1.9.zip
$ unzip 1.9.zip && mv pmdk-1.9 pmdk-v1.9 && cd pmdk-v1.9
$ make -j8 -l4
$ make -j8 -l4 check
$ sudo make install

To install ipmctl latest ipmctl v02 release:

$ wget https://github.com/intel/ipmctl/archive/refs/tags/v02.00.00.3885.zip
$ unzip v02.00.00.3885.zip && mv ipmctl-02.00.00.3885 ipmctl-v02 && cd ipmctl-v02
$ mkdir build && cd build && cmake -DRELEASE=ON -DCMAKE_INSTALL_PREFIX=/ ..
$ make -j all
$ sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment