-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Gabriele Zanardo wrote: | 2008/8/31 Erik Andrén <[EMAIL PROTECTED]>: | Sorry, | I was really hung-over this morning when I started coding (Apparently | not a good combination) and I must have gotten really confused. You | don't have a mt9m111 sensor so disregard all that. | |> Don't worry ;) | | You probably have a s5k83a sensor. If you insert the m5602 branch with | force_sensor=2 (thereby forcing the s5k83a sensor) does it then work? | |> I can't get the whole picture... but I can recognize my hair... | If you don't force the sensor, does it get detected as a s5k83a? | Other people with the same sensor (s5k83a) reports that the image is | corrupted when in a high lighting environment, if you make the room | darker do you get a better picture? | |> well, if I make the room really darker, I get the whole picture! but, |> I mean (2nd attachment), I hardly recognize me... but the picture |> contains my entire figure, from the head to my shoulders. The image is |> the same as I were in front of a mirror (my right part is on the right |> of the picture), and the left part is really dark (or not received |> from the driver?) (it could depend on the wall back too, it is not |> homogeneus). | |> thanks for your work. | |> Let me ask something: as far as I could understand, there some |> different sensors (in my case the sk5...) exchanging data via an i2c |> bus with an i2c-usb bridge (the ali m5602 in my case), and we (you.. |> :)) don't know anything about them, since we can't get the right |> datasheet.... is this right? Yes, I also don't have access to a machine with a s5k83a sensor and thus can't do much in order to improve the current situation. Patches welcome :) Regards, Erik | |> thanks again and best regards! | |> Gabriele | Again, sorry for the confusion, | Erik | | | Gabriele Zanardo wrote: | | [EMAIL PROTECTED]:~/Scrivania/webcam$ svn co | | https://m560x-driver.svn.sourceforge.net/svnroot/m560x-driver | | m560x-driver | | .... | | .... | | .... | | A m560x-driver/m560x/tags/km_m560x_0.3/fw/m560x.inf | | A m560x-driver/m560x/tags/km_m560x_0.3/Makefile | | A m560x-driver/m560x/tags/km_m560x_0.3/README | | Estratta revisione 352. | | | | [EMAIL PROTECTED]:~/Scrivania/webcam$ [EMAIL PROTECTED]:~/Scrivania/webcam$ cd | | m560x-driver/m560x/branches/m5602-mt9m111/ | | | | | [EMAIL PROTECTED]:~/Scrivania/webcam/m560x-driver/m560x/branches/m5602-mt9m111$ | make | | make -C /lib/modules/2.6.24-21-generic/build | | | SUBDIRS=/home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602-mt9m111 | | modules | | make[1]: Entering directory `/usr/src/linux-headers-2.6.24-21-generic' | | CC [M] | /home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602-mt9m111/m5602.o | | In file included from | | | /home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602-mt9m111/m5602.c:37: | | | /home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602-mt9m111/m5602_v4l2.c: | | In function 'v4l_m5602_mmap': | | | /home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602-mt9m111/m5602_v4l2.c:678: | | warning: format '%d' expects type 'int', but argument 6 has type 'long | | unsigned int' | | | /home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602-mt9m111/m5602_v4l2.c:709: | | warning: format '%d' expects type 'int', but argument 6 has type 'long | | unsigned int' | | Building modules, stage 2. | | MODPOST 1 modules | | CC | /home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602-mt9m111/m5602.mod.o | | LD [M] | /home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602-mt9m111/m5602.ko | | make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-21-generic' | | | | [EMAIL PROTECTED]:~/Scrivania/webcam/m560x-driver/m560x/branches/m5602-mt9m111$ | | make load | | sudo modprobe videodev | | [sudo] password for gab: | | sudo modprobe compat_ioctl32 | | sudo insmod ./m5602.ko | | | | ----- | | no light turns on | | ----- | | | | | [EMAIL PROTECTED]:~/Scrivania/webcam/m560x-driver/m560x/branches/m5602-mt9m111$ | dmesg | | | | [ 636.249175] | /home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602-mt9m111/m5602.c: | | m5602 Webcam driver startup | | [ 636.249594] | /home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602-mt9m111/m5602.c: | | BisonCam webcam found | | [ 636.251333] | /home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602-mt9m111/m5602_mt9m111.c: | | Probing for a mt9m111 sensor | | [ 636.261844] | /home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602-mt9m111/m5602_mt9m111.c: | | Sensor reported 0xffff | | [ 636.261855] | /home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602-mt9m111/m5602.c: | | Initialization of the m5602 WebCam failed | | [ 636.261909] | /home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602-mt9m111/m5602.c: | | m5602 WebCam driver is now controlling video device 0 | | [ 636.261934] usbcore: registered new interface driver m5602 | | [ 636.261939] | /home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602-mt9m111/m5602.c: | | 0.3.0:M5602 Webcam Driver | | | | livecam tells "couldn' find any device" or something like that | | | | so I tried with the "general" m5602 (make & make load) with dmesg: | | | | [ 792.610982] | /home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602/m5602.c: | | ALi m5602 webcam driver startup | | [ 792.611054] | /home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602/m5602.c: | | BisonCam webcam found | | [ 792.611928] | /home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602/m5602_mt9m111.c: | | Probing for a mt9m111 sensor | | [ 792.622556] | /home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602/m5602_s5k4aa.c: | | Probing for a s5k4aa sensor | | [ 792.634284] | /home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602/m5602_ov9650.c: | | Probing for an ov9650 sensor | | [ 792.642536] | /home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602/m5602_s5k83a.c: | | Probing for a s5k83a sensor | | [ 792.646529] | /home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602/m5602_s5k83a.c: | | Detected a s5k83a sensor | | [ 792.714392] | /home/gab/Scrivania/webcam/m560x-driver/m560x/branches/m5602/m5602.c: | | ALi m5602 webcam driver is now controlling video device 0 | | [ 792.714424] usbcore: registered new interface driver m5602 | | | | the green light turns on and with livecam I get the image in | | attachment: only half the image is detected. | | | | btw, a couple of hours ago, the "make load" command detected (just one | | time) the s5k4aa sensor... I don't know how it can happen... It's | | really strange. | | A question: why did you, Erik, ask me to use the mt9m111 branch, if I | | got the best results with the s5k83a one? does my sensor look like a | | mt9m111, as far as the usb snoops are concerned? | | | | thanks for your work & best regards! | | | | Gabriele | | | | | | | | | | | | | | | | | | 2008/8/31 Erik Andrén <[EMAIL PROTECTED]>: | | | | | | Gabriele Zanardo wrote: | | | 2008/8/28 Erik Andrén <[EMAIL PROTECTED]>: | | | | | | | | | Gabriele Zanardo wrote: | | | | 2008/8/28 Erik Andrén <[EMAIL PROTECTED]>: | | | |> | | | |> 2008/8/27 Gabriele Zanardo <[EMAIL PROTECTED]> | | | |>> Thanks for your suggestion, Dorneles. | | | |>> | | | |>> I'm going to describe my last experiment, hope it wll help. | | | |>> | | | |>> | | | |>> 0) I plugged the power cable in, and turned the latop on | | | |>> 1) In linux, "make load" of the driver. The green light turns on, | | | but with | | | |>> livecam I could see just a pixel sensible to the light. | | | |> This is strange. | | | |> | | | |>> 2) rebooted the laptop (that was therefore not completely powered | | off, I | | | |>> suppose the camera was still "supplied with electricity", so it | | | could have | | | |>> not lost all its settings), chose "windows" in grub and tried to | | use the | | | |>> webcam: I didn't get anything understandable. | | | |> So it didn't work in windows either? | | | | | | | | no, it didn't... (but it had always been working, before putting the | | | | linux driver to the test) | | | | | | | |>> 3) turned the lapop off and unplugged the power cable. Turned it | on in | | | |>> windows and the webcam worked: got colour pictures | | | |>> 4) rebooted the laptop in linux, as I did in punkt 2, ie always | | | supplying | | | |>> power. Now the webcam works, even if in black and white. | | | |> Black and white is expected, as this is the result when using the | bayer | | | |> mode. | | | | | | | | Ok ;) | | | | | | | |>> This test makes me think, something is not (or wrong) written in the | | | |>> webcam configuration. Do you agree? Should I do some other testing? | | | |> If you get issues both in windows and in linux there might be some | | | hardware | | | |> issues. | | | | | | | | I agree with you, if I got the same issues both in Windows and in | | | | linux, it'd be an hardware problem. But since working and non-working | | | | situations are very reproducible, I suppose it is not an hardware | | | | problem. | | | | In particoular, the camera works in linux on the both conditions (both | | | | necessary): having worked in windows and the laptop having been | | | | rebooted from windows. And for working in windows, a "deep" boot is | | | | necessary (ie a boot from a completely "shut down" situation). Sorry | | | | for the terms used, but I don't know how to express better the two | | | | different kinds of booting. Hope them were understandable. | | | | | | | | Well, thank you all for reading and for any suggestion you will write. | | | | | | | | | | Ok, so the windows driver probably does some initialization that we | | | miss. In order to help you further I need some usb snoops from windows. | | | This page [1] gives some good instructions on how to capture usb sniff | | | logs. Follow them and put them up somewhere on the web and send the | | | links to this mailing list. | | | | | |> Ok, it should be here: | http://www.gest.unipd.it/~zanardo/snoop/snoop.zip | | | | | | Thanks, | | | Erik | | | | | | | Hi, | | I've investigated your usb snoop and couldn't find anything new. I've | | added some more init code from your snoop to the m5602-mt9m111 test | | branch. Please update to the latest svn and check if this branch works | | with livecam in bayer mode @ 640x480 when you _haven't_ used windows and | | rebooted before. | | | | Let me know if it works better. | | | | Regards, | | Erik | | | | | | |> I'm the one who has to thank... I don't want to abuse your patience | | |> and your time, and make you do something you have already done, I | | |> mean, to find out an already known sensor... Thanks again and good | | |> night | | | | | |> Gabriele | | | | | | [1] http://groups.google.com/group/microdia/web/usb-sniffing-on-windows | | | | | | | | | | Best regards | | | | Gabriele | | | | | | |> | | | |> |> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIup/1N7qBt+4UG0ERAkjQAJ9OhjUqbNny36GfR3GZnRSx5CMUYQCgvvan 05jL7Kw1NIUmH4CQJDXe+iw= =dZ0S -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ M560x-driver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/m560x-driver-devel
