Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Creating Red Extensions in DSL< Next Oldest | Next Newest >
ngmlinux Offline





Group: Members
Posts: 17
Joined: Jan. 2006
Posted: Feb. 04 2006,17:51 QUOTE

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
Back to top
Profile PM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Feb. 05 2006,01:04 QUOTE

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.
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Feb. 05 2006,05:30 QUOTE

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.


Edited by roberts on Feb. 05 2006,05:32
Back to top
Profile PM WEB 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Feb. 05 2006,05:55 QUOTE

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
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Feb. 05 2006,15:17 QUOTE

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.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
5 replies since Feb. 04 2006,17:51 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Creating Red Extensions in DSL

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code