Tiny Core Linux

Tiny Core Base => Corepure64 => Topic started by: greatimte4 on March 17, 2020, 11:21:31 PM

Title: IKHeaders module in TinyCore
Post 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..
Title: Re: IKHeaders module in TinyCore
Post by: Rich on March 18, 2020, 07:09:24 AM
Hi greatimte4
... I cannot find the option IKHeaders=m in the config file of CorePure10. ...
You need a newer (CorePure11) kernel for that:
Quote
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:
Code: [Select]
# CONFIG_IKHEADERS is not setFound 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.
Title: Re: IKHeaders module in TinyCore
Post by: greatimte4 on March 19, 2020, 11:24:33 PM
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
Title: Re: IKHeaders module in TinyCore
Post by: Juanito on March 19, 2020, 11:47:00 PM
Looking at: http://www.tinycorelinux.net/11.x/x86_64/release/src/kernel/config-5.4.3-tinycore64

..there are two lines:
Code: [Select]
# 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".
Title: Re: IKHeaders module in TinyCore
Post by: curaga on March 20, 2020, 12:57:14 AM
The ebpf instructions mention alternative ways, you don't need to recompile the kernel...
Title: Re: IKHeaders module in TinyCore
Post by: greatimte4 on March 20, 2020, 04:30:31 AM
@Curaga
Can you provide some links to alternatives to run the ebbf without recompiling?
Thanks
Title: Re: IKHeaders module in TinyCore
Post by: curaga on March 20, 2020, 10:41:10 AM
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.