Tiny Core Linux
Tiny Core Base => Corepure64 => Topic started by: greatimte4 on March 17, 2020, 11:21:31 PM
-
Can someone tell me how to add the IKHeaders module in tinycore? I cannot find the option IKHeaders=m in the config file of CorePure10. I tried to add it in the config, recompile the kernel and modules, but it does not work. I need it to run bcc program on tinycore..
-
Hi greatimte4
... I cannot find the option IKHeaders=m in the config file of CorePure10. ...
You need a newer (CorePure11) kernel for that:
found in Linux kernels: 5.2-5.5, 5.6-rc+HEAD
Found here:
https://cateee.net/lkddb/web-lkddb/IKHEADERS.html
It is an option in TC11:
# CONFIG_IKHEADERS is not set
Found here:
http://tinycorelinux.net/11.x/x86/release/src/kernel/config-5.4.3-tinycore
I recommend you do not make changes by editing the config file directly, but use something like make menuconfig instead.
-
In fact I need to run ebpf program but when I run it said kheaders not enable. I tried to recompile kernel with enable kheaders in menuconfig, but the custom kernel generated for CorePure64 11.0 do not match with the modules generated. Can someone tell me which option I need to set in menuconfig properly to enable kheaders?I set only the line enable kheaders
-
Looking at: http://www.tinycorelinux.net/11.x/x86_64/release/src/kernel/config-5.4.3-tinycore64
..there are two lines:# CONFIG_IKCONFIG is not set
# CONFIG_IKHEADERS is not set
..that look like they need enabling.
Note that you would need to "make oldconfig" with the tinycore config before "make menuconfig".
-
The ebpf instructions mention alternative ways, you don't need to recompile the kernel...
-
@Curaga
Can you provide some links to alternatives to run the ebbf without recompiling?
Thanks
-
https://github.com/iovisor/bpftrace/blob/master/INSTALL.md was what google showed for bcc earlier. As usual, it says IKHEADERS is not required, you can install the kernel headers any other way too.