Tiny Core Base > TCB Talk

binfmt_misc

<< < (2/3) > >>

Juanito:

--- Quote from: cparke on May 10, 2025, 01:23:38 PM ---Was the TC 16.0 kernel built under TC 15.0 environment or some other distro?

--- End quote ---
tc-15


--- Quote ---Do I rename the 'config-6.12.11-tinycore' to '.config' and then run 'make oldconfig' to initially transfer over all the TC options?

--- End quote ---
Affirmative


--- Quote ---Do I have to re-apply the patches, or have they already been applied and just there for reference?

--- End quote ---
They’ve been applied

cparke:
Great, so it sounds like TC 16.0 kernel is pretty good to go for build under TC 15.0.

One more question, sorry, how do I install the newly built kernel modules in order for the new kernel to actually work?  They don't appear to reside on the rootfs in /tce/boot/core.gz, but somehow get extracted from vmlinuz, yet as I understand it the Linux kernel build produces these separately as bzImage and *.ko files?

Juanito:
If you first try setting binfmt_misc as a module you can copy it somewhere under /usr/local/lib/modules and make an extension of it to test if it works.

cparke:
That is how I wish TC had built the kernel in the first place. Even changing it now that way could technically cause a change in the Kernel data structure offsets and require all the kernel modules to be updated.  Is there a process to update core.gz with new *.ko.gz kernel modules?

Juanito:
core.gz is actually a concatenated rootfs.gz + modules.gz - see:

http://tinycorelinux.net/16.x/x86/release/distribution_files/

The kernel modules included in the base are in modules.gz

The kernel modules included in extensions are named *-6.12.11-tinycore.tcz

The tce-load script takes care of depmod for extensions containing modules, which is why I said that it would be easier for you to create an extension with your module in it.

Since all that is required to enable your module is:
--- Code: ---make menuconfig

Executable file formats ---> Kernel support for MISC binaries ---> m
--- End code ---

..I'm guessing all you need is the new module

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version