View previous topic :: View next topic |
Author |
Message |
stuartofmt
Joined: 23 May 2006 Posts: 4
|
Posted: Mon Jun 12, 2006 9:50 pm Post subject: USB on openslug 3.10 beta |
|
|
I had wview working beautifully on the 2.7 beta version of openslug. For some bizare reason, I got it into my head to upgrade the slug. I did everything from scratch.
So - I have 3.10 beta working just fine but cannot get communications with vpro. I seem to recall that the cp2101 module needed to be loaded in the 2.7 version, but that module will not install with ipkg on 3.10. It complains:
ERROR: cannot satisfy the following dependencies for kernel-module-cp2101: kernel-image-2.6.12.2
The os recognizes the usb when it is connected and designates it as /dev/usbdev2.3 but generates errors like the following.
daemon.err udevd-event [1450]: match_rule : MODALIAS id deprecated, use ENV{MODALIAS} or SYSFS{modalias} instead
although I have seen these errors for other devices (like eth) that work.
vpconfig /dev/usbdev2.3 show just gives
VP Console Wakeup failed - retry .....
Any suggestions?
Thanks in Advance. This is an awesome program..... |
|
Back to top |
|
|
bhnb
Joined: 28 Nov 2005 Posts: 127
|
|
Back to top |
|
|
stuartofmt
Joined: 23 May 2006 Posts: 4
|
Posted: Wed Jun 14, 2006 9:52 pm Post subject: |
|
|
Installed cleanly and so far looks to be working correctly!!!
I'll keep you posted.
Many Thanks |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Wed Jul 05, 2006 1:07 am Post subject: |
|
|
I'm trying to setup an NSLU2 as well. I've installed the 3.1 binary... everything seems fine, *except* communication with the Vantage Pro. The OS doesn't seem to be noticing it, the cp2101 driver complains about the kernel version, as noted above, but installing the updated package for 2.6.16 doesn't seem to make any difference.
Perhaps I'm not installing the updated package correctly?
I just did:
ipkg install kernel-module-cp2101_2.6.16-r6.4_ixp4xxbe.ipk
and then continued normally in the user guide.
any help greatly appreciated.
edit: just to be clear... I'm using the Davis supplied USB connector to connect directly to the NSLU2... no extensions or anything else abnormal on the physical end.
OpenSlug is installed on a flash drive... in USB Port 2.
Vantage Pro is plugged into USB Port 1. |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Wed Jul 05, 2006 1:57 am Post subject: |
|
|
these are the steps I've taken:
Code: | root@LinkSysNAS:~# wget http://www.scorpiocomputing.com/weather/ipk/kernel-module-cp2101_2.6.16-r6.4_ixp4xxbe.ipk
Connecting to www.scorpiocomputing.com[62.149.35.14]:80
kernel-module-cp2101 100% |********************************************************************************| 8138 00:00 ETA
root@LinkSysNAS:~# ipkg install kernel-module-cp2101_2.6.16-r6.4_ixp4xxbe.ipk
Clearing state_want and state_flag for pkg=kernel-module-cp2101 (arch_priority=0 flag=16 want=2)
Package kernel-module-cp2101 (2.6.12.2-r17.1) installed in root is up to date.
Nothing to be done
root@LinkSysNAS:~#
|
notice it's reporting the earlier version as being installed? i must be misisng something simple it's late, time to sleep. |
|
Back to top |
|
|
bhnb
Joined: 28 Nov 2005 Posts: 127
|
Posted: Wed Jul 05, 2006 1:53 pm Post subject: |
|
|
Hi Chris
I haven't been able to reproduce this, but that could be because I don't have a VP plugged in. Could you do an lsmod to see what's loaded? If cp2101 is there, I'd try unplugging the VP, rmmod the cp2101, ipkg remove kernel-module-cp2101, then re-installing it.
Jon |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Wed Jul 05, 2006 8:11 pm Post subject: |
|
|
hmmm it doesn't seem to be recognizing the cp2101 module. only usbserial was listed in lsmod aside from the other regular stuff.
I'll try reinstalling it a few times... |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Wed Jul 05, 2006 9:10 pm Post subject: |
|
|
Hi again John..
ok this has got to be user error on my part...
when wview.conf is included in the /etc/ipkg configs... it runs off to wviewweather and downloads/tries to install the older package (and thus complains of old kernels and doesn't actually install successfully).
when I remove wview.conf from the ipkg configs it no longer looks for wview stuff... but it also doesn't recognize the module:
Code: | root@LinkSysNAS:/# ipkg install /kernel-module-cp2101_2.6.16-r6.4_ixp4xxbe.ipk
Clearing state_want and state_flag for pkg=kernel-module-cp2101 (arch_priority=0 flag=16 want=2)
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package kernel-module-cp2101.
Check the spelling or perhaps run 'ipkg update' |
ipkg seems to be working just fine otherwise... I just can't seem to convince it to use the *file* that I downloaded to install from.
Can i build it from source maybe? oh.. wait i need the dev tools for that...
(oh, and yes I stuck the file in / just to make sure I was pointing ipkg directly at it... )
so close but so far!! |
|
Back to top |
|
|
stuartofmt
Joined: 23 May 2006 Posts: 4
|
Posted: Thu Jul 06, 2006 9:47 am Post subject: |
|
|
I just came back to this forum today to report that the module has been working flawlesly for several weeks .........
The way I installed the module was to place it in a temp directory and use the 'file' mode of ipkg
Suggest being very particular ...
Unplug the VP
reboot
install
reboot
plug in the VP
If all is well - you should see /dev/ttyUSB0 |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Thu Jul 06, 2006 1:36 pm Post subject: |
|
|
and to install it in "file" mode you simply do:
#: ipkg install kernel-module-cp2101_2.6.16-r6.4_ixp4xxbe.ipk
(i just downloaded the ipk file to my home directory)
thanks I'll keep at it.
Chris |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Thu Jul 06, 2006 2:42 pm Post subject: |
|
|
ok.. progress... sort of...
i have convince the ipkg to install.
it install the cp2101 and usbserial module in
/lib/modules/2.6.16/kernel/drivers/usb/serial/
however... the OS refuses to load the cp2101 module even though it loads usbserial OK.
lsmod reports usbserial... if I rmmod usbserial... it removes fine...
if I "insmod /lib/modules/2.6.16/kernel/drivers/usb/serial/cp2101"
then it complains:
"-1 Invalid module format"
yet if I "insmod /lib/modules/2.6.16/kernel/drivers/usb/serial/usbserial"
it initialises and shows up in lsmod.
So either there is something wrong with the cp2101 package as I installed it... or the cp2101 file itself is corrupt?
Could we perhaps update the Packages.gz file in the wview ipkg repository so that it includes the new cp2101 file? |
|
Back to top |
|
|
bhnb
Joined: 28 Nov 2005 Posts: 127
|
Posted: Thu Jul 06, 2006 2:44 pm Post subject: |
|
|
Chris
The ipkg only contains one file, cp2101.ko, which is installed to /lib/modules/2.6.16/kernel/drivers/usb/serial/cp2101.ko. As long as this file exists on your system you should be OK to carry on with the next part.
Jon |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Thu Jul 06, 2006 3:02 pm Post subject: |
|
|
is it because I'm using DebianSlug and not Unslung?
ust a thought
thanks
Chris |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Thu Jul 06, 2006 3:06 pm Post subject: |
|
|
omg
that totally makes sense.... that has to be it... excuse me while i go *&$#@(*&892 a little...
ok...
i'm starting fresh... by installing OpenSlug |
|
Back to top |
|
|
bhnb
Joined: 28 Nov 2005 Posts: 127
|
Posted: Thu Jul 06, 2006 3:45 pm Post subject: |
|
|
Ah, so trying to shoehorn a big-endian module into a little-endian kernel doesn't work too well?
I've been working on getting the packages rebuilt under 3.10 but for some reason gd won't build under my cross-development system. I keep going back to it and seem to be making progress - hopefully some time this weekend... |
|
Back to top |
|
|
|