WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Making Modules  (Read 3593 times)

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Making Modules
« on: May 28, 2009, 08:55:55 AM »
Can someone list all of the modules which need to be installed on Tiny Core for all aspects of making modules, and explain which part of the process each module is needed for?
Many people see what is. Some people see what can be, and make a difference.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11022
Re: Making Modules
« Reply #1 on: May 28, 2009, 10:39:37 AM »
Do you mean extensions?

TCE extensions can be created entirely with utils in the base (tar and md5sum). Advdef in advcomp.tce is optional, to reduce the size of a tce extension.

TCZ extensions need the tools to create the desired type (cramfs, zisofs, or in tc 2.x, squashfs).
The extensions are respectively cramfs-utils.tce, mkisofs-tools.tce and squashfs-tools-4.0.tce.
The only barriers that can stop you are the ones you create yourself.

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Making Modules
« Reply #2 on: May 28, 2009, 11:22:30 AM »
Thanks

I have been continually learning about making extensions.

Some things have not worked because I have not had the necessary modules installed.


What about other parts of the process.

For example, I recently tried to run ./configure and something was missing.

What modules need to be installed for other parts of the process?
Many people see what is. Some people see what can be, and make a difference.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14741
Re: Making Modules
« Reply #3 on: May 28, 2009, 11:39:08 AM »
For example, I recently tried to run ./configure and something was missing.

What modules need to be installed for other parts of the process?

What error did you get with ./configure - if you're using tc_1.x, you need the compiletc extension loaded and if you're using tc_2.x, you need the gcc-binutils and base-devs extensions loaded.

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Making Modules
« Reply #4 on: May 28, 2009, 11:43:14 AM »
Thanks

I have been continually learning different parts of the process, and the modules needed.

In the entire process from start to finish, are there any other modules which need to be installed?
Many people see what is. Some people see what can be, and make a difference.

Offline MikeLockmoore

  • Hero Member
  • *****
  • Posts: 525
  • Good software needn't be big!
Re: Making Modules
« Reply #5 on: May 28, 2009, 12:52:34 PM »
From start to finish, it depends on what you are trying to build.  ;) But in many cases, the primary development extensions listed previously in this thread are enough.

The configure script for a particular package may use some specific tools (e.g. a python or perl interpreter) not in base or the primary development extensions.  So you might need to load these additional tools first.  The output of the ./configure command should help you figure out what other prerequisites you need.

Also, if you are trying to build a package from source code, that code may need to refer to information in header files that are not part of the base system ("X11 headers", for example), so you might need to load extensions with the appropriate set of source code headers. 
--
Mike L.

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Making Modules
« Reply #6 on: May 28, 2009, 02:17:43 PM »
Thanks for the info

When I have time, I will try to make extensions and see what happens. I will continue learning.


Another question with reference to

TCZ extensions need the tools to create the desired type (cramfs, zisofs, or in tc 2.x, squashfs).

In tc 2.x are three different types used, or are the previous ones being phased out?
Many people see what is. Some people see what can be, and make a difference.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11022
Re: Making Modules
« Reply #7 on: May 28, 2009, 03:18:36 PM »
All three are supported, and there are no plans to drop support for any type. It's very low-maintenance to keep them around.

For 2.x the recommended format is squashfs, because it produces smaller extensions of the three. For 1.x it depends on the extension if cramfs or zisofs makes a smaller extension.
The only barriers that can stop you are the ones you create yourself.

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Making Modules
« Reply #8 on: May 28, 2009, 04:57:21 PM »
What are the commands to make a module with squashfs?

Many people see what is. Some people see what can be, and make a difference.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11022
Re: Making Modules
« Reply #9 on: May 29, 2009, 03:53:15 AM »
mksquashfs sourcedir extension.tcz

where sourcedir is the temporary root, the directory structure would be like this for aria2:
sourcedir/usr/local/bin/aria2c
The only barriers that can stop you are the ones you create yourself.

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Making Modules
« Reply #10 on: May 29, 2009, 04:43:15 AM »
Thanks

I am continuing to learn
Many people see what is. Some people see what can be, and make a difference.