This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Why does davinci_capture.ko can not reload?

Other Parts Discussed in Thread: TVP5146

kernel will be halt after reload davinci_capture.ko ,

below is the step:

root@10.9.11.17:/opt# insmod tvp5146.ko
root@10.9.11.17:/opt# insmod mt9t001.ko
root@10.9.11.17:/opt# insmod davinci_capture.ko device_type=0
successfully created proc file
Start MT9T001 init...
vpfe vpfe.1: DaVinci v4l2 capture driver V1.0 loaded

root@10.9.11.17:/opt# cat /proc/interrupts
           CPU0
  0:          0       AINTC  vpfe_capture
  1:          0       AINTC  vpfe_capture
  5:          0       AINTC  dm644xpreviewer
  6:          0       AINTC  dm644xresizer
  8:       7907       AINTC  davinci_osd
 12:          2       AINTC  musb_hdrc
 13:      12840       AINTC  EMAC
 16:          1       AINTC  EDMA Completion
 17:          1       AINTC  EDMA CC Err
 18:          0       AINTC  EDMA TC0 Error
 19:          0       AINTC  EDMA TC1 Error
 26:        149       AINTC  mmc0
 32:      13256       AINTC  clockevent
 33:          0       AINTC  free-run counter
 39:         15       AINTC  i2c_davinci
 40:        366       AINTC  serial
Err:          0
root@10.9.11.17:/opt# ./capture_example
initializing capture device

Open Done

QUERYCAP Done
setting data format
SetDataFormat:setting std to 15

S_STD Done
vpfe vpfe.1:
 Validation pass

GetSTD Done WITH std = 15
SetDataFormat:requesting width:720 height:480

S_FMT Done

Calling configCCDCraw()

configCCDCraw Done
initializing capture buffers

REQBUF Done

QUERYBUF Done

QUERYBUF Done

QUERYBUF Done
starting streaming
Queing buffer:0

Q_BUF Done
Queing buffer:1

Q_BUF Done
Queing buffer:2

Q_BUF Done

STREAMON Done
frame:0 :85000000
frame:1 :85400000
frame:2 :85800000
frame:3 :85000000
frame:4 :85400000
frame:5 :85800000
frame:6 :85000000
frame:7 :85400000
frame:8 :85800000
frame:9 :85000000
Calling Stream Off
root@10.9.11.17:/opt# cat /proc/interrupts
           CPU0
  0:        576       AINTC  vpfe_capture
  1:        576       AINTC  vpfe_capture
  5:          0       AINTC  dm644xpreviewer
  6:          0       AINTC  dm644xresizer
  8:       9007       AINTC  davinci_osd
 12:          2       AINTC  musb_hdrc
 13:      12912       AINTC  EMAC
 16:          1       AINTC  EDMA Completion
 17:          1       AINTC  EDMA CC Err
 18:          0       AINTC  EDMA TC0 Error
 19:          0       AINTC  EDMA TC1 Error
 26:        167       AINTC  mmc0
 32:      15092       AINTC  clockevent
 33:          0       AINTC  free-run counter
 39:         15       AINTC  i2c_davinci
 40:        518       AINTC  serial
Err:          0
root@10.9.11.17:/opt# rmmod davinci_capture.ko
root@10.9.11.17:/opt# insmod davinci_capture.ko device_type=0
successfully created proc file
Start MT9T001 init...
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c6edc000
[00000000] *pgd=86da7031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1]
Modules linked in: davinci_capture mt9t001 tvp5146
CPU: 0
PC is at vdint1_isr+0x44/0x9c [davinci_capture]
LR is at handle_IRQ_event+0x70/0xfc
pc : [<bf008048>]    lr : [<c0069c24>]    Not tainted
sp : c6eebd78  ip : bf00dfe0  fp : c6eebd84
r10: 00000000  r9 : 00000001  r8 : 00000000
r7 : c002d9e0  r6 : c6eea000  r5 : 00010002  r4 : c002d9e0
r3 : ffffff9c  r2 : 00000000  r1 : bf00dfe8  r0 : 00000000
Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  Segment user
Control: 5317F
Table: 86EDC000  DAC: 00000015
Process insmod (pid: 931, stack limit = 0xc6eea258)
Stack: (0xc6eebd78 to 0xc6eec000)
bd60:                                                       c6eebdbc c6eebd88
bd80: c0069c24 bf008014 00000000 c6eebe08 c6eebdc4 c0286040 c6eea000 00000001
bda0: c002d9e0 c6eebe08 c6eea000 c02f8194 c6eebde4 c6eebdc0 c006b818 c0069bc4
bdc0: 00000001 c0286040 c6eebe08 00000002 00000001 bf00b690 c6eebe04 c6eebde8
bde0: c0032bc0 c006b710 00000000 ffffffff fec48000 00000001 c6eebe74 c6eebe08
be00: c0031a04 c0032b90 00000000 00000002 fec48fff 10040000 c0286040 40000013
be20: 00000001 c002d9e0 00000000 bf00dfe8 bf00b690 c6eebe74 c6eebe28 c6eebe50
be40: c006acdc c006a34c 80000013 ffffffff c6eebe8c c002d9e0 00000001 00000000
be60: bf008004 00000020 c6eebea4 c6eebe78 c006a498 c006a1d4 bf003d84 bf00dfe8
be80: 00000000 bf00dfe0 000007e8 000007e8 00000000 ffffffff c6eebedc c6eebea8
bea0: bf00a704 c006a414 bf00dfe8 c01307c8 c6eebedc c65406d0 c65406f4 bf00de60
bec0: c6540400 c6540720 c7812000 00000018 c6eebfa4 c6eebee0 c0068bd0 bf00a2b0
bee0: 00000000 c002d2e0 bf00de6c bf00dea8 00000000 00000000 00000000 00000000
bf00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
bf20: 00000000 00000009 c78199c8 c70299c0 c7818138 c7818020 00000008 00000000
bf40: 000000d8 000000d8 bf00c5b0 0000000b c01709c0 c7817d29 00000017 c7818188
bf60: c7818188 bf00b6dc c7818160 00000015 00000000 c0276044 c6eebfa4 00000000
bf80: 00010000 be847ed1 00000080 c0031fa8 c6eea000 00000000 00000000 c6eebfa8
bfa0: c0031e00 c0067660 00000000 00010000 00012020 0000818b 00012008 00000001
bfc0: 00000000 00010000 be847ed1 00000080 00012008 00012008 00012020 00000000
bfe0: 00000003 be847c7c 00008d30 400dead4 60000010 00012020 00000000 00000000
Backtrace:

  • What DVSDK version and platform(DM355, DM365, DM6446...) are you using?  Also, where are you getting capture_example application from?  I do not believe this is part of DVSDK.  If you got this from a third party, then is you kernel also from that third party? 

  • Hi Juan:

    The platform is DM6446, the sensor data are come from FPGA,

    kernel is: linux-2.6.18_pro500, come from: REL_LSP_02_00_00_090.tar.gz

    the capture_example is also come from REL_LSP_02_00_00_090.tar.gz :

    PSP_02_00_00_090/examples/dm644x/ccdc
    [root@VM ccdc]# ls
    capture_example.c  capture_example.h  Makefile

    Thanks.