install zipped driver


Forum: Networking
Topic: install zipped driver
started by: klasact

Posted by klasact on April 14 2006,16:22
I found a Linux driver for my Linksys wireless usb adapter.  Can someone give me a step by step on unzipping the GZ  file into a folder and then correctly installing the driver.Many Thanks  PS the GZdriver file is on a floppy.
Posted by piccolo on April 14 2006,21:34
Perhaps this information may be important for you:
< http://damnsmalllinux.org/wiki/index.php/Verified_Wireless_Cards >

Posted by klasact on April 20 2006,14:37
Thanks---I got sidetracked from this project. Is there a way that I can get the commands MAKE,   MAKE ALL,    and  MAKE INSTALL  to work in DSL ???
Posted by piccolo on April 20 2006,15:48
DSL have not by defect the background to compile the source.
You need install at least gcc1.dsl MyDSL.

Please read this post, very important:
< http://damnsmalllinux.org/cgi-bin....;t=9586 >

I compiled from sources and installed my first driver (dial-up modem) on DSL some days ago, perhaps i can help you.
If you want learn this is the opportunity, but if you want save from many problems Ethernet (instead USB) is the better option.

Posted by klasact on April 21 2006,13:21
I want to learn but I am a novice. For example where do I find gcc1.dsl ?  Also i find configure files etc that contain lines that need to be changed for my purposes but i cannot change because of permissions,system files,keep etc.   I am aware of sudo su but at times that doesnt work.  Who would know of a command that would give me carte blanche changes to the system. If it crashes so what  Ill start over.
Posted by piccolo on April 21 2006,14:11
Do not worry, first it is necessary to know if are you running DSL from Live CD or some other install method, thus the help from Forum will be more exact for you.
Posted by klasact on April 21 2006,18:23
Glad to hear from you. I have DSL installed on two 64mb usb thumb drives [a pen drive and a PNY drive] so i can test on one and refine on the other. I also have a live CD w/kernel  2.4.26.  Both thumb drives and the cd work fine. I use data ports for my hard drives so I can slide them in and out at will. This enables me to run DSL exclusively on my computer and then go back to a hard drive [windows] when i want to. I have the Linksys driver [ i feel certain it is linux-wlan-ng] installed on both thumb drives but i am stuck at Make Config. I look forward to hearing from you furthur Thanks
Posted by piccolo on April 21 2006,20:53
1. Boot DSL from your drive for test. (What is that drive exactly... /sda1, /sda2?. Confirm we)

2. Download the following 3 MyDSL packages so:
  MyDSL (click icon on desktop) -> System -> gnu-utils.dsl
                                          -> dpkg.dsl
                                          -> gcc1.dsl

3. Download the .tgz file, for example wifidriver.tgz, to /home/dsl directory using Emelfm (Linux equivalent to Windows Explorer). The directory /home/dsl is your user directory. Others are system directories.
If you want can create the folder, for example: wifidrv. (/home/dsl/wifidrv) and to download there the .tgz file. I assume that.

4.Open Up Aterminal and do commands (This unzip the wifidrv.tgz file into the /home/dsl/wifidrv directory)

cd /home/dsl/wifidrv
tar xzvf wifidriver.tgz
 
3. The compilation and installation from sources frequently are 3 commands:

./configure
make
make install

Anyway read the driver documentation.

Note I: Root permission is required to do "make install" command. Therefore you will do:
sudo su
make install

Note II: Please, post the Readme or Install file. If too long, post it to my email.

Posted by piccolo on April 21 2006,21:52
REMARK: Sorry, in 2 step internet connection is required and you have not yet for DSL.

Alternative method:

You can download MyDSL extensions from internet using your web browser running on Windows. Here:
< http://www.damnsmalllinux.org/download.html >
Chosse a Mirror and browser to: MyDSL -> System
Download the files gnu-utils.dsl, dpkg.dsl and ggc1.dsl to any Windows directory.

Next, boot DSL and using Emelfm mount your Windows partition, browser to directory where you have downloaded the dsl files and transfer it to your /home/dsl directory.

Launch Aterminal and do commands to install packages:

mydsl-load gnu-utils.dsl
mydsl-load dpkg.dsl
mydsl-load gcc1.dsl

Now can follow to 3 step.

Posted by klasact on April 22 2006,02:01
Thanks for the follow up----i was confused. I would like to send you the README for the driver install as it is a very good step by step for the driver install and i feel certain you could figure it out,however without a net connection i need to copy it to a floppy and send it via windows.BUT i am unable to find out how to copy to a floppy in linux. Please help.
Posted by piccolo on April 22 2006,13:05
HOW TO TRANSFER FILE
1. Boot DSL and launch Emelfm.

