Re: non working device: i-gotU usb GPS data-logger

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 12, 2009 at 09:18:29PM +0100, paul van den berg wrote:
> Greg KH <greg@xxxxxxxxx> wrote:
> 
> > Great!.  I'll add a new device id entry to this driver.  Or if you want
> > to, could you send me a patch as described in
> > Documentation/SubmittingPatches adding it so you get the authorship
> > credit?
> > 
> I haven't compiled kernels for some time, but I have a patch attached.
> Although the directory reads linux-2.6.28, it was first patched with
> patch-2.6.29-rc7.bz2
> 
> This patch adds support for Mobile Action GT100/GT200 (i-gotU) usb devices.
> 
> > I have no idea, the driver has nothing to do with that, it just gets
> > data from the device.  I suppose there might be a way to send commands
> > back to it, but that would have to go through the control channel.  Hm,
> > I wonder if we just make the write section to go through that...
> > 
> > Can you try kernel patches?  I'll be glad to make something up to try
> > this out if you want to.
> > 
> As I am on a debian system, I used make-kpkg to build a installable .deb
> kernel package. That took some time..

You don't need to build a .deb package on a Debian system.  You just
need to put the attached script in /sbin/ (or somewhere similar, I
have it in ~/bin/) and then you can do `make` and `sudo make
install_modules install` and then reboot into your new kernel.

Sarah Sharp
#!/bin/sh
# 
# Copyright (C) 1995 - 1998, Ian A. Murdock <imurdock@xxxxxxxxxx>
# Copyright (C) 1998, 1999, Guy Maor
# Copyright (C) 2002, Matthew Wilcox
# Copyright (C) 2002, 2004, 2005, Clint Adams
#
# Install the kernel on a Debian Linux system.
#
# This script is called from /usr/src/linux/arch/i386/boot/install.sh.
# If you install it as /sbin/installkernel, you can do a "make install"
# from a generic kernel source tree, and the image will be installed to
# the proper place for Debian GNU/Linux.

set -e

if [ $# -eq 3 ] || [ $# -eq 4 ] ; then
  img="$2"
  map="$3"
  ver="$1"
  if [ $# -eq 4 ] && [ -n "$4" ] ; then
      dir="$4"
  else
      dir="/boot"
  fi
else
  echo "Usage: installkernel <version> <image> <System.map> <directory>"
  exit 1
fi

updatever () {
  cat "$2" > "$dir/$1-$ver"
}

if [ "$(basename $img)" = "vmlinux" ] ; then
  updatever vmlinux "$img"
else
  updatever vmlinuz "$img"
fi
updatever System.map "$map"

config=$(dirname "$map")
config="${config}/.config"
if [ -f "$config" ] ; then
  updatever config "$config"
fi

update-initramfs -k "$ver" -u -t

update-grub

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux