Creating Red Extensions in DSL


Forum: System
Topic: Creating Red Extensions in DSL
started by: ngmlinux

Posted by ngmlinux on Feb. 04 2006,17:51
It appears as though I have an application for DSL that will require the use of a custom red (.dsl) extention.  More specifically I need to add support (drivers) for a pcmcia card that I have. Unfortunately, in my research I have only been able to find information on the creation of yellow and green extensions.

More specifically, I need to be able to make the following two revisions to the OS (I am using a flash based frugal image):

1. A .dat file needs to be added in /etc/pcmcia/cis/
2. The file /etc/pcmcia/config (or the file that this symbolic link points to) needs to be edited to include the driver information for the file mentioned in step 1.

    One other point of concern to me is that it appears as though CardMgr loads before the myDSL extensions do.  This may be an issue as well and thus I am looking for assistance in insuring the driver is loaded durring an early enough stage to work properly.

I greatly appreciate any assistance anyone may be able to offer.  I would be willing to share what I learn here with anyone in the communitry looking to create red extensions as well.

Thanks

-Nathan

Posted by clacker on Feb. 05 2006,01:04
ngmlinux, creating red extensions is almost exactly the same as creating green *.tar.gz extensions.  The only difference is a red extension can put files anywhere, and uses the file extension dsl (even though it is a tar.gz file).  Look at this topic on < making dsl extensions > for a starting point.  Menu  items and icon creation is the same.

I put all the files I need to load (with their paths) into a file called files.  Then I run this command to create the dsl pacakge:

tar -xzvf mything.dsl -numeric-owner --no-recursion -T files

Sometimes it helps to write a bash shell script to run a set of commands to check what's loaded and to configure and start what you need configured and started.  I had to do that with the bcm57xx.dsl package which loaded modules for a network card and then ran modprobe to start them running.  Make a menu item that will run a script.

Posted by roberts on Feb. 05 2006,05:30
Quote
The only difference is a red extension can put files anywhere, and uses the file extension dsl (even though it is a tar.gz file)

The .dsl extension is used to make sure that the mkwriteable script is run. This insures that the filesystem is open to accept the tar archive.



Posted by cbagger01 on Feb. 05 2006,05:55
He means:

I create a text file with the name "files.txt".
Inside this textfile is a list of all the files to be included into my extension.  So for example, if you were creating an extension called ogg.dsl the textfile contents would look like this:

Code Sample
/usr/bin/ogg123
/usr/bin/oggdec
/usr/bin/oggenc
/usr/bin/ogginfo


Then type:

tar -zxvf ogg.dsl --numeric-owner --no-recursion -T files.txt

Posted by mikshaw on Feb. 05 2006,15:17
It would look like that if you were building the package from files installed into your system.  If the files were elsewhere, it would look like this:
Code Sample
usr/bin/ogg123
usr/bin/oggdec
usr/bin/oggenc
usr/bin/ogginfo

(no leading slash)
and you would need to run tar from the directory containing these files.

Posted by clacker on Feb. 05 2006,21:41
cbagger01, no, I did mean a file called "files" because it doesn't need the txt extension.  But it works either way, do what you want.
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.