2. Insert the floppy disk into the floppy drive

3. Emelfm have two windows. On any from the two windows, browser inside /mnt folder (/mnt it is on top-level). Where you must find a directory, frequently is the /hda1 folder (but can be different, for example hda2, hda3...hdaN).
If hda1, select hda1 folder and click on rightbutton, and click on "mount". So /mnt/hda1 folder literally became the Windows partition present on you hard disk and you can browser it, read it and write it from DSL.
Therefore after do "mount" you can browser to Windows directory where you want to copy the README file. Next, pass to 4 step.

4. On the other window of Emelfm, select /floppy folder (/floppy it is on top-level) and click on rightbutton, and click "mount". So /floppy folder literally became the floppy disk present into the floppy drive and you will can browser it, read it and write it from DSL. Therefore, browser inside /floppy and select the README file.
One time there, click button COPY (The button it is between the two windows on Emelfm). So the README file is transfered from /floppy folder to /mnt/hda1 folder. That is equivalent to say, what the file README is transfered from floppy disk to hard disk.  

NOTE: If you do not understand the mount concept, read:
< http://en.wikipedia.org/wiki/Mount_point >
--------------------------------------------------------------------------
Remember that i want to know how is labeled the drive from which you boot DSL for testing. Is sda1, sda2...or sdb1 sdb2..?

Posted by klasact on April 23 2006,20:39
Piccolo
Wondering if you received the email that i sent to you yesterday?

Posted by piccolo on April 23 2006,20:57
Yes, i have responded 2 hour ago. I sent it again now.
Posted by klasact on April 24 2006,21:40
I realised that a 64mb drive would not be adequate so I switched to a 512mb PNY thumb drive and copied all 5 pertinent files to home/dsl as follows

1 dsl-dpkg.dsl
2  gcc1.dsl
3  gnu-utils.dsl
4  Bz2 kernel  [is 23mb whereas you mentioned 32mb ???]
5  The linksys driver file

When i try the   mydsl-load command on items 1,2 and 3  i get the message   cannot allocate color

When i try the  bzip2 command i get the message   old option f requires an argument.  HELP THANKS

Posted by piccolo on April 24 2006,23:08
The "cannot allocate color" message is not a problem. I believe .dsl files was installed.
Can check it by doing the command:

gcc --help

If responds with a long message (the help for that command): alright!.

Respect to bzip, try again with this:

cd /home/dsl
bzip2 -dc linux-2.4.17.tar.bz2 | tar xvf -

Question: Now DSL boot from 512mb PNY thumb drive?

Posted by klasact on April 25 2006,23:53
[cannot allocate color] is a problem.  The dsl extensions will not load. Please advise which one of the three extensions adds the command "make". Do you know of a website that has all commands available for download?  The 512 mb PNY boots OK. Appreciate your patience. Also where can I find written detail for the 3 extensions.
Posted by piccolo on April 26 2006,16:45
Patience?...here you will see as I am
< http://damnsmalllinux.org/cgi-bin....t=13023 >

You could at least decompress the file?

Have in mind that DSL Forum is very active. That signify surely someone before wrote on forum about your same problem.
When i say you "non allocate color" message is not a problem, it was not my deduction. I inserted into the forum search engine the following words:"non AND allocate AND color"
I do make sure to search in "All Active Forums" and "From the Beginning". So the result was:

< http://damnsmalllinux.org/cgi-bin....5a04624 >

Conclusion: The message is unrelated to not being able to install MyDSL extensions. The problem is other.

Quote
Do you know of a website that has all commands available for download?

If you can't install a MyDSL extension hardly you will be able to install on DSL the official versions of those tools on DSL.
It's a heartache, because perhaps you can't use MyDSL extensions due only a simple mistake

The make utility uses a set of rules written down in a Makefile to build a program from its sources.
The Makefile is a argument of the make command. The argument is not explicit because one assumes when it does make is working in the same directory where is Makefile. For example:

If the Makefile is in /home/dsl/linux then:

cd /home/dsl/linux
make

The "cd" command set the directory where ATerminal, and therefore any command that you write, is working.

If that explained above was usefull, below exactly the steps that you must follow:

1. The linux-2.4.17 kernel Source that you downloaded have a Makefile and was decompressed to /home/dsl/linux.
Then you must do:

cd /home/dsl/linux
make config

That execute a script, will do you many questions. You must respond for all the default option simply by pressing the Enter key.
You will press many times the Enter key until the program execution it finishes.

2. The driver that you downloaded have a Makefile and you must decompress it so:
(Please check if your .tar.gz file have the name "linux-wlan-ng-0.1.14-pre1", if different replace the following instance with the correct.)

