WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Tiny Kernel Compilation Error  (Read 12751 times)

Offline mattiaxx86to

  • Newbie
  • *
  • Posts: 17
Re: Tiny Kernel Compilation Error
« Reply #30 on: April 02, 2010, 09:23:16 AM »
Quote
Probably better to use the full patched kernel source with your modified .config and then "make modules && make modules_install"

Note that for consistency, it would be better to move the installed modules to the default tinycore location rather than /lib

Ok so,

i have recompiled the kernel with math emulation (with make bzImage), next step make modules && make modules_install OK.

Now, how can i do for create the tinycore.gz with the recompiled modules?
(please step by step if it possible)

Quote
There is a "Custom Kernel" article on the week (found under section "Remastering") that probbaly could provide you with some info. Note that the article mentions .tcem extensions. Today all extensions are named .tcz also the ones that contain kernel modules. Apart from that the article is "fine".

I have follow this article for recompile the kernel, but for me (newbie) the part of modules is very difficult....

Thanks

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: Tiny Kernel Compilation Error
« Reply #31 on: April 02, 2010, 09:54:43 AM »
I guess this depends on how many recompiled modules you'd like to keep.

If you'd like to keep them all, then you could follow the naming convention Curaga made - i.e. *-2.6.29.1-tinycore.tcz

If you look at the list file associated with Curaga's module extensions, you can see where you need to copy your modules to so that the tc convention is followed. If we take the example of bt-2.6.29.1-tinycore.tcz, the first module in the list file http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/tcz/bt-2.6.29.1-tinycore.tcz.list is:
Code: [Select]
/usr/local/lib/modules/2.6.29.1-tinycore/kernel/drivers/bluetooth/bcm203x.ko.gz
If you create a folder /tmp/pkg, you could then copy all of the modules from wherever they were installed (probably under /lib/modules/..) to /tmp/pkg so that, using the same example, the first module would be:
Code: [Select]
/tmp/pkg/usr/local/lib/modules/2.6.29.1-tinycore/kernel/drivers/bluetooth/bcm203x.ko.gz..take care that you keep the correct permissions whilst copying by using "sudo cp -p"

Once you've finished copying your modules to /tmp/pkg, you then do this (following the same example) to make your extension:
Code: [Select]
$ cd /tmp
$ sudo mksquashfs pkg/ bt-2.6.29.1-tinycore.tcz