New Kernel Same Problem with 6270

3 views
Skip to first unread message

Roberto Lionello

unread,
Apr 25, 2008, 7:49:45 PM4/25/08
to microdia
Hi,

I have uprgraded my AMD64 system to Ubuntu 8.04, running
Linux gilthoniel 2.6.24-16-generic #1 SMP Thu Apr 10 12:47:45 UTC 2008
x86_64 GNU/Linux
but I still can't see an image with any player.


[ 965.704779] microdia: Microdia USB2.0 webcam driver startup
[ 965.704820] usbcore: registered new interface driver
usb_microdia_driver
[ 965.704824] microdia: v0.0.0 : Microdia USB Video Camera
[ 982.578349] usb 2-1: new full speed USB device using ohci_hcd and
address 2
[ 1020.125990] usb 2-1: configuration #1 chosen from 1 choice
[ 1020.127581] microdia: Microdia USB2.0 Webcam - Product ID 6270.
[ 1020.127588] microdia: Release: 0100
[ 1020.127590] microdia: Number of interfaces : 1
[ 1020.162745] microdia: No ack from I2C slave 5d for write to address
ff
[ 1020.167518] microdia: I2C slave 5d returned error during write to
address ff
[ 1020.204164] microdia: Detected sensor: MT9V111/MI0360SOC (chip
version: 0x823A)
[ 1020.215868] microdia: Microdia USB2.0 Camera is now controlling
video device /dev/video0
[ 1020.245369] Changing resolution to 640 by 480
[ 1020.366273] microdia: I2C slave 50 returned error during write to
address 0
[ 1001.790884] Changing resolution to 640 by 480
[ 1040.333061] microdia: I2C slave 50 returned error during write to
address 0
[ 1339.783653] Changing resolution to 640 by 480
[ 1339.905867] microdia: I2C slave 50 returned error during write to
address 0
[ 1282.744495] Changing resolution to 320 by 240
[ 1340.333332] microdia: I2C slave 50 returned error during write to
address 0

Any clue on why?
Cheers,

RL

JoJo jojo

unread,
Apr 26, 2008, 5:08:41 PM4/26/08
to micr...@googlegroups.com
Hi Roberto

There's a way to debug this.
You will need to use usbmon
$mount -t debugfs none_debugs /sys/kernel/debug
$modprobe usbmon
$modprobe videodev
$modprobe compat-ioctl32
$insmod microdia.ko
$cat /sys/kernel/debug/usbmon/xt > ~/Desktop/usbmon-6270-1.txt

the "x" in the above cat /sys/kernel/debug/usbmon/xt
comes from the output of
$lsusb
Bus 00x Device 001: ID 0c45:6270 Microdia
....................................................................
....................................................................

after that when you plugin the webcam, start a webcam application like
Skype etc.
the usbmon command will dump all command being written/read to/from
6270 to the text file,
press CTRL+C to stop the command immediately after skype starts to
show video image.
that text file needs to be compared with the init/start sequence in
the code in microdia-dev.c under 6270
the difference between the two will, hopefully, point us in the right
direction.

-JoJo

Roberto Lionello

unread,
Apr 28, 2008, 12:43:12 PM4/28/08
to microdia
Hi JoJo,

I followed your instructions and uploaded the results at this link:


http://groups.google.com/group/microdia/web/usbmon-6270-1.txt.gz


I started first camorama, I killed it, and started vlc. Many thanks!

Best regards,

RL

Comer352l

unread,
Apr 28, 2008, 1:55:27 PM4/28/08
to micr...@googlegroups.com
Hi Roberto,

thanks for this log. Please test the latest driver version, I've pushed
a patch that fixes a bug in the start-stream function some minutes ago.
Please test it, I can't see any other problems in this file.
Btw, this part of the code has been reviewed by many people for a couple
of days before it got pushed ;-).

Frank

Roberto Lionello schrieb:

JoJo jojo

unread,
Apr 28, 2008, 2:01:41 PM4/28/08
to micr...@googlegroups.com
Thanks Frank, for reviewing it before I got to it ;-)
(Sorry Roberto, Frank got to it before I did, and now its finished :-0)

-JoJo

Roberto Lionello

