modprobe usbserial

This forum is for all other ARMv5 devices

modprobe usbserial

Postby zigomatic » Mon Mar 19, 2012 4:58 pm

Dears,

I try to use a usb device but i don't achieve to have a /dev/ttyUSB0 where i supposed that access from this way...

I think it's due to the missing module usbserial.

Why i can't do this command ? modprobe usbserial
FATAL: Module usbserial not found.

find / -name "*usbser*" -print
/lib/modules/3.1.10-3-ARCH/kernel/drivers/usb/serial/usbserial.ko.gz

uname -a
Linux zigomatic 2.6.31.6_SMP_820 #100 SMP Sun May 29 04:53:45 EDT 2011 armv6l ARMv6-compatible processor rev 5 (v6l) Oxsemi NAS GNU/Linux

This is the device under lsusb
Bus 001 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port

dmesg:
[ 3.390000] usb 1-1.2: new full speed USB device using oxnas-ehci and address 4
[ 3.500000] usb 1-1.2: New USB device found, idVendor=067b, idProduct=2303
[ 3.500000] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3.510000] usb 1-1.2: Product: USB-Serial Controller
[ 3.520000] usb 1-1.2: Manufacturer: Prolific Technology Inc.
[ 3.520000] usb 1-1.2: configuration #1 chosen from 1 choice

Can someone help me on this ?

Thanks
zigomatic
 
Posts: 28
Joined: Sun Feb 19, 2012 4:37 pm

Re: modprobe usbserial

Postby WarheadsSE » Mon Mar 19, 2012 5:02 pm

Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: modprobe usbserial

Postby telzey » Mon Mar 19, 2012 8:16 pm

Or, if you're willing to spend some time and effort (and probably some money on parts) ...

viewtopic.php?f=29&t=2472
telzey
 
Posts: 58
Joined: Fri Dec 16, 2011 8:42 pm

Re: modprobe usbserial

Postby BuffaloM » Tue Mar 20, 2012 12:28 am

I built usbserial as a module without having to reflash the kernel (ended up doing that later for another reason) - not much time or effort and no money.
See http://archlinuxarm.org/forum/viewtopic.php?f=29&t=1238&p=12211#p12211 and http://archlinuxarm.org/forum/viewtopic.php?f=29&t=1238&p=12211#p12439
BuffaloM
 
Posts: 17
Joined: Tue Jan 10, 2012 3:23 am

Re: modprobe usbserial

Postby telzey » Tue Mar 20, 2012 1:09 am

It's possible to drive without a seat belt too ... but I'm not sure that you'd find a lot of people willing to recommend it! ;)
telzey
 
Posts: 58
Joined: Fri Dec 16, 2011 8:42 pm

Re: modprobe usbserial

Postby zigomatic » Tue Mar 20, 2012 2:29 pm

Thanks Buffalom !

just finished
i achieve this with your help, i need to test now ...

[18152.100000] usb 1-1.2: new full speed USB device using oxnas-ehci and address 5
[18152.310000] usb 1-1.2: New USB device found, idVendor=067b, idProduct=2303
[18152.310000] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[18152.320000] usb 1-1.2: Product: USB-Serial Controller
[18152.330000] usb 1-1.2: Manufacturer: Prolific Technology Inc.
[18152.340000] usb 1-1.2: configuration #1 chosen from 1 choice
[18152.340000] pl2303 1-1.2:1.0: pl2303 converter detected
[18152.380000] usb 1-1.2: pl2303 converter now attached to ttyUSB0
zigomatic
 
Posts: 28
Joined: Sun Feb 19, 2012 4:37 pm

Re: modprobe usbserial

Postby zigomatic » Wed Mar 21, 2012 9:52 am

Well , seems issue on communication related to the driver ... :(

This seems link to kernel / driver issue :(

It works one time (and after every reboot) but next try issues:

./aurora -b -a2 /dev/ttyUSB0

szttyDevice: /dev/ttyUSB0
yDelay: 1
yTimeout 0 mS
yMaxRunTime ~
devLCKfile: </var/lock/LCK..ttyUSB0>
devLCKfileNew: </var/lock/LCK..ttyUSB0.1791>
Got Params

RunTime 20120321-10:39:48 v1.8.0
Endian : Little
PID : 1791

Attempting to get lock on Serial Port /dev/ttyUSB0...
Checking for lock

Checking process 1791 for lock
rPID: 1791 SubStrPos: aurora command: ./aurora = me
Appears we got the lock.

Opening Serial Port /dev/ttyUSB0... Serial Port /dev/ttyUSB0 successfully opened.
Configuring serial device... Flushing unread data first... Success!
Flushing serial device buffer... Success!

Comm Check: Let's see if the Aurora is listening...
Elapsed time since last comm 0 us
Attempt 1
Clearing read buffer Success!
szSerBufferSave OK! 02 3a 00 00 00 00 00 00 00 00
command: 02 3a 00 00 00 00 00 00 01 b7
Flushing serial device buffer... Success!
Sending command... sent 10 characters
Draining serial device buffer... Success!
Cleared data buffer: 00 00 00 00 00 00 00 00 00 00
Read char #1 RC=0 (00) waited/max 96593/1000000 uS
answer: Got -1 characters
Comm Check: Failure, aborting...

Restoring Serial Port settings /dev/ttyUSB0... Success!
Flushing serial device buffer... Success!
Closing Serial Port /dev/ttyUSB0... Success!

devLCKfile: </var/lock/LCK..ttyUSB0>
devLCKfileNew: </var/lock/LCK..ttyUSB0.1791>
Clearing Serial Port Lock (1791)... done.

20120321-10:39:48: aurora: ERROR: Received bad return code (-1 0)
zigomatic
 
Posts: 28
Joined: Sun Feb 19, 2012 4:37 pm

Re: modprobe usbserial

Postby zigomatic » Wed Mar 21, 2012 1:17 pm

I take this pogo for one main purpose: running this software http://www.curtronics.com/Solar/AuroraData.html

The purpose is to collect data from an inverter and seems very hard to have this running well in that pogo with this version of kernel /linux.

I don't know why exactly it's so hard to have those modules/drivers direclty from this version of the pogo (black model) where the previous model is so easy (pink model).

Can we help to have a full linux available for this pogo version ?

There is other alternative linux distribution (like ubuntu on pogo) ?
zigomatic
 
Posts: 28
Joined: Sun Feb 19, 2012 4:37 pm

Re: modprobe usbserial

Postby WarheadsSE » Wed Mar 21, 2012 1:21 pm

...
Seriously. These aren't x86 machines. SoCs differ, methodologies of replacing stock functionality differ, and forgive me if I do not willy nilly update your NAND content. Sure, it ought to live though just fine since CE decided to use SLC, but ...
/shutsup
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: modprobe usbserial

Postby atardani » Wed Mar 21, 2012 2:24 pm

Warhead.
Don't get angry ! :)
I thank you for your great work with archlinuxarm on pogo, and I know that is the same for zigomatic.

I have the same problem of him.
Searching around, i found that there should be a problem with kernel 2.6.31 and usb serial driver that gives "read regressions" (i don't know extactly what they are, but they seem to be the key of our problem).
I found a patch that should correct this problem, see http://www.gossamer-threads.com/lists/l ... el/1139869

I'm a quite totally newbie of linux, and I don't know extacly how to apply it.

Can you give me an hand? Is it possible to apply it to pl2303.ko and usbserial.ko? How?

Thank you in advance!
atardani
 
Posts: 8
Joined: Wed Mar 21, 2012 2:15 pm

Next

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 69 guests