cd /home/dsl
tar zxvf linux-wlan-ng-0.1.14-pre1.tar.gz

3. The file will be unzip to /home/dsl/linux-wlan-ng-0.1.14-pre1 folder (Again, please check if that folder have the name "linux-wlan-ng-0.1.14-pre1", if different replace the following instance with the correct). Then:

cd /home/dsl/linux-wlan-ng-0.1.14-pre1
make config

The following set of questions will be asked. The default answer is in braces (e.g. []). I wrote the answers for you.

- Build Prism2.x PCMCIA Card Services (_cs) driver? (y/n) [y]: n
       
- Build Prism2 PLX9052 based PCI (_plx) adapter driver? (y/n) [y]: n
       
- Build Prism2.5 native PCI (_pci) driver? (y/n) [y]: n
       
- Build Prism2.5 USB (_usb) driver? (y/n) [y]: y
       
- Linux source directory [/usr/src/linux]: /home/dsl/linux
       
- Alternate target install root directory on host []: Press the Enter Key  
       
- Module install directory [/lib/modules/2.4.26]: /lib/modules/2.4.26
       
- Target Architecture? (i386, ppc, or alpha) [i386]: i386
       
- Prefix for build host compiler? (rarely needed) []: Press the Enter key
       
- Compiling with a cross compiler? (y/n) [n]: n
         
- Build for debugging (see doc/config.debug) (y/n) [n]: n
       
4. To build the package run command:
 
make all

5. To install the package run

sudo su
make install

Posted by klasact on April 28 2006,14:36
Yo Piccolo,
I am stuck at the "Linux source directory" question in Make Config, because I am unable to decompress the 2.4.17 file into home/dsl.  If i use the  BZIP2 string that you provided I consistently get the message  "Old option f requires an argument"  If I use OPEN in Emelfm the LINUX file that I need  appears in a directory named /ramdisk/var/tmp/.emelfm -unpack   and I cannot copy or move it to home/dsl.  Your thoughts appreciated as always.

Posted by piccolo on April 28 2006,16:03
Try the command again only this time put a space and a hyphen at the end of the command. Exactly this:

cd /home/dsl
bzip2 -dc linux-2.4.17.tar.bz2 | tar xvf -

Remember the hyphen!!

Posted by klasact on April 29 2006,03:32
I overlooked the space before the hyphen.  I made it thru to the end of the driver install sequence. Along the way I observed the message "configuration successful" .  HOWEVER at the end of "make install"   I was presented with the  message  "install error 1" . I tried items A thru F  for USB USERS at the end of the readme but nothing works. I came this far and hesitate to quit now. Any suggestions???
Posted by piccolo on April 29 2006,12:11
The "make all" command build the driver and the "make install" command install the driver finally. If errors during "make all" command you will not be able to do "make install" command and if errors during "make install" you will not be able to do A thru F steps.

When you did the "make all" command. Not errors?
If you do not remember or you aren't sure then make sure doing again "make all" command so:

cd /home/dsl/linux-wlan-ng-0.1.14-pre1
make all

(I had many "Warnings" on that step, but not errors)

If not errors above, then:

cd /home/dsl/linux-wlan-ng-0.1.14-pre1
sudo su
make install

If same error persist:
The message "install error 1" is a very generic message and therefore is insufficient information to indentify the problem but before there are others message lines. If you post exactly the result from last command that generates that error the help could be better.

QUESTION:
Browser to /home/dsl using Emelfm. Can see you the dsl-dpkg.dsl, gcc1.dsl and gnu-utils.dsl files?

Posted by klasact on April 30 2006,21:59
Yo Piccolo
I did the driver install sequence several times--most recently running Make config, Make all, and Make install as root.
Make Config was successful.

Make All output was quite long. Significant lines follow:

/bin/sh : line1: M : Command not found.
/bin/sh : line1:.mkmetadef :No such file or directory
Make[2] :c: Command not found (appears several times)
Make[2]:o: Command not found
Cat:Write error: No space left on device (my pen drive has at least 400mb free)
Make [2]: *** [mkmetadef]  Error 127
Leaving dir- Pre1/src/mkmeta
Make[1]*** [all] Error2
Make[1] leave Pre1/src
Make***[all] Error2
Note many lines showing Error 127 followed by Ignored appeared in list.

Make Install

find.-name.depend-exec rm {} \;
Search for files default path is current dir ; default expression is - print
Note- there are additional lines dealing with EXPRESSION and then
Make install Error 1

Note: gnu-utils,dpkg,and gcc1 loaded to the best of my ability.  Gcc --help is present but no proof for dpkg and gnu-utils.

