Good day ,...

I'm sure im doing something wrong .
I have Acer 5102WLMI with m5602 integrated camera

Windows Driver:

ftp://ftp.work.acer-euro.com/notebook/aspire_5100/driver/Bison_CCD_5_0_0_10f.zip


lsusb output :
   Bus 003 Device 002: ID 0402:5602 ALi Corp. Video Camera Controller

I've add the next line to the Makefile :

install:
    mkdir -p $(DESTDIR)/lib/modules/$(shell uname
-r)/kernel/drivers/usb/media
    install -m 644 -o 0 -g 0 m5602.ko $(DESTDIR)/lib/modules/$(shell uname
-r)/kernel/drivers/usb/media
    depmod -a

so my make file looks like that :

obj-m := m5602.o
m5603c-objs :=

KDIR    := /lib/modules/$(shell uname -r)/build
PWD     := $(shell pwd)
VERSION = 0.5
DISTFILES = m5602.c m5602_v4l2.c m5602_bayer.c m5602_sysfs.c m5602.h
Makefile README COPYING INSTALL
DISTNAME = m5602-$(VERSION)

all:
        $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

clean:
        @rm -f *.o *.ko .*.o.d *~ *.mod.c *.symvers .*.cmd
        @rm -rf $(DISTNAME) .tmp_versions
        @rm -f $(DISTNAME).tar.bz2

install:
#       mkdir -p $(DESTDIR)/lib/modules/$(shell uname
-r)/kernel/drivers/usb/media
#       install -m 644 -o 0 -g 0 slim321c.ko $(DESTDIR)/lib/modules/$(shell
uname -r)/kernel/drivers/usb/media
#       depmod -a

install:
        mkdir -p $(DESTDIR)/lib/modules/$(shell uname
-r)/kernel/drivers/usb/media
        install -m 644 -o 0 -g 0 m5602.ko $(DESTDIR)/lib/modules/$(shell
uname -r)/kernel/drivers/usb/media
        depmod -a

dist:
        [ -d $(DISTNAME) ] && rm -rf $(DISTNAME) || true
        mkdir $(DISTNAME)
        cp -aR $(DISTFILES) $(DISTNAME)
        tar cjvf $(DISTNAME).tar.bz2 $(DISTNAME)
        rm -rf $(DISTNAME)

what I did  was :

laptop:/home/jabka/m560x-driver/m560x/branches/m5602-ov9650-2# make
make -C /lib/modules/2.6.24-1-amd64/build
SUBDIRS=/home/jabka/m560x-driver/m560x/branches/m5602-ov9650-2 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-1-amd64'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-1-amd64'
laptop:/home/jabka/m560x-driver/m560x/branches/m5602-ov9650-2# make install
mkdir -p /lib/modules/2.6.24-1-amd64/kernel/drivers/usb/media
install -m 644 -o 0 -g 0 m5602.ko
/lib/modules/2.6.24-1-amd64/kernel/drivers/usb/media
depmod -a

i modprobed m5602 :

usbcore: deregistering interface driver m5602
/home/jabka/m560x-driver/m560x/branches/m5602-ov9650-2/m5602.c: m5602
release resources video device 0
/home/jabka/m560x-driver/m560x/branches/m5602-ov9650-2/m5602.c:
m5602_disconnect- M560x-based WebCam disconnected
/home/jabka/m560x-driver/m560x/branches/m5602-ov9650-2/m5602.c:
usb_m5602_init - WebCam driver startup
/home/jabka/m560x-driver/m560x/branches/m5602-ov9650-2/m5602.c: BisonCam
webcam found.
/home/jabka/m560x-driver/m560x/branches/m5602-ov9650-2/m5602.c: Probing for
an ov9650 sensor
/home/jabka/m560x-driver/m560x/branches/m5602-ov9650-2/m5602.c: m5602_probe
- m5602 WebCam driver is now controlling video device 0
usbcore: registered new interface driver m5602
/home/jabka/m560x-driver/m560x/branches/m5602-ov9650-2/m5602.c: 0.1.0:M5602
Webcam Driver

but when i tried to catch inforamtion (running camorama for instance ) i got
an error :

usbcore: registered new interface driver m5602
/home/jabka/m560x-driver/m560x/branches/m5602-ov9650-2/m5602.c: 0.1.0:M5602
Webcam Driver
/home/jabka/m560x-driver/m560x/branches/m5602-ov9650-2/m5602_v4l2.c:
BisonCam on /dev/video0 opened
/home/jabka/m560x-driver/m560x/branches/m5602-ov9650-2/m5602_v4l2.c:
BisonCam on /dev/video0 opened
/home/jabka/m560x-driver/m560x/branches/m5602-ov9650-2/m5602_v4l2.c:
BisonCam on /dev/video0 opened
Unable to handle kernel NULL pointer dereference at 000000000000004c RIP:
 [<ffffffff881b2f34>] :m5602:v4l_m5602_ioctl+0x1438/0x17ba
