Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: wysiwyg on June 13, 2014, 09:11:46 AM

Title: custom kernel
Post by: wysiwyg on June 13, 2014, 09:11:46 AM
A quick question to anyone familiar with kernel compiling.  So I'm interested in creating a replacement kernel for TC.  I want to keep this as simple as possible so I figured I'd use the exact same version of the one currently being used in TC.  I wanted to make my simple modifications (e.g. removing/replacing the TC boot graphic), enable the ability for the kernel to accept modules (.ko files), but not actually include any in the compile process to keep the compilation to a minimum.  My question is, if I do this will I still be able to use all the kernel modules found in the repo?

Thanks,
Dave
Title: Re: custom kernel
Post by: curaga on June 13, 2014, 09:44:22 AM
It depends what options you change. Modules are already enabled?
Title: Re: custom kernel
Post by: wysiwyg on June 13, 2014, 10:46:26 AM
Thanks for the quick reply curaga.  I just want to do something simple as a test like changing the included graphic from TC's to my own, enable the use of external modules, and then compile with something like 'make allnoconfig ...'.

Thanks,
Dave
Title: Re: custom kernel
Post by: gerald_clark on June 13, 2014, 11:34:53 AM
As you have already been told,  modules are already supported.
http://wiki.tinycorelinux.net/wiki:custom_kernel
Title: Re: custom kernel
Post by: wysiwyg on June 13, 2014, 04:25:40 PM
Thanks for the reply gerald_clark.  I think you're misunderstanding what I'm saying.  I'm not asking if modules are already supported, I'm asking if I can create a barebones kernel (same version that's currently being used) with module support and still be able to use the existing kernel modules in the repo (without having to recompile them with the kernel).

Thanks,
Dave
Title: Re: custom kernel
Post by: gerald_clark on June 13, 2014, 04:32:00 PM
Only if you compile the same version kernel and don't change any config settings that would affect the loading of the modules you intend to use.
Title: Re: custom kernel
Post by: wysiwyg on June 14, 2014, 05:28:06 PM
Ok, so in this example I should pull down the kernel config TC used along with the same source version, leave everything alone with the exception of the graphic change (in this example), and run 'make' and 'make install' - leaving out the 'make modules' step?

Thanks,
Dave
Title: Re: custom kernel
Post by: curaga on June 15, 2014, 05:11:57 AM
Yes, except no "make install".
Title: Re: custom kernel
Post by: wysiwyg on June 16, 2014, 08:56:27 AM
Awesome, I'll give it a try!  Thanks for the info guys!

Dave