Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 20 Dec 2014, 15:39
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Networking » Wireless
How to use Linux driver for USB wi-fi b/g dongle 5.3.3-4g?
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [23 Posts]   Goto page: Previous 1, 2
Author Message
boof

Joined: 26 Sep 2012
Posts: 198

PostPosted: Mon 28 Jan 2013, 10:50    Post subject:  

I have loaded the driver, but it doesn't work--suspect it's an XP Vista and Win 7 driver. That takes me back to compiling my own driver from an so file, which I can now do as this win machine has 1GB ram, and can take puppy as a dual boot. I will set it up and download those compiler files. Pls give me the necessary instructions on how to use them.
Back to top
View user's profile Send private message 
boof

Joined: 26 Sep 2012
Posts: 198

PostPosted: Wed 30 Jan 2013, 06:14    Post subject:  

win machine is now dual boot, with puppy slacko-5.4.

it has divx and kernel-sources installed.

please give detailed instructions on how to compile puppy drivers from .so format, as above. no wrapper can be used (all versions contain vista elements?)

thx
Back to top
View user's profile Send private message 
boof

Joined: 26 Sep 2012
Posts: 198

PostPosted: Wed 30 Jan 2013, 06:52    Post subject:  

this is the tar-wrap.sh file in txt. it is listed in ~xarchive/wrappers/. It is listed as a driver? i don't understand what does. I don't know where the driver is, nor how to use it.


#! /bin/bash
# tar-wrap.sh - bash tar wrapper for xarchive frontend
# Copyright (C) 2005 Lee Bigelow <ligelowbee@yahoo.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

# modified by technosaurus for puppy 4.4a
# added lzma and xz and changed --use-compress-program={progs} -{ajJzZ}

#110808 rerwin: Change all redirections to stderr to be appends, to protect error log.

# set up exit status variables
E_UNSUPPORTED=65

# Supported file extentions for tar
TAR_EXTS="tar"
GZIP_EXTS="tar.gz tgz"
BZIP2_EXTS="tar.bz tbz tar.bz2 tbz2"
COMPRESS_EXTS="tar.z"
XZ_EXTS="tar.xz txz"
LZMA_EXTS="tar.lzma tar.lz tlz"

# Setup awk program
AWK_PROGS="mawk gawk awk"
AWK_PROG=""
for awkprog in $AWK_PROGS; do
if [ "$(which $awkprog)" ]; then
AWK_PROG="$awkprog"
break
fi
done

# Program to wrap
TAR_PROG="tar"

# setup variables opt and archive.
# the shifting will leave the files passed as
# all the remaining args "$@"
opt="$1"
shift 1
archive="$1"
shift 1

# set up compression variables for our compression functions.
# translate archive name to lower case for pattern matching.
# use compressor -c option to output to stdout and direct it where we want
lc_archive="$(echo $archive|tr [:upper:] [:lower:])"
for ext in $GZIP_EXTS; do
if [ $(expr "$lc_archive" : ".*\."$ext"$") -gt 0 ]; then
DECOMPRESS="gzip -dc"
COMPRESS="gzip -c"
TAR_COMPRESS_OPT="-z"
fi
done
for ext in $BZIP2_EXTS; do
if [ $(expr "$lc_archive" : ".*\."$ext"$") -gt 0 ]; then
DECOMPRESS="bzip2 -dc"
COMPRESS="bzip2 -c"
TAR_COMPRESS_OPT="-j"
fi
done
for ext in $COMPRESS_EXTS; do
if [ $(expr "$lc_archive" : ".*\."$ext"$") -gt 0 ]; then
DECOMPRESS="uncompress -dc"
COMPRESS="compress -c"
TAR_COMPRESS_OPT="-Z"
fi
done
for ext in $XZ_EXTS; do
if [ $(expr "$lc_archive" : ".*\."$ext"$") -gt 0 ]; then
DECOMPRESS="xz -dc"
COMPRESS="xz -ze9c"
TAR_COMPRESS_OPT="-J"
fi
done
for ext in $LZMA_EXTS; do
if [ $(expr "$lc_archive" : ".*\."$ext"$") -gt 0 ]; then
DECOMPRESS="lzma -dc"
COMPRESS="lzma -ze9c"
TAR_COMPRESS_OPT="-a"
fi
done

# Command line options for prog functions
# open and extract can use tar's cmd line option
# add, new, and remove need to decompress the tar first
# do their thing, than recompress the tar.
OPEN_OPTS="$TAR_COMPRESS_OPT -tvf"
EXTRACT_OPTS="$TAR_COMPRESS_OPT -xf"
ADD_OPTS="-rf"
NEW_OPTS="-cf"
REMOVE_OPTS="--delete -f"