PGD 988b067 PUD 278a8067 PMD 0
Oops: 0000 [2] SMP
CPU 1
Modules linked in: m5602 rfkill_input rfcomm l2cap bluetooth ppdev
parport_pc lp parport loop arc4 ecb blkcipher joydev b43 rfkill mac80211
sdhci snd_hda_intel cfg80211 mmc_core led_class pcspkr input_polldev
snd_pcm_oss snd_mixer_oss yenta_socket rsrc_nonstatic snd_pcm serio_raw
k8temp snd_timer psmouse video output battery snd videodev v4l2_common
soundcore v4l1_compat container snd_page_alloc ac button shpchp pci_hotplug
i2c_piix4 i2c_core evdev ext3 jbd mbcache ide_cd cdrom 8139cp sd_mod atiixp
ssb pcmcia pcmcia_core firmware_class 8139too mii ehci_hcd generic ide_core
ohci_hcd sata_sil ata_generic libata scsi_mod thermal processor fan
Pid: 4305, comm: xawtv.bin Tainted: G      D 2.6.24-1-amd64 #1
RIP: 0010:[<ffffffff881b2f34>]  [<ffffffff881b2f34>]
:m5602:v4l_m5602_ioctl+0x1438/0x17ba
RSP: 0018:ffff8100099dbab8  EFLAGS: 00010206
RAX: 000000000000004c RBX: 0000000000000000 RCX: 0000000000980900
RDX: 0000000000000000 RSI: 000000000000004c RDI: ffff8100099dbe8c
RBP: ffff8100099f8000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: ffffffff802ea95e R12: 00000000c0445624
R13: 00000000fffffe00 R14: 000000000068cec8 R15: ffff810009999e00
FS:  00002b3a17a79860(0000) GS:ffff81002f603ac0(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 000000000000004c CR3: 000000001e48f000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process xawtv.bin (pid: 4305, threadinfo ffff8100099da000, task
ffff81002103f800)
Stack:  ffff8100099dbad8 ffff81002db02800 ffff8100099dbae8 ffffffff8022ca9e
 0000000000000096 ffff8100010b2e80 ffff8100099dbb08 ffff8100099f8000
 ffff8100010ae8c0 ffff81002db02800 0000000000000096 ffffffff8022ee05
Call Trace:
 [<ffffffff8022ca9e>] enqueue_task+0x56/0x61
 [<ffffffff8022ee05>] try_to_wake_up+0x2f3/0x304
 [<ffffffff80247fb3>] autoremove_wake_function+0x9/0x2e
 [<ffffffff8022c895>] __wake_up_common+0x41/0x74
 [<ffffffff8022e6b8>] __wake_up+0x38/0x4f
 [<ffffffff802a7abf>] dput+0x1c/0x10b
 [<ffffffff802a1428>] __link_path_walk+0xbf9/0xd4e
 [<ffffffff8023e08a>] lock_timer_base+0x26/0x4c
 [<ffffffff881aa1be>] :videodev:video_open+0x147/0x151
 [<ffffffff8029acad>] chrdev_open+0x164/0x193
 [<ffffffff80296bd0>] do_filp_open+0x2a/0x38
 [<ffffffff802a37bd>] do_ioctl+0x55/0x6b
 [<ffffffff802a3a16>] vfs_ioctl+0x243/0x25c
 [<ffffffff802a3a80>] sys_ioctl+0x51/0x71
 [<ffffffff8020be2e>] system_call+0x7e/0x83


Code: 3b 08 75 22 48 8d 9c 24 90 03 00 00 ba 44 00 00 00 48 89 df
RIP  [<ffffffff881b2f34>] :m5602:v4l_m5602_ioctl+0x1438/0x17ba
 RSP <ffff8100099dbab8>
CR2: 000000000000004c
---[ end trace 43046f2ecbe8b383 ]---
/home/jabka/m560x-driver/m560x/branches/m5602-ov9650-2/m5602_v4l2.c:
BisonCam on /dev/video0 opened

I'm sure i did some thing wrong but i can't figure what ...


Distro :
  Debian testing with 2.6.24-1-amd64


Regards,...
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
M560x-driver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/m560x-driver-devel

Reply via email to