How to use Linux driver for USB wi-fi b/g dongle 5.3.3-4g?

Message
Author
boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#16 Post by boof »

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.

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#17 Post by boof »

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

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#18 Post by boof »

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

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#19 Post by boof »

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.

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#20 Post by boof »

make doesn't work, see attached.
Attachments
capture32180.png
(83.48 KiB) Downloaded 312 times
capture27788.png
(41.01 KiB) Downloaded 273 times

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#21 Post by boof »

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.
Attachments
capture15911.png
(79.1 KiB) Downloaded 309 times
capture15501.png
(82.61 KiB) Downloaded 290 times
capture15118.png
(80.27 KiB) Downloaded 299 times
capture14708.png
(82.99 KiB) Downloaded 323 times
capture14353.png
(91.29 KiB) Downloaded 307 times
capture13956.png
(86.44 KiB) Downloaded 304 times
capture13556.png
(72.87 KiB) Downloaded 288 times
capture13125.png
(67.18 KiB) Downloaded 312 times

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#22 Post by tempestuous »

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.

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#23 Post by boof »

SOLVED!

Thank you!

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

Very, very grateful.

Post Reply