Hi,
1、i cannot found the difination of ov7670_video_info in my DVSDK4.0,and after I compile the kernel like above and load it on the board ,it occurs error the log is follows:
2 、In the media/davinci/vpif_capture.c file line 2063 if I should change to ov7670 .what other files I should modify .
if(cpu_is_davinci_da850() &&!strcmp(subdevdata->name, "mt9t031")) {...}
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Linux version 2.6.37 (root@ubuntu) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #33 PREEMPT Wed May 14 00:51:14 PDT 2014
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: DaVinci DA850/OMAP-L138/AM18x EVM
Memory policy: ECC disabled, Data cache writeback
DaVinci da850/omap-l138/am18x variant 0x1
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 24320
Kernel command line: ‘console=ttyS2,115200n8 root=/dev/nfs/ nfsroot=192.168.1.41:/home/ouyang/l138filsys rw ip=192.168.1.144:192.168.1.41:255.255.255.0 ::eth0:off mem=32M@0Xc0000000 mem=64M@0xc4000000 rootdelay=10’
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 32MB 64MB = 96MB total
Memory: 91992k/91992k available, 6312k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xff000000 - 0xffe00000 ( 14 MB)
vmalloc : 0xc8800000 - 0xfea00000 ( 866 MB)
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.init : 0xc0008000 - 0xc0032000 ( 168 kB)
.text : 0xc0032000 - 0xc04f1000 (4860 kB)
.data : 0xc04f2000 - 0xc0525300 ( 205 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptable hierarchical RCU implementation.
RCU-based detection of stalled CPUs is disabled.
Verbose stalled-CPUs detection is disabled.
NR_IRQS:245
Console: colour dummy device 80x30
Calibrating delay loop... 149.50 BogoMIPS (lpj=747520)
pid_max: default: 32768 minimum: 301
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
DaVinci: 144 gpio irqs
regulator: core version 0.5
regulator: dummy:
NET: Registered protocol family 16
-------------------------entern da850-evm_init function ---------------------------
-------------------------initial the tsc2007 function ---------------------------
------------------------registered the i2c Devices --------------------------------
WARNING: both McASP and McBSP are enabled, but they share pins.
Only McASP will work. If you want McBSP support, disable McASP.
WARNING: both McASP and UART1_AFE are enabled, but they share pins.
Disable one of them.
------------------entering init spi1flash functin------------------------
------------------the HAS_VPIF_CAPTURE IS equal to 1-------------------
------------------------------------vpif_capture_config done------------------------
---------------------da850_evm_init:VPIF Capture setup success 0------------------------
da850_evm_init: eHRPWM module 0 cannot be used since it is being used by MII interface
da850_evm_init: eHRPWM module1 outputA cannot be used since it is being used by LCD
-----------------------it has a LCD panel--------------------------------
da850_evm_init: eHRPWM module1 outputB cannot be used since it is being used by spi1
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pca953x 1-0020: failed reading register
pca953x 1-0021: interrupt support not compiled in
----------------------------set up the Baseboard I2C device fot tca6416 Establish -----------------------------
regulator: VDCDC1: 3200 <--> 3300 mV at 3300 mV
regulator: VDCDC2: 1750 <--> 3300 mV at 3300 mV
regulator: VDCDC3: 950 <--> 1350 mV at 1200 mV
regulator: LDO1: 1800 mV
regulator: LDO2: 1150 <--> 1300 mV at 1200 mV
pca9543a_probe
i2c-gpio i2c-gpio.1: using pins 20 (SDA) and 21 (SCL)
vpif vpif: vpif probe success
Advanced Linux Sound Architecture Driver Version 1.0.23.
Bluetooth: Core ver 2.15
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Switching to clocksource timer0_1
musb-hdrc: version 6.0, host, debug=0
musb-hdrc musb-hdrc: dma type: dma-cppi41
Waiting for USB PHY clock good...
musb-hdrc musb-hdrc: MUSB HDRC host driver
musb-hdrc musb-hdrc: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
musb-hdrc musb-hdrc: USB Host mode controller at fee00000 using DMA, IRQ 58
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
EMAC: MII PHY configured, RMII PHY will not be functional
McBSP:Probed McBSP1
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
msgmni has been set to 179
io scheduler noop registered (default)
da8xx_lcdc da8xx_lcdc.0: -------------------------can not get platform 0504---------------------------------------
---------------the panel LCD is HSD043I9W1_A01 -----------------------
---------------the panel LCD is HSD043I9W1_A01 -----------------------
---------------the panel LCD is HSD043I9W1_A01 -----------------------
da8xx_lcdc da8xx_lcdc.0: GLCD: Found HSD043I9W1_A01 panel
Console: switching to colour frame buffer device 60x34
Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25) is a AR7
serial8250.0: ttyS1 at MMIO 0x1d0c000 (irq = 53) is a AR7
serial8250.0: ttyS2 at MMIO 0x1d0d000 (irq = 61) is a AR7
console [ttyS2] enabled
brd: module loaded
at24 1-0050: 32768 byte 24c256 EEPROM (writable)
ahci ahci: forcing PORTS_IMPL to 0x1
ahci ahci: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode
ahci ahci: flags: ncq sntf pm led clo only pmp pio slum part ccc
scsi0 : ahci_platform
ata1: SATA max UDMA/133 mmio [mem 0x01e18000-0x01e19fff] port 0x100 irq 67
spi_davinci spi_davinci.1: DMA: supported
spi_davinci spi_davinci.1: DMA: RX channel: 18, TX channel: 19, event queue: 0
m25p80 spi1.0: m25p64 (8192 Kbytes)
Creating 6 MTD partitions on "m25p80":
0x000000000000-0x000000010000 : "UBL"
0x000000010000-0x000000090000 : "U-Boot"
0x000000090000-0x0000000a0000 : "U-Boot-Env"
0x0000000a0000-0x000000320000 : "Kernel"
0x000000320000-0x000000720000 : "Filesystem"
0x0000007f0000-0x000000800000 : "MAC-Address"
Read MAC addr from SPI Flash: ff:ff:ff:ff:ff:ff
spi_davinci spi_davinci.1: Controller at 0xfef0e000
davinci_mdio davinci_mdio.0: davinci mdio revision 1.5
davinci_mdio davinci_mdio.0: detected phy mask fffffffe
davinci_mdio.0: probed
davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver SMSC LAN8710/LAN8720
console [netcon0] enabled
netconsole: network logging started
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci ohci.0: DA8xx OHCI
ohci ohci.0: new USB bus registered, assigned bus number 2
Waiting for USB PHY clock good...
ohci ohci.0: irq 59, io mem 0x01e25000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
input: gpio-keys-polled as /devices/platform/gpio-keys-polled.1/input/input0
tsc2007 1-0049: i2c io error: -6
omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
ata1: SATA link down (SStatus 0 SControl 300)
omap_rtc: RTC power up reset detected
i2c /dev entries driver
lirc_dev: IR Remote Control driver registered, major 252
IR NEC protocol handler initialized
IR RC5(x) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR RC5 (streamzap) protocol handler initialized
IR LIRC bridge handler initialized
Linux video capture interface: v2.00
vpif_capture: the vpif of subdev_count is 1 ----------------------
vpif_capture vpif_capture: Error registering v4l2 subdevice
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c0004000
[00000000] *pgd=00000000
Internal error: Oops: 5 [#1] PREEMPT
last sysfs file:
Modules linked in:
CPU: 0 Not tainted (2.6.37 #33)
PC is at __wake_up_common+0x14/0x7c
LR is at complete_all+0x58/0x8c
pc : [<c0041740>] lr : [<c0044684>] psr: 60000093
sp : c7827d70 ip : c7827da0 fp : c7827d9c
r10: 00000000 r9 : 00000003 r8 : c04fbd28
r7 : c79e8800 r6 : 00000000 r5 : c050ca1c r4 : 00000000
r3 : 00000000 r2 : 00000000 r1 : 00000003 r0 : c79faab4
Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 0005317f Table: c0004000 DAC: 00000017
Process swapper (pid: 1, stack limit = 0xc7826270)
Stack: (0xc7827d70 to 0xc7828000)
7d60: 00000000 60000013 c050ca1c 00000000
7d80: c79e8800 c04fbd28 00000000 00000000 c7827dbc c7827da0 c0044684 c004173c
7da0: 00000000 00000000 00000000 c79faa50 c7827dd4 c7827dc0 c01eb008 c004463c
7dc0: c79faa50 c79faa50 c7827df4 c7827dd8 c01e317c c01eaffc c79faa50 c79fa400
7de0: c053fcf4 c79e8800 c7827e0c c7827df8 c01e32c4 c01e3150 c79faa48 c79fa400
7e00: c7827e24 c7827e10 c026bf40 c01e32c0 c79faa00 c79fa400 c7827e3c c7827e28
7e20: c02712f8 c026befc c79faa00 c79fa400 c7827e5c c7827e40 c0271518 c027127c
7e40: c79f3fe0 00000000 00000002 c79e8800 c7827ea4 c7827e60 c00208bc c02714fc
7e60: 00000000 00000001 c04f6f00 c04fb9cc c7885200 00000001 c7827e94 c04f6f08
7e80: c04f6f08 c0524f58 c79b5660 c050c6a8 00000000 00000000 c7827eb4 c7827ea8
7ea0: c01e6b98 c0020300 c7827ed4 c7827eb8 c01e5af4 c01e6b88 c04f6f08 c04f6f3c
7ec0: c0524f58 c79b5660 c7827ef4 c7827ed8 c01e5c24 c01e5a28 00000000 c01e5bbc
7ee0: c0524f58 c79b5660 c7827f1c c7827ef8 c01e522c c01e5bcc c7837038 c7856930
7f00: c019c8f8 c0029204 c00083ac c0524f58 c7827f2c c7827f20 c01e590c c01e51ec
7f20: c7827f5c c7827f30 c01e4afc c01e58fc c0488374 c7827f40 c0029204 c00083ac
7f40: c0524f58 00000013 c00202d4 00000000 c7827f84 c7827f60 c01e5f64 c01e4a58
7f60: c0029204 c00083ac c004b35c 00000013 c00202d4 00000000 c7827f94 c7827f88
7f80: c01e703c c01e5ec4 c7827fa4 c7827f98 c00202e8 c01e7000 c7827fdc c7827fa8
7fa0: c0032420 c00202e4 000000f5 c00083ac c004b35c 00000013 c0029204 c00083ac
7fc0: c004b35c 00000013 00000000 00000000 c7827ff4 c7827fe0 c0008448 c0032360
7fe0: 00000000 c00083ac 00000000 c7827ff8 c004b35c c00083bc 00000000 00000000
Backtrace:
[<c004172c>] (__wake_up_common+0x0/0x7c) from [<c0044684>] (complete_all+0x58/0x8c)
[<c004462c>] (complete_all+0x0/0x8c) from [<c01eb008>] (device_pm_remove+0x1c/0x60)
r4:c79faa50
[<c01eafec>] (device_pm_remove+0x0/0x60) from [<c01e317c>] (device_del+0x3c/0x170)
r5:c79faa50 r4:c79faa50
[<c01e3140>] (device_del+0x0/0x170) from [<c01e32c4>] (device_unregister+0x14/0x20)
r7:c79e8800 r6:c053fcf4 r5:c79fa400 r4:c79faa50
[<c01e32b0>] (device_unregister+0x0/0x20) from [<c026bf40>] (video_unregister_device+0x54/0x5c)
r5:c79fa400 r4:c79faa48
[<c026beec>] (video_unregister_device+0x0/0x5c) from [<c02712f8>] (v4l2_device_unregister_subdev+0x8c/0x98)
r5:c79fa400 r4:c79faa00
[<c027126c>] (v4l2_device_unregister_subdev+0x0/0x98) from [<c0271518>] (v4l2_device_unregister+0x2c/0x7c)
r5:c79fa400 r4:c79faa00
[<c02714ec>] (v4l2_device_unregister+0x0/0x7c) from [<c00208bc>] (vpif_probe+0x5cc/0x700)
r7:c79e8800 r6:00000002 r5:00000000 r4:c79f3fe0
[<c00202f0>] (vpif_probe+0x0/0x700) from [<c01e6b98>] (platform_drv_probe+0x20/0x24)
[<c01e6b78>] (platform_drv_probe+0x0/0x24) from [<c01e5af4>] (driver_probe_device+0xdc/0x1a4)
[<c01e5a18>] (driver_probe_device+0x0/0x1a4) from [<c01e5c24>] (__driver_attach+0x68/0x8c)
r7:c79b5660 r6:c0524f58 r5:c04f6f3c r4:c04f6f08
[<c01e5bbc>] (__driver_attach+0x0/0x8c) from [<c01e522c>] (bus_for_each_dev+0x50/0x84)
r7:c79b5660 r6:c0524f58 r5:c01e5bbc r4:00000000
[<c01e51dc>] (bus_for_each_dev+0x0/0x84) from [<c01e590c>] (driver_attach+0x20/0x28)
r6:c0524f58 r5:c00083ac r4:c0029204
[<c01e58ec>] (driver_attach+0x0/0x28) from [<c01e4afc>] (bus_add_driver+0xb4/0x238)
[<c01e4a48>] (bus_add_driver+0x0/0x238) from [<c01e5f64>] (driver_register+0xb0/0x13c)
[<c01e5eb4>] (driver_register+0x0/0x13c) from [<c01e703c>] (platform_driver_register+0x4c/0x60)
r9:00000000 r8:c00202d4 r7:00000013 r6:c004b35c r5:c00083ac
r4:c0029204
[<c01e6ff0>] (platform_driver_register+0x0/0x60) from [<c00202e8>] (vpif_init+0x14/0x1c)
[<c00202d4>] (vpif_init+0x0/0x1c) from [<c0032420>] (do_one_initcall+0xd0/0x1ac)
[<c0032350>] (do_one_initcall+0x0/0x1ac) from [<c0008448>] (kernel_init+0x9c/0x154)
[<c00083ac>] (kernel_init+0x0/0x154) from [<c004b35c>] (do_exit+0x0/0x6e0)
r5:c00083ac r4:00000000
Code: e92ddff8 e24cb004 e5904000 e1a09001 (e414100c)
---[ end trace 9d595ab7524b3173 ]---
note: swapper[1] exited with preempt_count 1
Kernel panic - not syncing: Attempted to kill init!
Backtrace:
[<c0036730>] (dump_backtrace+0x0/0x114) from [<c0397de8>] (dump_stack+0x18/0x1c)
r7:c7824000 r6:c7824000 r5:00000001 r4:c05258d0
[<c0397dd0>] (dump_stack+0x0/0x1c) from [<c0397e64>] (panic+0x78/0x19c)
[<c0397dec>] (panic+0x0/0x19c) from [<c004b3d0>] (do_exit+0x74/0x6e0)
r3:c04fe2c4 r2:00000001 r1:c7824110 r0:c048a848
[<c004b35c>] (do_exit+0x0/0x6e0) from [<c0036b20>] (die+0x2dc/0x31c)
[<c0036844>] (die+0x0/0x31c) from [<c0038368>] (__do_kernel_fault+0x6c/0x8c)
[<c00382fc>] (__do_kernel_fault+0x0/0x8c) from [<c0038558>] (do_page_fault+0x1d0/0x1e8)
r9:c7827d28 r8:00000005 r7:00000000 r6:00000000 r5:c7824000
r4:c04f607c
[<c0038388>] (do_page_fault+0x0/0x1e8) from [<c0038604>] (do_translation_fault+0x24/0xac)
[<c00385e0>] (do_translation_fault+0x0/0xac) from [<c00322ec>] (do_DataAbort+0x3c/0x9c)
r7:c7827d28 r6:00000005 r5:c7827d5c r4:c04f607c
[<c00322b0>] (do_DataAbort+0x0/0x9c) from [<c0032b2c>] (__dabt_svc+0x4c/0x60)
Exception stack(0xc7827d28 to 0xc7827d70)
7d20: c79faab4 00000003 00000000 00000000 00000000 c050ca1c
7d40: 00000000 c79e8800 c04fbd28 00000003 00000000 c7827d9c c7827da0 c7827d70
7d60: c0044684 c0041740 60000093 ffffffff
r8:c04fbd28 r7:c79e8800 r6:00000000 r5:c7827d5c r4:ffffffff
[<c004172c>] (__wake_up_common+0x0/0x7c) from [<c0044684>] (complete_all+0x58/0x8c)
[<c004462c>] (complete_all+0x0/0x8c) from [<c01eb008>] (device_pm_remove+0x1c/0x60)
r4:c79faa50
[<c01eafec>] (device_pm_remove+0x0/0x60) from [<c01e317c>] (device_del+0x3c/0x170)
r5:c79faa50 r4:c79faa50
[<c01e3140>] (device_del+0x0/0x170) from [<c01e32c4>] (device_unregister+0x14/0x20)
r7:c79e8800 r6:c053fcf4 r5:c79fa400 r4:c79faa50
[<c01e32b0>] (device_unregister+0x0/0x20) from [<c026bf40>] (video_unregister_device+0x54/0x5c)
r5:c79fa400 r4:c79faa48
[<c026beec>] (video_unregister_device+0x0/0x5c) from [<c02712f8>] (v4l2_device_unregister_subdev+0x8c/0x98)
r5:c79fa400 r4:c79faa00
[<c027126c>] (v4l2_device_unregister_subdev+0x0/0x98) from [<c0271518>] (v4l2_device_unregister+0x2c/0x7c)
r5:c79fa400 r4:c79faa00
[<c02714ec>] (v4l2_device_unregister+0x0/0x7c) from [<c00208bc>] (vpif_probe+0x5cc/0x700)
r7:c79e8800 r6:00000002 r5:00000000 r4:c79f3fe0
[<c00202f0>] (vpif_probe+0x0/0x700) from [<c01e6b98>] (platform_drv_probe+0x20/0x24)
[<c01e6b78>] (platform_drv_probe+0x0/0x24) from [<c01e5af4>] (driver_probe_device+0xdc/0x1a4)
[<c01e5a18>] (driver_probe_device+0x0/0x1a4) from [<c01e5c24>] (__driver_attach+0x68/0x8c)
r7:c79b5660 r6:c0524f58 r5:c04f6f3c r4:c04f6f08
[<c01e5bbc>] (__driver_attach+0x0/0x8c) from [<c01e522c>] (bus_for_each_dev+0x50/0x84)
r7:c79b5660 r6:c0524f58 r5:c01e5bbc r4:00000000
[<c01e51dc>] (bus_for_each_dev+0x0/0x84) from [<c01e590c>] (driver_attach+0x20/0x28)
r6:c0524f58 r5:c00083ac r4:c0029204
[<c01e58ec>] (driver_attach+0x0/0x28) from [<c01e4afc>] (bus_add_driver+0xb4/0x238)
[<c01e4a48>] (bus_add_driver+0x0/0x238) from [<c01e5f64>] (driver_register+0xb0/0x13c)
[<c01e5eb4>] (driver_register+0x0/0x13c) from [<c01e703c>] (platform_driver_register+0x4c/0x60)
r9:00000000 r8:c00202d4 r7:00000013 r6:c004b35c r5:c00083ac
r4:c0029204
[<c01e6ff0>] (platform_driver_register+0x0/0x60) from [<c00202e8>] (vpif_init+0x14/0x1c)
[<c00202d4>] (vpif_init+0x0/0x1c) from [<c0032420>] (do_one_initcall+0xd0/0x1ac)
[<c0032350>] (do_one_initcall+0x0/0x1ac) from [<c0008448>] (kernel_init+0x9c/0x154)
[<c00083ac>] (kernel_init+0x0/0x154) from [<c004b35c>] (do_exit+0x0/0x6e0)
r5:c00083ac r4:00000000
Thank you very much .
Ouyang,