# Compression functions
decompress_func()
{
if [ "$DECOMPRESS" ]; then
tmpname="$(mktemp -t tartmp.XXXXXX)"
if [ -f "$archive" ]; then
$DECOMPRESS "$archive" > "$tmpname"
fi
# store old name for when we recompress
oldarch="$archive"
# change working file to decompressed tmp
archive="$tmpname"
fi
}

compress_func()
{
if [ "$COMPRESS" ] && [ "$oldarch" ]; then
[ -f "$oldarch" ] && rm "$oldarch"
if $COMPRESS "$archive" > "$oldarch"; then
rm "$archive"
fi
fi
}

# the option switches
case "$opt" in
-i) # info: output supported extentions for progs that exist
if [ ! "$AWK_PROG" ]; then
echo none of the awk programs $AWK_PROGS found >> /dev/stderr
echo extentions $EXTS ignored >> /dev/stderr
elif [ "$(which $TAR_PROG)" ]; then
for ext in $TAR_EXTS; do
printf "%s;" $ext
done
for ext in $GZIP_EXTS; do
if [ "$(which gzip)" ]; then
printf "%s;" $ext
else
echo gzip not found >> /dev/stderr
echo extention $ext ignored >> /dev/stderr
fi
done
for ext in $XZ_EXTS; do
if [ "$(which xz)" ]; then
printf "%s;" $ext
else
echo xz not found >> /dev/stderr
echo extention $ext ignored >> /dev/stderr
fi
done
for ext in $LZMA_EXTS; do
if [ "$(which lzma)" ]; then
printf "%s;" $ext
else
echo lzma not found >> /dev/stderr
echo extention $ext ignored >> /dev/stderr
fi
done
for ext in $BZIP2_EXTS; do
if [ "$(which bzip2)" ]; then
printf "%s;" $ext
else
echo bzip2 not found >> /dev/stderr
echo extention $ext ignored >> /dev/stderr
fi
done
for ext in $COMPRESS_EXTS; do
if [ "$(which compress)" ] && [ "$(which uncompress)" ]; then
printf "%s;" $ext
else
echo compress and uncompress not found >> /dev/stderr
echo extention $ext ignored >> /dev/stderr
fi
done
else
echo command $TAR_PROG not found >> /dev/stderr
echo extentions $TAR_EXTS ignored >> /dev/stderr
fi
printf "\n"
exit
;;

-o) # open: mangle output of tar cmd for xarchive
# format of tar output:
# lrwxrwxrwx USR/GRP 0 2005-05-12 00:32:03 file -> /path/to/link
# -rw-r--r-- USR/GRP 6622 2005-04-22 12:29:14 file
# 1 2 3 4 5 6
$TAR_PROG $OPEN_OPTS "$archive" | $AWK_PROG '
{
attr=$1
split($2,ids,"/") #split up the 2nd field to get uid/gid
uid=ids[1]
gid=ids[2]
size=$3
date=$4
time=$5

#this method works with filenames that start with a space (evil!)
#split line a time and a space
split($0,linesplit, $5 " ")
#then split the second item (name&link) at the space arrow space
split(linesplit[2], nlsplit, " -> ")

name=nlsplit[1]
link=nlsplit[2]

if (! link) {link="-"} #if there was no link set it to a dash

printf "%s;%s;%s;%s;%s;%s;%s;%s\n",name,size,attr,uid,gid,date,time,link
}'
exit
;;

-a) # add to archive passed files
# we only want to add the file's basename, not
# the full path so...
decompress_func
while [ "$1" ]; do
cd "$(dirname "$1")"
$TAR_PROG $ADD_OPTS "$archive" "$(basename "$1")"
wrapper_status=$?
shift 1
done
compress_func
exit $wrapper_status
;;

-n) # new: create new archive with passed files
# create will only be passed the first file, the
# rest will be "added" to the new archive
decompress_func
cd "$(dirname "$1")"
$TAR_PROG $NEW_OPTS "$archive" "$(basename "$1")"
wrapper_status=$?
compress_func
exit $wrapper_status
;;

-r) # remove: from archive passed files
decompress_func
$TAR_PROG $REMOVE_OPTS "$archive" "$@"
wrapper_status=$?
compress_func
exit $wrapper_status
;;

-e) # extract: from archive passed files
# xarchive will put is the right extract dir
# so we just have to extract.
$TAR_PROG $EXTRACT_OPTS "$archive" "$@"
exit
;;

*) echo "error, option $opt not supported"
echo "use one of these:"
echo "-i #info"
echo "-o archive #open"
echo "-a archive files #add"
echo "-n archive file #new"
echo "-r archive files #remove"
echo "-e archive files #extract"
exit
esac
Back to top
View user's profile Send private message 
boof

Joined: 26 Sep 2012
Posts: 198

PostPosted: Wed 30 Jan 2013, 07:22    Post subject:  

Sorry. wrong thing.

I renamed the original archive as a tar file and was able to extract it.

I now believe i can make make etc the file.
Back to top
View user's profile Send private message 
boof

Joined: 26 Sep 2012
Posts: 198

PostPosted: Wed 30 Jan 2013, 07:50    Post subject:  

make doesn't work, see attached.
capture32180.png
Description 
png

 Download 
Filename  capture32180.png 
Filesize  83.48 KB 
Downloaded  149 Time(s) 
capture27788.png
 Description   
 Filesize   41.01 KB
 Viewed   228 Time(s)

capture27788.png

Back to top
View user's profile Send private message 
boof

Joined: 26 Sep 2012
Posts: 198

PostPosted: Wed 30 Jan 2013, 09:44    Post subject:  

I can edit the makefile, if someone will guide me. screens attached. The makefile is old, for kernel 2.6.x. This is the latest driver I can find.
capture15911.png
Description 
png

 Download 
Filename  capture15911.png 
Filesize  79.1 KB 
Downloaded  142 Time(s) 
capture15501.png
Description 
png

 Download 
Filename  capture15501.png 
Filesize  82.61 KB 
Downloaded  139 Time(s) 
capture15118.png
Description 
png

 Download 
Filename  capture15118.png 
Filesize  80.27 KB 
Downloaded  148 Time(s) 
capture14708.png
Description 
png

 Download 
Filename  capture14708.png 
Filesize  82.99 KB 
Downloaded  151 Time(s) 
capture14353.png
Description 
png

 Download 
Filename  capture14353.png 
Filesize  91.29 KB 
Downloaded  150 Time(s) 
capture13956.png
Description 
png

 Download 
Filename  capture13956.png 
Filesize  86.44 KB 
Downloaded  141 Time(s) 
capture13556.png
Description 
png

 Download 
Filename  capture13556.png 
Filesize  72.87 KB 
Downloaded  145 Time(s) 
capture13125.png
Description 
png

 Download 
Filename  capture13125.png 
Filesize  67.18 KB 
Downloaded  149 Time(s) 
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5293
Location: Australia

PostPosted: Fri 01 Feb 2013, 06:37    Post subject:  

boof,
In response to your PM to me, it's important to note at the outset that your wifi device; USB ID 148F:5370, is supported in all Slacko 5.3.x and 5.4.x versions by the rt2800usb driver. That's a built-in, ready-to-go, true Linux driver.

It's remarkable to me that in a forum thread that spans 28 days, and 21 lengthy posts, there's not a single mention of this.

The rt2800usb driver, unfortunately, has been widely reported as unreliable in earlier Puppy versions, but you should at least try it first, before resorting to the complicated "minefield" of installing third-party drivers ... or worse, of resorting to Windows drivers via ndiswrapper.
Unfortunately, your failed ndiswrapper configuration is possibly now blocking all other drivers from accessing the device, so you must first remove this configuration.
How? I don't know. Someone else needs to step in, or you should do some Googling, yourself.
Worst case, you will need to do a fresh installation.

Once your system is "clean" and free of ndiswrapper, just run the Internet Connection Wizard - and select the "Network Wizard" .... NOT the "Simple Network Wizard".
Don't overthink the configuration - let Puppy auto-detect your device and accept whatever driver Puppy loads (it will be the rt2800usb driver).
Then you need to configure your wifi settings ...

If the rt2800usb driver fails to detect any wifi access points, then it's probably failing, and then we can move on to compile the proprietary Ralink RT5370 driver ... but that's for later.


boof wrote:
now I have to convince my Nokia C3-00 to connect the internet into it. I do find the lack of user control very frustrating, as so much requires special settings and knowledge I don't have. I don't know what the name of my local network is, as I don't think I've seen it yet.

This lack of understanding may be part of your problem. Spend some time to learn what a wifi identifier (SSID) is, what forms of encryption are available, and then investigate what your local network's wifi settings are.
Back to top
View user's profile Send private message 
boof

Joined: 26 Sep 2012
Posts: 198

PostPosted: Sat 02 Feb 2013, 19:17    Post subject:  

SOLVED!

Thank you!

had to connect with highest encryption and key from underside of device.

Very, very grateful.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [23 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Networking » Wireless
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0851s ][ Queries: 13 (0.0049s) ][ GZIP on ]