unread,
Apr 28, 2008, 2:42:26 PM4/28/08
to microdia
No problem, I got the latest version but the results were the same.
The uploaded log is in

http://groups.google.com/group/microdia/web/usbmon-6270-2.txt.gz

Thanks!

RL

[135536.728240] Linux video capture interface: v2.00
[134925.138116] microdia: Microdia USB2.0 webcam driver startup
[134925.138156] usbcore: registered new interface driver
usb_microdia_driver
[134925.138160] microdia: v0.0.0 : Microdia USB Video Camera
[135767.394202] usb 2-1: new full speed USB device using ohci_hcd and
address 4
[135767.511427] usb 2-1: configuration #1 chosen from 1 choice
[135767.513011] microdia: Microdia USB2.0 Webcam - Product ID 6270.
[135767.513016] microdia: Release: 0100
[135767.513018] microdia: Number of interfaces : 1
[135767.546288] microdia: I2C slave 5d returned error during write to
address ff
[135767.566274] microdia: Detected sensor: MT9V111/MI0360SOC (chip
version: 0x823A)
[135767.586310] microdia: Microdia USB2.0 Camera is now controlling
video device /dev/video0
[135767.771950] Changing resolution to 640 by 480
[135767.892752] microdia: I2C slave 50 returned error during write to
address 0
[135768.189132] microdia: Iso frame 3 of USB has error -18
[135768.189139] microdia: Iso frame 4 of USB has error -18
[135768.189142] microdia: Iso frame 5 of USB has error -18
[135768.189143] microdia: Iso frame 6 of USB has error -18
[135768.189145] microdia: Iso frame 7 of USB has error -18
[135768.189147] microdia: Iso frame 8 of USB has error -18
[135768.189149] microdia: Iso frame 9 of USB has error -18
[135768.190238] microdia: Iso frame 0 of USB has error -18
[135768.190241] microdia: Iso frame 1 of USB has error -18
[135768.190243] microdia: Iso frame 2 of USB has error -18
[135768.190245] microdia: Iso frame 3 of USB has error -18
[135768.190248] microdia: Iso frame 4 of USB has error -18
[135768.190250] microdia: Iso frame 5 of USB has error -18
[135768.190252] microdia: Iso frame 6 of USB has error -18
[135803.402509] Changing resolution to 640 by 480
[135803.564846] microdia: I2C slave 50 returned error during write to
address 0
[135803.678486] microdia: Iso frame 4 of USB has error -18
[135804.012478] Changing resolution to 320 by 240
[135804.233397] microdia: I2C slave 50 returned error during write to
address 0



On Apr 28, 11:01 am, "JoJo jojo" <onetwoj...@gmail.com> wrote:
> Thanks Frank, for reviewing it before I got to it ;-)
> (Sorry Roberto, Frank got to it before I did, and now its finished :-0)
>
> -JoJo
>

cnlions

unread,
Apr 30, 2008, 1:40:13 AM4/30/08
to microdia
I'm using 6270 in Ubuntu 8.04 which is NOT a x86_64 version.
The source of the driver is downloaded today by
git clone http://repo.or.cz/r/microdia.git
It works, except that the color is not fine.
Sorry for not being able to help you to debug more.

On 4月29日, 上午2时42分, Roberto Lionello <roberto.lione...@gmail.com>
wrote:

Roberto Lionello

unread,
Apr 30, 2008, 12:35:35 PM4/30/08
to microdia
I was wondering, would it help if I repeated the whole procedure with
my other camera, the Logitech Quickcam, which works with the x86_64
version? Maybe you gurus could compare the logs. Please let me know.

Cheers,

RL

On Apr 29, 10:40 pm, cnlions <shichen...@gmail.com> wrote:
> I'm using 6270 in Ubuntu 8.04 which is NOT a x86_64 version.
> The source of the driver is downloaded today by
> git clonehttp://repo.or.cz/r/microdia.git

JoJo jojo

unread,
May 1, 2008, 2:08:57 AM5/1/08
to micr...@googlegroups.com
Hi Roberto

Actually the problem statement is this,
"Microdia driver with 6270 hardware, is not working on this x86_64"

we need to isolate either microdia driver of x86_64 to be the source
of the problem.

