WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: IKHeaders module in TinyCore  (Read 3334 times)

Offline greatimte4

  • Newbie
  • *
  • Posts: 7
IKHeaders module in TinyCore
« 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..

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: IKHeaders module in TinyCore
« Reply #1 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.

Offline greatimte4

  • Newbie
  • *
  • Posts: 7
Re: IKHeaders module in TinyCore
« Reply #2 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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: IKHeaders module in TinyCore
« Reply #3 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".

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: IKHeaders module in TinyCore
« Reply #4 on: March 20, 2020, 12:57:14 AM »
The ebpf instructions mention alternative ways, you don't need to recompile the kernel...
The only barriers that can stop you are the ones you create yourself.

Offline greatimte4

  • Newbie
  • *
  • Posts: 7
Re: IKHeaders module in TinyCore
« Reply #5 on: March 20, 2020, 04:30:31 AM »
@Curaga
Can you provide some links to alternatives to run the ebbf without recompiling?
Thanks

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: IKHeaders module in TinyCore
« Reply #6 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.
The only barriers that can stop you are the ones you create yourself.