Author Topic: Got Earthmate USB GPS, now what?  (Read 31058 times)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Got Earthmate USB GPS, now what?
« Reply #30 on: May 11, 2005, 01:09:04 pm »
Next suggestion - see which module is grabbing the device (one of the HID ones) and rmmod it, then run the above code and see if that does anything to help.

I suggest this as the code which ought to do this:

Code: [Select]
usb_detach_kernel_driver_np(em_device.udev, 0);
Does return an error code if it fails, but it's not checked by emul.

Might also be worth running strace on it to make sure what it's attempting to open is the right thing (if the above doesn't work).


Si
« Last Edit: May 11, 2005, 01:12:14 pm by lardman »
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Gondola

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Got Earthmate USB GPS, now what?
« Reply #31 on: May 11, 2005, 10:59:38 pm »
Ok, I need to verify the file names from the libusb package, so I'm trying to unpack the .ipk for it.

When I try to download ipkg-utils from the 3.5.3 feed it complains that python is a requirement that it can't satisfy.  I tried installing python-core but I don't see a just plain python, and it won't install without it.
[span style=\'font-size:8pt;line-height:100%\']Nokia 770, running latest firmware.
1GB RS-MMC sandisk card
Garmin Etrex Legend GPS/USB Earthmate GPS
Rooted, with an SSH server, VNC viewer, etc.
[/span]

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Got Earthmate USB GPS, now what?
« Reply #32 on: May 12, 2005, 05:09:45 am »
You don't need ipkg-utils.

You just need ipkg, the 'files' bit is a switch to pass to it.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

dignome

  • Newbie
  • *
  • Posts: 1
    • View Profile
Got Earthmate USB GPS, now what?
« Reply #33 on: June 09, 2005, 05:31:23 am »
Hi guys.  Sorry about all the confusion with the permissions message... it is sort of vague.

You need to make sure the permissions on the /proc/bus/usb/  nodes are set properly.  There are a few ways of doing this, some more secure than others.  This is an entry from /etc/fstab on my system:

none                    /proc/bus/usb   usbfs           defaults,devgid=85,devmode=0664 0 0

 devgid is the group the devices will belong to, look in /etc/group:

usb:x:85:dignome

 is my entry in /etc/group.  Of course for the program, such as emul_test, to be able to access the usb device it must run under that group.  devmode is the user/group/other permissions for the device nodes in /proc/bus/usb.  If you don't want to mess with adding a group then set devmode=0666 which means that all the usb devices connected to the bus are vulnerable to any processes that might access them.

  There should be no need to create any serial nodes in /dev as emul does indeed go through libusb via the /proc/bus/usb nodes.

   As for gpsd...  any plain jane gpsd package you download will not work with emul as of yet, as the emul framework for accessing the earthmate via libemul has not been merged.  grab the latest 'gpsd patched' package which is available on the files section at:

http://developer.berlios.de/project/showfi...p?group_id=3373

  You will need suitable compile tools installed in order to build the source package... I don't have any binary builds yet so this is necessary.


  If you need further help, join #emul on irc.freenode.net or post back here.

zipmaster

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Got Earthmate USB GPS, now what?
« Reply #34 on: June 09, 2005, 07:46:42 pm »
so has anymore got it working using the emul thing?
SL-6000L
Sharp Fast Rom w/ Opera 7.55
256 Viking CF Card
iRiver USB cable
256 Scandisk USB Drive
512 ext2 Kingsten SD Card(trying to get pocketworkstation working pm to help)