OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

3 Pages V  < 1 2 3  
Reply to this topicStart new topic
> Got Earthmate USB GPS, now what?
lardman
post May 11 2005, 09:09 AM
Post #31





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



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
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

This post has been edited by lardman: May 11 2005, 09:12 AM
Go to the top of the page
 
+Quote Post
Gondola
post May 11 2005, 06:59 PM
Post #32





Group: Members
Posts: 124
Joined: 11-January 05
Member No.: 6,189



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.
Go to the top of the page
 
+Quote Post
lardman
post May 12 2005, 01:09 AM
Post #33





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



You don't need ipkg-utils.

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


Si
Go to the top of the page
 
+Quote Post
dignome
post Jun 9 2005, 01:31 AM
Post #34





Group: Members
Posts: 1
Joined: 9-June 05
Member No.: 7,299



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.
Go to the top of the page
 
+Quote Post
zipmaster
post Jun 9 2005, 03:46 PM
Post #35





Group: Members
Posts: 60
Joined: 5-November 04
Member No.: 5,353



so has anymore got it working using the emul thing?
Go to the top of the page
 
+Quote Post

3 Pages V  < 1 2 3
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th December 2014 - 07:11 AM