Tiny Core Base > TCB Talk
tce-load and extensions with a directory named modules
mortegai:
Either option works.
I think CNK's proposal, including the use of $KERNELVER, is more specific for identifying extensions that contain modules of the currently running kernel.
Therefore, it seems more appropriate to me.
Thank you very much for your attention to this topic.
Rich:
Hi mortegai
I modified a current copy of tce-load like this:
Replaced this:
--- Code: ---[ -n "`find /mnt/test/ -type d -name modules`" ] && MODULES=TRUE
--- End code ---
With this:
--- Code: ---[ -d /mnt/test/usr/local/lib/modules/$KERNELVER ] && MODULES=TRUE
--- End code ---
Replaced this:
--- Code: ---[ -n "`find /tmp/tcloop/$APPNAME -type d -name modules`" ] && MODULES=TRUE
--- End code ---
With this:
--- Code: ---[ -d /tmp/tcloop/$APPNAME/usr/local/lib/modules/$KERNELVER ] && MODULES=TRUE
--- End code ---
I created an initrd with the modified tce-load for you to test.
Download the tceload.gz file to your boot directory from here:
http://tinycorelinux.net/16.x/
Modify your boot loader config file like this:
--- Code: ---initrd /boot/core.gz,/boot/tceload.gz
--- End code ---
or this:
--- Code: ---initrd /boot/core.gz /boot/tceload.gz
--- End code ---
The first version should work with syslinux,extlinux, and grub-legacy.
The second version works with grub 2.
Please confirm that it speeds up your load times.
mortegai:
Hi Rich.
I'm using piCore16. I've modified config.txt to include your tceload.gz in initramfs.
I've tested loading some extensions, for example gnutls.tcz, and the loading time has been significantly reduced.
Therefore, I think the modification can be considered correct and permanently consolidated.
Thank you very much.
Rich:
Hi mortegai
Thank you for the feedback.
I'll allow a little more time in case anyone else has
comments and push the change into git late tonight.
Rich:
Hi mortegai
The change has been merged into git.
Navigation
[0] Message Index
[*] Previous page
Go to full version