Tiny Core Base > TCB Talk
Adding some kernel modules
destroyedlolo:
Hello,
Some kernel modules are missing for my usage (mostly CONFIG_AMIGA_PARTITION and CONFIG_AFFS_FS).
I would like to create a new extension only containing these modules but I need some guide line.
I found kernel source at http://tinycorelinux.net/13.x/x86/release/src/kernel/.
1/ I guess linux-5.15.10-patched.txz is already patched kernel source, so don't need to apply any other patch, right ?
2/ to create a .tcz extension for them, can I use this procedure ?
Is so, does modules loaded automatically or should I do something ?
Thanks
GNUser:
Hi destroedlolo.
1. Correct. If you use the patched kernel source, no need to apply any other patches.
2. You can follow that procedure but, by TCL convention, /lib/modules/<VERSION> is for kernel modules that ship with the base system. If this extension is for your own use, no problem. If you are going to submit the extension, it is preferable to use the /usr/local/lib/modules/<VERSION> directory instead.
3. By default, the kernel modules will not be loaded automatically when your extension loads. After loading your extension, you can load the kernel modules manually with sudo modprobe <module_name> or, if you really want the modules to be loaded automatically when the extension loads, include a startup script in your extension. Startup scripts are run as root and go in /usr/local/tce.installed/<extension_name> . Take a look in your running system's /usr/local/tce.installed directory for examples of startup scripts. Yours would probably need only a modprobe command.
Hope that helps.
curaga:
Filesystem modules are usually autoloaded when you try to mount (maybe only with a specified type? I don't remember exactly), but partition types would probably need manual modprobing before trying to mount anything.
destroyedlolo:
Thanks for your reply.
2 additional questions came :
1/ I need CONFIG_SCSI_AIC79XX and CONFIG_SCSI_AIC7XXX as well. They are marked as loadable module 'm' in configuration file took from the same place as the kernel source above ... but I don't have any loadable modules on my installation : does it mean I need to add an additional tcz ?
2/ AMIGA partitionning seems not be a loadable module. Is any way to add it without having to create a full new kernel ?
It not, which procedure I have to follow ?
Thanks
Laurent
Rich:
Hi destroyedlolo
I think this is what you are looking fore:
--- Code: ---/usr/local/lib/modules/5.15.10-tinycore/kernel/drivers/scsi/aic7xxx/aic79xx.ko.gz
/usr/local/lib/modules/5.15.10-tinycore/kernel/drivers/scsi/aic7xxx/aic7xxx.ko.gz
--- End code ---
Found here:
http://tinycorelinux.net/13.x/x86/tcz/scsi-5.15.10-tinycore.tcz.list
Navigation
[0] Message Index
[#] Next page
Go to full version