Hello, all. First of all, Thanks a lot for attention! My notebook is Acer Aspire 5112 wlmi. And my system is Mandriva 2008.1 with kernel: [EMAIL PROTECTED] m560x/trunk/km_m560x $ uname -a Linux mdv2k8 2.6.24.7-laptop-1mnb #1 SMP Mon Jul 28 15:22:29 EDT 2008 i686 AMD Turion(tm) 64 X2 Mobile Technology TL-50 GNU/Linux
===== I'm checking latest source codes from svn: [EMAIL PROTECTED] ~/compile/m560x $ svn co https://m560x-driver.svn.sourceforge.net/svnroot/m560x-driver U m560x-driver/m560x/branches/m5602/m5602_ov9650.h U m560x-driver/m560x/branches/m5602/m5602.c Checked out revision 341. ===== After that, going to trunk: [EMAIL PROTECTED] ~/compile/m560x $ cd m560x-driver/m560x/trunk/ [EMAIL PROTECTED] m560x-driver/m560x/trunk $ ls km_m560x/ [EMAIL PROTECTED] m560x-driver/m560x/trunk $ cd km_m560x ===== Then i cleaning from old binaries: [EMAIL PROTECTED] m560x/trunk/km_m560x $ make clean rm -f *.o *.ko .*.o.d *~ .m560x*.cmd *.mod.c rm -rf m560x-0.4 .tmp_versions rm -f m560x-0.4.tar.bz2 ===== And try to compile. Sorry for some russian words, but i can translate or make another log in the future: [EMAIL PROTECTED] m560x/trunk/km_m560x $ make all make -C /lib/modules/2.6.24.7-laptop-1mnb/build SUBDIRS=/home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x modules make[1]: Entering directory `/usr/src/linux-2.6.24.7-laptop-1mnb' CC [M] /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.o /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c: В функции ‘show_model’ /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1615: предупреждение: initialization from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c: В функции ‘show_in_use’ /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1616: предупреждение: initialization from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c: В функции ‘show_streaming’ /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1617: предупреждение: initialization from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c: В функции ‘show_palette’ /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1618: предупреждение: initialization from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c: В функции ‘show_frames_total’ /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1619: предупреждение: initialization from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c: В функции ‘show_frames_read’ /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1620: предупреждение: initialization from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c: В функции ‘show_packets_dropped’ /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1621: предупреждение: initialization from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c: В функции ‘show_decoding_errors’ /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1622: предупреждение: initialization from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c: В функции ‘m560x_create_sysfs_files’ /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1626: предупреждение: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1627: предупреждение: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1628: предупреждение: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1629: предупреждение: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1630: предупреждение: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1631: предупреждение: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1632: предупреждение: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1633: предупреждение: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1626: предупреждение: результат ‘video_device_create_file’, декларированной с атрибутом warn_unused_result, игнорируется /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1627: предупреждение: результат ‘video_device_create_file’, декларированной с атрибутом warn_unused_result, игнорируется /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1628: предупреждение: результат ‘video_device_create_file’, декларированной с атрибутом warn_unused_result, игнорируется /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1629: предупреждение: результат ‘video_device_create_file’, декларированной с атрибутом warn_unused_result, игнорируется /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1630: предупреждение: результат ‘video_device_create_file’, декларированной с атрибутом warn_unused_result, игнорируется /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1631: предупреждение: результат ‘video_device_create_file’, декларированной с атрибутом warn_unused_result, игнорируется /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1632: предупреждение: результат ‘video_device_create_file’, декларированной с атрибутом warn_unused_result, игнорируется /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1633: предупреждение: результат ‘video_device_create_file’, декларированной с атрибутом warn_unused_result, игнорируется /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c: В функции ‘m560x_remove_sysfs_files’ /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1638: предупреждение: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1639: предупреждение: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1640: предупреждение: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1641: предупреждение: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1642: предупреждение: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1643: предупреждение: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1644: предупреждение: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:1645: предупреждение: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c: В функции ‘usb_m560x_probe’ /home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.c:2831: ошибка: ‘struct video_device’ has no member named ‘hardware’ make[2]: *** [/home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x/m560x_core.o] Ошибка 1 make[1]: *** [_module_/home/wwarlock/compile/m560x/m560x-driver/m560x/trunk/km_m560x] Ошибка 2 make[1]: Leaving directory `/usr/src/linux-2.6.24.7-laptop-1mnb' make: *** [all] Ошибка 2 ===== So. As you can see, i've cath an error. Ok, i've going to branches. And doing same as i write above from begining: [EMAIL PROTECTED] m560x/branches/m5602 $ make clean [EMAIL PROTECTED] m560x/branches/m5602 $ make all make -C /lib/modules/2.6.24.7-laptop-1mnb/build SUBDIRS=/home/wwarlock/compile/m560x/m560x-driver/m560x/branches/m5602 modules make[1]: Entering directory `/usr/src/linux-2.6.24.7-laptop-1mnb' CC [M] /home/wwarlock/compile/m560x/m560x-driver/m560x/branches/m5602/m5602.o Building modules, stage 2. MODPOST 1 modules CC /home/wwarlock/compile/m560x/m560x-driver/m560x/branches/m5602/m5602.mod.o LD [M] /home/wwarlock/compile/m560x/m560x-driver/m560x/branches/m5602/m5602.ko make[1]: Leaving directory `/usr/src/linux-2.6.24.7-laptop-1mnb' [EMAIL PROTECTED] m560x/branches/m5602 $ sudo make install Пароль: mkdir -p /lib/modules/2.6.24.7-laptop-1mnb/kernel/drivers/usb/media install -m 644 -o 0 -g 0 m5602.ko /lib/modules/2.6.24.7-laptop-1mnb/kernel/drivers/usb/media depmod -a [EMAIL PROTECTED] m560x/branches/m5602 $ make load_debug sudo insmod ./m5602.ko debug=0xff insmod: error inserting './m5602.ko': -1 Unknown symbol in module make: *** [load_debug] Ошибка 1 [EMAIL PROTECTED] m560x/branches/m5602 $ make load sudo modprobe videodev sudo modprobe compat_ioctl32 sudo insmod ./m5602.ko ===== It's looks what allright. But look at dmesg-log below: m5602: Unknown symbol v4l_compat_ioctl32 m5602: Unknown symbol video_devdata m5602: Unknown symbol video_unregister_device m5602: Unknown symbol video_device_alloc m5602: Unknown symbol video_register_device m5602: Unknown symbol video_device_release Linux video capture interface: v2.00 /home/wwarlock/compile/m560x/m560x-driver/m560x/branches/m5602/m5602.c: ALi m5602 webcam driver startup /home/wwarlock/compile/m560x/m560x-driver/m560x/branches/m5602/m5602.c: BisonCam webcam found /home/wwarlock/compile/m560x/m560x-driver/m560x/branches/m5602/m5602_mt9m111.c: Probing for a mt9m111 sensor /home/wwarlock/compile/m560x/m560x-driver/m560x/branches/m5602/m5602_s5k4aa.c: Probing for a s5k4aa sensor /home/wwarlock/compile/m560x/m560x-driver/m560x/branches/m5602/m5602_ov9650.c: Probing for an ov9650 sensor /home/wwarlock/compile/m560x/m560x-driver/m560x/branches/m5602/m5602_s5k83a.c: Probing for a s5k83a sensor /home/wwarlock/compile/m560x/m560x-driver/m560x/branches/m5602/m5602_s5k83a.c: Detected a s5k83a sensor /home/wwarlock/compile/m560x/m560x-driver/m560x/branches/m5602/m5602.c: ALi m5602 webcam driver is now controlling video device 0 usbcore: registered new interface driver m5602 ===== So, let's look for device: [EMAIL PROTECTED] m560x/branches/m5602 $ ls /dev/v* /dev/vboxdrv /dev/vcs1 /dev/vcs3 /dev/vcs5 /dev/vcs7 /dev/vcsa1 /dev/vcsa3 /dev/vcsa5 /dev/vcsa7 /dev/video0 /dev/vcs /dev/vcs2 /dev/vcs4 /dev/vcs6 /dev/vcsa /dev/vcsa2 /dev/vcsa4 /dev/vcsa6 /dev/video@ ===== Great, it's exists and camera LED is shining by green light. Now i'm trying run some programs: [EMAIL PROTECTED] m560x/branches/m5602 $ gqcam Error reading image... Error reading image... Error reading image... Gqcam settings windows appears only. And "Error reading image..." writing to console by infinite cycle. ===== Next in queue is xawtv: [EMAIL PROTECTED] m560x/branches/m5602 $ xawtv This is xawtv-3.95, running on Linux/i686 (2.6.24.7-laptop-1mnb) xinerama 0: 1280x800+0+0 /dev/video0 [v4l2]: no overlay support v4l-conf had some trouble, trying to continue anyway Warning: Missing charsets in String to FontSet conversion Warning: Missing charsets in String to FontSet conversion Warning: Missing charsets in String to FontSet conversion ioctl: VIDIOC_G_STD(std=0xb7d746e8b7f1baf8 [PAL_H,PAL_I,PAL_D,PAL_D1,PAL_K,PAL_N,PAL_60,NTSC_M,NTSC_M_JP,?,SECAM_B,SECAM_K,SECAM_K1,SECAM_L,?ATSC_8_VSB,ATSC_16_VSB,(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)]): Недопустимый аргумент ioctl: VIDIOC_S_STD(std=0x0 []): Недопустимый аргумент (It's means wrong argument) no way to get: 384x288 32 bit TrueColor (LE: bgr-) ===== At above you can see console output. When xawtv started, my screen gone black and notebook does not answer to pressing keys. Only when i switch to terminal by Ctrl+Alt+F1 and switched back by Alt+F7, then I return the control to myself. XawTv shows only black screen. Of course in all program i'm specify /dev/video or /dev/video0 as a video device. So, any ideas? Can anybody helps me? ------------------------------------------------------------------------- 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