try microdia on a different x86_64 h/w s/w will help here
(instead of using another webcam h/w on x86_64)

-JoJo

Cristi Magherusan

unread,
May 1, 2008, 4:09:52 AM5/1/08
to micr...@googlegroups.com
Hello,

I have no idea if this helps, but my 6270 camera did work on x86-64
with latest Comer's patches. I haven't tried yet on x86-32 but i
assume it should work.

Cristi

Comer352l

unread,
May 1, 2008, 6:19:47 AM5/1/08
to micr...@googlegroups.com
Hi Roberto,

do you own two 6270 cams ? I thought you tested your cam on 2 different
systems...
What's the problem with the colors ? Could you send some screenshots ?
Did the adjustment of the picture settings not work for you ?

These "microdia: Iso frame 1234 of USB has error -18"-errors are
strange. USB-error -18 is EXDEV="Cross-device link", but I have no idea
what could cause this...

Frank

Roberto Lionello schrieb:

Roberto Lionello

unread,
May 1, 2008, 12:16:51 PM5/1/08
to microdia
No, sorry. I own only one 6270. The other is a Logitech camera. I
tested the microdia driver on a
32 bit system and it worked. I'll see if I can use another 64 bit
system.

Roberto Lionello

unread,
May 5, 2008, 5:14:23 PM5/5/08
to microdia
Hi,

Darn! :-) The driver works on the other AMD64 machine (dual AMD
Athlon(tm) 64 X2 Dual Core Processor 4000+). My machine is old, maybe
that's the problem: it's a dual AMD Opteron(tm) Processor 244.
Do you guys want to pursue this further or is it a waste of time?

Cheers,

RL



On May 1, 9:16 am, Roberto Lionello <roberto.lione...@gmail.com>
wrote:

Ilya

unread,
May 18, 2008, 2:35:51 AM5/18/08
to microdia
On May 6, 12:14 am, Roberto Lionello <roberto.lione...@gmail.com>
wrote:
> Hi,
>
> Darn! :-) The driver works on the otherAMD64machine (dual AMD
> Athlon(tm) 64 X2 Dual Core Processor 4000+). My machine is old, maybe
> that's the problem: it's a dual AMD Opteron(tm) Processor 244.
> Do you guys want to pursue this further or is it a waste of time?
>
Maybe, it's the matter of kernel version or kernel build options?
(As I have said elsewhere, I have similar problem on AMD Athlon(tm)
64 X2 Dual Core Processor 3800+ with TEAC 1.3Mpixel webcam)

Ilya

unread,
May 18, 2008, 2:43:55 AM5/18/08
to microdia
PS I do see image, but with bad resolution.

Comer352l

unread,
May 18, 2008, 3:57:37 PM5/18/08
to micr...@googlegroups.com
Ilya schrieb:

> PS I do see image, but with bad resolution.
>
> >
>
Sorry, but what's exactly your problem ? Do you get a stream or not ?
What do you mean with "bad resolution" ?
Do you use a USB2.0-port ? Please post dmesg-output.

Frank

siegfried...@googlemail.com

unread,
May 21, 2008, 12:22:51 PM5/21/08
to microdia
Hi,

i'm likely having the same problem with an older laptop

> These "microdia: Iso frame 1234 of USB has error -18"-errors are
> strange. USB-error -18 is EXDEV="Cross-device link", but I have no idea
> what could cause this...

This is true but errno.h holds no clue, a little googling provides the
key to the answer:
http://www.mjmwired.net/kernel/Documentation/usb/error-codes.txt

-EXDEV ISO transfer only partially completed
look at individual frame status for details

This probably means that the transfer was not successful due to buffer
overflow since i get very high system loads and only 2fps.

This is when connected to a USB2 PCCARD. When connected directly to
the USB1 port, i get error -84:
-EILSEQ (*, **) a) CRC mismatch
b) no response packet received within the
prescribed bus turn-around time
c) unknown USB error

So i guess there's a problem with the timing, the computer pushes data
too fast and the controller pushes data too fast. Maybe the insertion
of some delays or a lower bandwidth allocation can relax the situation.
Reply all
Reply to author
Forward
0 new messages