Re: Smith Micro USB Driver
- From: dave+news002@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (Dave Gibson)
- Date: Sun, 30 Mar 2008 15:19:08 +0100
Czouch <czouch430@xxxxxxxxxxxxxxx> wrote:
Hi,
Does anyone out there know anything about Kernel modules/drivers? I
have downloaded the Smith Micro Supplemental USB Driver (from
http://www.smithmicro.com/linux) which is supposed to supplement the
usbserial driver module and enhance the performance of USB Wireless
modems such as the UT Starcom (Pantech) PC5750 that I use. The
problem is, I cannot get it to compile for my openSUSE 10.3, 2.6.22
kernel.
How did the compilation fail?
The code is only a few hundred lines long. Any chance one of
you out there might be able to take a gander at it and help me get it
compiled for my machine?
It can at least compile against a plain 2.6.24.3 kernel so unless SuSE
have seriously modified 2.6.22 you should be ok.
Assuming:
You are the root user.
You have the development tools installed.
The running kernel's source tree has been installed to /usr/src/linux.
The smusb driver tarball is /var/tmp/smusb-1.2.tgz.
/proc/config.gz exists.
Loosely following the README, the steps are:
cd /usr/src/linux
test -f .config && mv .config dot_config.prev
gzip -cd < /proc/config.gz > .config
make modules_prepare
mkdir /usr/src/smusb
cd /usr/src/smusb
tar xzf /var/tmp/smusb-1.2.tgz
cd smusb-1.2/src
# The *2.6.20.patch is the most suitable for kernel 2.6.22.
patch -p1 < ../smusb_1.2_2.6.9-2.6.20.patch
make
# Note: if the kernel source is not in /usr/src/linux, pass the
# actual path in the KDIR make variable, like this:
# make KDIR=/path/to/kernel/source
# I have no hardware to test whether the module actually works. From
# here on is untested.
mods="/lib/modules/$(uname -r)/kernel/drivers/usb/serial"
mkdir -p -- "$mods"
cp smusb.ko "${mods}/"
cd -- "$mods"
if [ -f airprime.ko ]; then
# It is safe to ignore rmmod complaining about airprime not
# existing in /proc/modules but any other error should be investigated.
rmmod airprime
mv airprime.ko airprime.ko.off
fi
depmod -a
.
- References:
- Smith Micro USB Driver
- From: Czouch
- Smith Micro USB Driver
- Prev by Date: Re: Kubuntu 8.04Beta - A No Go
- Next by Date: Re: Kubuntu 8.04Beta - A No Go
- Previous by thread: Smith Micro USB Driver
- Next by thread: Linux Certification question
- Index(es):
Relevant Pages
|