Have some problems running the example code to build/install the qat_contig_mem driver
Sorry to bother you, but when I run the example code, say make load, on Ubuntu to build/install the qat_contig_mem driver, I meet the problem "insmod: ERROR: could not insert module qat_contig_mem.ko: Operation not permitted". Hope someone can help me.
Hi Could you give me a few details on your set-up. Which versions of QAT engine, QAT driver, & OpenSSL are you using? Could you give me a command history of how you have built the QAT engine, including the 'configure' command you have used? This will help me to diagnose what's going wrong.
I just follow the Installation Instructions in README as follows: git clone https://github.com/openssl/openssl.git cd /openssl ./config --prefix=/usr/local/ssl -Wl,-rpath, /usr/local/ssl/lib make depend make make install export OPENSSL_ENGINES=/usr/local/ssl/lib/engines-1.1 git clone https://github.com/01org/QAT_Engine.git cd /QAT_Engine/qat_contig_mem make make load And QAT_Engine is cloned at openssl/, then I just meet the problem I mention above, even I switch to the root It still says: insmod: ERROR: could not insert module ./qat_contig_mem.ko: Operation not permitted
Hi Not that it has any bearing on your problem but the QAT Engine README recommends : - "It is recommended to checkout and build against the OpenSSL* 1.1.1 git tag specified in the release notes." So after the 'cd /openssl' line in your procedure above, I would checkout out the OpenSSL1.1.1c tag by first getting a list of available tags : - git tag -l and then selecting the OpenSSL1.1.1c tag: - git checkout tags/OpenSSL_1_1_1c
Then you run the ./config ... command.
Similarly for the QAT Engine. After the 'git clone https://github.com/01org/QAT_Engine.git' you should get a list of the available tags with: - git tag -l and then checkout the latest which at the time of writing is v0.5.42, so: - git checkout tags/v0.5.42
Then do your line 'cd /QAT_Engine/qat_contig_mem'.
I have just gone through this procedure and insmoded the qat_contig_mem.ko without problem. I am doing all this as 'root' user which I assume you are too?
By the way, I also note that in your procedure you do not actually build the QAT Engine. As stated in the README, the QAT engine is not built as part of the OpenSSL build and so therefore has to be built manually.
Oh, I didn't checkout to the latest branch, which may accounts for my failure. Thanks for your kindness.