Re: Smith Micro USB Driver



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
.



Relevant Pages

  • Re: Distributions
    ... | general there are a lot of packages for people to use. ... kernel, have to run on a multitude of different systems, they tend to be ... and slower than if you compile those packages, ... can have that stability with virtually any distro. ...
    (Debian-User)
  • Re: Distributions
    ... Ubuntu is based on Debian, ... | general there are a lot of packages for people to use. ... kernel, have to run on a multitude of different systems, they tend to be larger ... and slower than if you compile those packages, ...
    (Debian-User)
  • Problems with custom kernel fbsd 6.2
    ... My kernel for freebsd 6.2 is not compiling but only with my custom config. ... I was able to compile it with the GENERIC kernel included, but my modified one will not compile. ... # Power management support ...
    (freebsd-questions)
  • Re: [PATCH] 2.6 workaround for Athlon/Opteron prefetch errata
    ... >optimisations independently of each other', is fairly simple, (in ... >concept), and elegant, (as it lets you compile the most finely tuned ... >Up to now, selecting a CPU to compile for basically means, "Use ... it's silly to include them all in a kernel for a 386. ...
    (Linux-Kernel)
  • Re: C++ pushback
    ... There are all sorts of macros that use member initialization of that form. ... This does not break the code at run time, this breaks the code at compile time, and should be less painful. ... The kernel relies really _really_ heavily on such structure initializers, and breaking them would effectively break the world as far as the kernel is concerned. ... If they were not, one could simply make a base class having members outlined, and which class does not enforce type safety and is for inheritance only. ...
    (Linux-Kernel)