Tiny Core Linux
Tiny Core Base => TCB Talk => Topic started by: ISSALENE on March 20, 2011, 11:51:36 AM
-
Hi all,
Does someone could guide us explaning how to add new module/drivers within Tiny core before creating a new "initrd"?
All incomes are welcomes
Joss
-
That depends on the situation:
1. Missing kernel module that's available in the linux kernel but it's just not compiled for tinycore (take a look at all *-2.6.33.3-tinycore.tcz extensions before assuming that!)
1.1. Download kernel sources from http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/release/src/kernel/ and install compiletc.tcz extension
1.2. Edit the kernel .config e.g. CONFIG_MY_MODULE=m
1.3. Run "make modules"
1.4. Find your module, gzip it: mymodule.ko => mymodule.ko.gz
1.5. Put it in the right place of the filesystem, e.g. /usr/local/lib/modules/2.6.33.3-tinycore/...
1.6. In case you want to have it always available then back it up or create a module extension or recreate initrd tinycore.gz to include it
2. Modules from other sources
2.1. Install compiletc.tcz and linux-headers-2.6.33.3-tinycore.tcz
2.2. configure and make (like every other source code)
2.3. issue make install to see where it belongs or just put it there yourself
3. Drivers
3.1. Compile them like every other source code and put them into an extension (how you can do that is written all over the forum and in the wiki ;)
-
Hi,
Many thanks for your answer. I will transfer this to my colleague and will try it.
Will let you know the status later on.
Joss
-
Hi
I did what gutmensch said at point 1 to have the module tun.ko.
But when I try to load it I receive "invalid module format"
Any ideea
-
Tun/tap is compiled in.
-
And what can I do if an application looks for it as a loadable module?
-
change source code (e.g. comment a call like "modprobe tun.ko") or recompile kernel with CONFIG_TUN=m, add tun.ko.gz to your tinycore.gz and use the bzImage you created yourself (kernel directory arch/x86/).
-
Yep, just tell the application to STFU. Should be easier than changing the kernel.