Is there any way to copy bash output on to a floppy or hard drive to copy and paste or email
Please advise the last line that you get for a successful Make All and Make Install. Thanks

Posted by piccolo on May 01 2006,18:16
The information from "make install" command is irrelevant if before "make all" command had errors. Because if "make all" command fails the "make install" command will have nothing to install or incomplete.

I cleaned all my files to repeat the driver compilation from the beginning to the "make all" command.
I'm sorry, i found two steps omitted inadvertently by me. Sorry again.
Then i sent you a email with the "typescript" attached file where i capture all my work on ATerminal (all the commands done and the outputs from the commands)

Unfortunately ATerminal have not "copy and paste" but if you find errors, you can capture the ATerminal output to file. Here explanation.
< Using script >

Posted by klasact on May 02 2006,20:39
Yo Piccolo,
No need for sorry. I know you are trying very hard.
I was able to overwrite the file HFA348x.c.
The output for MAKE DEP is one line as follows:

***No rule to make target 'scripts/mkdep.c' ,needed by 'scripts/mkdep'

It seems that everything required is in place, but no driver.

Posted by piccolo on May 02 2006,21:39
Klasact, thanks for understanding me.
Make sure "make dep" command is working in /home/dsl/linux directory so:

cd /home/dsl/linux
make dep

Posted by klasact on May 04 2006,17:48
I am getting nowhere with this. Make Dep continues to give me the line shown in my May 02 post. Also Please check to verify that you sent me the correct typescript showing all commands you used to get to make all.  I have another question for a different area.  When i enter  the command   ndiswrapper -m  i get the message  [modprobe config already contains an alias directive]. How do i find out what this directive is and then remove it.
Posted by piccolo on May 04 2006,20:42
Piccolo "The Return".  
Note the difference between two things:
-We have been attempting build a driver from sources. The driver is native Linux.
-Ndiswrapper is a program to be able use a native Windows driver on Linux.

Therefore Ndiswrapper is other strategy. I do not know about Ndiswrapper then I can't help you about that topic.
More info here: < http://ndiswrapper.sourceforge.net/ >

I checked to verify and the information from typescript was really all. We both have been using exactly the same tools over the same targets. Still the DSL version is the same. (DSL 2.3 version).
Extracting from typescript file only the lines that have the commands used, results:

dsl@box cd /home/dsl
dsl@box:~$ bzip2 -dc linux-2.4.17.tar.bz2 | tar xvf -
dsl@box:~$ cd linux
dsl@box:~/linux$ make config
dsl@box:~/linux$ make dep
dsl@box:~/linux$ cd /home/dsl
dsl@box:~$ tar zxvf linux-wlan-ng-0.1.14-pre1.tar.gz
dsl@box:~$ cd /home/dsl/linux-wlan-ng-0.1.14-pre1
dsl@box:~/linux-wlan-ng-0.1.14-pre1$ make config
dsl@box:~/linux-wlan-ng-0.1.14-pre1$ make all

The make dep command fails because not found the /home/dsl/linux/scripts/mkdep.c file. Make sure if is present. That file is decompressed by "bzip2 -dc linux-2.4.17.tar.bz2 | tar xvf -" command then unavoidably it would have to be.
I recommend you, to delete the /home/dsl/linux and /home/dsl/linux-wlan-ng-0.1.14-pre1 directories and to repeat all again.

Posted by klasact on May 11 2006,19:14
I was able to get the linksys adapter to work in ver 2.4rc2 of DSL. Kudos for all your help!  Now then, i am unable to save the connection at shutdown so it is available the next time i boot up. The command   iwconfig  shows all the new and necessary parameters for wlan0 but how do i save this at shutdown? Your comments appreciated no doubt. Thanks
Posted by piccolo on May 11 2006,20:18
WOW! I thought you surrendered but fortunately was not so. Gooood!
Now your question is easy. Is a question present in the FAQ:
< How can I enter and save my static IP settings? >
Your card is not currently listed in Working Wireless Cards then you could send your feedback by sending a message to user Green, so your effort will be useful for others.

Posted by tomv on May 25 2006,16:44
If you can post all the steps you used to get this to work, it would be very helpful.  I have a Linksys WUSB11 Ver 2.6 which uses Altmel instead of Prism chipset - I need to download everything I need and burn it to a CD to copy it over to the laptop, so I want to get everything together first.  I have plenty of disk space on the laptop and I've done a non-frugal install, so I'm only using 10 of my 32 megs of RAM.  (Toshiba Tecra 530 takes propriatary RAM - my 64M chip died and replacing it is expensive.  DSL and its low memory footprint is a godsend.)
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.