I have already made a couple of tries in the last few days trying to install and run sysdig in Armbian 5.0/Debian Jessie 8.0, in my Lamobo R1.
After installing it with:
apt-get install -t jessie-backports sysdig sysdig-dkms dkms
When running it gives the following error:
# sysdig Unable to load the driver error opening device /dev/sysdig0. Make sure you have root credentials and that the sysdig-probe module is loaded.
In the first try a few days ago I noticed the module was not being place in
/lib/modules/4.4.1-sunxi/updates/dkms/sysdig-probe.ko and commented the include of asm-offsets.h in
I also had to run
make scripts in the kernel directory
After this, I run
/usr/lib/dkms/dkms_autoinstaller start and the module was compiled. However when running the error is the same.
Running insmod says:
#insmod /lib/modules/4.4.1-sunxi/updates/dkms/sysdig-probe.ko insmod: ERROR: could not insert module /lib/modules/4.4.1-sunxi/updates/dkms/sysdig-probe.ko: Invalid module format
filename: /lib/modules/4.4.1-sunxi/updates/dkms/sysdig-probe.ko author: sysdig inc license: GPL depends: vermagic: 4.4.1 SMP mod_unload ARMv7 p2v8 parm: max_consumers:Maximum number of consumers that can simultaneously open the devices (uint) parm: verbose:Enable verbose logging (bool)
So obviously the module is with the wrong kernel version.
Now even when installing, it says:
#apt-get install -t jessie-backports sysdig sysdig-dkms dkms Reading package lists... Done Building dependency tree Reading state information... Done sysdig is already the newest version. The following NEW packages will be installed: dkms sysdig-dkms 0 upgraded, 2 newly installed, 0 to remove and 9 not upgraded. Need to get 0 B/137 kB of archives. After this operation, 821 kB of additional disk space will be used. Do you want to continue? [Y/n] Selecting previously unselected package dkms. (Reading database ... 72251 files and directories currently installed.) Preparing to unpack .../dkms_220.127.116.11-2_all.deb ... Unpacking dkms (18.104.22.168-2) ... Selecting previously unselected package sysdig-dkms. Preparing to unpack .../sysdig-dkms_0.5.1-1~bpo8+1_all.deb ... Unpacking sysdig-dkms (0.5.1-1~bpo8+1) ... Processing triggers for man-db (22.214.171.124-5) ... Setting up dkms (126.96.36.199-2) ... Setting up sysdig-dkms (0.5.1-1~bpo8+1) ... Loading new sysdig-0.5.1 DKMS files... First Installation: checking all kernels... Building only for 4.4.1-sunxi Building initial module for 4.4.1-sunxi Done. sysdig-probe: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/4.4.1-sunxi/updates/dkms/ depmod.... DKMS: install completed.
And again, sysdig-probe.ko, despite the message it is being compiled to 4.4.1-sunxi, is being compiled for the 4.4.1 kernel and not 4.4.1-sunxi.
uname -r output: 4.4.1-sunxi. I do not have neither the 4.4.1 kernel, nor 4.4.1 sources installed.
root@ruir:/usr/src# ls -la total 16 drwxr-xr-x 4 root root 4096 Apr 3 11:06 . drwxr-xr-x 11 root root 4096 Oct 23 21:04 .. drwxr-xr-x 25 root root 4096 Mar 30 21:29 linux-headers-4.4.1-sunxi drwxr-xr-x 2 root root 4096 Apr 3 11:06 sysdig-0.5.1
So my question is, is there any file/configuration item in Linux I can change to make it compile to 4.4.1-sunxi and not 4.4.1?